DeleteTags(); $t = new clsTagFunction(); $t->Set("name","include"); $t->Set("description","insert template output into the current template"); $t->Create(); $t->AddAttribute("_template","tpl","Template to insert","",TRUE); $t->AddAttribute("_supresserror","bool","Supress missing template errors","",FALSE); $t->AddAttribute("_dataexists","bool","Only include template output if content exists (content is defined by the tags in the template)","",FALSE); $t->AddAttribute("_nodatatemplate","tpl","Template to include if the nodataexists condition is true","",FALSE); unset($t); $t = new clsTagFunction(); $t->Set("name","perm_include"); $t->Set("description","insert template output into the current template if permissions are set"); $t->Create(); $t->AddAttribute("_template","tpl","Template to insert","",TRUE); $t->AddAttribute("_noaccess","tpl","Template to insert if access is denied","",FALSE); $t->AddAttribute("_permission","","Comma-separated list of permissions, any of which will grant access","",FALSE); $t->AddAttribute("_module","","Used in place of the _permission attribute, this attribute verifies the module listed is enabled","",FALSE); $t->AddAttribute("_system","bool","Must be set to true if any permissions in _permission list is a system permission","",FALSE); $t->AddAttribute("_supresserror","bool","Supress missing template errors","",FALSE); $t->AddAttribute("_dataexists","bool","Only include template output if content exists (content is defined by the tags in the template)","",FALSE); $t->AddAttribute("_nodatatemplate","tpl","Template to include if the nodataexists condition is true","",FALSE); unset($t); $t = new clsTagFunction(); $t->Set("name","mod_include"); $t->Set("description","insert templates from all enabled modules. No error occurs if the template does not exist."); $t->Create(); $t->AddAttribute("_template","tpl","Template to insert. This template path should be relative to the module template root directory","",TRUE); $t->AddAttribute("_modules","","Comma-separated list of modules. Defaults to all enabled modules if not set","",FALSE); $t->AddAttribute("_supresserror","bool","Supress missing template errors","",FALSE); $t->AddAttribute("_dataexists","bool","Only include template output if content exists (content is defined by the tags in the template)","",FALSE); $t->AddAttribute("_nodatatemplate","tpl","Template to include if the nodataexists condition is true","",FALSE); //$objTagList->ParseFile($pathtoroot."kernel/parser.php"); //$objTagList->ParseFile($pathtoroot."in-bulletin/parser.php"); //$objTagList->ParseFile($pathtoroot."in-link/parser.php"); //$objTagList->ParseFile($pathtoroot."in-news/parser.php"); if(is_array($ParserFiles)) { foreach($ParserFiles as $file) { $objTagList->ParseFile($pathtoroot.$file); } } if(is_array($ItemTagFiles)) { foreach($ItemTagFiles as $file) { $objTagList->ParseItemFile($pathtoroot.$file); } } } $objTagList->Clear(); $objTagList->Query_Item("SELECT * FROM ".$objTagList->SourceTable); if($objTagList->NumItems()>0) { foreach($objTagList->Items as $i) { $i->LoadAttribs(); //echo " ".$i->attribs->NumItems()." Attributes
\n"; if(strlen($i->Get("name"))) { echo ""; echo ""; echo ""; if($i->attribs->NumItems()>0) { echo "
"; if($i->Get("scope")!="global") { echo "".$i->Get("scope").".".$i->Get("name").""; } else echo "".$i->Get("name").""; echo ""; echo $i->Get("example")."
"; echo "".$i->Get("description")."
"; echo "Attributes:
\n"; //echo "
";print_r($i->attribs->Items); echo "
"; echo ""; foreach($i->attribs->Items as $a) { echo ""; } echo "
".$a->Get("Name")."[".$a->Get("AttrType")."] ".$a->Get("Description")."
"; } echo "
"; } } } ?>