Version Description
- fix v 1.0 & v 1.1 image icon compatibility
Download this release
Release Info
Developer | cybernetikz |
Plugin | Easy Social Icons |
Version | 3.0.2 |
Comparing to | |
See all releases |
Code changes from version 3.0.1 to 3.0.2
- css/cnss.css +4 -2
- easy-social-icons.php +22 -8
- readme.txt +8 -3
css/cnss.css
CHANGED
@@ -10,7 +10,7 @@ ul.cnss-social-icon li:after, ul.cnss-social-icon li:before{display:none!importa
|
|
10 |
ul.cnss-social-icon li{vertical-align: middle; float:none!important; width:auto!important; margin:0!important; list-style-type:none!important;border:none!important;padding:0!important;background: none!important; line-height: normal!important;}
|
11 |
ul.cnss-social-icon li a,ul.cnss-social-icon li a img{box-shadow: none!important; -webkit-box-shadow:none;}
|
12 |
/* font-awesome-icons-settings */
|
13 |
-
ul.cnss-social-icon li.cn-fa-icon a{display: block!important; text-align: center!important;
|
14 |
ul.cnss-social-icon li.cn-fa-icon a.cnss-dropbox{background-color:#007ee5!important;}
|
15 |
ul.cnss-social-icon li.cn-fa-icon a.cnss-foursquare{background-color:#f94877!important;}
|
16 |
ul.cnss-social-icon li.cn-fa-icon a.cnss-google-plus {background-color:#dc4a38!important;}
|
@@ -75,4 +75,6 @@ ul.cnss-social-icon li.cn-fa-icon a.cnss-github {background-color:#000000!import
|
|
75 |
ul.cnss-social-icon li.cn-fa-icon a.cnss-github-square {background-color:#000000!important;}
|
76 |
ul.cnss-social-icon li.cn-fa-icon a.cnss-git {background-color:#f14e32!important;}
|
77 |
ul.cnss-social-icon li.cn-fa-icon a.cnss-git-square {background-color:#f14e32!important;}
|
78 |
-
ul.cnss-social-icon li.cn-fa-icon a.cnss-rss {background-color:#ff6600!important;}
|
|
|
|
10 |
ul.cnss-social-icon li{vertical-align: middle; float:none!important; width:auto!important; margin:0!important; list-style-type:none!important;border:none!important;padding:0!important;background: none!important; line-height: normal!important;}
|
11 |
ul.cnss-social-icon li a,ul.cnss-social-icon li a img{box-shadow: none!important; -webkit-box-shadow:none;}
|
12 |
/* font-awesome-icons-settings */
|
13 |
+
ul.cnss-social-icon li.cn-fa-icon a{display: block!important; text-align: center!important; -webkit-transition: width 0.5s!important; transition: all 0.5s!important;box-sizing: border-box!important;background-color:#999999!important;}
|
14 |
ul.cnss-social-icon li.cn-fa-icon a.cnss-dropbox{background-color:#007ee5!important;}
|
15 |
ul.cnss-social-icon li.cn-fa-icon a.cnss-foursquare{background-color:#f94877!important;}
|
16 |
ul.cnss-social-icon li.cn-fa-icon a.cnss-google-plus {background-color:#dc4a38!important;}
|
75 |
ul.cnss-social-icon li.cn-fa-icon a.cnss-github-square {background-color:#000000!important;}
|
76 |
ul.cnss-social-icon li.cn-fa-icon a.cnss-git {background-color:#f14e32!important;}
|
77 |
ul.cnss-social-icon li.cn-fa-icon a.cnss-git-square {background-color:#f14e32!important;}
|
78 |
+
ul.cnss-social-icon li.cn-fa-icon a.cnss-rss {background-color:#ff6600!important;}
|
79 |
+
ul.cnss-social-icon li.cn-fa-icon a.cnss-instagram{background-color:#405de6!important;}
|
80 |
+
ul.cnss-social-icon li.cn-fa-icon a.cnss-tripadvisor{background-color:#589442!important;}
|
easy-social-icons.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Easy Social Icons
|
4 |
Plugin URI: http://www.cybernetikz.com
|
5 |
Description: You can upload your own social icon, set your social URL, choose weather you want to display vertical or horizontal. You can use the shortcode <strong>[cn-social-icon]</strong> in page/post, template tag for php file <strong><?php if ( function_exists('cn_social_icon') ) echo cn_social_icon(); ?></strong> also you can use the widget <strong>"Easy Social Icons"</strong> for sidebar.
|
6 |
-
Version: 3.0.
|
7 |
Author: cybernetikz
|
8 |
Author URI: http://www.cybernetikz.com
|
9 |
License: GPL2
|
@@ -48,7 +48,7 @@ function cnss_admin_sidebar() {
|
|
48 |
'alt' => 'Banner 1',
|
49 |
),
|
50 |
array(
|
51 |
-
'url' => 'http://www.cybernetikz.com/
|
52 |
'img' => 'banner-2.jpg',
|
53 |
'alt' => 'Banner 2',
|
54 |
),
|
@@ -141,8 +141,8 @@ function cn_esi_get_option($key='') {
|
|
141 |
'cnss-text-align' => 'center',
|
142 |
'cnss-social-profile-links' => '0',
|
143 |
'cnss-social-profile-type' => 'Person',
|
144 |
-
'cnss-icon-bg-color' => '#
|
145 |
-
'cnss-icon-bg-hover-color' => '#
|
146 |
'cnss-icon-color' => '#ffffff',
|
147 |
'cnss-icon-hover-color' => '#ffffff',
|
148 |
'cnss-icon-shape' => 'square',
|
@@ -751,18 +751,32 @@ function cnss_get_icon_html($url = '', $title = '', $width = '', $height = '', $
|
|
751 |
$imgStyle = '';
|
752 |
$imgStyle .= ($margin == '') ? '' : 'margin:'.$margin.'px;';
|
753 |
$imgStyle .= ($width == $height) ? '' : 'height:'.$height.'px;';
|
754 |
-
$icon_output_html = '<img src="'
|
755 |
} else {
|
756 |
$icon_output_html = '<i title="'.$title.'" style="font-size:'.$width.'px;" class="'.$url.'"></i>';
|
757 |
}
|
758 |
return $icon_output_html;
|
759 |
}
|
760 |
|
761 |
-
function
|
762 |
-
|
763 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
764 |
} else {
|
|
|
|
|
|
|
|
|
|
|
|
|
765 |
return true;
|
|
|
|
|
766 |
}
|
767 |
}
|
768 |
|
3 |
Plugin Name: Easy Social Icons
|
4 |
Plugin URI: http://www.cybernetikz.com
|
5 |
Description: You can upload your own social icon, set your social URL, choose weather you want to display vertical or horizontal. You can use the shortcode <strong>[cn-social-icon]</strong> in page/post, template tag for php file <strong><?php if ( function_exists('cn_social_icon') ) echo cn_social_icon(); ?></strong> also you can use the widget <strong>"Easy Social Icons"</strong> for sidebar.
|
6 |
+
Version: 3.0.2
|
7 |
Author: cybernetikz
|
8 |
Author URI: http://www.cybernetikz.com
|
9 |
License: GPL2
|
48 |
'alt' => 'Banner 1',
|
49 |
),
|
50 |
array(
|
51 |
+
'url' => 'http://www.cybernetikz.com/web-development/wordpress-website/?utm_source=easy-social-icons&utm_medium=banner&utm_campaign=wordpress-plugins',
|
52 |
'img' => 'banner-2.jpg',
|
53 |
'alt' => 'Banner 2',
|
54 |
),
|
141 |
'cnss-text-align' => 'center',
|
142 |
'cnss-social-profile-links' => '0',
|
143 |
'cnss-social-profile-type' => 'Person',
|
144 |
+
'cnss-icon-bg-color' => '#999999',
|
145 |
+
'cnss-icon-bg-hover-color' => '#666666',
|
146 |
'cnss-icon-color' => '#ffffff',
|
147 |
'cnss-icon-hover-color' => '#ffffff',
|
148 |
'cnss-icon-shape' => 'square',
|
751 |
$imgStyle = '';
|
752 |
$imgStyle .= ($margin == '') ? '' : 'margin:'.$margin.'px;';
|
753 |
$imgStyle .= ($width == $height) ? '' : 'height:'.$height.'px;';
|
754 |
+
$icon_output_html = '<img src="'.cnss_get_img_url($url).'" border="0" width="'.$width.'" height="'.$height.'" alt="'.$title.'" title="'.$title.'" style="'.$imgStyle.'" />';
|
755 |
} else {
|
756 |
$icon_output_html = '<i title="'.$title.'" style="font-size:'.$width.'px;" class="'.$url.'"></i>';
|
757 |
}
|
758 |
return $icon_output_html;
|
759 |
}
|
760 |
|
761 |
+
function cnss_get_img_url($url)
|
762 |
+
{
|
763 |
+
global $cnssBaseURL;
|
764 |
+
if ($url == '') {
|
765 |
+
return;
|
766 |
+
}
|
767 |
+
|
768 |
+
if( strpos($url,'/') === false ) {
|
769 |
+
return $cnssBaseURL.'/'.$url;
|
770 |
} else {
|
771 |
+
return $url;
|
772 |
+
}
|
773 |
+
}
|
774 |
+
|
775 |
+
function cnss_is_image_icon($url) {
|
776 |
+
if ( strpos($url, 'fa fa-') === false ) {
|
777 |
return true;
|
778 |
+
} else {
|
779 |
+
return false;
|
780 |
}
|
781 |
}
|
782 |
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: cybernetikz
|
|
3 |
Donate link:
|
4 |
Tags: easy social icon,easy social icons,social icon,social icons,social,social share,follow,followus,follow us,share,icon,custom social icons, social media icons
|
5 |
Requires at least: 3.5
|
6 |
-
Tested up to: 4.7.
|
7 |
-
Stable tag: 3.0.
|
8 |
|
9 |
Upload your own social media icons or choose from font-awesome. Use widget|shortcode to place icons anywhere(sidebar, header, footer, page) in theme.
|
10 |
|
@@ -15,7 +15,9 @@ You can upload your own social icon or font-awesome social icons, set your socia
|
|
15 |
You can use the shortcode <strong>[cn-social-icon]</strong> in page/post, template tag for PHP file, <strong><?php if ( function_exists('cn_social_icon') ) echo cn_social_icon(); ?></strong> also you can use the widget <strong>"Easy Social Icons"</strong> for the sidebar.
|
16 |
|
17 |
If you are using <strong>wordpress version lower than 3.5</strong> please use "Easy Social Icons" version
|
18 |
-
<a href="https://downloads.wordpress.org/plugin/easy-social-icons.1.
|
|
|
|
|
19 |
|
20 |
= Key Features =
|
21 |
|
@@ -70,6 +72,9 @@ If you are using wordpress version lower than 3.5 please use Easy social Icon ve
|
|
70 |
|
71 |
== Changelog ==
|
72 |
|
|
|
|
|
|
|
73 |
= 3.0.1 =
|
74 |
* fix font-awesome icons color for some specific themes
|
75 |
* automatically set sort order when add new icon
|
3 |
Donate link:
|
4 |
Tags: easy social icon,easy social icons,social icon,social icons,social,social share,follow,followus,follow us,share,icon,custom social icons, social media icons
|
5 |
Requires at least: 3.5
|
6 |
+
Tested up to: 4.7.3
|
7 |
+
Stable tag: 3.0.2
|
8 |
|
9 |
Upload your own social media icons or choose from font-awesome. Use widget|shortcode to place icons anywhere(sidebar, header, footer, page) in theme.
|
10 |
|
15 |
You can use the shortcode <strong>[cn-social-icon]</strong> in page/post, template tag for PHP file, <strong><?php if ( function_exists('cn_social_icon') ) echo cn_social_icon(); ?></strong> also you can use the widget <strong>"Easy Social Icons"</strong> for the sidebar.
|
16 |
|
17 |
If you are using <strong>wordpress version lower than 3.5</strong> please use "Easy Social Icons" version
|
18 |
+
<a href="https://downloads.wordpress.org/plugin/easy-social-icons.1.1.zip">1.1</a>
|
19 |
+
|
20 |
+
> <strong><a target="_blank" href="http://www.cybernetikz.com/wordpress-magento-plugins/wordpress-plugins/easy-social-icons/#disqus_thread">For faster support please contact us here.</a></strong>
|
21 |
|
22 |
= Key Features =
|
23 |
|
72 |
|
73 |
== Changelog ==
|
74 |
|
75 |
+
= 3.0.2 =
|
76 |
+
* fix v 1.0 & v 1.1 image icon compatibility
|
77 |
+
|
78 |
= 3.0.1 =
|
79 |
* fix font-awesome icons color for some specific themes
|
80 |
* automatically set sort order when add new icon
|