$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)); ?> <!-- Create the sections for the various element sets -->
<?php $tabs = array(); foreach ($elementSets as $key => $elementSet) { $tabName = $elementSet->name; $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($file, $elementSet->name); $tabs[$tabName] = $tabContent; } $tabs = apply_filters('admin_files_form_tabs', $tabs, array('file' => $file)); ?> <!-- Create the sections for the various element sets --> <ul id="section-nav" class="navigation tabs"> <?php foreach ($tabs as $tabName => $tabContent) { ?> <?php if (!empty($tabContent)) { // Don't display tabs with no content. ' ?> <li><a href="#<?php echo html_escape(text_to_id($tabName) . '-metadata'); ?> "><?php echo html_escape(__($tabName)); ?> </a></li>
<div class="five columns offset-by-two omega"> <p class="element-set-description"> <?php echo html_escape(@get_current_record('item')->Type->description); ?> </p> </div> <?php echo element_set_form(get_current_record('item'), 'Item Type Metadata');
<?php $tabs = array(); foreach ($elementSets as $key => $elementSet) { $tabName = $elementSet->name; $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($collection, $elementSet->name); $tabs[$tabName] = $tabContent; } $tabs = apply_filters('admin_collections_form_tabs', $tabs, array('collection' => $collection)); ?> <!-- Create the sections for the various element sets --> <ul id="section-nav" class="navigation tabs"> <?php foreach ($tabs as $tabName => $tabContent) { ?> <?php if (!empty($tabContent)) { // Don't display tabs with no content. ' ?> <li><a href="#<?php echo html_escape(text_to_id($tabName) . '-metadata'); ?> "><?php echo html_escape(__($tabName)); ?> </a></li>