| Current Path : /home/azimutno/www/demo/plugins/nextendslideritem/heading/ |
| Current File : /home/azimutno/www/demo/plugins/nextendslideritem/heading/heading.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 plgNextendSliderItemHeading extends plgNextendSliderItemAbstract {
var $_identifier = 'heading';
var $_title = 'Heading';
function getTemplate() {
return "
<h{priority} class='{fontclass} {class}' style='{fontsizer}{fontcolorr}{css}' data-click='{onmouseclick}' data-enter='{onmouseenter}' data-leave='{onmouseleave}'>
<a href='{url}' target='{target}' style='{fontcolorr}'>
{heading}
</a>
</h{priority}>
";
}
function getValues() {
return array(
'fontsizer' => '',
'fontcolorr' => '',
'priority' => '1',
'heading' => 'Heading',
'link' => '#|*|_self',
'url' => '',
'target' => '_self',
'fontclass' => 'sliderfont2',
'class' => '',
'css' => 'padding: 0;
margin: 0;
background: none;
box-shadow: none;',
'onmouseclick' => '',
'onmouseenter' => '',
'onmouseleave' => ''
);
}
function getPath() {
return dirname(__FILE__) . DIRECTORY_SEPARATOR . $this->_identifier . DIRECTORY_SEPARATOR;
}
}
NextendPlugin::addPlugin('nextendslideritem', 'plgNextendSliderItemHeading');