/** * Apply markup to given text. * @param string $text * @param string $markupType (optional) markup type, defaults from core markup parameter * @return string resulting text */ public static function markup($text, $markupType=null) { MyOOS_CoreApi::requireOnce('lib/smarty_plugins/modifier.markup.php'); return smarty_modifier_markup($text, $markupType); }
} } unset($_from); if ($this->_tpl_vars['theme']['pageType'] == 'admin' || $this->_tpl_vars['theme']['pageType'] == 'module') { ?> <a href="<?php echo $this->_reg_objects['g'][0]->url(array('arg1' => "view=core.ShowItem", 'arg2' => "itemId=" . $this->_tpl_vars['theme']['item']['id']), $this); ?> " class="BreadCrumb-<?php echo smarty_function_counter(array('name' => 'BreadCrumb'), $this); ?> "> <?php echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['theme']['item']['title']) ? $this->_run_mod_handler('markup', true, $_tmp, 'strip') : smarty_modifier_markup($_tmp, 'strip')) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['theme']['item']['pathComponent']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['theme']['item']['pathComponent']); ?> </a> <?php } else { ?> <span class="BreadCrumb-<?php echo smarty_function_counter(array('name' => 'BreadCrumb'), $this); ?> "> <?php echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['theme']['item']['title']) ? $this->_run_mod_handler('markup', true, $_tmp, 'strip') : smarty_modifier_markup($_tmp, 'strip')) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['theme']['item']['pathComponent']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['theme']['item']['pathComponent']); ?> </span> <?php } ?> </div>
<?php echo $this->_reg_objects['g'][0]->text(array('text' => 'No Thumbnail'), $this); ?> <?php } else { ?> <?php echo $this->_reg_objects['g'][0]->image(array('item' => $this->_tpl_vars['ItemAdmin']['item'], 'image' => $this->_tpl_vars['ItemAdmin']['thumbnail'], 'maxSize' => 130), $this); ?> <?php } ?> <h3> <?php echo is_array($_tmp = $this->_tpl_vars['ItemAdmin']['item']['title']) ? $this->_run_mod_handler('markup', true, $_tmp) : smarty_modifier_markup($_tmp); ?> </h3> </div> <?php } ?> <div class="gbBlock"> <h2> <?php echo $this->_reg_objects['g'][0]->text(array('text' => 'Options'), $this); ?> </h2> <ul> <?php $_from = $this->_tpl_vars['ItemAdmin']['subViewChoices'];
?> <span class="current"> <?php echo $this->_reg_objects['g'][0]->text(array('text' => "%d. %s", 'arg1' => $this->_tpl_vars['peer']['peerIndex'], 'arg2' => is_array($_tmp = is_array($_tmp = $this->_tpl_vars['title']) ? $this->_run_mod_handler('markup', true, $_tmp, 'strip') : smarty_modifier_markup($_tmp, 'strip')) ? $this->_run_mod_handler('entitytruncate', true, $_tmp, 14) : smarty_modifier_entitytruncate($_tmp, 14)), $this); ?> </span> <?php } else { ?> <a href="<?php echo $this->_reg_objects['g'][0]->url(array('arg1' => "view=core.ShowItem", 'arg2' => "itemId=" . $this->_tpl_vars['peer']['id']), $this); ?> "> <?php echo $this->_reg_objects['g'][0]->text(array('text' => "%d. %s", 'arg1' => $this->_tpl_vars['peer']['peerIndex'], 'arg2' => is_array($_tmp = is_array($_tmp = $this->_tpl_vars['title']) ? $this->_run_mod_handler('markup', true, $_tmp, 'strip') : smarty_modifier_markup($_tmp, 'strip')) ? $this->_run_mod_handler('entitytruncate', true, $_tmp, 14) : smarty_modifier_entitytruncate($_tmp, 14)), $this); ?> </a> <?php } ?> <?php $this->assign('lastIndex', $this->_tpl_vars['peer']['peerIndex']); ?> <?php } } unset($_from); ?> </div>
if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } if (count($_from)) { foreach ($_from as $this->_tpl_vars['field']) { ?> <?php if (isset($this->_tpl_vars['field']['value'])) { ?> <li> <span class="ResultKey"><?php echo $this->_tpl_vars['field']['key']; ?> :</span> <span class="ResultData"><?php echo is_array($_tmp = is_array($_tmp = @$this->_tpl_vars['field']['value']) ? $this->_run_mod_handler('default', true, $_tmp, " ") : smarty_modifier_default($_tmp, " ")) ? $this->_run_mod_handler('markup', true, $_tmp) : smarty_modifier_markup($_tmp); ?> </span> </li> <?php } ?> <?php } } unset($_from); ?> </ul> </td> <?php }
?> <?php } ?> </p> <?php } ?> <?php if (!empty($this->_tpl_vars['child']['summary'])) { ?> <p class="giDescription"> <?php echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['child']['summary']) ? $this->_run_mod_handler('markup', true, $_tmp) : smarty_modifier_markup($_tmp)) ? $this->_run_mod_handler('entitytruncate', true, $_tmp, 256) : smarty_modifier_entitytruncate($_tmp, 256); ?> </p> <?php } ?> <?php if ($this->_tpl_vars['theme']['item']['canContainChildren'] && $this->_tpl_vars['theme']['params']['showAlbumOwner'] || !$this->_tpl_vars['theme']['item']['canContainChildren'] && $this->_tpl_vars['theme']['params']['showImageOwner']) { ?> <?php $this->assign('showOwner', true); ?> <?php } else {
$this->_smarty_vars['capture']['date'] = ob_get_contents(); ob_end_clean(); ?> <?php echo $this->_reg_objects['g'][0]->text(array('text' => "Date: %s", 'arg1' => $this->_smarty_vars['capture']['date']), $this); ?> <?php } ?> </span> <span id="description_<?php echo $this->_tpl_vars['i']; ?> "><?php echo is_array($_tmp = $this->_tpl_vars['it']['data']['description']) ? $this->_run_mod_handler('markup', true, $_tmp) : smarty_modifier_markup($_tmp); ?> </span> </div> <?php } } unset($_from); ?> <script type="text/JavaScript"> // <![CDATA[ var image = new Image(), timer, iDelay = 15000, iDir = 1, iSize = 0; var bPause = 0, bShowText = 0, bShowTools = 1; var linkStop, spanPause, spanText, toolText; var toolBar, textBanner, spanTitle, spanSummary, spanDate, spanDescription;