AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.112
Web Server : Apache
System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : coopiak ( 151928)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/coopiak/amisdesseniors-fr/aix/components/com_djmediatools/layouts/horizontalSwipe/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/aix/components/com_djmediatools/layouts/horizontalSwipe//helper.php
<?php
/**
 * @version $Id$
 * @package DJ-MediaTools
 * @copyright Copyright (C) 2017 DJ-Extensions.com, All rights reserved.
 * @license http://www.gnu.org/licenses GNU/GPL
 * @author url: http://dj-extensions.com
 * @author email contact@dj-extensions.com
 * @developer Szymon Woronowski - szymon.woronowski@design-joomla.eu
 *
 * DJ-MediaTools is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * DJ-MediaTools is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with DJ-MediaTools. If not, see <http://www.gnu.org/licenses/>.
 *
 */

// no direct access
defined('_JEXEC') or die ('Restricted access');

class HorizontalSwipeDJMediatoolsLayoutHelper extends DJMediatoolsLayoutHelper
{

    public function addScripts(&$params)
    {

        $document = JFactory::getDocument();
        $document->addStylesheet(JUri::base() . 'components/com_djmediatools/layouts/horizontalSwipe/css/horizontalSwipe.css');
        $document->addScript(JUri::base() . 'components/com_djmediatools/layouts/horizontalSwipe/js/horizontalSwipe.js');

        $mid = $params->get('gallery_id');

        $jquery = version_compare(JVERSION, '3.0.0', 'ge');

        if ($jquery) {
            JHTML::_('jquery.framework');
        } else {
            JHTML::_('behavior.framework', true);
        }


        if ($params->get('link_image', 1) == 2) $this->addLightbox($params->get('lightbox', 'magnific'));

        //$canDefer = preg_match('/(?i)msie [6-9]/',$_SERVER['HTTP_USER_AGENT']) ? false : true;

        $document->addScript(JURI::root(true) . '/media/djextensions/picturefill/picturefill.min.js', array('mime' => 'text/javascript', 'defer' => self::canDefer()));
        if ($jquery) $document->addScript(JURI::root(true) . '/media/djextensions/jquery.easing-1.4.1/jquery.easing.min.js', array('mime' => 'text/javascript', 'defer' => self::canDefer()));

        $animationOptions = "{" . implode(',', $this->getAnimationOptions($params)) . "}";
        $className = ucfirst($this->_prefix);

        if ($jquery) {
            $js = "jQuery(document).ready(function(){ if(!this.DJHorizontalSwipe$mid) this.DJHorizontalSwipe$mid = new DJImage$className('dj-$this->_prefix$mid',$animationOptions) });";
        } else {
            $js = "window.addEvent('domready',function(){ if(!this.DJHorizontalSwipe$mid) this.DJHorizontalSwipe$mid = new DJImage$className('dj-$this->_prefix$mid',$animationOptions) });";
        }


        $document->addScriptDeclaration($js);
    }


    public function getAnimationOptions(&$params) {

        $options = parent::getAnimationOptions($params);
        $options[] = "desc_position: '".$params->get('desc_position') . "'" ;
        return $options;

    }


    public function getStyleSheetParams(&$params)
    {

        $options = parent::getStyleSheetParams($params);


        $options['sb'] = $params->get('space_between_images', 20);
        $options['sb'] = $params->get('space_between_images', 20);
        $options['nv'] = $params->get('arrows_top');
        $options['nh'] = $params->get('arrows_horizontal');
        $options['mh'] = $params->get('image_height', '480;');
        $options['dv'] = $params->get('desc_bottom');
        $options['dh'] = $params->get('desc_horizontal');
        $options['dots'] = $params->get('show_custom_nav');
        $options['dw'] = $params->get('desc_width');


        $options['title'] = array(
            'color' => $params->get('title_color'),
            'size' => $params->get('title_size'),
            'font' => $params->get('title_font'),
            'weight' => $params->get('title_weight')
        );

        $options['description'] = array(
            'color' => $params->get('desc_color'),
            'size' => $params->get('desc_size'),
            'font' => $params->get('desc_font'),
            'weight' => $params->get('desc_weight'),
            'background' => $params->get('desc_bg', '#ffffff'),
            'padding' => $params->get('desc_padding'),
            'show' => $params->get('show_desc')
        );

        $options['readmore'] = array(
            'color' => $params->get('readmore_color'),
            'size' => $params->get('readmore_size'),
            'font' => $params->get('readmore_font'),
            'weight' => $params->get('readmore_weight'),
            'position' => $params->get('readmore_position')
        );

        $options['play'] = $params->get('show_buttons');
        $options['arrow'] = $params->get('show_arrows');


        return $options;
    }


}

Anon7 - 2022
AnonSec Team