$tabs = array(); foreach ($elementSets as $key => $elementSet) { $tabName = $elementSet->name; switch ($tabName) { case ElementSet::ITEM_TYPE_NAME: // Output buffer this form instead of displaying it right away. ob_start(); include 'item-type-form.php'; $tabs[$tabName] = ob_get_contents(); ob_end_clean(); break; default: $tabContent = '<p class="element-set-description" id="'; $tabContent .= html_escape(text_to_id($elementSet->name) . '-description') . '">'; $tabContent .= url_to_link(__($elementSet->description)) . '</p>' . "\n\n"; $tabContent .= element_set_form($item, $elementSet->name); $tabs[$tabName] = $tabContent; break; } } ob_start(); require 'files-form.php'; $tabs['Files'] = ob_get_contents(); ob_clean(); require 'tag-form.php'; $tabs['Tags'] = ob_get_contents(); ob_end_clean(); $tabs = apply_filters('admin_items_form_tabs', $tabs, array('item' => $item)); ?>
echo html_escape($this->url("item-relations/vocabularies/edit/id/{$vocabulary->id}")); ?> " class="edit"><?php echo __('Edit Vocabulary'); ?> </a> <?php } ?> <h2><?php echo $vocabulary->name; ?> </h2> <p><?php echo url_to_link(html_escape($vocabulary->description)); ?> </p> <?php if (!$properties) { ?> <p> <?php echo __('This vocabulary has no properties.'); ?> <?php if ($vocabulary->custom) { ?> <a href="<?php echo html_escape($this->url("item-relations/vocabularies/edit/id/{$vocabulary->id}")); ?>
function maintainHtmlBreakLine($str) { $str = stripslashes(htmlentities(url_to_link(breakLine($str)))); $strReturn = str_replace(array("[OPEN_TAG]", "[CLOSE_TAG]"), array('<', '>'), $str); return $strReturn; }
public function UrlToLink($text, $args) { return url_to_link($text); }