/** * Generate html for PageBuilder layout. * * @return string */ public function html() { $helper = new JSNPagebuilderHelpersBuilder(); JSNHtmlAsset::addScript(JSNPB_ADMIN_URL . '/assets/js/elements-lang.js'); JSNHtmlAsset::addScript(JSNPB_ADMIN_URL . '/assets/js/handle.js'); JSNHtmlAsset::addScript(JSNPB_ADMIN_URL . '/assets/js/shortcodesetting/settings-handler.js'); // Genrate pagebuilder element template. $helper->generateElementColumnTemplate(); $helper->generateElementRowTemplate(); $source_content = ''; $data = array(); $source_content = $_POST['form_data']; // Remove all p tags which auto added by the editor $source_content = JSNPagebuilderHelpersShortcode::removeAutop($source_content); $source_content = html_entity_decode($source_content, ENT_COMPAT, 'UTF-8'); $html[] = '<link rel="stylesheet" href="' . JSNPB_ADMIN_URL . '/assets/css/jsn-element-font.css' . '" type="text/css" />'; $html[] = '<link rel="stylesheet" href="' . JSNPB_ADMIN_URL . '/assets/css/pb-layout-font.css' . '" type="text/css" />'; $html[] = '<div id="form-container" class="jsn-layout jsn-section-content">'; if ($source_content) { //$shortcodeTags = $helper->getShortcodeTags(); $html[] = $helper->generateShortCode($source_content); } else { $html[] = $helper->getRowStructure(); } $html[] = '<a href="javascript:void(0);" id="jsn-add-container" class="jsn-add-more jsn-add-more-row"><i class="icon-plus"></i> Add Row </a>'; /** * Show thumbnail for default layouts */ $html[] = '<div class="row-fluid pb-layout-thumbs">'; $layouts = JSNPBShortcodeRow::$layouts; foreach ($layouts as $columns) { $columns_name = implode('x', $columns); $icon_class = implode('-', $columns); $data_columns = implode(',', $columns); $icon_class = 'pb-layout-' . $icon_class; $icon = '<i class="' . $icon_class . '"></i>'; $html[] = '<div class="thumb-wrapper" data-columns="' . $data_columns . '" title="' . $columns_name . '">' . $icon . '</div>'; } $html[] = '</div>'; $html[] = JSNHtmlGenerate::footer(array(), false); $html[] = '</div>'; $html[] = $helper->getAddShortcodesPopup(); if (defined("JSN_PAGEBUILDER_EDITION")) { if (strtolower(JSN_PAGEBUILDER_EDITION) == "free") { if (file_exists(JPATH_ROOT . '/administrator/components/com_pagebuilder/helpers/articles.php')) { include_once JPATH_ROOT . '/administrator/components/com_pagebuilder/helpers/articles.php'; $pbTotal = JSNPagebuilderHelpersArticles::getCountArticleUsedPageBuilderFromPlugin(); if ($pbTotal >= 5 && !JFactory::getApplication()->input->getInt('article_id') && JFactory::getApplication()->input->getInt('is_com_modules') != 1) { $html = array(); $html[] = '<div class="jsn-bootstrap3"><div class="pb-element-container"><p class="jsn-bglabel">You have reached 5 pages limit of using JSN PageBuilder.</p><p style="font-size: 20px;text-align: center;color: #d3d3d3;">Please to upgrade <a target=\'_blank\' href=\'' . JSN_PAGEBUILDER_INFO_LINK . '\'>Pro version</a> or remove your old pages that used JSN PageBuilder.</p><div style="text-align: center"><a href="index.php?option=com_pagebuilder&view=upgrade" target="_blank" class="btn-primary btn-large btn"> Upgrade </a></div></div></div>'; } } } } print_r(implode("\n", $html)); exit; }
/** * Get the button. * * @return string */ public function fetchButton() { // Build options $options[] = array('title' => JText::_('JSN_MOBILIZE_SUB_MENU_MOBILIZATION_TEXT'), 'link' => 'index.php?option=com_mobilize&view=edit', 'class' => 'parent primary', 'icon' => 'jsn-icon24 icon-finder'); $options[] = array('class' => 'separator'); $options[] = array('title' => JText::_('JSN_MOBILIZE_SUB_MENU_CONFIGURARTION_TEXT'), 'link' => 'index.php?option=com_mobilize&view=config'); $options[] = array('title' => JText::_('JSN_MOBILIZE_SUB_MENU_ABOUT_TEXT'), 'link' => 'index.php?option=com_mobilize&view=about'); // Generate HTML code for sub-menu $html = JSNHtmlGenerate::menuToolbar($options); return $html; }
/** * Get the button. * * @return string */ public function fetchButton() { $options[] = array('title' => JText::_('JSN_UNIFORM_BLANK_FORM'), 'link' => 'index.php?option=com_uniform&view=form&layout=edit', 'class' => 'parent primary', 'icon' => 'jsn-icon-finder'); $options[] = array('title' => JText::_('JSN_UNIFORM_CONTACT_US_FORM'), 'link' => 'index.php?option=com_uniform&view=form&layout=edit&form=Contact Us', 'class' => 'parent primary', 'icon' => 'jsn-icon-finder'); $options[] = array('title' => JText::_('JSN_UNIFORM_CUSTOMER_FEEDBACK_FORM'), 'link' => 'index.php?option=com_uniform&view=form&layout=edit&form=Customer Feedback', 'class' => 'parent primary', 'icon' => 'jsn-icon-finder'); $options[] = array('title' => JText::_('JSN_UNIFORM_JOB_APPLICATION_FORM'), 'link' => 'index.php?option=com_uniform&view=form&layout=edit&form=Job Application', 'class' => 'parent primary', 'icon' => 'jsn-icon-finder'); $options[] = array('title' => JText::_('JSN_UNIFORM_EVENT_REGISTRATION'), 'link' => 'index.php?option=com_uniform&view=form&layout=edit&form=Event Registration', 'class' => 'parent primary', 'icon' => 'jsn-icon-finder'); $options[] = array('title' => JText::_('JSN_UNIFORM_VOTING_FORM'), 'link' => 'index.php?option=com_uniform&view=form&layout=edit&form=Voting Form', 'class' => 'parent primary', 'icon' => 'jsn-icon-finder'); // Generate HTML code for sub-menu $html = JSNHtmlGenerate::menuToolbar($options, JText::_('JTOOLBAR_NEW'), 'icon-32-new'); return $html; }
/** * Get the button. * * @return string */ public function fetchButton() { $subMenuItemLists = JSNUniformHelper::getForms(5); // Build options // $options[] = array( // 'title' => JText::_('JSN_UNIFORM_SUBMENU_LAUNCHPAD'), // 'link' => 'index.php?option=com_uniform', // 'class' => 'parent primary', // 'icon' => 'icon-off' // ); $options[] = array('title' => JText::_('JSN_UNIFORM_SUBMENU_FORMS'), 'link' => 'index.php?option=com_uniform&view=forms', 'class' => 'parent primary', 'sub_menu_link' => 'index.php?option=com_uniform&view=form&task=form.edit&form_id={$form_id}', 'sub_menu_field_title' => 'form_title', 'sub_menu_link_add_title' => 'Create new forms', 'sub_menu_link_add' => 'index.php?option=com_uniform&view=form&layout=edit', 'data_sub_menu' => $subMenuItemLists, 'icon' => 'jsn-icon-finder'); $options[] = array('title' => JText::_('JSN_UNIFORM_SUBMENU_SUBMISSION'), 'link' => 'index.php?option=com_uniform&view=submissions', 'class' => 'parent primary', 'icon' => 'jsn-icon-file'); $options[] = array('class' => 'separator'); $options[] = array('title' => JText::_('JSN_UNIFORM_SUBMENU_CONFIGURATION'), 'link' => 'index.php?option=com_uniform&view=configuration'); $options[] = array('title' => JText::_('JSN_UNIFORM_SUBMENU_ABOUT'), 'link' => 'index.php?option=com_uniform&view=about'); // Generate HTML code for sub-menu $html = JSNHtmlGenerate::menuToolbar($options); return $html; }
<?php /** * @version $Id$ * @package JSN_PageBuilder * @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') || die('Restricted access'); // Display messages if (JFactory::getApplication()->input->getInt('ajax') != 1) { echo $this->msgs; } // Display config form JSNConfigHelper::render($this->config); $products = JSNPagebuilderHelpersExtensions::getDependentExtensions(); // Display footer JSNHtmlGenerate::footer($products);
?> </p> <div id="jsn-clipboard"> <span class="jsn-clipboard-input"> <input type="text" value="" name="plugin" class="input-xlarge" id="syntax-plugin"> <span class="jsn-clipboard-checkicon icon-ok"></span> </span> <span id="jsn-clipboard-container"> <button class="btn" id="jsn-clipboard-button">Copy to clipboard</button> </span> </div> </div> </div> <?php echo $this->_form->getInput('form_layout'); ?> <input type="hidden" name="option" value="com_uniform" /> <input type="hidden" name="redirect_url" id="redirectUrl" value="" /> <input type="hidden" name="redirect_url_form" id="redirectUrlForm" value="" /> <input type="hidden" name="open_article" id="open-article" value="" /> <input type="hidden" name="task" id="jsn-task" value="" /> <?php echo JHtml::_('form.token'); ?> </form> </div> <?php if (JFactory::getApplication()->input->getVar('tmpl', '') != 'component') { JSNHtmlGenerate::footer(); }
<?php /** * @version $Id: default.php 16077 2012-09-17 02:30:25Z giangnd $ * @package JSN.ImageShow * @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'); // Display messages if (JRequest::getInt('ajax') != 1) { echo $this->msgs; } $objJSNUtils = JSNISFactory::getObj('classes.jsn_is_utils'); $products = $objJSNUtils->getCurrentElementsOfImageShow(); // Display about JSNHtmlGenerate::about($products);
<?php /** * @version $Id: default.php 19014 2012-11-28 04:48:56Z thailv $ * @package JSNUniform * @subpackage Abouts * @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'); // Display messages if (JFactory::getApplication()->input->getInt('ajax') != 1) { echo $this->msgs; } // Display about JSNHtmlGenerate::about();
/** * Setup menu button for Joomla 3.0. * * @return void */ public static function menuToolbar() { $subMenuItemLists = JSNMobilizeHelper::getProfiles(5); // Build options $options[] = array('title' => JText::_('JSN_MOBILIZE_SUBMENU_PROFILES'), 'link' => 'index.php?option=com_mobilize&view=profiles', 'class' => 'parent primary', 'sub_menu_link' => 'index.php?option=com_mobilize&view=profile&task=profile.edit&profile_id={$profile_id}', 'sub_menu_field_title' => 'profile_title', 'sub_menu_link_add_title' => 'Create new profiles', 'sub_menu_link_add' => 'index.php?option=com_mobilize&view=profile&layout=edit', 'data_sub_menu' => $subMenuItemLists, 'icon' => 'jsn-icon-finder'); $options[] = array('class' => 'separator'); $options[] = array('title' => JText::_('JSN_MOBILIZE_SUBMENU_CONFIGURATION'), 'link' => 'index.php?option=com_mobilize&view=configuration'); $options[] = array('title' => JText::_('JSN_MOBILIZE_SUBMENU_ABOUT'), 'link' => 'index.php?option=com_mobilize&view=about'); // Generate HTML code for sub-menu $html = JSNHtmlGenerate::menuToolbar($options); return $html; }