Exemple #1
0
 public function getConfigForm()
 {
     $xml = $this->getPath() . '/' . $this->getElementType() . '.xml';
     // get parameter xml file
     if (JFile::exists($xml)) {
         // get form
         $form = new YParameterFormDefault($xml);
         $form->addElementPath(ZOO_ADMIN_PATH . '/joomla/elements');
         $form->setValues($this->_config);
         $form->element = $this;
         // add reference to element
         return $form;
     }
     return null;
 }
Exemple #2
0
$details->set('created_by', $this->item->created_by == '' ? JFactory::getUser()->id : 'NO_CHANGE');
$details->set('access', $this->item->access);
$details->set('created_by_alias', $this->item->created_by_alias);
$details->set('created', JHTML::_('date', $this->item->created, '%Y-%m-%d %H:%M:%S'));
$details->set('publish_up', JHTML::_('date', $this->item->publish_up, '%Y-%m-%d %H:%M:%S'));
$details->set('publish_down', JHTML::_('date', $this->item->publish_down, '%Y') <= 1969 || $this->item->publish_down == $this->db->getNullDate() ? JText::_('Never') : JHTML::_('date', $this->item->publish_down, '%Y-%m-%d %H:%M:%S'));
?>

			<div id="parameter-accordion">
				<h3 class="toggler"><?php 
echo JText::_('Details');
?>
</h3>
				<div class="content">
					<?php 
echo $form->setValues($details)->render('details');
?>
				</div>
				<h3 class="toggler"><?php 
echo JText::_('Metadata');
?>
</h3>
				<div class="content">
					<?php 
echo $form->setValues($this->params->get('metadata.'))->render('params[metadata]', 'metadata');
?>
				</div>
				<h3 class="toggler"><?php 
echo JText::_('Template');
?>
</h3>