mirror of
https://github.com/kleeja-official/kleeja.git
synced 2025-12-16 04:59:42 +01:00
access style path parmiter from kleeja style
This commit is contained in:
@@ -148,7 +148,7 @@ class kleeja_style
|
||||
$rep =
|
||||
[
|
||||
'/<\/(LOOP|IF|END|IS_BROWSER|UNLESS)>/i' => '<?php } ?>',
|
||||
'/<INCLUDE(\s+NAME|)\s*=*\s*"(.+)"\s*>/iU' => '<?php echo $this->display("\\2"); ?>',
|
||||
'/<INCLUDE(\s+NAME|)\s*=*\s*"(.+)"\s*(PATH=\s*=*\s*"(.+)")?>/iU' => '<?php echo $this->display("\\2", empty("\\4") ? null : "\\4"); ?>',
|
||||
'/<IS_BROWSER\s*=\s*"([a-z0-9,]+)"\s*>/iU' => '<?php if(is_browser("\\1")){ ?>',
|
||||
'/<IS_BROWSER\s*\!=\s*"([a-z0-9,]+)"\s*>/iU' => '<?php if(!is_browser("\\1")){ ?>',
|
||||
'/(<ELSE>|<ELSE\s?\/>)/i' => '<?php }else{ ?>',
|
||||
|
||||
Reference in New Issue
Block a user