__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ 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 */ defined('_JEXEC') or die(); use Joomla\CMS\Factory; use Joomla\CMS\Uri\Uri; use Joomla\CMS\Language\Text; use Joomla\CMS\Form\FormField; use Joomla\CMS\Filesystem\File; use Joomla\CMS\HTML\HTMLHelper; /** * Form field for Helix image. * * @since 1.0.0 * @deprecated 3.0 Use the Same Class from the src/fields instead. */ class JFormFieldHeliximage extends FormField { /** * Field type * * @var string $type * @since 1.0.0 */ protected $type = 'Heliximage'; /** * Override getInput function form FormField * * @return string Field HTML string * @since 1.0.0 */ protected function getInput() { $doc = Factory::getDocument(); HTMLHelper::_('jquery.framework'); $plg_path = Uri::root(true) . '/plugins/system/helixultimate'; $class = ' hu-image-field-empty'; if ($this->value) { $class = ' hu-image-field-has-image'; } $output = '<div class="hu-image-field' . $class . ' clearfix">'; $output .= '<div class="hu-image-upload-wrapper">'; if ($this->value) { $data_src = $this->value; $src = Uri::root(true) . '/' . $data_src; $basename = basename($data_src); $thumbnail = JPATH_ROOT . '/' . dirname($data_src) . '/' . File::stripExt($basename) . '_thumbnail.' . File::getExt($basename); if (file_exists($thumbnail)) { $src = Uri::root(true) . '/' . dirname($data_src) . '/' . File::stripExt($basename) . '_thumbnail.' . File::getExt($basename); } $output .= '<img src="' . $src . '" data-src="' . $data_src . '" alt="">'; } $output .= '</div>'; $output .= '<input type="file" class="hu-image-upload" accept="image/*" style="display:none;">'; $output .= '<a class="btn btn-primary btn-hu-image-upload" href="#"><i class="fas fa-plus" aria-hidden="true"></i> ' . Text::_('HELIX_ULTIMATE_UPLOAD_IMAGE') . '</a>'; $output .= '<a class="btn btn-danger btn-hu-image-remove" href="#"><i class="fas fa-minus-circle" aria-hidden="true"></i> ' . Text::_('HELIX_ULTIMATE_REMOVE_IMAGE') . '</a>'; $output .= '<input type="hidden" name="' . $this->name . '" id="' . $this->id . '" value="' . htmlspecialchars($this->value ?? "", ENT_COMPAT, 'UTF-8') . '" class="form-field-hu-image">'; $output .= '</div>'; return $output; } }
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| helixbutton.php | File | 1.2 KB | 0664 |
|
| helixdetails.php | File | 1.49 KB | 0664 |
|
| helixdevices.php | File | 3.9 KB | 0664 |
|
| helixdimension.php | File | 1.94 KB | 0664 |
|
| helixexportimport.php | File | 1.44 KB | 0664 |
|
| helixfont.php | File | 12.49 KB | 0664 |
|
| helixgallery.php | File | 3.05 KB | 0664 |
|
| helixheaders.php | File | 2.51 KB | 0664 |
|
| helixicon.php | File | 1.15 KB | 0664 |
|
| heliximage.php | File | 2.4 KB | 0664 |
|
| helixlayout.php | File | 2.09 KB | 0664 |
|
| helixmedia.php | File | 1.38 KB | 0664 |
|
| helixmegamenu.php | File | 6.59 KB | 0664 |
|
| helixmenubuilder.php | File | 1.46 KB | 0664 |
|
| helixpositions.php | File | 1.97 KB | 0664 |
|
| helixpresets.php | File | 6.41 KB | 0664 |
|
| helixswitcher.php | File | 3.42 KB | 0664 |
|