Example #1
0
 /**
  * @brief Obtiene la configuraciĆ³n de los campos a ser desplegados
  * en el formulario.
  * @return array
  */
 function getFields()
 {
     jimport('Amadeus.Util.Html');
     AmadeusUtilHtml::includeResource('/administrator/components/com_rotator/css/fileuploader.css');
     require_once JPATH_COMPONENT . DS . 'helper.php';
     $content = '<div style="font-size: 12px; font-weight: bold;padding: 2px 0 10px 20px;">';
     $content .= 'Seleccione un rotador para agregarle m&aacute;s im&aacute;genes o banners:</div>';
     $content .= RotatorHelper::listRotators('index.php?' . $this->getAction() . '&task=add&step=add');
     $_fields = array(array('title' => JText::_('ALL_ROTATOR'), 'html' => $content));
     return $_fields;
 }