Exemplo n.º 1
0
 function frog_tags_main($page)
 {
     $content = FrogTagsHacks::get_page_layout($page);
     $parser = new FrogTagsParser($page);
     $content = $parser->parse($content);
     echo $content;
 }
Exemplo n.º 2
0
 /**
  * This method can be used to simply run a tag parser inside of a tag
  * definition. If a filter id is given the specified filter will be applied
  * aswell.
  */
 protected function parse($string, &$parent = NULL, $filter_id = '', $defaultArgs = array())
 {
     if (!empty($string)) {
         $parser = new FrogTagsParser($this->page);
         $string = $parser->parse($string, $parent, $defaultArgs);
     }
     if (!empty($filter_id)) {
         $filter = Filter::get($filter_id);
         $string = $filter->apply($string);
     }
     return $string;
 }