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


PHP JSNHtmlAsset::addStyle方法代码示例

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


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

示例1: __construct

 public function __construct()
 {
     $this->_scripts = array();
     $this->_styles = array();
     $this->_customs = array();
     $this->_scriptDeclaration = array();
     $this->_styleDeclaration = array();
     $this->_docType = JFactory::getDocument()->getType();
     $this->_conflict = true;
     if (!$this->_dispatch) {
         if (class_exists('JSNHtmlAsset')) {
             if (method_exists('JSNHtmlAsset', 'addScript') && method_exists('JSNHtmlAsset', 'addStyle')) {
                 JSNHtmlAsset::addStyle(JSN_FRAMEWORK_ASSETS . '/3rd-party/jquery-ui/css/ui-bootstrap/jquery-ui-1.9.0.custom.css');
                 JSNHtmlAsset::addStyle(JSN_FRAMEWORK_ASSETS . '/joomlashine/css/jsn-gui.css');
                 JSNHtmlAsset::addScript(JURI::root(true) . '/media/jui/js/jquery.js');
                 JSNHtmlAsset::addScript(JSN_POWERADMIN_LIB_JSNJS_URI . 'jsn.jquery.noconflict.js');
                 JSNHtmlAsset::addScript(JSN_FRAMEWORK_ASSETS . '/3rd-party/jquery-ui/js/jquery-ui-1.9.0.custom.min.js');
                 JSNHtmlAsset::addScript(JURI::root(true) . '/media/jui/js/jquery.ui.sortable.js');
                 JSNHtmlAsset::addScript(JSN_FRAMEWORK_ASSETS . '/3rd-party/jquery-ck/jquery.ck.js');
                 JSNHtmlAsset::addScript(JSN_POWERADMIN_LIB_JS_URI . 'jquery.topzindex.js');
                 JSNHtmlAsset::addScript(JSN_POWERADMIN_LIB_JSNJS_URI . 'jsn.window.js');
                 JSNHtmlAsset::addScript(JSN_POWERADMIN_LIB_JSNJS_URI . 'jsn.lang.js');
                 JSNHtmlAsset::addStyle(JSN_POWERADMIN_STYLE_URI . "poweradmin.css");
             }
         }
         //Load js lang
         if (JRequest::getVar('option', '') == 'com_poweradmin') {
             JSNFactory::localimport('libraries.joomlashine.language.javascriptlanguages');
             $jsLang = JSNJavascriptLanguages::getInstance();
             $this->addScriptDeclaration($jsLang->loadLang());
         }
     }
 }
开发者ID:kleinhelmi,项目名称:tus03_j3_2015_01,代码行数:33,代码来源:media.php

示例2: addMedia

 /**
  *
  * Add Scripts and StyleSheets for this view
  * @param String $currentUrl
  */
 protected function addMedia($currentItemid, $render_url, $php_to_js)
 {
     $currentItemid = (int) $currentItemid;
     /** load libraries for the system rener **/
     $JSNTemplate = JSNFactory::getTemplate();
     $JSNMedia = JSNFactory::getMedia();
     $template = JFactory::getDocument()->template;
     $currUri = new JURI($render_url);
     JSNHtmlAsset::addStyle(JSN_POWERADMIN_STYLE_URI . 'uilayout/layout-default-latest.css');
     JSNHtmlAsset::addStyle(JSN_POWERADMIN_STYLE_URI . 'styles.css');
     JSNHtmlAsset::addScript(JSN_POWERADMIN_LIB_JS_URI . 'jquery.tinyscrollbar.js');
     JSNHtmlAsset::addScript(JSN_FRAMEWORK_ASSETS . '/3rd-party/jquery-hotkeys/jquery.hotkeys.js');
     JSNHtmlAsset::addScript(JSN_POWERADMIN_LIB_JS_URI . 'jquery-baseencode64.js');
     JSNHtmlAsset::addScript(JSN_FRAMEWORK_ASSETS . '/3rd-party/jquery-jstorage/jquery.jstorage.js');
     JSNHtmlAsset::addScript(JSN_POWERADMIN_LIB_JSNJS_URI . 'jsn.mousecheck.js');
     JSNHtmlAsset::addScript(JSN_POWERADMIN_LIB_JSNJS_URI . 'jsn.autodragdrop.js');
     JSNHtmlAsset::addScript(JSN_POWERADMIN_LIB_JSNJS_URI . 'jsn.rawmode.draganddrop.js');
     JSNHtmlAsset::addScript(JSN_POWERADMIN_LIB_JSNJS_URI . 'jsn.rawmode.component.js');
     JSNHtmlAsset::addScript(JSN_POWERADMIN_LIB_JSNJS_URI . 'jsn.rawmode.grid.js');
     JSNHtmlAsset::addScript(JSN_POWERADMIN_LIB_JSNJS_URI . 'jsn.functions.js');
     JSNHtmlAsset::addScript(JSN_FRAMEWORK_ASSETS . '/3rd-party/jquery-layout/js/jquery.layout-latest.js');
     JSNHtmlAsset::addScript(JSN_POWERADMIN_LIB_JSNJS_URI . 'jstree/jstree.override.js');
     JSNHtmlAsset::addScript(JSN_POWERADMIN_LIB_JSNJS_URI . 'jsn.jstreecontext.js');
     JSNHtmlAsset::addScript(JSN_POWERADMIN_LIB_JSNJS_URI . 'jsn.submenu.js');
     JSNHtmlAsset::addScript(JSN_POWERADMIN_LIB_JSNJS_URI . 'jsn.menuitems.js');
     JSNHtmlAsset::addScript(JSN_POWERADMIN_LIB_JSNJS_URI . 'jsn.jquery.override.js');
     JSNHtmlAsset::addScript(JSN_POWERADMIN_LIB_JSNJS_URI . 'jsn.filter.js');
     //check sef on/off
     $sef = JFactory::getConfig()->get('sef');
     /** Add Custom Scripts **/
     $customScript = "\n\t\t\tvar jsnpoweradmin = true;\n\t\t\tvar baseUrl       = '" . JURI::root() . "';\n\t\t\tvar sef           = " . $sef . ";\n\t\t\tvar currentUrl    = '" . $render_url . "';\n\t\t\tvar lang          = '" . $JSNMedia->getLang() . "';\n\t\t\tvar positions     = new Array();\n\t\t\tvar JSNGrid, JSNComponent;\n\n\t\t\t(function(\$){\n\t\t\t    " . implode(PHP_EOL, $php_to_js) . "\n\t\t\t    \$.uiBackCompat = false;\n\t\t\t\t\$(document).ready(function(){\n\t\t\t\t\t\$('#page-loading').hide();\n\t\t\t\t\t\$('#jsn-rawmode-layout').css('visibility', 'visible');\n\t\t\t\t\tif (\$('#jsn-adminbar').size() == 0) {\n\t\t\t\t\t\t\$('body').addClass('no-adminbar');\n\t\t\t\t\t}\n\n\t\t\t\t\tfunction setFullScreen () {\n\t\t\t\t\t\t\$('body').toggleClass('jsn-fullscreen');\n\t\t\t\t\t\tif (\$('body').hasClass('jsn-fullscreen')) {\n\t\t\t\t\t\t\t\$('.header').hide();\n\t\t\t\t\t\t\t\$('.subhead-collapse').hide();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\$('.header').show();\n\t\t\t\t\t\t\t\$('.subhead-collapse').show();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\$(window).trigger('resize');\n\t\t\t\t\t}\n\n\t\t\t\t\t\$('a#jsn-fullscreen').click(function () {\n\t\t\t\t\t\tsetFullScreen();\n\t\t\t\t\t\t\$.cookie('jsn-fullscreen', \$('body').hasClass('jsn-fullscreen'));\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t});\n\n\t\t\t\t\tvar isFullScreen = \$.cookie('jsn-fullscreen');\n\t\t\t\t\tif (isFullScreen !== undefined && (isFullScreen == 'true' || isFullScreen == '1')) {\n\t\t\t\t\t\tsetFullScreen();\n\t\t\t\t\t}\n\n\t\t\t\t\t\$.jStorage.set('selected_node', " . $currentItemid . ");\n\t\t\t\t\t\$.ajaxSetup({\n\t\t\t\t\t   timeout: 10000\n\t\t\t\t\t});\n\t\t\t\t\tJSNGrid      = new \$.JSNGrid();\n\t\t\t\t\tJSNComponent = new \$.JSNComponent('" . $currUri->getVar('option') . "', '" . $currUri->getVar('view') . "', '" . $currUri->getVar('layout') . "', '" . $currentItemid . "');\n \t\t\t\t\t\$._menuitems.mode  = 'rawmode';\n \t\t\t\t\t\$._menuitems.init();\n \t\t\t\t\t\$.jsnmouse.init();\n\t\t\t\t\tJSNFilter\t= new \$.JSNSpotligthModuleFilter(\$('#module_spotlight_filter'), {defaultText: '" . JText::_('JSN_RAWMODE_MODULE_FILTER_DEFAULT_TEXT', true) . "'});\n\t\t\t\t});\n\n\t\t\t})(JoomlaShine.jQuery);\n\t\t";
     $JSNMedia->addScriptDeclaration($customScript);
 }
开发者ID:kleinhelmi,项目名称:tus03_j3_2015_01,代码行数:38,代码来源:view.html.php

示例3: loadAssets

 /**
  * Load common assets.
  *
  * @param   boolean  $inline  Whether to load assets inline or load in header?
  *
  * @return  void
  */
 public static function loadAssets($inline = false)
 {
     // Define common stylesheets
     $stylesheets = array();
     if (JSNVersion::isJoomlaCompatible('3.0')) {
         $stylesheets[] = JSN_URL_ASSETS . '/3rd-party/jquery-ui/css/ui-bootstrap/jquery-ui-1.9.0.custom.css';
         if (preg_match('/msie/i', $_SERVER['HTTP_USER_AGENT'])) {
             $stylesheets[] = JSN_URL_ASSETS . '/3rd-party/jquery-ui/css/ui-bootstrap/jquery.ui.1.9.0.ie.css';
         }
     } else {
         $stylesheets[] = JSN_URL_ASSETS . '/3rd-party/bootstrap/css/bootstrap.min.css';
         $stylesheets[] = JSN_URL_ASSETS . '/3rd-party/jquery-ui/css/ui-bootstrap/jquery-ui-1.8.16.custom.css';
         if (preg_match('/msie/i', $_SERVER['HTTP_USER_AGENT'])) {
             $stylesheets[] = JSN_URL_ASSETS . '/3rd-party/jquery-ui/css/ui-bootstrap/jquery-ui-1.8.16.ie.css';
         }
     }
     $stylesheets[] = JSN_URL_ASSETS . '/joomlashine/css/jsn-gui.css';
     // Load stylesheets
     if (!$inline) {
         JSNHtmlAsset::addStyle($stylesheets);
     } else {
         foreach ($stylesheets as $stylesheet) {
             $html[] = '<link type="text/css" href="' . $stylesheet . '" rel="stylesheet" />';
         }
         echo implode("\n", $html);
     }
     // Load scripts
     if (JSNVersion::isJoomlaCompatible('3.2')) {
         JSNHtmlAsset::addScript(JUri::root(true) . '/media/jui/js/jquery.min.js');
     }
 }
开发者ID:jdrzaic,项目名称:joomla-dummy,代码行数:38,代码来源:helper.php

示例4: render

 /**
  * Method to render HTML markup for a form as declared in an JForm object.
  *
  * @param   object  $form       JForm object.
  * @param   string  $nameSpace  Prefix field name with the given name-space, e.g. jform[params]
  *
  * @return  string  Generated HTML markup.
  */
 public static function render($form, $nameSpace = '')
 {
     $html = array();
     // Get fieldsets
     foreach ($form->getFieldsets() as $fieldset) {
         if (isset($fieldset->skipRender) and (int) $fieldset->skipRender) {
             continue;
         }
         // Get fieldset attributes
         $tag = isset($fieldset->markupTag) ? strtolower($fieldset->markupTag) : 'fieldset';
         $label = $tag == 'fieldset' ? 'legend' : 'h4';
         $class = isset($fieldset->class) ? ' class="' . $fieldset->class . '"' : '';
         // Generate open tag
         $html[] = "<{$tag}{$class}>";
         // Generate form legend if declared
         if ($fieldset->label) {
             $html[] = "\t<{$label}" . ($label == 'h4' ? ' class="jsn-section-header"' : '') . '>' . JText::_($fieldset->label) . "</{$label}>";
         }
         foreach ($form->getFieldset($fieldset->name) as $field) {
             // Generate field container ID
             $id = ' id="' . $field->id . '-container' . '"';
             if ($field->label) {
                 // Initialize field label markup
                 if (strpos($field->label, 'class=') === false) {
                     $label = str_replace('<label', '<label class="control-label"', $field->label);
                 } else {
                     $label = strpos($field->label, 'control-label') === false ? preg_replace('/<label(\\s+[^>]*)class="([^"]*)"([^>]*)>/', '<label\\1class="control-label \\2"\\3>', $field->label) : $field->label;
                 }
                 // Initialize field label tooltips
                 if (strpos($label, ' hasTip')) {
                     $label = preg_replace(array('/ hasTip/', '/title="[^:]*::/'), array('', 'original-title="'), $label);
                 }
                 // Generate markup for input field with field label
                 $html[] = "\t" . '<div' . $id . ' class="control-group">' . $label . '<div class="controls">' . $field->input . '</div></div>';
             } else {
                 // Generate markup for input field without field label
                 $html[] = "\t" . "<div{$id}>{$field->input}</div>";
             }
         }
         // Generate close tag
         $html[] = "</{$tag}>";
     }
     // Finalize form markup
     $html = implode("\n", $html);
     // Set name-space prefix
     if (!empty($nameSpace)) {
         $html = str_replace('name="jform[', 'name="' . $nameSpace . '[', $html);
     }
     // Setup tooltips
     JSNHtmlAsset::addStyle(JSN_URL_ASSETS . '/3rd-party/jquery-tipsy/tipsy.css');
     JSNHtmlAsset::loadScript('jsn/tooltips');
     // Setup form validation
     JSNHtmlAsset::loadScript('jsn/validate', array('id' => 'jsn-config-form', 'lang' => JSNUtilsLanguage::getTranslated(array('JSN_EXTFW_INVALID_VALUE_TYPE', 'JSN_EXTFW_ERROR_FORM_VALIDATION_FAILED', 'JSN_EXTFW_SYSTEM_CUSTOM_ASSETS_INVALID'))));
     return $html;
 }
开发者ID:jdrzaic,项目名称:joomla-dummy,代码行数:63,代码来源:helper.php

示例5: display

 public function display($tpl = null)
 {
     // Set the toolbar
     JToolbarHelper::title(JText::_('JSN_SAMPLE_UPGRADE_PRODUCT'));
     JSNHtmlAsset::addStyle(JSNPB_FRAMEWORK_ASSETS . '/joomlashine/css/jsn-gui.css');
     // Add assets
     $this->_document = JFactory::getDocument();
     $this->addToolbar();
     // Display the template
     parent::display($tpl);
 }
开发者ID:densem-2013,项目名称:exikom,代码行数:11,代码来源:view.html.php

示例6: display

 /**
  * Display method.
  *
  * @param   string  $tpl  The name of the template file to parse.
  *
  * @return	void
  */
 public function display($tpl = null)
 {
     // Get config declaration
     $configDeclaration = $this->get('Form');
     // Pass data to view
     $this->assignRef('config', $configDeclaration);
     // Load assets
     JSNBaseHelper::loadAssets();
     JSNHtmlAsset::addStyle(JSN_URL_ASSETS . '/3rd-party/jquery-tipsy/tipsy.css');
     JSNHtmlAsset::loadScript('jsn/core', array('lang' => JSNUtilsLanguage::getTranslated(array('JSN_EXTFW_GENERAL_LOADING', 'JSN_EXTFW_GENERAL_CLOSE'))));
     JSNHtmlAsset::loadScript('jsn/config');
     // Display the template
     parent::display($tpl);
 }
开发者ID:jdrzaic,项目名称:joomla-dummy,代码行数:21,代码来源:view.php

示例7: _addAssets

 /**
  * Add nesscessary JS & CSS files
  *
  * @return void
  */
 private function _addAssets()
 {
     $objJSNMedia = JSNISFactory::getObj('classes.jsn_is_media');
     JSNHtmlAsset::addScript(JURI::root(true) . '/media/jui/js/jquery.min.js');
     $objJSNMedia->addScript(JURI::root(true) . '/administrator/components/com_imageshow/assets/js/joomlashine/conflict.js');
     JSNHtmlAsset::addScript(JSN_URL_ASSETS . '/3rd-party/jquery-ck/jquery.ck.js');
     JSNHtmlAsset::addScript(JSN_URL_ASSETS . '/3rd-party/jquery-jwysiwyg/jquery.wysiwyg.js');
     JSNHtmlAsset::addStyle(JSN_URL_ASSETS . '/3rd-party/jquery-jwysiwyg/jquery.wysiwyg.css');
     JSNHtmlAsset::addScript(JSN_URL_ASSETS . '/3rd-party/jquery-ui/js/jquery-ui-1.9.0.custom.min.js');
     !class_exists('JSNBaseHelper') or JSNBaseHelper::loadAssets();
     $objJSNMedia->addStyleSheet(JURI::root(true) . '/administrator/components/com_imageshow/assets/css/imageshow.css');
     $objJSNMedia->addStyleSheet(JURI::root(true) . '/administrator/components/com_imageshow/assets/css/image_selector.css');
     JSNHtmlAsset::loadScript('imageshow/joomlashine/showlist', array('pathRoot' => JURI::root(), 'language' => JSNUtilsLanguage::getTranslated(array('JSN_IMAGESHOW_OK', 'JSN_IMAGESHOW_CLOSE'))));
 }
开发者ID:NallelyFlores89,项目名称:basvec,代码行数:19,代码来源:view.html.php

示例8: display

 public function display($tpl = null)
 {
     // Get config parameters
     $config = JSNConfigHelper::get();
     // Set the toolbar
     JToolBarHelper::title(JText::_('JSN_POWERADMIN_UPDATE_TITLE'));
     // Add assets
     $document = JFactory::getDocument();
     JSNHtmlAsset::addStyle(PoweradminHelper::makeUrlWithSuffix(JSN_URL_ASSETS . '/joomlashine/css/jsn-gui.css'));
     $redirAfterFinish = 'index.php?option=com_poweradmin&view=about';
     $this->assign('redirAfterFinish', $redirAfterFinish);
     // Display the template
     parent::display($tpl);
 }
开发者ID:kleinhelmi,项目名称:tus03_j3_2015_01,代码行数:14,代码来源:view.html.php

示例9: display

 public function display($tpl = null)
 {
     $this->articles = $this->get('Items');
     $this->modules = $this->get('ItemModules');
     $this->k2 = $this->get('ItemK2');
     $this->easyBlog = $this->get('ItemEasyblog');
     // Set the toolbar
     JToolbarHelper::title(JText::_('JSN PageBuilder Manager'));
     // Assign variables for rendering
     $this->assignRef('msgs', $msgs);
     JSNHtmlAsset::addStyle(JSNPB_FRAMEWORK_ASSETS . '/joomlashine/css/jsn-pages.css');
     JSNHtmlAsset::addStyle(JSNPB_FRAMEWORK_ASSETS . '/joomlashine/css/jsn-general.css');
     JSNHtmlAsset::addStyle(JSNPB_PLG_SYSTEM_ASSETS_URL . 'css/pagebuilder.css');
     // Display the template
     parent::display($tpl);
 }
开发者ID:site4com,项目名称:prometheus,代码行数:16,代码来源:view.html.php

示例10: _addAssets

 /**
  * Add the libraries css and javascript
  *
  * @return void
  */
 private function _addAssets()
 {
     JSNHtmlAsset::addStyle(JSN_URL_ASSETS . '/3rd-party/jquery-tipsy/tipsy.css');
     JSNHtmlAsset::addStyle(JSN_URL_ASSETS . '/3rd-party/jquery-jwysiwyg/jquery.wysiwyg-0.9.css');
     $formAction = $this->_config->get('form_action');
     $this->_document->addScriptDeclaration(" var currentAction = {$formAction}; ");
     $arrayTranslated = array('JSN_UNIFORM_BUTTON_SAVE', 'JSN_UNIFORM_BUTTON_CANCEL', 'JSN_UNIFORM_EMAIL_SUBMITTER_TITLE', 'JSN_UNIFORM_EMAIL_ADDRESS_TITLE', 'JSN_UNIFORM_YOU_CAN_NOT_HIDE_THE_COPYLINK', 'JSN_UNIFORM_UPGRADE_EDITION_TITLE', 'JSN_UNIFORM_UPGRADE_EDITION', 'JSN_UNIFORM_SELECT_THE_ACTION_TO_TAKE_AFTER', 'JSN_UNIFORM_SET_THE_FOLDER_TO_STORE', 'JSN_SAMPLE_DISABLE_SHOW_COPYRIGHT_DES');
     JSNHtmlAsset::registerDepends('uniform/libs/googlemaps/jquery.ui.map', array('jquery', 'jquery.ui'));
     JSNHtmlAsset::registerDepends('uniform/libs/googlemaps/jquery.ui.map.services', array('jquery', 'jquery.ui', 'uniform/libs/googlemaps/jquery.ui.map'));
     JSNHtmlAsset::registerDepends('uniform/libs/googlemaps/jquery.ui.map.extensions', array('jquery', 'jquery.ui', 'uniform/libs/googlemaps/jquery.ui.map'));
     JSNHtmlAsset::addScript('http://maps.google.com/maps/api/js?sensor=false&libraries=places');
     $edition = defined('JSN_UNIFORM_EDITION') ? strtolower(JSN_UNIFORM_EDITION) : "free";
     echo JSNHtmlAsset::loadScript('jsn/core', array('lang' => JSNUtilsLanguage::getTranslated(array('JSN_EXTFW_GENERAL_LOADING', 'JSN_EXTFW_GENERAL_CLOSE'))), true);
     echo JSNHtmlAsset::loadScript('jsn/config', array('language' => array('JSN_EXTFW_GENERAL_CLOSE' => JText::_('JSN_EXTFW_GENERAL_CLOSE'))), true);
     echo JSNHtmlAsset::loadScript('uniform/configuration', array('language' => JSNUtilsLanguage::getTranslated($arrayTranslated), 'edition' => $edition), true);
 }
开发者ID:sillysachin,项目名称:teamtogether,代码行数:21,代码来源:view.html.php

示例11: _addAssets

 /**
  * Add the libraries css and javascript
  *
  * @return void
  * 
  * @since	1.6
  */
 private function _addAssets()
 {
     JSNHtmlAsset::addStyle(JSN_URL_ASSETS . '/3rd-party/jquery-ui/css/ui-bootstrap/jquery-ui-1.9.0.custom.css');
     JSNHtmlAsset::addStyle(JSN_URL_ASSETS . '/3rd-party/bootstrap/css/bootstrap.min.css');
     JSNHtmlAsset::addStyle(JSN_URL_ASSETS . '/joomlashine/css/jsn-gui.css');
     JSNHtmlAsset::addStyle(JSN_URL_ASSETS . '/joomlashine/css/jsn-view-launchpad.css');
     JSNHtmlAsset::addStyle(JURI::base(true) . '/components/com_uniform/assets/css/uniform.css');
     if (preg_match('/msie/i', $_SERVER['HTTP_USER_AGENT'])) {
         JSNHtmlAsset::addStyle(JSN_URL_ASSETS . '/3rd-party/jquery-ui/css/ui-bootstrap/jquery-ui-1.8.16.ie.css');
     }
     JSNHtmlAsset::addStyle(JSN_URL_ASSETS . '/3rd-party/jquery-ui/css/ui-bootstrap/jquery-ui-1.9.0.custom.css');
     $arrayTranslated = array('JSN_UNIFORM_UPGRADE_EDITION_TITLE', 'JSN_UNIFORM_LAUNCHPAD_PLUGIN_SYNTAX', 'JSN_UNIFORM_YOU_MUST_SELECT_SOME_FORM', 'JSN_UNIFORM_EDIT_SELECTED_FORM', 'JSN_UNIFORM_LAUNCHPAD_PLUGIN_SYNTAX_DES', 'JSN_UNIFORM_YOU_HAVE_REACHED_THE_LIMITATION_OF_3_FORM_IN_FREE_EDITION', 'JSN_UNIFORM_UPGRADE_EDITION');
     $edition = defined('JSN_UNIFORM_EDITION') ? JSN_UNIFORM_EDITION : "free";
     JSNHtmlAsset::addScript(JSN_URL_ASSETS . '/3rd-party/jquery/jquery-1.8.2.js');
     JSNHtmlAsset::addScriptLibrary('jquery.ui', '3rd-party/jquery-ui/js/jquery-ui-1.9.0.custom.min', array('jquery'));
     echo JSNHtmlAsset::loadScript('uniform/launchpad', array('baseZeroClipBoard' => JSN_URL_ASSETS . '/3rd-party/jquery-zeroclipboard/ZeroClipboard.swf', 'edition' => $edition, 'language' => JSNUtilsLanguage::getTranslated($arrayTranslated)), true);
 }
开发者ID:networksoft,项目名称:declarafacil.com.co,代码行数:24,代码来源:view.html.php

示例12: _addAssets

 private function _addAssets()
 {
     if (class_exists('JSNHtmlAsset')) {
         if (method_exists('JSNHtmlAsset', 'addScript') && method_exists('JSNHtmlAsset', 'addStyle')) {
             JSNHtmlAsset::addStyle(JSN_FRAMEWORK_ASSETS . '/3rd-party/jquery-ui/css/ui-bootstrap/jquery-ui-1.9.0.custom.css');
             JSNHtmlAsset::addStyle(JSN_FRAMEWORK_ASSETS . '/joomlashine/css/jsn-gui.css');
             JSNHtmlAsset::addScript(JURI::root(true) . '/media/jui/js/jquery.js');
             JSNHtmlAsset::addScript(JSN_POWERADMIN_LIB_JSNJS_URI . 'jsn.jquery.noconflict.js');
             JSNHtmlAsset::addScript(JSN_FRAMEWORK_ASSETS . '/3rd-party/jquery-ui/js/jquery-ui-1.9.0.custom.min.js');
             JSNHtmlAsset::addScript(JURI::root(true) . '/media/jui/js/jquery.ui.sortable.js');
             JSNHtmlAsset::addScript(JSN_FRAMEWORK_ASSETS . '/3rd-party/jquery-ck/jquery.ck.js');
             JSNHtmlAsset::addScript(JSN_POWERADMIN_LIB_JS_URI . 'jquery.topzindex.js');
             JSNHtmlAsset::addScript(JSN_POWERADMIN_LIB_JSNJS_URI . 'jsn.window.js');
             JSNHtmlAsset::addScript(JSN_POWERADMIN_LIB_JSNJS_URI . 'jsn.lang.js');
             JSNHtmlAsset::addStyle(JSN_POWERADMIN_STYLE_URI . "poweradmin.css");
         }
     }
 }
开发者ID:kleinhelmi,项目名称:tus03_j3_2015_01,代码行数:18,代码来源:view.html.php

示例13: _addAssets

 /**
  * Load extra assets.
  *
  * @return void
  */
 private function _addAssets()
 {
     JSNHtmlAsset::addStyle(JSN_URL_ASSETS . '/3rd-party/jquery-tipsy/tipsy.css');
     $templateReplyTo = isset($this->_item->template_reply_to) ? $this->_item->template_reply_to : '';
     $this->_document->addScriptDeclaration(" var templateRelyTo = '{$templateReplyTo}'");
     $viewLayout = JFactory::getApplication()->input->getWord('layout', 'default');
     $session = JFactory::getSession();
     $seesionQueue = $session->get('application.queue');
     JSNHtmlAsset::registerDepends('uniform/libs/jquery.placeholder', array('jquery'));
     JSNHtmlAsset::addScript(JSN_UNIFORM_ASSETS_URI . '/js/jsn.jquery.noconflict.js');
     $language = array('JSN_UNIFORM_NO_FIELD_DES', 'JSN_UNIFORM_NO_FIELD', 'JSN_UNIFORM_NO_EMAIL_DES', 'JSN_UNIFORM_SELECTED', 'JSN_UNIFORM_NO_EMAIL', 'JSN_UNIFORM_SELECT_FIELD', 'JSN_UNIFORM_SELECT_FIELDS', 'JSN_UNIFORM_PLACEHOLDER_EMAIL_FROM_0', 'JSN_UNIFORM_PLACEHOLDER_EMAIL_REPLY_TO_0', 'JSN_UNIFORM_PLACEHOLDER_EMAIL_SUBJECT_0', 'JSN_UNIFORM_PLACEHOLDER_EMAIL_FROM_1', 'JSN_UNIFORM_PLACEHOLDER_EMAIL_REPLY_TO_1', 'JSN_UNIFORM_PLACEHOLDER_EMAIL_SUBJECT_1');
     if ($viewLayout == "default") {
         echo JSNHtmlAsset::loadScript('uniform/emailsettings', array('language' => JSNUtilsLanguage::getTranslated($language), 'editor' => JFactory::getConfig()->get('editor')), true);
     } else {
         echo JSNHtmlAsset::loadScript('uniform/configemailsettings', array('language' => JSNUtilsLanguage::getTranslated($language)), true);
     }
     if (!empty($seesionQueue[0]['message'])) {
         $this->_document->addScriptDeclaration(' window.parent.jQuery.closeModalBox(); ');
     }
 }
开发者ID:densem-2013,项目名称:exikom,代码行数:25,代码来源:view.html.php

示例14: _addAssets

 protected function _addAssets()
 {
     JSNHtmlAsset::addStyle(JSNES_ASSETS_URL . 'css/sliders.css');
     JSNHtmlAsset::addScript(JSNES_PLG_SYSTEM_ASSETS_URL . 'lib/jquery/jquery.min.js');
     JSNHtmlAsset::addScript(JSNES_ASSETS_URL . 'js/sliders.js');
     JSNHtmlAsset::addScript(JSNES_PLG_SYSTEM_ASSETS_URL . 'lib/underscore/underscore-min.js');
     JSNHtmlAsset::addScript(JSNES_PLG_SYSTEM_ASSETS_URL . 'lib/backbone/backbone-min.js');
     JSNHtmlAsset::addScript(JSNES_PLG_SYSTEM_ASSETS_URL . 'js/conflict.js');
 }
开发者ID:densem-2013,项目名称:exikom,代码行数:9,代码来源:view.html.php

示例15: addAssets

 /**
  * Add the libraries css and javascript
  *
  * @return void
  *
  * @since    1.6
  */
 protected function addAssets()
 {
     JSNHtmlAsset::addStyle(array(JURI::base(true) . '/components/com_uniform/assets/js/libs/colorpicker/css/colorpicker.css', JSN_URL_ASSETS . '/3rd-party/jquery-jwysiwyg/jquery.wysiwyg-0.9.css', JURI::base(true) . '/components/com_uniform/assets/js/libs/select2/select2.css', JSN_URL_ASSETS . '/3rd-party/codemirror/lib/codemirror.css', JSN_URL_ASSETS . '/3rd-party/jquery-tipsy/tipsy.css'));
     if (JPluginHelper::isEnabled('editors', 'tinymce') == true) {
         JSNHtmlAsset::addScript(JUri::root(true) . '/media/editors/tinymce/tinymce.min.js');
         JSNHtmlAsset::addScript(JUri::root(true) . '/media/editors/tinymce/plugins/table/plugin.min.js');
         JSNHtmlAsset::addScript(JUri::root(true) . '/media/editors/tinymce/plugins/link/plugin.min.js');
         JSNHtmlAsset::addScript(JUri::root(true) . '/media/editors/tinymce/plugins/image/plugin.min.js');
         JSNHtmlAsset::addScript(JUri::root(true) . '/media/editors/tinymce/plugins/code/plugin.min.js');
         JSNHtmlAsset::addScript(JUri::root(true) . '/media/editors/tinymce/plugins/hr/plugin.min.js');
         JSNHtmlAsset::addScript(JUri::root(true) . '/media/editors/tinymce/plugins/charmap/plugin.min.js');
         JSNHtmlAsset::addScript(JUri::root(true) . '/media/editors/tinymce/plugins/autolink/plugin.min.js');
         JSNHtmlAsset::addScript(JUri::root(true) . '/media/editors/tinymce/plugins/lists/plugin.min.js');
         JSNHtmlAsset::addStyle(JUri::root(true) . '/media/editors/tinymce/plugins/importcss/plugin.min.js');
         JSNHtmlAsset::addScript(JUri::root(true) . '/media/editors/tinymce/themes/modern/theme.min.js');
         JSNHtmlAsset::addStyle(JUri::root(true) . '/media/editors/tinymce/skins/lightgray/content.inline.min.css');
         JSNHtmlAsset::addStyle(JUri::root(true) . '/media/editors/tinymce/skins/lightgray/content.min.css');
         JSNHtmlAsset::addStyle(JUri::root(true) . '/media/editors/tinymce/skins/lightgray/skin.min.css');
         JSNHtmlAsset::addStyle(JUri::root(true) . '/media/editors/tinymce/skins/lightgray/skin.ie7.min.css');
     }
     $formSubmitter = isset($this->_item->form_submitter) ? json_decode($this->_item->form_submitter) : "";
     $formAction = 0;
     $formActionData = '';
     if (!empty($this->formAction)) {
         $formAction = $this->formAction;
         $formActionData = isset($this->formActionData) ? $this->formActionData : '';
     }
     $arrayTranslated = array('JSN_UNIFORM_MOVE_UP_CONTAINER', 'JSN_UNIFORM_MOVE_DOWN_CONTAINER', 'JSN_UNIFORM_ADD_CONTAINER_COLUMN', 'JSN_UNIFORM_DELETE_CONTAINER', 'JSN_UNIFORM_DELETE_CONTAINER_COLUMN', 'JSN_UNIFORM_CONFIRM_DELETE_CONTAINER', 'JSN_UNIFORM_CONFIRM_DELETE_CONTAINER_COLUMN', 'JSN_UNIFORM_COLOR_CONFIRM_RESET', 'JSN_UNIFORM_COLOR_CONFIRM_DELETE', 'JSN_UNIFORM_COLOR_CONFIRM_EXISTS', 'JSN_UNIFORM_ALL_FORM_FIELD_ARE_HIDDEN', 'JSN_UNIFORM_ALL_FORM_FIELD_ARE_DISPLAYED', 'TITLES', 'JSN_UNIFORM_DATE_HOUR_TEXT', 'JSN_UNIFORM_DATE_MINUTE_TEXT', 'JSN_UNIFORM_DATE_CLOSE_TEXT', 'JSN_UNIFORM_DATE_PREV_TEXT', 'JSN_UNIFORM_DATE_NEXT_TEXT', 'JSN_UNIFORM_DATE_CURRENT_TEXT', 'JSN_UNIFORM_DATE_MONTH_JANUARY', 'JSN_UNIFORM_DATE_MONTH_FEBRUARY', 'JSN_UNIFORM_DATE_MONTH_MARCH', 'JSN_UNIFORM_DATE_MONTH_APRIL', 'JSN_UNIFORM_DATE_MONTH_MAY', 'JSN_UNIFORM_DATE_MONTH_JUNE', 'JSN_UNIFORM_DATE_MONTH_JULY', 'JSN_UNIFORM_DATE_MONTH_AUGUST', 'JSN_UNIFORM_DATE_MONTH_SEPTEMBER', 'JSN_UNIFORM_DATE_MONTH_OCTOBER', 'JSN_UNIFORM_DATE_MONTH_NOVEMBER', 'JSN_UNIFORM_DATE_MONTH_DECEMBER', 'JSN_UNIFORM_DATE_MONTH_JANUARY_SHORT', 'JSN_UNIFORM_DATE_MONTH_FEBRUARY_SHORT', 'JSN_UNIFORM_DATE_MONTH_MARCH_SHORT', 'JSN_UNIFORM_DATE_MONTH_APRIL_SHORT', 'JSN_UNIFORM_DATE_MONTH_MAY_SHORT', 'JSN_UNIFORM_DATE_MONTH_JUNE_SHORT', 'JSN_UNIFORM_DATE_MONTH_JULY_SHORT', 'JSN_UNIFORM_DATE_MONTH_AUGUST_SHORT', 'JSN_UNIFORM_DATE_MONTH_SEPTEMBER_SHORT', 'JSN_UNIFORM_DATE_MONTH_OCTOBER_SHORT', 'JSN_UNIFORM_DATE_MONTH_NOVEMBER_SHORT', 'JSN_UNIFORM_DATE_MONTH_DECEMBER_SHORT', 'JSN_UNIFORM_DATE_DAY_SUNDAY', 'JSN_UNIFORM_DATE_DAY_MONDAY', 'JSN_UNIFORM_DATE_DAY_TUESDAY', 'JSN_UNIFORM_DATE_DAY_WEDNESDAY', 'JSN_UNIFORM_DATE_DAY_THURSDAY', 'JSN_UNIFORM_DATE_DAY_FRIDAY', 'JSN_UNIFORM_DATE_DAY_SATURDAY', 'JSN_UNIFORM_DATE_DAY_SUNDAY_SHORT', 'JSN_UNIFORM_DATE_DAY_MONDAY_SHORT', 'JSN_UNIFORM_DATE_DAY_TUESDAY_SHORT', 'JSN_UNIFORM_DATE_DAY_WEDNESDAY_SHORT', 'JSN_UNIFORM_DATE_DAY_THURSDAY_SHORT', 'JSN_UNIFORM_DATE_DAY_FRIDAY_SHORT', 'JSN_UNIFORM_DATE_DAY_SATURDAY_SHORT', 'JSN_UNIFORM_DATE_DAY_SUNDAY_MIN', 'JSN_UNIFORM_DATE_DAY_MONDAY_MIN', 'JSN_UNIFORM_DATE_DAY_TUESDAY_MIN', 'JSN_UNIFORM_DATE_DAY_WEDNESDAY_MIN', 'JSN_UNIFORM_DATE_DAY_THURSDAY_MIN', 'JSN_UNIFORM_DATE_DAY_FRIDAY_MIN', 'JSN_UNIFORM_DATE_DAY_SATURDAY_MIN', 'JSN_UNIFORM_DATE_DAY_WEEK_HEADER', 'JSN_UNIFORM_EMAIL_SETTINGS', 'JSN_UNIFORM_SELECT_MENU_ITEM', 'JSN_UNIFORM_SELECT_ARTICLE', 'JSN_UNIFORM_FORM_APPEARANCE', 'JSN_UNIFORM_SELECT', 'JSN_UNIFORM_SAVE', 'JSN_UNIFORM_CANCEL', 'JSN_UNIFORM_ADD_FIELD', 'JSN_UNIFORM_BUTTON_SAVE', 'JSN_UNIFORM_BUTTON_CANCEL', 'JSN_UNIFORM_CONFIRM_CONVERTING_FORM', 'JSN_UNIFORM_UPGRADE_EDITION_TITLE', 'JSN_UNIFORM_YOU_HAVE_REACHED_THE_LIMITATION_OF_10_FIELD_IN_FREE_EDITION', 'JSN_UNIFORM_YOU_HAVE_REACHED_THE_LIMITATION_OF_1_PAGE_IN_FREE_EDITION', 'JSN_UNIFORM_UPGRADE_EDITION', 'JSN_UNIFORM_CONFIRM_SAVE_FORM', 'JSN_UNIFORM_NO_EMAIL', 'JSN_UNIFORM_NO_EMAIL_DES', 'JSN_UNIFORM_CONFIRM_DELETING_A_FIELD', 'JSN_UNIFORM_CONFIRM_DELETING_A_FIELD_DES', 'JSN_UNIFORM_BTN_BACKUP', 'JSN_UNIFORM_IF_CHECKED_VALUE_DUPLICATION', 'JSN_UNIFORM_EMAIL_SUBMITTER_TITLE', 'JSN_UNIFORM_EMAIL_ADDRESS_TITLE', 'JSN_UNIFORM_LAUNCHPAD_PLUGIN_SYNTAX', 'JSN_UNIFORM_LAUNCHPAD_PLUGIN_SYNTAX_DES', 'JSN_UNIFORM_FORM_LIMIT_FILE_EXTENSIONS', 'JSN_UNIFORM_FOR_SECURITY_REASONS_FOLLOWING_FILE_EXTENSIONS', 'JSN_UNIFORM_FORM_LIMIT_FILE_SIZE', 'STREET_ADDRESS', 'ADDRESS_LINE_2', 'CITY', 'POSTAL_ZIP_CODE', 'STATE_PROVINCE_REGION', 'FIRST', 'MIDDLE', 'LAST', 'COUNTRY', 'JSN_UNIFORM_ALLOW_USER_CHOICE', 'JSN_UNIFORM_SET_ITEM_PLACEHOLDER', 'JSN_UNIFORM_SET_ITEM_PLACEHOLDER_DES', 'JSN_UNIFORM_SHOW_DATE_FORMAT', 'JSN_UNIFORM_SHOW_TIME_FORMAT', 'JSN_UNIFORM_ENABLE_RANGE_SELECTION', 'JSN_UNIFORM_YOU_CAN_NOT_HIDE_THE_COPYLINK', 'JSN_UNIFORM_CUSTOM_DATE_FORMAT', 'JSN_UNIFORM_LIST_ELEMENT_DESCRIPTION_LABEL', 'JSN_UNIFORM_MULTIPLE_CHOICE_ELEMENT_DESCRIPTION_LABEL', 'JSN_UNIFORM_IDENTIFICATION_CODE_ELEMENT_DESCRIPTION_LABEL', 'JSN_UNIFORM_NO_FIELD_DES', 'JSN_UNIFORM_NO_FIELD', 'JSN_UNIFORM_NO_EMAIL_DES', 'JSN_UNIFORM_SELECTED', 'JSN_UNIFORM_NO_EMAIL', 'JSN_UNIFORM_SELECT_FIELD', 'JSN_UNIFORM_SELECT_FIELDS', 'JSN_UNIFORM_PLACEHOLDER_EMAIL_FROM_0', 'JSN_UNIFORM_PLACEHOLDER_EMAIL_REPLY_TO_0', 'JSN_UNIFORM_PLACEHOLDER_EMAIL_SUBJECT_0', 'JSN_UNIFORM_PLACEHOLDER_EMAIL_FROM_1', 'JSN_UNIFORM_PLACEHOLDER_EMAIL_REPLY_TO_1', 'JSN_UNIFORM_PLACEHOLDER_EMAIL_SUBJECT_1');
     $params = JComponentHelper::getParams('com_media');
     $listEx = '';
     $extensions = $params->get('upload_extensions');
     if ($extensions) {
         $extensions = explode(",", $extensions);
         $exs = array();
         foreach ($extensions as $ex) {
             $exs[] = strtolower($ex);
         }
         $listEx = implode(", ", array_unique($exs));
     }
     $extensions = str_replace(",", ", ", $extensions);
     $limitSize = $params->get('upload_maxsize');
     $configSizeSever = (int) ini_get('post_max_size');
     if ($limitSize > $configSizeSever) {
         $limitSize = $configSizeSever;
     }
     if ($limitSize > (int) ini_get('upload_max_filesize')) {
         $limitSize = (int) ini_get('upload_max_filesize');
     }
     $session = JFactory::getSession();
     $openArticle = JRequest::getVar('opentarticle', '');
     $this->pageContent = $session->get('page_content', '', 'form-design-' . $this->_item->form_id);
     $this->edition = defined('JSN_UNIFORM_EDITION') ? strtolower(JSN_UNIFORM_EDITION) : "free";
     JSNHtmlAsset::registerDepends('uniform/libs/googlemaps/jquery.ui.map', array('jquery', 'jquery.ui'));
     JSNHtmlAsset::registerDepends('uniform/libs/googlemaps/jquery.ui.map.services', array('jquery', 'jquery.ui', 'uniform/libs/googlemaps/jquery.ui.map'));
     JSNHtmlAsset::registerDepends('uniform/libs/googlemaps/jquery.ui.map.extensions', array('jquery', 'jquery.ui', 'uniform/libs/googlemaps/jquery.ui.map'));
     $uri = JUri::getInstance();
     JSNHtmlAsset::addScript($uri->getScheme() . '://maps.google.com/maps/api/js?sensor=false&libraries=places');
     JSNHtmlAsset::registerDepends('uniform/libs/jquery.tmpl', array('jquery'));
     JSNHtmlAsset::registerDepends('uniform/libs/jquery-ui-timepicker-addon', array('jquery', 'jquery.ui'));
     JSNHtmlAsset::registerDepends('uniform/libs/jquery.placeholder', array('jquery'));
     JSNHtmlAsset::registerDepends('uniform/libs/colorpicker/js/colorpicker', array('jquery'));
     JSNHtmlAsset::registerDepends('uniform/libs/select2/select2', array('jquery'));
     JSNHtmlAsset::registerDepends('uniform/layout', array('jquery', 'jquery.ui'));
     JSNHtmlAsset::addScript(JSN_UNIFORM_ASSETS_URI . '/js/jsn.jquery.noconflict.js');
     $titleForm = isset($_GET['form']) ? $_GET['form'] : '';
     echo JSNHtmlAsset::loadScript('uniform/form', array('urlBase' => JURI::base(), 'pathRoot' => JURI::root(), 'opentArticle' => $openArticle, 'baseZeroClipBoard' => JSN_URL_ASSETS . '/3rd-party/jquery-zeroclipboard/ZeroClipboard.swf', 'pageContent' => $this->pageContent, 'edition' => $this->edition, 'checkSubmitModal' => $this->checkSubmitModal, 'urlAction' => $this->urlAction, 'form_style' => $this->_item->form_style, 'dataEmailSubmitter' => $formSubmitter, 'language' => JSNUtilsLanguage::getTranslated($arrayTranslated), 'formActionData' => $formActionData, 'formAction' => $formAction, 'limitEx' => $listEx, 'limitSize' => $limitSize, 'titleForm' => $titleForm), true);
 }
开发者ID:densem-2013,项目名称:exikom,代码行数:74,代码来源:view.html.php


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