__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php /** * @package Helix_Ultimate_Framework * @author JoomShaper <[email protected]> * @copyright Copyright (c) 2010 - 2021 JoomShaper * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or Later */ use HelixUltimate\Framework\Platform\Helper; use Joomla\CMS\Factory; use Joomla\CMS\Uri\Uri; use Joomla\CMS\Form\FormField; use Joomla\CMS\Filesystem\Folder; defined('_JEXEC') or die(); /** * Form field for Helix headers. * * @since 1.0.0 */ class JFormFieldHelixOffcanvas extends FormField { /** * Field type * * @var string $type * @since 1.0.0 */ protected $type = 'HelixOffcanvas'; /** * Override getInput function form FormField * * @return string Field HTML string * @since 1.0.0 */ protected function getInput() { $input = Factory::getApplication()->input; $id = $input->get('id', 0, 'INT'); $template = Helper::loadTemplateData(); $templateName = $template->template; $offCanvasDir = JPATH_ROOT . '/templates/' . $templateName . '/offcanvas'; $thumb_url = Uri::root() . 'templates/' . $templateName . '/offcanvas'; $html = ''; if (Folder::exists($offCanvasDir)) { $offCanvases = Folder::folders($offCanvasDir); if (!empty($offCanvases)) { $html = '<div class="hu-predefined-offcanvas">'; $html .= '<ul class="hu-offcanvas-list clearfix" data-name="' . $this->name . '">'; foreach ($offCanvases as $key => $canvas) { $canvasName = preg_replace("@(^\d+-)(.+)@", "$2", $canvas); $canvasName = preg_split("@(?=[A-Z])@", $canvasName); $canvasName = implode(' ', $canvasName); $html .= '<li class="hu-offcanvas-item' . (($this->value === $canvas) ? ' active' : '') . '" data-style="' . $canvas . '">'; if (file_exists($offCanvasDir . '/' . $canvas . '/thumb.svg')) { $html .= '<span class="img-wrap"><img src="' . $thumb_url . '/' . $canvas . '/thumb.svg" alt="' . $canvas . '"></span>'; } else { $html .= '<span class="img-wrap"><img src="' . $thumb_url . '/' . $canvas . '/thumb.jpg" alt="' . $canvas . '"></span>'; } $html .= '<span class="hu-predefined-offcanvas-title">' . $canvasName . '</span>'; $html .= '</li>'; } $html .= '<input type="hidden" name="' . $this->name . '" value=\'' . $this->value . '\' id="' . $this->id . '">'; $html .= '</div>'; } } return $html; } }
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| helixbutton.php | File | 1.13 KB | 0664 |
|
| helixdetails.php | File | 1.43 KB | 0664 |
|
| helixdevices.php | File | 3.83 KB | 0664 |
|
| helixdimension.php | File | 1.93 KB | 0664 |
|
| helixexportimport.php | File | 1.59 KB | 0664 |
|
| helixfont.php | File | 14.05 KB | 0664 |
|
| helixgallery.php | File | 2.98 KB | 0664 |
|
| helixheaders.php | File | 3.25 KB | 0664 |
|
| helixicon.php | File | 1.08 KB | 0664 |
|
| heliximage.php | File | 2.33 KB | 0664 |
|
| helixlayout.php | File | 2.02 KB | 0664 |
|
| helixmedia.php | File | 1.31 KB | 0664 |
|
| helixmegamenu.php | File | 6.52 KB | 0664 |
|
| helixmenubuilder.php | File | 1.03 KB | 0664 |
|
| helixoffcanvas.php | File | 2.33 KB | 0664 |
|
| helixpositions.php | File | 1.9 KB | 0664 |
|
| helixpresets.php | File | 7.81 KB | 0664 |
|
| helixswitcher.php | File | 3.35 KB | 0664 |
|
| helixunit.php | File | 2.14 KB | 0664 |
|