コード例 #1
0
ファイル: media.php プロジェクト: kleinhelmi/tus03_j3_2015_01
 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());
         }
     }
 }
コード例 #2
0
 /**
  *
  * 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);
 }
コード例 #3
0
ファイル: helper.php プロジェクト: jdrzaic/joomla-dummy
 /**
  * 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');
     }
 }
コード例 #4
0
ファイル: helper.php プロジェクト: jdrzaic/joomla-dummy
 /**
  * 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;
 }
コード例 #5
0
ファイル: view.html.php プロジェクト: densem-2013/exikom
 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);
 }
コード例 #6
0
ファイル: view.html.php プロジェクト: densem-2013/exikom
 public function display($tpl = null)
 {
     // Get config parameters
     $config = JSNConfigHelper::get();
     // Set the toolbar
     JToolBarHelper::title(JText::_('JSN_PAGEBUILDER_BUILDER_UPDATE_TITLE'));
     // Add assets
     JSNHtmlAsset::addStyle(JSN_URL_ASSETS . '/joomlashine/css/jsn-gui.css');
     $redirAfterFinish = 'index.php?option=com_pagebuilder&view=about';
     $this->assign('redirAfterFinish', $redirAfterFinish);
     // Display the template
     parent::display($tpl);
 }
コード例 #7
0
ファイル: view.php プロジェクト: jdrzaic/joomla-dummy
 /**
  * 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);
 }
コード例 #8
0
ファイル: view.html.php プロジェクト: NallelyFlores89/basvec
 /**
  * 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'))));
 }
コード例 #9
0
 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);
 }
コード例 #10
0
ファイル: view.html.php プロジェクト: site4com/prometheus
 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);
 }
コード例 #11
0
 /**
  * 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);
 }
コード例 #12
0
 /**
  * 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);
 }
コード例 #13
0
 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");
         }
     }
 }
コード例 #14
0
ファイル: view.html.php プロジェクト: densem-2013/exikom
 /**
  * Display method
  *
  * @param   string $tpl The name of the template file to parse; automatically searches through the template paths.
  *
  * @return    void
  */
 function display($tpl = null)
 {
     // Get config parameters
     $config = JSNConfigHelper::get();
     // Set the toolbar
     JToolbarHelper::title(JText::_('JSN_PAGEBUILDER_BUILDER_SETTING_TITLE'));
     // Assign variables for rendering
     $this->assignRef('msgs', $msgs);
     JSNHtmlAsset::addStyle(JSNPB_PLG_SYSTEM_ASSETS_URL . '/css/pagebuilder.css');
     JSNHtmlAsset::addStyle(JSNPB_ADMIN_URL . '/assets/css/configurations.css');
     JSNHtmlAsset::addScript(JSNPB_FRAMEWORK_ASSETS . '/3rd-party/jquery/jquery.min.js');
     JSNHtmlAsset::addScript(JSNPB_PLG_SYSTEM_ASSETS_URL . '3rd-party/jquery-ui/js/jquery-ui-1.10.3.custom.js');
     JSNHtmlAsset::addScript(JSNPB_PLG_SYSTEM_ASSETS_URL . '3rd-party/jquery-livequery/jquery.livequery.min.js');
     JSNHtmlAsset::addScript(JSNPB_PLG_SYSTEM_ASSETS_URL . 'js/joomlashine.noconflict.js');
     JSNHtmlAsset::addScript(JSNPB_ASSETS_URL . 'js/config.js');
     // Display the template
     parent::display($tpl);
 }
コード例 #15
0
ファイル: view.html.php プロジェクト: densem-2013/exikom
 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_BUILDER_MANAGER_TITLE'));
     // 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');
     // Load modules language
     $lang = JFactory::getLanguage();
     $lang->load('com_modules');
     // Display the template
     parent::display($tpl);
 }
コード例 #16
0
ファイル: view.html.php プロジェクト: densem-2013/exikom
 /**
  * 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(); ');
     }
 }
コード例 #17
0
ファイル: view.html.php プロジェクト: densem-2013/exikom
 public function display($tpl = null)
 {
     JSNHtmlAsset::addScript(JSNPB_FRAMEWORK_ASSETS . '/3rd-party/jquery/jquery.min.js');
     JSNHtmlAsset::addScript(JSNPB_PLG_SYSTEM_ASSETS_URL . 'js/joomlashine.noconflict.js');
     JSNHtmlAsset::addScript(JSNPB_ELEMENT_URL . '/module/assets/js/module.js');
     JSNHtmlAsset::addScript(JSNPB_ADMIN_URL . '/assets/joomlashine/js/jsn.filter.js');
     JSNHtmlAsset::addScript(JSNPB_ELEMENT_URL . '/module/assets/jquery-lazyload/jquery.lazyload.js');
     JSNHtmlAsset::addScript(JSNPB_ADMIN_URL . '/assets/js/jquery.js');
     JSNHtmlAsset::addStyle(JSNPB_PLG_SYSTEM_ASSETS_URL . 'css/pagebuilder.css');
     $state = $this->get('State');
     $items = $this->get('Items');
     $pagination = $this->get('Pagination');
     //check for errors
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     $this->assignRef('state', $state);
     $this->assignRef('items', $items);
     $this->assignRef('pagination', $pagination);
     return parent::display();
 }
コード例 #18
0
ファイル: view.html.php プロジェクト: densem-2013/exikom
 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');
 }
コード例 #19
0
ファイル: view.html.php プロジェクト: densem-2013/exikom
 /**
  * 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);
 }
コード例 #20
0
ファイル: view.html.php プロジェクト: NallelyFlores89/basvec
 /**
  * Add the libraries css and javascript
  *
  * @return void
  */
 protected function addAssets()
 {
     JSNHtmlAsset::addStyle(JURI::base(true) . '/components/com_uniform/assets/js/libs/daterangepicker/daterangepicker-bs2.css');
     JSNHtmlAsset::registerDepends('uniform/libs/daterangepicker/daterangepicker', array('jquery', 'jquery.ui'));
     JSNHtmlAsset::registerDepends('uniform/libs/daterangepicker/moment', array('jquery', 'jquery.ui', 'uniform/libs/daterangepicker/daterangepicker'));
     echo JSNHtmlAsset::loadScript('uniform/submissions', array('titleNodata' => JText::sprintf("JSN_UNIFORM_EXPORT_EMPTY_DATA", "submissions")), true);
     JSNHtmlAsset::addStyle('http://fonts.googleapis.com/css?family=Chau+Philomene+One');
 }
コード例 #21
0
ファイル: default.php プロジェクト: densem-2013/exikom
$css_files = !empty($custom_css_data['css_files']) ? $custom_css_data['css_files'] : '';
$css_custom = !empty($custom_css_data['css_custom']) ? $custom_css_data['css_custom'] : '';
$_css_files_tooltip = 'Insert path to your CSS files, each line for each file.
						<br>The path can be relative like:
						<br> <i><u>assets/css/yourfile.css</u></i>
						<br>or absolute like:
						<br> <i><u>http://yourwebsite.com/assets/css/yourfile.css</u></i>
						';
JSNHtmlAsset::addScript('http://code.jquery.com/jquery-2.1.0.min.js');
JSNHtmlAsset::addScript(JSNPB_PLG_SYSTEM_ASSETS_URL . '3rd-party/jquery-ui/js/jquery-ui-1.10.3.custom.js');
JSNHtmlAsset::addScript(JSNPB_PLG_SYSTEM_ASSETS_URL . '3rd-party/jquery-livequery/jquery.livequery.min.js');
JSNHtmlAsset::addScript(JSNPB_PLG_SYSTEM_ASSETS_URL . 'js/joomlashine.noconflict.js');
JSNHtmlAsset::addScript(JSNPB_ADMIN_URL . '/assets/joomlashine/js/jsn-modal.js');
JSNHtmlAsset::addScript(JSNPB_ADMIN_URL . '/assets/js/custom_css.js');
//JSNHtmlAsset::addScript(JSNPB_ADMIN_URL . '/assets/3rd-party/codemirror/codemirror.js');
JSNHtmlAsset::addStyle(JSNPB_PLG_SYSTEM_ASSETS_URL . 'css/pagebuilder.css');
//JSNHtmlAsset::addStyle(JSNPB_PLG_SYSTEM_ASSETS_URL . '3rd-party/codemirror/codemirror.css');
$document = JFactory::getDocument();
$script = '
			var JSNPbParams	= JSNPbParams || {};
		';
$document->addScriptDeclaration($script, 'text/javascript');
$_style = '.tooltip-inner { min-width: 550px !important; font-weight: 100 !important; }';
JSNHtmlAsset::addInlineStyle($_style, 'text/css');
?>
<div class="jsn-master" id="pb-custom-css-box">
    <div class="jsn-bootstrap3">

        <!-- CSS files -->
        <div
            class="form-group control-group jsn-items-list-container modal-content">
コード例 #22
0
ファイル: edit.php プロジェクト: jovielarmario/albay_cms
JSNHtmlAsset::addStyle(JSNES_PLG_SYSTEM_ASSETS_URL . 'lib/font-awesome/css/font-awesome.css');
JSNHtmlAsset::addStyle(JSNES_PLG_SYSTEM_ASSETS_URL . 'lib/bootstrap/css/jsn.bootstrap.css');
JSNHtmlAsset::addStyle(JSNES_PLG_SYSTEM_ASSETS_URL . 'lib/arrows-nav/css/component.css');
JSNHtmlAsset::addStyle(JSNES_PLG_SYSTEM_ASSETS_URL . 'lib/dot-nav/css/component.css');
JSNHtmlAsset::addStyle(JSNES_PLG_SYSTEM_ASSETS_URL . 'css/flex.css');
JSNHtmlAsset::addStyle(JURI::root(true) . '/media/editors/codemirror/lib/codemirror.min.css');
JSNHtmlAsset::addStyle(JURI::root(true) . '/media/editors/codemirror/lib/addons.min.css');
JSNHtmlAsset::addStyle(JURI::root(true) . '/media/editors/codemirror/addon/hint/show-hint.min.css');
// MAIN CSS
JSNHtmlAsset::addStyle(JSNES_ASSETS_URL . 'slider/css/base.css');
JSNHtmlAsset::addStyle(JSNES_ASSETS_URL . 'slider/css/layout.css');
JSNHtmlAsset::addStyle(JSNES_ASSETS_URL . 'slider/css/theme.css');
JSNHtmlAsset::addStyle(JSNES_ASSETS_URL . 'slider/css/custom.css');
JSNHtmlAsset::addStyle(JSNES_ASSETS_URL . 'slider/css/es-icons.css');
JSNHtmlAsset::addStyle(JSNES_ASSETS_URL . 'css/slider.css');
JSNHtmlAsset::addStyle(JSNES_ASSETS_URL . 'js/3rd-party/noty/animate.css');
// MAIN HTML
echo $this->loadTemplate('layout');
//// VENDOR JS
//JSNHtmlAsset::addScript(JURI::root(true) . '/media/editors/codemirror/lib/codemirror.min.js');
//JSNHtmlAsset::addScript(JURI::root(true) . '/media/editors/codemirror/addon/edit/closebrackets.min.js');
//JSNHtmlAsset::addScript(JURI::root(true) . '/media/editors/codemirror/addon/hint/show-hint.min.js');
//JSNHtmlAsset::addScript(JURI::root(true) . '/media/editors/codemirror/addon/hint/javascript-hint.min.js');
//JSNHtmlAsset::addScript(JURI::root(true) . '/media/editors/codemirror/addon/hint/css-hint.min.js');
//JSNHtmlAsset::addScript(JURI::root(true) . '/media/editors/codemirror/mode/javascript/javascript.min.js');
//JSNHtmlAsset::addScript(JURI::root(true) . '/media/editors/codemirror/mode/css/css.min.js');
//
//JSNHtmlAsset::addScript(JURI::root(true) . '/media/jui/js/jquery.min.js');
//
//JSNHtmlAsset::addScript(JSNES_PLG_SYSTEM_ASSETS_URL . 'lib/bootstrap/js/bootstrap.js');
//
コード例 #23
0
ファイル: view.html.php プロジェクト: NallelyFlores89/basvec
 private function _addAssets()
 {
     JSNHtmlAsset::addStyle(JSN_FRAMEWORK_ASSETS . '/3rd-party/jquery-ui/css/ui-bootstrap/jquery-ui-1.9.0.custom.css');
 }
コード例 #24
0
ファイル: view.raw.php プロジェクト: densem-2013/exikom
 /**
  * Add the libraries css and javascript
  *
  * @return void
  */
 protected function addAssets()
 {
     JSNHtmlAsset::addStyle(JSN_URL_ASSETS . '/3rd-party/jquery-daterangepicker/css/ui.daterangepicker.css');
     echo JSNHtmlAsset::loadScript('uniform/submissions', array(), true);
     JSNHtmlAsset::addStyle('http://fonts.googleapis.com/css?family=Chau+Philomene+One');
 }
コード例 #25
0
ファイル: edit_slider.php プロジェクト: densem-2013/exikom
}
JSNHtmlAsset::addStyle(JSNES_PLG_SYSTEM_ASSETS_URL . 'lib/font-awesome/css/font-awesome.css');
JSNHtmlAsset::addStyle(JSNES_PLG_SYSTEM_ASSETS_URL . 'lib/bootstrap/css/jsn.bootstrap.css');
JSNHtmlAsset::addStyle(JSNES_PLG_SYSTEM_ASSETS_URL . 'lib/select2/select2.min.css');
JSNHtmlAsset::addStyle(JSNES_PLG_SYSTEM_ASSETS_URL . 'css/jsn-es-icons.css');
JSNHtmlAsset::addStyle(JSNES_PLG_SYSTEM_ASSETS_URL . 'css/flex.css');
JSNHtmlAsset::addStyle(JSNES_ASSETS_URL . 'slider/css/theme.dark.css');
JSNHtmlAsset::addStyle(JSNES_ASSETS_URL . 'slider/css/style.base.css');
JSNHtmlAsset::addStyle(JSNES_ASSETS_URL . 'slider/css/style.app.css');
JSNHtmlAsset::addStyle(JSNES_ASSETS_URL . 'slider/css/style.items.css');
JSNHtmlAsset::addStyle(JSNES_ASSETS_URL . 'slider/css/style.inspector.css');
JSNHtmlAsset::addStyle(JSNES_ASSETS_URL . 'slider/css/style.layers.css');
JSNHtmlAsset::addStyle(JSNES_ASSETS_URL . 'slider/css/style.slides.css');
JSNHtmlAsset::addStyle(JSNES_ASSETS_URL . 'slider/css/style.thumbs.css');
JSNHtmlAsset::addStyle(JSNES_ASSETS_URL . 'slider/css/style.toolbar.css');
JSNHtmlAsset::addStyle(JSNES_ASSETS_URL . 'slider/css/style.animation.editor.css');
//3rd party javascript files
JSNHtmlAsset::addScript(JSNES_PLG_SYSTEM_ASSETS_URL . 'js/jsnes_jquery_safe.js');
JSNHtmlAsset::addScript(JSNES_PLG_SYSTEM_ASSETS_URL . 'lib/jquery/jquery.min.js');
JSNHtmlAsset::addScript(JSNES_PLG_SYSTEM_ASSETS_URL . 'lib/underscore/underscore-min.js');
JSNHtmlAsset::addScript(JSNES_PLG_SYSTEM_ASSETS_URL . 'js/jsnes_conflict.js');
JSNHtmlAsset::addScript(JSNES_PLG_SYSTEM_ASSETS_URL . 'lib/backbone/backbone-min.js');
JSNHtmlAsset::addScript(JSNES_PLG_SYSTEM_ASSETS_URL . 'lib/backbone/backbone-nested-models.min.js');
JSNHtmlAsset::addScript(JSNES_PLG_SYSTEM_ASSETS_URL . 'lib/backbone/backbone.undo.js');
JSNHtmlAsset::addScript(JSNES_PLG_SYSTEM_ASSETS_URL . 'lib/jquery-ui/jquery-ui.min.js');
JSNHtmlAsset::addScript(JSNES_PLG_SYSTEM_ASSETS_URL . 'lib/jquery-ui/jquery-ui.touch-punch.js');
JSNHtmlAsset::addScript(JSNES_PLG_SYSTEM_ASSETS_URL . 'lib/jquery-ui/jquery-ui.resizable.snap.ext.js');
JSNHtmlAsset::addScript(JSNES_PLG_SYSTEM_ASSETS_URL . 'lib/prefixfree/prefixfree.min.js');
JSNHtmlAsset::addScript(JSNES_PLG_SYSTEM_ASSETS_URL . 'lib/jquery-keyframes/jquery.keyframes.js');
JSNHtmlAsset::addScript(JSNES_PLG_SYSTEM_ASSETS_URL . 'lib/tinyColorPicker/colors.js');
JSNHtmlAsset::addScript(JSNES_PLG_SYSTEM_ASSETS_URL . 'lib/tinyColorPicker/jqColorPicker.js');
コード例 #26
0
 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');
     JSNHtmlAsset::addScript(JSNES_ASSETS_URL . 'slider/js/addon/view.js');
     JSNHtmlAsset::addScript(JSNES_ASSETS_URL . 'slider/js/addon/utils.js');
     JSNHtmlAsset::addScript(JSNES_ASSETS_URL . 'slider/js/addon/inputs.js');
     JSNHtmlAsset::addScript(JSNES_ASSETS_URL . 'slider/js/model/item.js');
     JSNHtmlAsset::addScript(JSNES_ASSETS_URL . 'slider/js/model/slide.js');
     JSNHtmlAsset::addScript(JSNES_ASSETS_URL . 'slider/js/model/slider.js');
     //        JSNHtmlAsset::addScript(JSNES_ASSETS_URL . 'slider/js/view/import-export.js');
 }
コード例 #27
0
ファイル: view.html.php プロジェクト: NallelyFlores89/basvec
 /**
  * Add the libraries css and javascript
  *
  * @return void
  *
  * @since    1.6
  */
 protected function addAssets()
 {
     // Initialize variables
     $config = JSNConfigHelper::get();
     $jUri = JURI::getInstance();
     JSNHtmlAsset::addStyle(JSN_URL_ASSETS . '/3rd-party/jquery-colorpicker/css/colorpicker.css');
     JSNHtmlAsset::addStyle(JSN_URL_ASSETS . '/3rd-party/jquery-gradientpicker/jquery.gradientPicker.css');
     JSNHtmlAsset::addStyle(JSN_URL_ASSETS . '/joomlashine/css/jsn-advanced-parameters.css');
     JSNHtmlAsset::addStyle(JSN_URL_ASSETS . '/3rd-party/jquery-select2/select2.css');
     JSNHtmlAsset::addStyle(JSN_URL_ASSETS . '/3rd-party/codemirror/lib/codemirror.css');
     $device = "mobilize";
     $links = ($links = $jUri->getScheme()) . (empty($links) ? '' : '://');
     if (substr($config->get("link_{$device}"), 0, 1) == '/') {
         $links .= $jUri->getHost() . $config->get("link_{$device}");
     } else {
         $links .= $config->get("link_{$device}") . JURI::root(true);
     }
     // Setup text translation
     $arrayTranslated = array('JSN_MOBILIZE_SWITCHER_TITLE', 'JSN_MOBILIZE_YOU_CAN_NOT_HIDE_THE_COPYLINK', 'JSN_MOBILIZE_SWITCHER_SETTINGS', 'JSN_MOBILIZE_CANCEL', 'JSN_MOBILIZE_SAVE', 'JSN_MOBILIZE_ALIGNMENT', 'JSN_MOBILIZE_SELECT_THEME', 'JSN_MOBILIZE_SELECT', 'JSN_MOBILIZE_CLEAR', 'JSN_MOBILIZE_IMAGE_ALT', 'JSN_MOBILIZE_IMAGE_URL', 'JSN_MOBILIZE_ENABLE_MOBILIZE_MENU_LINK', 'JSN_MOBILIZE_ENABLE_MOBILIZE_SEARCH_LINK', 'JSN_MOBILIZE_ENABLE_MOBILIZE_LOGIN_LINK', 'JSN_MOBILIZE_CHANGE', 'JSN_MOBILIZE_CLICK_SELECT', 'JSN_MOBILIZE_TITLE_SMARTPHONE', 'JSN_MOBILIZE_TITLE_TABLET', 'JSN_MOBILIZE_TYPE_POSITION', 'JSN_MOBILIZE_TYPE_MODULE', 'JSN_MOBILIZE_SELECT_MENU', 'JSN_MOBILIZE_SELECT_MODULE', 'JSN_MOBILIZE_SELECTED_MODULE', 'JSN_MOBILIZE_CLOSE', 'JSN_MOBILIZE_SELECT_LOGO', 'JSN_MOBILIZE_SELECT_STYLE', 'JSN_MOBILIZE_SELECT_POSITION', 'JSN_MOBILIZE_SELECT_MODULE', 'JSN_MOBILIZE_ENABLE_MOBILIZE_SWITCHER_LINK', 'JSN_MOBILIZE_ADD_ELEMENT', 'JSN_MOBILIZE_ADD_MODULE', 'JSN_MOBILIZE_ADD_POSITION', 'JSN_MOBILIZE_IMAGE_FILE', 'JSN_MOBILIZE_YES', 'JSN_MOBILIZE_NO', 'JSN_MOBILIZE_CONFIRM_LOAD_STYLE', 'JSN_MOBILIZE_SWITCH_TO_WEB_UI_FOR_MOBILIZE', 'JSN_MOBILIZE_STYLE_SETTINGS_IS_AVAILABLE_ONLY_IN_PRO_EDITION', 'JSN_MOBILIZE_UPGRADE_NOW', 'JSN_MOBILIZE_LINK_SOCIAL', 'JSN_MOBILIZE_DELETE', 'JSN_MOBILIZE_BROWSER', 'JSN_MOBILIZE_UPLOAD', 'JSN_MOBILIZE_UPGRADE_EDITION_TITLE', 'JSN_MOBILIZE_UPGRADE_EDITION', 'JSN_MOBILIZE_ADD_ELEMENT_IS_AVAILABLE_ONLY_IN_PRO_EDITION');
     // Initialize Javascript
     $edition = defined('JSN_MOBILIZE_EDITION') ? JSN_MOBILIZE_EDITION : "free";
     echo JSNHtmlAsset::loadScript('mobilize/profile', array('editions' => $edition, 'pathRoot' => JURI::root(), 'defaultTemplate' => $this->_defaultTempateSite, 'language' => JSNUtilsLanguage::getTranslated($arrayTranslated), 'listMenu' => $this->_menuType, 'listModule' => $this->_Modules, 'mobilizeLink' => $links, 'configuration' => isset($this->_items['configuration']) ? $this->_items['configuration'] : ''), true);
     JSNMobilizeHelper::loadAssets();
 }
コード例 #28
0
ファイル: default.php プロジェクト: jovielarmario/albay_cms
<?php

/**
 * @version    $Id$
 * @package    JSN_EasySlider
 * @author     JoomlaShine Team <*****@*****.**>
 * @copyright  Copyright (C) 2012 JoomlaShine.com. All Rights Reserved.
 * @license    GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Websites: http://www.joomlashine.com
 * Technical Support:  Feedback - http://www.joomlashine.com/contact-us/get-support.html
 */
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
JSNHtmlAsset::addStyle(JSNES_PLG_SYSTEM_ASSETS_URL . 'lib/font-awesome/css/font-awesome.css');
// Display messages
if (JFactory::getApplication()->input->getInt('ajax') != 1) {
    echo $this->msgs;
}
?>
	<div id="jsn-page-list" class="jsn-master jsn-page-list jsn-easyslider-hide">
		<div class="jsn-bootstrap">
			<form class="form-inline" action="<?php 
echo JRoute::_('index.php?option=com_easyslider&view=sliders');
?>
"
			      method="post" name="adminForm" id="adminForm">
				<?php 
$pathRootImage = JURI::root();
$JSNItemList = new JSNItemlistGenerator($this->getModel());
$JSNItemList->addColumn('', 'slider_id', 'checkbox', array('checkall' => true, 'name' => 'cid[]', 'class' => 'jsn-column-select', 'onclick' => 'Joomla.isChecked(this.checked);'));
コード例 #29
0
ファイル: pagebuilder.php プロジェクト: densem-2013/exikom
 /**
  * Display the button
  *
  * @return
  */
 function onDisplay($name)
 {
     $app = JFactory::getApplication();
     if ($app->isSite()) {
         return;
     }
     include_once JPATH_ROOT . '/administrator/components/com_pagebuilder/helpers/articles.php';
     $listId = JSNPagebuilderHelpersArticles::getListArticleUedPagebuilderFromPlugin();
     $pbTotal = JSNPagebuilderHelpersArticles::getCountArticleUsedPageBuilderFromPlugin();
     JSNPagebuilderHelpersArticles::updateArticleUsedPageBuilderToPlugin();
     //Check if JoomlaShine extension framework is enabled?
     global $id, $option, $framework, $conf, $supported_list, $params, $random_id;
     // Check if JoomlaShine extension framework is enabled?
     $framework = JTable::getInstance('Extension');
     $framework->load(array('element' => 'jsnframework', 'type' => 'plugin', 'folder' => 'system'));
     $isInstalledPbExtension = false;
     $option = JRequest::getVar('option');
     $com_advancedmodules = JSNPagebuilderHelpersPagebuilder::checkComponentEnabled('com_advancedmodules') ? array('com_advancedmodules') : '';
     $flexiContent = JSNPagebuilderHelpersPagebuilder::checkComponentEnabled('com_flexicontent') ? array('com_flexicontent') : '';
     $supported_list = array('com_content', 'com_modules');
     if ($com_advancedmodules != '') {
         $supported_list = array_merge($supported_list, $com_advancedmodules);
     }
     if ($flexiContent != '') {
         $supported_list = array_merge($supported_list, $flexiContent);
     }
     if (isset($params)) {
         if ($params->extension_support != '') {
             $supported_list = json_decode($params->extension_support);
         }
     }
     $installedPbExtensions = JSNPagebuilderHelpersExtensions::getPbExtensions();
     if (count($installedPbExtensions)) {
         foreach ($installedPbExtensions as $installedPbExtension) {
             if ($option == "com_" . $installedPbExtension->element) {
                 if (!$installedPbExtension->enabled) {
                     $app->enqueueMessage(sprintf('Please enable the %s plugin before using. How to enable it, click <a href="%s" target="_blank">here</a>', 'JSN PageBuilder ' . strtoupper($installedPbExtension->element) . ' element', 'index.php?option=com_pagebuilder&view=configuration&s=maintainence&g=extensions'), 'warning');
                     return;
                 } else {
                     $isInstalledPbExtension = true;
                 }
                 break;
             }
         }
     }
     if ($isInstalledPbExtension) {
         if (!in_array($option, $supported_list)) {
             $app->enqueueMessage(sprintf('Please enable the JSN PageBuilder %s Extention Support before using. How to enable it, click <a href="%s" target="_blank">here</a>', strtoupper($installedPbExtension->element), 'index.php?option=com_pagebuilder&view=configuration&s=configuration&g=msgs'), 'warning');
             return;
         }
     }
     if ($framework->extension_id && in_array($option, $supported_list)) {
         // Get PageBuilder configuration
         if (!in_array($option, $supported_list)) {
             $isInstalled = JSNPagebuilderHelpersExtensions::checkInstalledPlugin(str_replace('com_', '', $option));
             if (!$isInstalled['isInstalled']) {
                 return;
             }
         }
         // Check if it's enabled or not
         $isEnabled = $params->get('enable_pagebuilder', 1);
         if ($isEnabled) {
             $conf = JFactory::getConfig();
             $editor = $conf->get('editor');
             // Inlcude the entry js file.
             JSNHtmlAsset::addScript(JSNPB_ADMIN_URL . '/assets/js/joomlashine.noconflict.js');
             JSNHtmlAsset::addScript(JSNPB_PLG_SYSTEM_ASSETS_URL . '3rd-party/jquery-ui/js/jquery-ui-1.10.3.custom.js');
             JSNHtmlAsset::addScript(JSNPB_PLG_SYSTEM_ASSETS_URL . '3rd-party/jquery-livequery/jquery.livequery.min.js');
             JSNHtmlAsset::addScript(JSNPB_ADMIN_URL . '/assets/js/builder-layout.js');
             JSNHtmlAsset::addScript(JSNPB_ADMIN_URL . '/assets/joomlashine/js/jsn-modal.js');
             JSNHtmlAsset::addScript(JSNPB_ADMIN_URL . '/assets/js/elements-lang.js');
             JSNHtmlAsset::addScript(JSNPB_ADMIN_URL . '/assets/js/jquery.alphanumeric/jquery.alphanumeric.js');
             JSNHtmlAsset::addScript(JSNPB_ADMIN_URL . '/assets/js/shortcodesetting/settings-handler.js');
             JSNHtmlAsset::addScript(JSNPB_ADMIN_URL . '/assets/js/handle.js');
             // Include supoported editor script
             switch ($editor) {
                 case 'codemirror':
                     JSNHtmlAsset::addScript(JURI::root(true) . '/plugins/editors-xtd/pagebuilder/assets/js/supported-editor/codemirror.js');
                     break;
                 case 'tinymce':
                     JSNHtmlAsset::addScript(JURI::root(true) . '/plugins/editors-xtd/pagebuilder/assets/js/supported-editor/tiny-mce.js');
                     break;
                 case 'jce':
                     JSNHtmlAsset::addScript(JURI::root(true) . '/plugins/editors-xtd/pagebuilder/assets/js/supported-editor/jce.js');
                     break;
                 case 'jckeditor':
                     JSNHtmlAsset::addScript(JURI::root(true) . '/plugins/editors-xtd/pagebuilder/assets/js/supported-editor/jckeditor.js');
                     break;
                 case 'ckeditor':
                     JSNHtmlAsset::addScript(JURI::root(true) . '/plugins/editors-xtd/pagebuilder/assets/js/supported-editor/ckeditor.js');
                     break;
                 case 'artofeditor':
                     JSNHtmlAsset::addScript(JURI::root(true) . '/plugins/editors-xtd/pagebuilder/assets/js/supported-editor/artofeditor.js');
                     break;
                 case 'arkeditor':
                     JSNHtmlAsset::addScript(JURI::root(true) . '/plugins/editors-xtd/pagebuilder/assets/js/supported-editor/arkeditor.js');
                     break;
                 default:
                     JSNHtmlAsset::addScript(JURI::root(true) . '/plugins/editors-xtd/pagebuilder/assets/js/supported-editor/default.js');
                     break;
             }
             // Generate random string to assign to switcher button
             $random_id = JSNPagebuilderHelpersShortcode::generateRandomString();
             JSNHtmlAsset::addScript(JSNPB_ADMIN_URL . '/assets/js/entry.js');
             $js = "\n\t\t\t\t\tvar Pb_Ajax\t= {};\n\n\t\t\t\t\tvar JSNPbParams = {pbstrings:{}};\n\t\t\t\t\tJSNPbParams.rootUrl = '" . JUri::root() . "';\n\t\t\t\t\tJSNPbParams.pbstrings.COPY = '" . JText::_('copy') . "';\n\t\t\t\t\tJSNPbParams.pbstrings.EMPTY = '" . JText::_('(Untitled)') . "';\n\t\t\t\t\tJSNPbParams.pbstrings.ALERT_DELETE_ROW = '" . JText::_('Are you sure you want to delete the whole row including all elements it contains?') . "';\n\t\t\t\t\tJSNPbParams.pbstrings.ALERT_DELETE_COLUMN = '" . JText::_('Are you sure you want to delete the whole column including all elements it contains?') . "';\n\t\t\t\t\tJSNPbParams.pbstrings.ALERT_DELETE_ELEMENT = '" . JText::_('Are you sure you want to delete the element?') . "';\n\t\t\t\t\tvar pb;\n\t\t\t\t\tvar pbContentStatus_{$random_id}\t= 'normal';\n\n\t\t\t\t\t// Set global pagebuilder instance\n\t\t\t\t\tvar jsnpb_{$random_id};\n\n\t\t\t\t\t// Method to switch between Joomla editor and PageBuilder\n\t\t\t\t\tfunction switchPagebuilder(id, status){\n\t\t\t\t\t\t(function (\$){\n\t\t\t\t\t\t\tif (status == 'on') {\n\t\t\t\t\t\t\t\tjsnpb_{$random_id}\t= new \$.JSNPageBuilder(id);\n\t\t\t\t\t\t\t\tpbContentStatus_{$random_id}  = 'pb';\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tjsnpb_{$random_id}.transformToSource();\n\t\t\t\t\t\t\t\tpbContentStatus_{$random_id}  = 'normal';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})(JoomlaShine.jQuery);\n\t\t\t\t\t}\n\n\t\t\t\t\t// Entry button group structure which will be appended to the aditor\n\t\t\t\t\tvar pbEntryButtons\t= '<div class=\"jsn-form-bar pb-switcher-group\">'\n\t\t\t\t\t\t\t+ '<div id=\"pb-editor-switcher\" class=\"btn-group\">'\n\t\t\t\t\t\t\t+\t'<button type=\"button\" class=\"switchmode-button pb-off btn active btn-success\" id=\"pagebuilder-off-{$random_id}\" >Default Editor</button>'\n\t\t\t\t\t\t\t+\t'<button type=\"button\" class=\"switchmode-button pb-on btn\" id=\"pagebuilder-on-{$random_id}\" >PageBuilder</button>'\n\t\t\t\t\t\t\t+'</div>'\n\t\t\t\t\t\t\t+\t'<input type=\"hidden\" id=\"jform_pb_total\" name=\"jform_pb_total\" value=\"{$pbTotal}\">'\n\t\t\t\t\t\t\t+\t'<input type=\"hidden\" id=\"jform_content_id\" name=\"jform_content_id\" value=\"{$id}\">'\n\t\t\t\t\t\t\t+\t'<input type=\"hidden\" id=\"jform_list_id\" name=\"jform_list_id\" value=\"{$listId}\">'\n\t\t\t\t\t\t\t+'<div class=\"pull-right\" id=\"top-btn-actions\">'\n                                +'<!--<button class=\"btn btn-default page-custom-css\" onclick=\"return false;\">Custom CSS</button>-->'\n                                +   '<input type=\"hidden\" id=\"pb_content_id\" name=\"pb_content_id\" value=\"{$id}\">'\n                            +'</div>'\n\t\t\t\t\t\t+'</div>';\n\n\t\t\t\t\t(function (\$){\n\t\t\t\t\t\t\$(window).load(function (){\n\t\t\t\t\t\t\$('body').find('ul#myTabTabs li:first').on('click', function(){\n\t\t\t\t\t\t\t\$('.switchmode-button.pb-off').click();\n\t\t\t\t\t\t});\n\t\t\t\t\t\tif (\$('#jform_module').length)\n\t\t\t\t\t\t   \t\t{\n\t\t\t\t\t\t\t\t\tif (\$('#jform_module').val() != 'mod_custom')\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t \treturn false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t   }\n\t\t\t\t\t\t\tvar editorHelper_{$random_id}\t= new \$.JSNPbEditorHelper();\n\t\t\t\t\t\t\tvar buttonGroups\t= editorHelper_{$random_id}.initEntryButtons('" . $name . "', pbEntryButtons);\n\n\t\t\t\t\t\t\t//Auto switch to PageBuilder if shortcode structure detected\n\t\t\t\t\t\t\tvar _content\t= \$('#" . $name . "').val();\n\t\t\t\t\t\t\tif (_content.indexOf('[pb_row') >= 0) {\n\t\t\t\t\t\t\t\t//setTimeout(function (){\n\t\t\t\t\t\t\t\t\t\$('.switchmode-button.pb-on', buttonGroups).click();\n\t\t\t\t\t\t\t\t//}, 500);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t})(JoomlaShine.jQuery);\n\t\t\t\t";
             JSNHtmlAsset::addInlineScript($js);
             JSNHtmlAsset::addStyle(JSNPB_FRAMEWORK_ASSETS . '/3rd-party/jquery-ui/css/ui-bootstrap/jquery-ui-1.9.0.custom.css');
             JSNHtmlAsset::addStyle(JSNPB_FRAMEWORK_ASSETS . '/joomlashine/css/jsn-gui.css');
             JSNHtmlAsset::addStyle(JSNPB_PLG_SYSTEM_ASSETS_URL . 'css/pagebuilder.css');
             JSNHtmlAsset::addStyle(JSNPB_ADMIN_URL . '/assets/css/jsn-element-font.css');
             JSNHtmlAsset::addStyle(JSNPB_FRAMEWORK_ASSETS . '/joomlashine/css/jsn-advanced-parameters.css');
             // for text,
             JSNHtmlAsset::addStyle(JSNPB_ADMIN_URL . '/assets/css/settings.css');
         }
     }
 }
コード例 #30
0
ファイル: view.html.php プロジェクト: jdrzaic/joomla-dummy
 /**
  * Add nesscessary JS & CSS files
  *
  * @return void
  */
 private function _addAssets()
 {
     $objJSNMedia = JSNISFactory::getObj('classes.jsn_is_media');
     !class_exists('JSNBaseHelper') or JSNBaseHelper::loadAssets();
     JSNHtmlAsset::addStyle(JSN_URL_ASSETS . '/joomlashine/css/jsn-view-launchpad.css');
     $objJSNMedia->addStyleSheet(JURI::root(true) . '/administrator/components/com_imageshow/assets/css/imageshow.css');
     $objJSNMedia->addStyleSheet(JURI::root(true) . '/administrator/components/com_imageshow/assets/css/showlist.css');
     $objJSNMedia->addStyleSheet(JURI::root(true) . '/administrator/components/com_imageshow/assets/css/cpanel.css');
     $objJSNMedia->addScript(JURI::root(true) . '/administrator/components/com_imageshow/assets/js/joomlashine/imageshow.js');
     //$objJSNMedia->addScript(JURI::root(true) . '/administrator/components/com_imageshow/assets/js/zeroclipboard/ZeroClipboard.js');
     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-ui/js/jquery-ui-1.9.0.custom.min.js');
     $objJSNMedia->addScript(JURI::root(true) . '/administrator/components/com_imageshow/assets/js/joomlashine/window.js');
     JSNHtmlAsset::loadScript('imageshow/joomlashine/launchpad', array('pathRoot' => JURI::root(), 'language' => JSNUtilsLanguage::getTranslated(array('JSN_IMAGESHOW_OK', 'JSN_IMAGESHOW_CLOSE', 'CPANEL_PLUGIN_SYNTAX_DETAILS', 'CPANEL_GO', 'CPANEL_EDIT_SELECTED_SHOWCASE', 'CPANEL_YOU_MUST_SELECT_SOME_SHOWCASE_TO_EDIT', 'CPANEL_EDIT_SELECTED_SHOWLIST', 'CPANEL_YOU_MUST_SELECT_SOME_SHOWLIST_TO_EDIT', 'JSN_IMAGESHOW_SAVE'))));
 }