<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 $fieldnames = array(); foreach ($this->item->fields as $fieldname) { if (empty($fieldname)) { continue; } $field = JCckDev::get($fieldname, '', $config); if (!is_object($field)) { continue; } if (isset($fieldnames[$field->name])) { continue; } $id = str_replace(array('json[options][', ']'), '', $field->storage_field); $value = isset($this->item->options[$id]) ? $this->item->options[$id] : ''; $class = 'inputbox text' . ($field->css ? ' ' . $field->css : ''); $maxlen = $field->maxlength > 0 ? ' maxlength="' . $field->maxlength . '"' : ''; $attr = 'class="' . $class . '" size="' . $field->size . '"' . $maxlen . ($field->attributes ? ' ' . $field->attributes : ''); $picker = ''; $type = $field->type == 'password' ? $field->type : 'text'; if (JCck::callFunc('plgCCK_Field' . $field->type, 'isFriendly')) { $picker = '<span id="storage_field_pick_' . $field->name . '" name="' . $field->name . '" class="value-picker">«</span>';
/** * @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; $options2 = JCckDev::fromJSON($this->item->options2); $field1 = JCckDev::getEmpty(array('name' => 'core_options', 'type' => 'textarea', 'label' => 'PrepareContent', 'storage' => 'dev', 'storage_field' => 'json[options2][preparecontent]', 'cols' => '92', 'rows' => '5')); JCckDev::get($field1, htmlspecialchars(@$options2['preparecontent']), $config); $field2 = JCckDev::getEmpty(array('name' => 'core_options2', 'type' => 'textarea', 'label' => 'PrepareForm', 'storage' => 'dev', 'storage_field' => 'json[options2][prepareform]', 'cols' => '92', 'rows' => '15')); JCckDev::get($field2, htmlspecialchars(@$options2['prepareform']), $config); $field3 = JCckDev::getEmpty(array('name' => 'core_options2', 'type' => 'textarea', 'label' => 'PrepareStore', 'storage' => 'dev', 'storage_field' => 'json[options2][preparestore]', 'cols' => '92', 'rows' => '5')); JCckDev::get($field3, htmlspecialchars(@$options2['preparestore']), $config); ?> <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); ?> <li class="w100"> <label><?php echo JText::_($field1->label); ?>
echo $value == 'dev' ? '' : 'style="display: none;"'; ?> > <div class="legend top left"><span class="hasTooltip qtip_cck" title="<?php echo htmlspecialchars(JText::_('COM_CCK_STUFF_DESC')); ?> "><?php echo JText::_('COM_CCK_STUFF'); ?> </span></div> <ul class="adminformlist adminformlist-2cols"> <?php $required = JCckDev::get($cck['core_required'], $config['item']->required, $config); $class_css = JCckDev::get($cck['core_dev_text'], $config['item']->css, $config, array('label' => 'Class CSS', 'storage_field' => 'css')); $attributes = JCckDev::get($cck['core_attributes'], $config['item']->attributes, $config, array('label' => 'Custom Attributes')); $script = JCckDev::get($cck['core_script'], $config['item']->script, $config); ?> <li> <label><?php echo $class_css->label; ?> </label><?php echo $class_css->form; ?> </li> <li class="storage_more" <?php echo $value == 'dev' ? '' : 'style="display: none;"'; ?> > <label><?php echo $required->label;