Your IP : 216.73.217.11


Current Path : /home/azimutno/www/demo/plugins/nextendslideritem/html/
Upload File :
Current File : /home/azimutno/www/demo/plugins/nextendslideritem/html/html.php

<?php
/*
# author Roland Soos
# copyright Copyright (C) Nextendweb.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-3.0.txt GNU/GPL
*/
defined('_JEXEC') or die('Restricted access'); ?><?php

nextendimportsmartslider2('nextend.smartslider.plugin.slideritem');

class plgNextendSliderItemHtml extends plgNextendSliderItemAbstract {
    
    var $_identifier = 'html';
    
    var $_title = 'HTML';
    
    function getTemplate(){
        return "
        <div data-click='{onmouseclick}' data-enter='{onmouseenter}' data-leave='{onmouseleave}'>
            {html}
            <style>            
              {css}
            </style>
        </div>
        ";
    }
    
    function getValues(){
        return array(
            'html' => '<div class="myfirstclass">
My HTML element
</div>',
            'css' => '.myfirstclass {
height: 30px;
line-height: 30px; 
background: royalblue;
color: white;
text-align: center;
}',
            'onmouseclick' => '',
            'onmouseenter' => '',
            'onmouseleave' => ''
        );
    }
    
    function getPath(){
        return dirname(__FILE__).DIRECTORY_SEPARATOR.$this->_identifier.DIRECTORY_SEPARATOR;
    } 
}

NextendPlugin::addPlugin('nextendslideritem', 'plgNextendSliderItemHtml');