Changeset 407:eb5bd0f66932 for plugins/tags
- Timestamp:
- 06/23/11 13:00:59 (14 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/tags/_public.php
r270 r407 44 44 45 45 $core->addBehavior('templateBeforeBlock',array('behaviorsTags','templateBeforeBlock')); 46 $core->addBehavior('tplSysIfConditions',array('behaviorsTags','tplSysIfConditions')); 46 47 47 48 class behaviorsTags … … 68 69 "\$params['sql'] .= \"AND META.meta_id = '\".\$core->con->escape(\$_ctx->meta->meta_id).\"' \";\n". 69 70 "} ?>\n"; 71 } 72 } 73 74 public static function tplIfConditions($tag, $attr,$content,$if) 75 { 76 if ($tag == 'Sys' && isset($attr['has_tag'])) { 77 $sign = ''; 78 if (substr($attr['has_tag'],0,1) == '!') { 79 $sign = '!'; 80 $attr['has_tag'] = substr($attr['has_tag'],1); 81 } 82 $if[] = $sign."(\$core->tpl->tagExists('".addslashes($attr['has_tag'])."') )"; 70 83 } 71 84 }
Note: See TracChangeset
for help on using the changeset viewer.