| Current Path : /home/cbequiperp/www/plugins/system/ztshortcodes/core/html/site/ |
| Current File : /home/cbequiperp/www/plugins/system/ztshortcodes/core/html/site/zt_social_icon.php |
<?php
/**
* Zt Shortcodes
* A powerful Joomla plugin to help effortlessly customize your own content and style without HTML code knowledge
*
* @name Zt Shortcodes
* @version 2.0.0
* @package Plugin
* @subpackage System
* @author ZooTemplate
* @email support@zootemplate.com
* @link http://www.zootemplate.com
* @copyright Copyright (c) 2015 ZooTemplate
* @license GPL v2
*/
defined('_JEXEC') or die('Restricted access');
?>
<?php
$icon = $attributes->get('icon');
$borderRadius = $attributes->get('radius');
$iconSize = $attributes->get('iconSize');
$title = $attributes->get('title');
$link = $attributes->get('link');
$color = $attributes->get('color');
$bgColor = $attributes->get('bgColor');
$bdColor = $attributes->get('bdColor');
$hoverColor = $attributes->get('hoverColor');
$hoverBgColor = $attributes->get('hoverBgColor');
$hoverBgColor = $attributes->get('hoverBgColor');
$titleLow = strtolower($title);
?>
<a title="<?php echo $title; ?>"
style="color:<?php echo $color; ?>;background-color:<?php echo $bgColor; ?>;border-color:<?php echo $bdColor; ?>; border-radius:<?php echo $borderRadius . 'px'; ?>;"
onmouseover="this.style.backgroundColor = '<?php echo $hoverBgColor; ?>';
this.style.color = '<?php echo $hoverColor; ?>'"
onmouseout="this.style.backgroundColor = '<?php echo $bgColor; ?>';
this.style.color = '<?php echo $color; ?>'"
href="<?php echo $link; ?>" target="_blank" class="zt-social-icon-item zt-icon-<?php echo $titleLow; ?>">
<i class="<?php echo $icon; ?>" style="font-size:<?php echo $iconSize; ?>px"></i>
</a>