* @copyright Copyright (c) 2010 - 2015 JoomShaper * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later */ //no direct accees defined('_JEXEC') or die('resticted aceess'); $doc = JFactory::getDocument(); JHtml::_('jquery.framework'); JHtml::_('bootstrap.framework'); //Force load Bootstrap unset($doc->_scripts[$this->baseurl . '/media/jui/js/bootstrap.min.js']); // Remove joomla core bootstrap //Load Helix $helix3_path = JPATH_PLUGINS . '/system/helix3/core/helix3.php'; if (file_exists($helix3_path)) { require_once $helix3_path; $this->helix3 = helix3::getInstance(); } else { die('Please install and activate helix plugin'); } //Coming Soon if ($this->helix3->getParam('comingsoon_mode')) { header("Location: " . $this->baseUrl . "?tmpl=comingsoon"); } //Class Classes $body_classes = ''; if ($this->helix3->getParam('sticky_header')) { $body_classes .= ' sticky-header'; } $body_classes .= $this->helix3->getParam('boxed_layout', 0) ? ' layout-boxed' : ' layout-fluid'; //Body Background Image if ($bg_image = $this->helix3->getParam('body_bg_image')) {
* @subpackage Layout * * @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; // JLayout for standard handling of the edit modules: $moduleHtml =& $displayData['moduleHtml']; $mod = $displayData['module']; $position = $displayData['position']; $menusEditing = $displayData['menusediting']; $redirectUri = '&return=' . urlencode(base64_encode(JUri::getInstance()->toString())); if (preg_match('/<(?:div|span|nav|ul|ol|h\\d) [^>]*class="[^"]* jmoddiv"/', $moduleHtml)) { // Module has already module edit button: return; } // Add css class jmoddiv and data attributes for module-editing URL and for the tooltip: $editUrl = JUri::base() . 'index.php?option=com_config&controller=config.display.modules&id=' . (int) $mod->id . $redirectUri; // Add class, editing URL and tooltip, and if module of type menu, also the tooltip for editing the menu item: $count = 0; $moduleHtml = preg_replace('/^(\\s*<(?:div|span|nav|ul|ol|h\\d) [^>]*class="[^"]*)"/', '\\1 jmoddiv" data-jmodediturl="' . $editUrl . '" data-jmodtip="' . JHtml::tooltipText(JText::_('JLIB_HTML_EDIT_MODULE'), htmlspecialchars($mod->title) . '<br />' . sprintf(JText::_('JLIB_HTML_EDIT_MODULE_IN_POSITION'), htmlspecialchars($position)), 0) . '"' . ($menusEditing && $mod->module == 'mod_menu' ? '" data-jmenuedittip="' . JHtml::tooltipText('JLIB_HTML_EDIT_MENU_ITEM', 'JLIB_HTML_EDIT_MENU_ITEM_ID') . '"' : ''), $moduleHtml, 1, $count); if ($count) { // Load once booststrap tooltip and add stylesheet and javascript to head: //JHtml::_('bootstrap.tooltip'); //JHtml::_('bootstrap.popover'); JHtml::_('stylesheet', 'system/frontediting.css', array(), true); JHtml::_('script', 'system/frontediting.js', false, true); //Helix3 helix3::addLess('frontend-edit', 'frontend-edit'); helix3::addJS('frontend-edit.js'); }