当前位置: 首页>>代码示例>>PHP>>正文


PHP JHTML::stylesheet方法代码示例

本文整理汇总了PHP中JHTML::stylesheet方法的典型用法代码示例。如果您正苦于以下问题:PHP JHTML::stylesheet方法的具体用法?PHP JHTML::stylesheet怎么用?PHP JHTML::stylesheet使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在JHTML的用法示例。


在下文中一共展示了JHTML::stylesheet方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: display

 /**
  * Display
  *
  * @param   string  $tmpl  Template
  *
  * @return  void
  */
 public function display($tmpl = 'default')
 {
     $srcs = FabrikHelperHTML::framework();
     $app = JFactory::getApplication();
     $input = $app->input;
     FabrikHelperHTML::script($srcs);
     $model = $this->getModel();
     $usersConfig = JComponentHelper::getParams('com_fabrik');
     $model->setId($input->getInt('id', $usersConfig->get('visualizationid', $input->getInt('visualizationid', 0))));
     $visualization = $model->getVisualization();
     $pluginParams = $model->getPluginParams();
     $pluginManager = JModelLegacy::getInstance('Pluginmanager', 'FabrikModel');
     $plugin = $pluginManager->getPlugIn($visualization->plugin, 'visualization');
     $plugin->_row = $visualization;
     if ($visualization->published == 0) {
         return JError::raiseWarning(500, FText::_('COM_FABRIK_SORRY_THIS_VISUALIZATION_IS_UNPUBLISHED'));
     }
     // Plugin is basically a model
     $pluginTask = $input->get('plugintask', 'render', 'request');
     // @FIXME cant set params directly like this, but I think plugin model setParams() is not right
     $plugin->_params = $pluginParams;
     $tmpl = $plugin->getParams()->get('calendar_layout', $tmpl);
     $plugin->{$pluginTask}($this);
     $this->plugin = $plugin;
     $viewName = $this->getName();
     $this->addTemplatePath($this->_basePath . '/plugins/' . $this->_name . '/' . $plugin->_name . '/tmpl/' . $tmpl);
     $root = $app->isAdmin() ? JPATH_ADMINISTRATOR : JPATH_SITE;
     $this->addTemplatePath($root . '/templates/' . $app->getTemplate() . '/html/com_fabrik/visualization/' . $plugin->_name . '/' . $tmpl);
     $ab_css_file = JPATH_SITE . '/plugins/fabrik_visualization/' . $plugin->_name . '/tmpl/' . $tmpl . '/template.css';
     if (JFile::exists($ab_css_file)) {
         JHTML::stylesheet('template.css', 'plugins/fabrik_visualization/' . $plugin->_name . '/tmpl/' . $tmpl . '/', true);
     }
     echo parent::display();
 }
开发者ID:ankaau,项目名称:GathBandhan,代码行数:41,代码来源:view.html.php

示例2: fetchElement

 /**
  * fetch Element 
  */
 function fetchElement($name, $values, &$node, $control_name)
 {
     $mediaPath = JURI::root() . str_replace(DS, '/', str_replace(JPATH_ROOT, '', dirname(dirname(dirname(__FILE__))))) . '/assets/';
     JHTML::stylesheet('form.css', $mediaPath);
     $attributes = $node->attributes();
     $class = isset($attributes['group']) && trim($attributes['group']) == 'end' ? 'lof-end-group' : 'lof-group';
     $title = isset($attributes['title']) ? JText::_($attributes['title']) : 'Group';
     $title = isset($attributes['title']) ? JText::_($attributes['title']) : '';
     $for = isset($attributes['for']) ? $attributes['for'] : '';
     if (isset($attributes['onoff'])) {
         // echo $control_name; die;
         // echo $name; die;
         //	echo '<pre>'.print_r($values,1); die;
         $string = '<div ' . ($title ? "" : 'style="display:none"') . '  class="' . $class . '" title="' . $for . '">';
         $checked = $values ? 'checked="checked"' : "";
         //	echo $checked; die;
         $string .= '<input type="checkbox" class="lof-onoff" id="params' . $for . '" value="" ' . $checked . ' name="' . $control_name . '[' . $for . ']" /><b>' . $title . '</b></div>';
         return $string;
     } else {
         $string = '<div ' . ($title ? "" : 'style="display:none"') . '  class="' . $class . '" title="' . $for . '">' . $title . '</div>';
         if (!defined('LOF_ADDED_TIME')) {
             $string .= '<input type="hidden" class="text_area" value="' . time() . '" id="paramsmain_lof_added_time" name="params[lof_added_time]">';
             define('LOF_ADDED_TIME', 1);
         }
     }
     if (!defined('ADD_MEDIA_CONTROL')) {
         define('ADD_MEDIA_CONTROL', 1);
         $uri = str_replace(DS, "/", str_replace(JPATH_SITE, JURI::base(), dirname(__FILE__)));
         $uri = str_replace("/administrator/", "", $uri);
         JHTML::stylesheet('form.css', $uri . "/media/");
         JHTML::script('form.js', $uri . "/media/");
     }
     return $string;
 }
开发者ID:andreassetiawanhartanto,项目名称:PDKKI,代码行数:37,代码来源:fgroup.php

示例3: _displayForm

 /**
  *  Displays the form
  * @param string $tpl   
  */
 public function _displayForm($tpl)
 {
     jimport('joomla.form.formvalidator');
     JHTML::stylesheet('fields.css', 'administrator/components/com_szavazasok/assets/');
     $db =& JFactory::getDBO();
     $uri =& JFactory::getURI();
     $user =& JFactory::getUser();
     $form = $this->get('Form');
     $lists = array();
     $editor =& JFactory::getEditor();
     //get the item
     $item =& $this->get('item');
     if (!version_compare(JVERSION, '3.0', 'lt')) {
         $form->bind(JArrayHelper::fromObject($item));
     } else {
         $form->bind($item);
     }
     $isNew = $item->id < 1;
     // Edit or Create?
     if ($isNew) {
         // initialise new record
         $item->published = 1;
     }
     $lists['published'] = JHTML::_('select.booleanlist', 'published', 'class="inputbox"', $item->published);
     $this->assign('form', $form);
     $this->assignRef('lists', $lists);
     $this->assignRef('editor', $editor);
     $this->assignRef('item', $item);
     $this->assignRef('isNew', $isNew);
     parent::display($tpl);
 }
开发者ID:madcsaba,项目名称:li-de,代码行数:35,代码来源:view.html.php

示例4: display

 public function display($tpl = null)
 {
     JHTML::stylesheet('joomfish.css', 'administrator/components/com_joomfish/assets/css/');
     $document = JFactory::getDocument();
     $document->setTitle(JText::_('JOOMFISH_TITLE') . ' :: ' . JText::_('TITLE_Statistics'));
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('TITLE_Statistics'), 'statistics');
     JToolBarHelper::custom('cpanel.show', 'joomfish', 'joomfish', 'CONTROL PANEL', false);
     JToolBarHelper::help('screen.statistics', true);
     JSubMenuHelper::addEntry(JText::_('Control Panel'), 'index2.php?option=com_joomfish');
     JSubMenuHelper::addEntry(JText::_('Translation'), 'index2.php?option=com_joomfish&amp;task=translate.overview');
     JSubMenuHelper::addEntry(JText::_('Orphans'), 'index2.php?option=com_joomfish&amp;task=translate.orphans');
     JSubMenuHelper::addEntry(JText::_('Manage Translations'), 'index2.php?option=com_joomfish&amp;task=manage.overview', false);
     JSubMenuHelper::addEntry(JText::_('Statistics'), 'index2.php?option=com_joomfish&amp;task=statistics.overview', true);
     JSubMenuHelper::addEntry(JText::_('Language Configuration'), 'index2.php?option=com_joomfish&amp;task=languages.show', false);
     JSubMenuHelper::addEntry(JText::_('Content elements'), 'index2.php?option=com_joomfish&amp;task=elements.show', false);
     JSubMenuHelper::addEntry(JText::_('HELP AND HOWTO'), 'index2.php?option=com_joomfish&amp;task=help.show', false);
     $this->panelStates = $this->get('PanelStates');
     $this->contentInfo = $this->get('ContentInfo');
     $this->publishedTabs = $this->get('PublishedTabs');
     $this->assignRef('panelStates', $this->panelStates);
     $this->assignRef('contentInfo', $this->contentInfo);
     $this->assignRef('publishedTabs', $this->publishedTabs);
     JHTML::_('behavior.tooltip');
     parent::display($tpl);
 }
开发者ID:raulrotundo,项目名称:jpmoser_guide,代码行数:26,代码来源:view.php

示例5: getInput

 /**
  *
  * process input params
  * @return string element param
  */
 protected function getInput()
 {
     if (!defined('_JA_PARAM_HELPER')) {
         define('_JA_PARAM_HELPER', 1);
         $uri = str_replace(DS, "/", str_replace(JPATH_SITE, JURI::base(), dirname(__FILE__)));
         $uri = str_replace("/administrator/", "", $uri);
         //mootools support joomla 1.7 and 2.5
         JHTML::_('behavior.framework', true);
         JHTML::stylesheet($uri . '/assets/css/japaramhelper.css');
         JHTML::script($uri . '/assets/js/japaramhelper.js');
     }
     $func = (string) $this->element['function'] ? (string) $this->element['function'] : '';
     $value = $this->value ? $this->value : (string) $this->element['default'];
     //  var_dump($func); die;
     if (substr($func, 0, 1) == '@') {
         $func = substr($func, 1);
         if (method_exists($this, $func)) {
             return $this->{$func}();
         }
     } else {
         $subtype = isset($this->element['subtype']) ? trim($this->element['subtype']) : '';
         if (method_exists($this, $subtype)) {
             return $this->{$subtype}();
         }
     }
     return;
 }
开发者ID:vuchannguyen,项目名称:hoctap,代码行数:32,代码来源:categoryk2.php

示例6: getInput

 protected function getInput()
 {
     $document = JFactory::getDocument();
     $option = JRequest::getCmd('option');
     $globalValue = $this->_getPhocaParams($this->element['name']);
     JHTML::stylesheet('administrator/components/com_phocadownload/assets/jcp/picker.css');
     $document->addScript(JURI::base(true) . '/components/com_phocadownload/assets/jcp/picker.js');
     // Initialize some field attributes.
     $size = $this->element['size'] ? ' size="' . (int) $this->element['size'] . '"' : '';
     $class = $this->element['class'] ? ' class="' . (string) $this->element['class'] . '"' : '';
     $maxLength = $this->element['maxlength'] ? ' maxlength="' . (int) $this->element['maxlength'] . '"' : '';
     $readonly = (string) $this->element['readonly'] == 'true' ? ' readonly="readonly"' : '';
     $disabled = (string) $this->element['disabled'] == 'true' ? ' disabled="disabled"' : '';
     // Initialize JavaScript field attributes.
     $onchange = $this->element['onchange'] ? ' onchange="' . (string) $this->element['onchange'] . '"' : '';
     $value = htmlspecialchars($this->value, ENT_COMPAT, 'UTF-8');
     // TODO 1.6
     // MENU - Set Default value to "" because of saving "" value into the menu link ( use global = "")
     if ($option == "com_menus") {
         $DefaultValue = (string) $this->element['default'];
         if ($value == $DefaultValue) {
             $value = '';
         }
     }
     $html = '<input type="text" name="' . $this->name . '" id="' . $this->id . '" value="' . $value . '"' . $class . $size . $disabled . $readonly . $onchange . $maxLength . '/>';
     // Color Picker
     $nameCP = str_replace('[', '_', $this->name);
     $nameCP = str_replace(']', '', $nameCP);
     $html .= '<span style="margin-left:10px" onclick="openPicker(\'' . $nameCP . '\')"  class="picker_buttons">' . JText::_('COM_PHOCADOWNLOAD_PICK_COLOR') . '</span>';
     // MENU - Display the global value
     if ($option == "com_menus") {
         $html .= '<span style="margin-left:10px;">[</span><span style="background:#fff"> ' . $globalValue . ' </span><span>]</span>';
     }
     return $html;
 }
开发者ID:jbelborja,项目名称:lavid3,代码行数:35,代码来源:phocacolortext.php

示例7: display

 function display($tmpl = 'default')
 {
     FabrikHelperHTML::framework();
     $model = $this->getModel();
     $usersConfig = JComponentHelper::getParams('com_fabrik');
     $model->setId(JRequest::getVar('id', $usersConfig->get('visualizationid', JRequest::getInt('visualizationid', 0))));
     $visualization = $model->getVisualization();
     $pluginParams = $model->getPluginParams();
     $pluginManager = JModel::getInstance('Pluginmanager', 'FabrikModel');
     $plugin = $pluginManager->getPlugIn($visualization->plugin, 'visualization');
     $plugin->_row = $visualization;
     if ($visualization->published == 0) {
         return JError::raiseWarning(500, JText::_('COM_FABRIK_SORRY_THIS_VISUALIZATION_IS_UNPUBLISHED'));
     }
     //plugin is basically a model
     $pluginTask = JRequest::getVar('plugintask', 'render', 'request');
     // @FIXME cant set params directly like this, but I think plugin model setParams() is not right
     $plugin->_params = $pluginParams;
     $tmpl = $plugin->getParams()->get('calendar_layout', $tmpl);
     $plugin->{$pluginTask}($this);
     $this->plugin = $plugin;
     $viewName = $this->getName();
     $this->addTemplatePath($this->_basePath . DS . 'plugins' . DS . $this->_name . DS . $plugin->_name . DS . 'tmpl' . DS . $tmpl);
     $this->addTemplatePath(JPATH_SITE . DS . 'templates' . DS . $app->getTemplate() . DS . 'html' . DS . 'com_fabrik' . DS . 'visualization' . DS . $plugin->_name . DS . $tmpl);
     $ab_css_file = JPATH_SITE . "/plugins/fabrik_visualization/" . $plugin->_name . "/tmpl/{$tmpl}/template.css";
     if (JFile::exists($ab_css_file)) {
         JHTML::stylesheet('template.css', 'plugins/fabrik_visualization/' . $plugin->_name . '/tmpl/' . $tmpl . '/', true);
     }
     echo parent::display();
 }
开发者ID:rhotog,项目名称:fabrik,代码行数:30,代码来源:view.html.php

示例8: fetchElement

 function fetchElement($name, $value, &$node, $control_name)
 {
     t3_import('core/admin/util');
     if (!defined('_JA_THEME')) {
         define('_JA_THEME', 1);
         $uri = str_replace(DS, "/", str_replace(JPATH_SITE, JURI::base(), dirname(__FILE__)));
         $uri = str_replace("/administrator", "", $uri);
         JHTML::stylesheet('jathemesettings.css', $uri . "/assets/css/");
         JHTML::script('jathemesettings.js', $uri . "/assets/js/");
     }
     $objutil = new JAT3_AdminUtil();
     $template = $objutil->get_active_template();
     $themes = $objutil->getThemes($template);
     if ($value && $themes) {
         if ((!isset($themes['core']) || isset($themes['core']) && !in_array($value, $themes['core'])) && (!isset($themes['local']) || isset($themes['local']) && !in_array($value, $themes['local']))) {
             $value = isset($themes['local']) ? $themes['local'][0] : $themes['core'][0];
         }
     }
     $layout = dirname(__FILE__) . DS . 'tmpl' . DS . 'jathemesettings.php';
     if (file_exists($layout)) {
         ob_start();
         require $layout;
         $content = ob_get_clean();
         return $content;
     }
     return '';
 }
开发者ID:rlee1962,项目名称:diylegalcenter,代码行数:27,代码来源:jathemesettings.php

示例9: display

 function display($tpl = null)
 {
     global $mainframe;
     $style = $mainframe->getUserStateFromRequest('media.list.layout', 'layout', 'thumbs', 'word');
     $listStyle = "\n\t\t\t<ul id=\"submenu\">\n\t\t\t\t<li><a id=\"thumbs\" onclick=\"MediaManager.setViewType('thumbs')\">" . JText::_('Thumbnail View') . "</a></li>\n\t\t\t\t<li><a id=\"details\" onclick=\"MediaManager.setViewType('details')\">" . JText::_('Detail View') . "</a></li>\n\t\t\t</ul>\n\t\t";
     $document =& JFactory::getDocument();
     $document->setBuffer($listStyle, 'module', 'submenu');
     JHTML::_('behavior.mootools');
     $document->addScript('components/com_media/assets/mediamanager.js');
     $document->addStyleSheet('components/com_media/assets/mediamanager.css');
     JHTML::_('behavior.modal');
     $document->addScriptDeclaration("\n\t\twindow.addEvent('domready', function() {\n\t\t\tdocument.preview = SqueezeBox;\n\t\t});");
     JHTML::script('mootree.js');
     JHTML::stylesheet('mootree.css');
     JHTML::_('behavior.uploader', 'file-upload', array('onAllComplete' => 'function(){ MediaManager.refreshFrame(); }'));
     $base = str_replace("\\", "/", JPATH_ROOT);
     $js = "\n\t\t\tvar basepath = '" . $base . '/images' . "';\n\t\t\tvar viewstyle = '" . $style . "';\n\t\t";
     $document->addScriptDeclaration($js);
     /*
      * Display form for FTP credentials?
      * Don't set them here, as there are other functions called before this one if there is any file write operation
      */
     jimport('joomla.client.helper');
     $ftp = !JClientHelper::hasCredentials('ftp');
     $this->assignRef('session', JFactory::getSession());
     $this->assignRef('config', JComponentHelper::getParams('com_media'));
     $this->assignRef('state', $this->get('state'));
     $this->assign('require_ftp', $ftp);
     $this->assign('folders_id', ' id="media-tree"');
     $this->assign('folders', $this->get('folderTree'));
     // Set the toolbar
     $this->_setToolBar();
     parent::display($tpl);
     echo JHTML::_('behavior.keepalive');
 }
开发者ID:Fellah,项目名称:govnobaki,代码行数:35,代码来源:view.html.php

示例10: display

 function display($tmpl = 'default')
 {
     FabrikHelperHTML::packageJS();
     $model =& $this->getModel();
     $usersConfig =& JComponentHelper::getParams('com_fabrik');
     $model->setId(array('id' => JRequest::getVar('id', $usersConfig->get('visualizationid', JRequest::getInt('visualizationid', 0))), 'package_id' => JRequest::getVar('package_id')));
     $visualization =& $model->getVisualization();
     $pluginParams =& $model->getPluginParams();
     $pluginManager =& JModel::getInstance('Pluginmanager', 'FabrikModel');
     $plugin =& $pluginManager->getPlugIn($visualization->plugin, 'visualization');
     $plugin->_row = $visualization;
     if ($visualization->state == 0) {
         return JError::raiseWarning(500, JText::_('SORRY THIS VISUALIZATION IS UNPUBLISHED'));
     }
     //plugin is basically a model
     $pluginTask = JRequest::getVar('plugintask', 'render', 'request');
     $plugin->_params = $pluginParams;
     $tmpl = $plugin->getParams()->get('calendar_layout', $tmpl);
     $plugin->{$pluginTask}($this);
     $this->plugin =& $plugin;
     $viewName = $this->getName();
     $this->_setPath('template', $this->_basePath . DS . 'plugins' . DS . $this->_name . DS . $plugin->_name . DS . 'tmpl' . DS . $tmpl);
     $ab_css_file = JPATH_SITE . "/components/com_fabrik/plugins/" . $viewName . "/" . $plugin->_name . "/tmpl/{$tmpl}/template.css";
     if (file_exists($ab_css_file)) {
         JHTML::stylesheet('template.css', 'components/com_fabrik/plugins/' . $viewName . '/' . $plugin->_name . '/tmpl/' . $tmpl . '/', true);
     }
     $model->getCustomJsAction();
     if (isset($this->_isMambot) && $this->_isMambot) {
         return $this->loadTemplate();
     } else {
         parent::display();
     }
 }
开发者ID:nikshade,项目名称:fabrik21,代码行数:33,代码来源:view.html.php

示例11: display

 function display($tpl = null)
 {
     $this->items = $this->get('Items');
     $this->pagination = $this->get('Pagination');
     $this->state = $this->get('State');
     $path = PhocaGalleryPath::getPath();
     $this->tmpl['avatarpathabs'] = $path->avatar_abs . DS . 'thumbs' . DS . 'phoca_thumb_s_';
     $this->tmpl['avatarpathrel'] = $path->avatar_rel . 'thumbs/phoca_thumb_s_';
     $this->tmpl['avtrpathrel'] = $path->avatar_rel;
     JHTML::stylesheet('administrator/components/com_phocagallery/assets/phocagallery.css');
     $document =& JFactory::getDocument();
     $document->addCustomTag(PhocaGalleryRenderAdmin::renderIeCssLink(1));
     // Button
     JHTML::_('behavior.modal', 'a.modal_phocagalleryusers');
     $this->button = new JObject();
     $this->button->set('modal', true);
     $this->button->set('methodname', 'modal-button');
     //$this->button->set('link', $link);
     $this->button->set('text', JText::_('COM_PHOCAGALLERY_DISPLAY_IMAGE_DETAIL'));
     //$this->button->set('name', 'image');
     $this->button->set('modalname', 'modal_phocagalleryusers');
     $this->button->set('options', "{handler: 'image', size: {x: 200, y: 150}}");
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     $this->addToolbar();
     parent::display($tpl);
 }
开发者ID:optimosolution,项目名称:marhk,代码行数:30,代码来源:view.html.php

示例12: display

 /**
  * Control Panel display function
  *
  * @param template $tpl
  */
 public function display($tpl = null)
 {
     $document = JFactory::getDocument();
     $document->setTitle(JText::_('JOOMFISH_TITLE') . ' :: ' . JText::_('HELP_AND_HOWTO'));
     JHTML::stylesheet('jfhelp.css', 'administrator/components/com_joomfish/assets/css/');
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('HELP_AND_HOWTO'), 'help');
     JToolBarHelper::custom('cpanel.show', 'joomfish', 'joomfish', 'COM_JOOMFISH_CONTROL_PANEL', false);
     JSubMenuHelper::addEntry(JText::_('COM_JOOMFISH_CONTROL_PANEL'), 'index.php?option=com_joomfish');
     JSubMenuHelper::addEntry(JText::_('TRANSLATION'), 'index.php?option=com_joomfish&amp;task=translate.overview');
     if (JOOMFISH_DEVMODE == true) {
         JSubMenuHelper::addEntry(JText::_('ORPHANS'), 'index.php?option=com_joomfish&amp;task=translate.orphans');
     }
     if (JOOMFISH_DEVMODE == true) {
         JSubMenuHelper::addEntry(JText::_('MANAGE_TRANSLATIONS'), 'index.php?option=com_joomfish&amp;task=manage.overview');
     }
     if (JOOMFISH_DEVMODE == true) {
         JSubMenuHelper::addEntry(JText::_('STATISTICS'), 'index.php?option=com_joomfish&amp;task=statistics.overview');
     }
     JSubMenuHelper::addEntry(JText::_('LANGUAGE_CONFIGURATION'), 'index.php?option=com_joomfish&amp;task=languages.show');
     JSubMenuHelper::addEntry(JText::_('CONTENT_ELEMENTS'), 'index.php?option=com_joomfish&amp;task=elements.show');
     JSubMenuHelper::addEntry(JText::_('HELP_AND_HOWTO'), 'index.php?option=com_joomfish&amp;task=help.show', true);
     $layout = $this->getLayout();
     if (method_exists($this, $layout)) {
         $this->{$layout}($tpl);
     }
     $helpov = $this->getHelpPathL('help.overview');
     $this->assignRef('helppath', $helpov);
     parent::display($tpl);
 }
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:35,代码来源:view.php

示例13: display

 function display($tpl = null)
 {
     $this->items = $this->get('Items');
     $this->pagination = $this->get('Pagination');
     $this->state = $this->get('State');
     // Preprocess the list of items to find ordering divisions.
     foreach ($this->items as &$item) {
         $this->ordering[$item->catid][] = $item->id;
     }
     $this->processImages();
     JHTML::stylesheet('media/com_phocagallery/css/administrator/phocagallery.css');
     $document = JFactory::getDocument();
     //$document->addCustomTag(PhocaGalleryRenderAdmin::renderIeCssLink(1));
     $params = JComponentHelper::getParams('com_phocagallery');
     $this->tmpl['enablethumbcreation'] = $params->get('enable_thumb_creation', 1);
     $this->tmpl['enablethumbcreationstatus'] = PhocaGalleryRenderAdmin::renderThumbnailCreationStatus((int) $this->tmpl['enablethumbcreation']);
     /*$app	= JFactory::getApplication();
     		$uri		= JFactory::getURI();
     		
     		$db		    = JFactory::getDBO();*/
     $this->tmpl['notapproved'] = $this->get('NotApprovedImage');
     // Button
     JHTML::_('behavior.modal', 'a.modal_phocagalleryimgs');
     $this->button = new JObject();
     $this->button->set('modal', true);
     $this->button->set('methodname', 'modal-button');
     //$this->button->set('link', $link);
     $this->button->set('text', JText::_('COM_PHOCAGALLERY_DISPLAY_IMAGE_DETAIL'));
     //$this->button->set('name', 'image');
     $this->button->set('modalname', 'modal_phocagalleryimgs');
     $this->button->set('options', "{handler: 'image', size: {x: 200, y: 150}}");
     $this->addToolbar();
     parent::display($tpl);
 }
开发者ID:01J,项目名称:skazkipronebo,代码行数:34,代码来源:view.html.php

示例14: display

 function display($tpl = null)
 {
     $app = JFactory::getApplication();
     JHtml::_('behavior.tooltip');
     JHtml::_('behavior.formvalidation');
     JHtml::_('behavior.keepalive');
     JHtml::_('formbehavior.chosen', 'select');
     JHtml::_('behavior.tooltip');
     JHtml::_('behavior.formvalidation');
     JHtml::_('behavior.keepalive');
     JHtml::_('formbehavior.chosen', 'select');
     //Frontend Changes
     $tUri = '';
     if (!$app->isAdmin()) {
         $tUri = JURI::base();
     }
     $document = JFactory::getDocument();
     $uri = JFactory::getURI();
     JHTML::stylesheet('media/com_phocadownload/css/administrator/phocadownload.css');
     $eName = $app->input->get('e_name');
     $eName = preg_replace('#[^A-Z0-9\\-\\_\\[\\]]#i', '', $eName);
     $this->t['linkcategories'] = $tUri . 'index.php?option=com_phocadownload&amp;view=phocadownloadlinkcats&amp;tmpl=component&amp;e_name=' . $eName;
     $this->t['linkcategory'] = $tUri . 'index.php?option=com_phocadownload&amp;view=phocadownloadlinkcat&amp;tmpl=component&amp;e_name=' . $eName;
     $this->t['linkfile'] = $tUri . 'index.php?option=com_phocadownload&amp;view=phocadownloadlinkfile&amp;tmpl=component&amp;e_name=' . $eName;
     $this->t['linkytb'] = $tUri . 'index.php?option=com_phocadownload&amp;view=phocadownloadlinkytb&amp;tmpl=component&amp;e_name=' . $eName;
     $this->assignRef('tmpl', $this->t);
     parent::display($tpl);
 }
开发者ID:jbelborja,项目名称:lavid3,代码行数:28,代码来源:view.html.php

示例15: getInput

    /**
     * fetch Element 
     */
    protected function getInput()
    {
        if (!defined('LOF_LOADMEDIACONTROL')) {
            define('LOF_LOADMEDIACONTROL', 1);
            $uri = str_replace(DS, "/", str_replace(JPATH_SITE, JURI::base(), dirname(__FILE__)));
            $uri = str_replace("/administrator/", "", $uri);
            JHTML::stylesheet($uri . "/media/" . 'form.css');
            JHTML::script($uri . "/media/" . 'form.js');
        }
        if ($this->title == 'end_form') {
            ?>
            	<script type="text/javascript">
					var panels = $$("#module-form .pane-sliders  > .panel").fade("out").removeClass("panel").addClass("lof-panel");
					var div = new Element("div", {"class":"lof-wrapper"});
					var container = new Element("div", {"class":"lof-container"});
					container.innerHTML='<fieldset class="fs-form"><legend><?php 
            echo JText::_("Module Setting");
            ?>
</legend><div class="lof-toolbars"></div><div class="lof-fscontainer"></div></legend></fieldset>';
					var _toolbar = container.getElement(".lof-toolbars");
					var _container = container.getElement(".lof-fscontainer");
					$$("#module-form .pane-sliders").adopt(  div.adopt(container) );
					new LofForm(panels, _toolbar, _container );
				</script>
            <?php 
        }
        //    $text   = (string)$this->element['text']?(string)$this->element['text']:'';
        ///   return '<div class="lof-header">'.JText::_($text).'</div>';
    }
开发者ID:richardgarcia7,项目名称:apc-softdev-gd121mi122-06,代码行数:32,代码来源:lofspacer.php


注:本文中的JHTML::stylesheet方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。