protected static function _getCategories($value, $glue, $data) { $values = JCckDev::fromSTRING($value, $glue); $value = array(); foreach ($values as $v) { if (isset($data['categories'][$v])) { $value[] = $data['categories'][$v]; } } return implode($glue, $value); }
<?php /** * @version SEBLOD 3.x Core * @package SEBLOD (App Builder & CCK) // SEBLOD nano (Form Builder) * @url http://www.seblod.com * @editor Octopoos - www.octopoos.com * @copyright Copyright (C) 2013 SEBLOD. All Rights Reserved. * @license GNU General Public License version 2 or later; see _LICENSE.php **/ defined('_JEXEC') or die; JCckDev::initScript('field', $this->item, array('hasOptions' => true, 'doTranslation' => 1, 'customAttr' => JCck::getConfig_Param('development_attr', 6))); $options = JCckDev::fromSTRING($this->item->options); ?> <div class="seblod"> <?php echo JCckDev::renderLegend(JText::_('COM_CCK_CONSTRUCTION'), JText::_('PLG_CCK_FIELD_' . $this->item->type . '_DESC')); ?> <ul class="adminformlist adminformlist-2cols"> <?php echo JCckDev::renderForm('core_label', $this->item->label, $config); echo JCckDev::renderForm('core_defaultvalue', $this->item->defaultvalue, $config); echo JCckDev::renderForm('core_sorting', $this->item->sorting, $config); echo '<li><label>' . JText::_('COM_CCK_ORIENTATION') . '</label>' . JCckDev::getForm('core_orientation', $this->item->bool, $config) . JCckDev::getForm('core_orientation_vertical', $this->item->bool2, $config) . '</li>'; echo JCckDev::renderForm('core_options', $options, $config); echo JCckDev::renderForm('core_separator', $this->item->divider, $config); echo JCckDev::renderForm('core_bool', $this->item->bool7, $config, array('label' => 'Check All Toggle', 'defaultvalue' => '0', 'options' => 'Hide=0||Show=optgroup||Above=1||Below=2', 'storage_field' => 'bool7')); echo JCckDev::renderHelp('field', 'seblod-2-x-checkbox-field'); echo JCckDev::renderSpacer(JText::_('COM_CCK_STORAGE'), JText::_('COM_CCK_STORAGE_DESC')); echo JCckDev::getForm('core_storage', $this->item->storage, $config);
if (!$this->isNew) { ?> <img id="toggle_acl" src="components/com_cck/assets/images/24/icon-24-acl.png" border="0" alt="" style="float: right; margin: 9px 9px 0px 0px; cursor: pointer;" /> <?php } ?> </div> <div class="seblod"> <div class="legend top left"><?php echo '⇒ ' . JText::_('COM_CCK_SITE_ALIASES'); ?> </div> <ul class="adminformlist adminformlist-2cols"> <?php $aliases = JCckDev::fromSTRING($this->item->aliases); echo '<li>' . JCckDev::getForm('core_options', $aliases, $config, array('storage_field' => 'aliases')) . '</li>'; ?> </ul> </div> <div class="seblod"> <div class="legend top left"><?php echo '⇒ ' . JText::_('COM_CCK_SITE_OPTIONS'); ?> </div> <?php if (count($this->item->fields)) { ?> <ul class="adminformlist adminformlist-2cols"> <?php