public function hookPublicItemsShow($args)
 {
     $item = $args['item'];
     $id = $item->id;
     $mapfigItem = get_db()->getTable('MapfigStudioItem')->getByItemId($item->id);
     if (count($mapfigItem) > 0) {
         $tobj = new Omeka_View_Helper_Shortcodes();
         echo $tobj->shortcodes($mapfigItem->content);
     }
 }
예제 #2
0
<?php

$tobj = new Omeka_View_Helper_Shortcodes();
echo $tobj->shortcodes($text);