Version Description
- Fixed typo in Snapchat icon markup
- Made CSS selectors more specific
- Added classes to each icon
- Added plugin version to enqueued CSS
- Updated Google + icon
Download this release
Release Info
Developer | nathanrice |
Plugin | Simple Social Icons |
Version | 2.0.1 |
Comparing to | |
See all releases |
Code changes from version 2.0.0 to 2.0.1
- README.md +7 -0
- css/style.css +2 -2
- icons/SVG/gplus.svg +1 -1
- package.json +1 -1
- readme.txt +8 -1
- simple-social-icons.php +32 -25
- symbol-defs.svg +1 -1
README.md
CHANGED
@@ -125,3 +125,10 @@ NOTE - The rights to each pictogram in the social extension are either trademark
|
|
125 |
2.0.0
|
126 |
* Added Behance, Medium, Periscope, Phone, Snapchat, and Xing icons
|
127 |
* Switched to svg, rather than icon font
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
2.0.0
|
126 |
* Added Behance, Medium, Periscope, Phone, Snapchat, and Xing icons
|
127 |
* Switched to svg, rather than icon font
|
128 |
+
|
129 |
+
2.0.1
|
130 |
+
* Fixed typo in Snapchat icon markup
|
131 |
+
* Made CSS selectors more specific
|
132 |
+
* Added classes to each icon
|
133 |
+
* Added plugin version to enqueued CSS
|
134 |
+
* Updated Google + icon
|
css/style.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
[class^="social-"],
|
2 |
-
[class*=" social-"] {
|
3 |
display: inline-block;
|
4 |
width: 1em;
|
5 |
height: 1em;
|
1 |
+
.simple-social-icons svg[class^="social-"],
|
2 |
+
.simple-social-icons svg[class*=" social-"] {
|
3 |
display: inline-block;
|
4 |
width: 1em;
|
5 |
height: 1em;
|
icons/SVG/gplus.svg
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<svg xmlns="http://www.w3.org/2000/svg"
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M1 15.6c-.3 4 2.3 7.9 6.1 9.4 3.7 1.4 8.5.5 10.8-2.9 1.6-2.1 1.9-4.8 1.7-7.4h-9.1v3.2c1.8.1 3.6 0 5.4.1-.8 4-6.3 5.3-9.2 2.7-3-2.3-2.8-7.4.3-9.5 2.2-1.7 5.2-1.3 7.4.2.9-.8 1.6-1.6 2.4-2.5-1.8-1.4-4-2.5-6.4-2.4-4.8-.1-9.3 4.2-9.4 9.1zM25.6 12v2.7h-2.7v2.7h2.7v2.7h2.7v-2.7H31v-2.7h-2.7V12h-2.7z"/><path d="M1 15.6c.1-4.9 4.6-9.2 9.5-9 2.4-.1 4.6.9 6.4 2.4-.8.9-1.6 1.7-2.4 2.5-2.2-1.5-5.2-1.9-7.4-.2-3.1 2.1-3.2 7.2-.3 9.5 2.9 2.6 8.4 1.3 9.2-2.7-1.8 0-3.6 0-5.4-.1v-3.2h9.1c.2 2.5-.2 5.3-1.7 7.4-2.4 3.3-7.1 4.3-10.8 2.9C3.3 23.6.7 19.6 1 15.6zM25.6 12h2.7v2.7H31v2.7h-2.7v2.7h-2.7v-2.7h-2.7v-2.7h2.7c-.1-.9-.1-1.8 0-2.7z"/></svg>
|
package.json
CHANGED
@@ -29,7 +29,7 @@
|
|
29 |
"description": "A simple, CSS and icon font driven social icons widget.",
|
30 |
"author": "StudioPress",
|
31 |
"authoruri": "http://www.studiopress.com/",
|
32 |
-
"version": "2.0.
|
33 |
"license": "GPL-2.0+",
|
34 |
"licenseuri": "http://www.gnu.org/licenses/gpl-2.0.html",
|
35 |
"textdomain": "simple-social-icons"
|
29 |
"description": "A simple, CSS and icon font driven social icons widget.",
|
30 |
"author": "StudioPress",
|
31 |
"authoruri": "http://www.studiopress.com/",
|
32 |
+
"version": "2.0.1",
|
33 |
"license": "GPL-2.0+",
|
34 |
"licenseuri": "http://www.gnu.org/licenses/gpl-2.0.html",
|
35 |
"textdomain": "simple-social-icons"
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: studiopress, nathanrice, bgardner, laurenmancke, shannonsans
|
|
3 |
Tags: social media, social networking, social profiles
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.7
|
6 |
-
Stable tag: 2.0.
|
7 |
|
8 |
This plugin allows you to insert social icons in any widget area.
|
9 |
|
@@ -59,6 +59,13 @@ NOTE - The rights to each pictogram in the social extension are either trademark
|
|
59 |
|
60 |
== Changelog ==
|
61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
= 2.0.0 =
|
63 |
* Added Behance, Medium, Periscope, Phone, Snapchat, and Xing icons
|
64 |
* Switched to svg, rather than icon font
|
3 |
Tags: social media, social networking, social profiles
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.7
|
6 |
+
Stable tag: 2.0.1
|
7 |
|
8 |
This plugin allows you to insert social icons in any widget area.
|
9 |
|
59 |
|
60 |
== Changelog ==
|
61 |
|
62 |
+
= 2.0.1 =
|
63 |
+
* Fixed typo in Snapchat icon markup
|
64 |
+
* Made CSS selectors more specific
|
65 |
+
* Added classes to each icon
|
66 |
+
* Added plugin version to enqueued CSS
|
67 |
+
* Updated Google + icon
|
68 |
+
|
69 |
= 2.0.0 =
|
70 |
* Added Behance, Medium, Periscope, Phone, Snapchat, and Xing icons
|
71 |
* Switched to svg, rather than icon font
|
simple-social-icons.php
CHANGED
@@ -6,7 +6,7 @@ Description: A simple CSS and SVG driven social icons widget.
|
|
6 |
Author: Nathan Rice
|
7 |
Author URI: http://www.nathanrice.net/
|
8 |
|
9 |
-
Version: 2.0.
|
10 |
|
11 |
Text Domain: simple-social-icons
|
12 |
Domain Path: /languages
|
@@ -25,6 +25,13 @@ function simple_social_icons_load_textdomain() {
|
|
25 |
|
26 |
class Simple_Social_Icons_Widget extends WP_Widget {
|
27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
/**
|
29 |
* Default widget values.
|
30 |
*
|
@@ -69,7 +76,7 @@ class Simple_Social_Icons_Widget extends WP_Widget {
|
|
69 |
'background_color' => '#999999',
|
70 |
'background_color_hover' => '#666666',
|
71 |
'alignment' => 'alignleft',
|
72 |
-
'behance'
|
73 |
'bloglovin' => '',
|
74 |
'dribbble' => '',
|
75 |
'email' => '',
|
@@ -99,91 +106,91 @@ class Simple_Social_Icons_Widget extends WP_Widget {
|
|
99 |
$this->profiles = apply_filters( 'simple_social_default_profiles', array(
|
100 |
'behance' => array(
|
101 |
'label' => __( 'Behance URI', 'simple-social-icons' ),
|
102 |
-
'pattern' => '<li><a href="%s" %s><svg role="img" class="social-behance" aria-labelledby="social-behance"><title id="social-behance">' . __( 'Behance', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-behance' ) . '"></use></svg></a></li>',
|
103 |
),
|
104 |
'bloglovin' => array(
|
105 |
'label' => __( 'Bloglovin URI', 'simple-social-icons' ),
|
106 |
-
'pattern' => '<li><a href="%s" %s><svg role="img" class="social-bloglovin" aria-labelledby="social-bloglovin"><title id="social-bloglovin">' . __( 'Bloglovin', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-bloglovin' ) . '"></use></svg></a></li>',
|
107 |
),
|
108 |
'dribbble' => array(
|
109 |
'label' => __( 'Dribbble URI', 'simple-social-icons' ),
|
110 |
-
'pattern' => '<li><a href="%s" %s><svg role="img" class="social-dribbble" aria-labelledby="social-dribbble"><title id="social-dribbble">' . __( 'Dribbble', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-dribbble' ) . '"></use></svg></a></li>',
|
111 |
),
|
112 |
'email' => array(
|
113 |
'label' => __( 'Email URI', 'simple-social-icons' ),
|
114 |
-
'pattern' => '<li><a href="%s" %s><svg role="img" class="social-email" aria-labelledby="social-email"><title id="social-email">' . __( 'Email', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-email' ) . '"></use></svg></a></li>',
|
115 |
),
|
116 |
'facebook' => array(
|
117 |
'label' => __( 'Facebook URI', 'simple-social-icons' ),
|
118 |
-
'pattern' => '<li><a href="%s" %s><svg role="img" class="social-facebook" aria-labelledby="social-facebook"><title id="social-facebook">' . __( 'Facebook', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-facebook' ) . '"></use></svg></a></li>',
|
119 |
),
|
120 |
'flickr' => array(
|
121 |
'label' => __( 'Flickr URI', 'simple-social-icons' ),
|
122 |
-
'pattern' => '<li><a href="%s" %s><svg role="img" class="social-flickr" aria-labelledby="social-flickr"><title id="social-flickr">' . __( 'Flickr', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-flickr' ) . '"></use></svg></a></li>',
|
123 |
),
|
124 |
'github' => array(
|
125 |
'label' => __( 'GitHub URI', 'simple-social-icons' ),
|
126 |
-
'pattern' => '<li><a href="%s" %s><svg role="img" class="social-github" aria-labelledby="social-github"><title id="social-github">' . __( 'Github', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-github' ) . '"></use></svg></a></li>',
|
127 |
),
|
128 |
'gplus' => array(
|
129 |
'label' => __( 'Google+ URI', 'simple-social-icons' ),
|
130 |
-
'pattern' => '<li><a href="%s" %s><svg role="img" class="social-gplus" aria-labelledby="social-gplus"><title id="social-gplus">' . __( 'Google+', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-gplus' ) . '"></use></svg></a></li>',
|
131 |
),
|
132 |
'instagram' => array(
|
133 |
'label' => __( 'Instagram URI', 'simple-social-icons' ),
|
134 |
-
'pattern' => '<li><a href="%s" %s><svg role="img" class="social-instagram" aria-labelledby="social-instagram"><title id="social-instagram">' . __( 'Instagram', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-instagram' ) . '"></use></svg></a></li>',
|
135 |
),
|
136 |
'linkedin' => array(
|
137 |
'label' => __( 'Linkedin URI', 'simple-social-icons' ),
|
138 |
-
'pattern' => '<li><a href="%s" %s><svg role="img" class="social-linkedin" aria-labelledby="social-linkedin"><title id="social-linkedin">' . __( 'Linkedin', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-linkedin' ) . '"></use></svg></a></li>',
|
139 |
),
|
140 |
'medium' => array(
|
141 |
'label' => __( 'Medium URI', 'simple-social-icons' ),
|
142 |
-
'pattern' => '<li><a href="%s" %s><svg role="img" class="social-medium" aria-labelledby="social-medium"><title id="social-medium">' . __( 'Medium', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-medium' ) . '"></use></svg></a></li>',
|
143 |
),
|
144 |
'periscope' => array(
|
145 |
'label' => __( 'Periscope URI', 'simple-social-icons' ),
|
146 |
-
'pattern' => '<li><a href="%s" %s><svg role="img" class="social-periscope" aria-labelledby="social-periscope"><title id="social-periscope">' . __( 'Periscope', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-periscope' ) . '"></use></svg></a></li>',
|
147 |
),
|
148 |
'phone' => array(
|
149 |
'label' => __( 'Phone URI', 'simple-social-icons' ),
|
150 |
-
'pattern' => '<li><a href="%s" %s><svg role="img" class="social-phone" aria-labelledby="social-phone"><title id="social-phone">' . __( 'Phone', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-phone' ) . '"></use></svg></a></li>',
|
151 |
),
|
152 |
'pinterest' => array(
|
153 |
'label' => __( 'Pinterest URI', 'simple-social-icons' ),
|
154 |
-
'pattern' => '<li><a href="%s" %s><svg role="img" class="social-pinterest" aria-labelledby="social-pinterest"><title id="social-pinterest">' . __( 'Pinterest', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-pinterest' ) . '"></use></svg></a></li>',
|
155 |
),
|
156 |
'rss' => array(
|
157 |
'label' => __( 'RSS URI', 'simple-social-icons' ),
|
158 |
-
'pattern' => '<li><a href="%s" %s><svg role="img" class="social-rss" aria-labelledby="social-rss"><title id="social-rss">' . __( 'RSS', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-rss' ) . '"></use></svg></a></li>',
|
159 |
),
|
160 |
'snapchat' => array(
|
161 |
'label' => __( 'Snapchat URI', 'simple-social-icons' ),
|
162 |
-
'pattern' => '<li><a href="%s" %s><svg role="img" class="social-snapchat" aria-labelledby="social-snapchat"><title id="social-snapchat">' . __( 'Snapchat', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-
|
163 |
),
|
164 |
'stumbleupon' => array(
|
165 |
'label' => __( 'StumbleUpon URI', 'simple-social-icons' ),
|
166 |
-
'pattern' => '<li><a href="%s" %s><svg role="img" class="social-stumbleupon" aria-labelledby="social-stumbleupon"><title id="social-stumbleupon">' . __( 'StumbleUpon', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-stumbleupon' ) . '"></use></svg></a></li>',
|
167 |
),
|
168 |
'tumblr' => array(
|
169 |
'label' => __( 'Tumblr URI', 'simple-social-icons' ),
|
170 |
-
'pattern' => '<li><a href="%s" %s><svg role="img" class="social-tumblr" aria-labelledby="social-tumblr"><title id="social-tumblr">' . __( 'Tumblr', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-tumblr' ) . '"></use></svg></a></li>',
|
171 |
),
|
172 |
'twitter' => array(
|
173 |
'label' => __( 'Twitter URI', 'simple-social-icons' ),
|
174 |
-
'pattern' => '<li><a href="%s" %s><svg role="img" class="social-twitter" aria-labelledby="social-twitter"><title id="social-twitter">' . __( 'Twitter', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-twitter' ) . '"></use></svg></a></li>',
|
175 |
),
|
176 |
'vimeo' => array(
|
177 |
'label' => __( 'Vimeo URI', 'simple-social-icons' ),
|
178 |
-
'pattern' => '<li><a href="%s" %s><svg role="img" class="social-vimeo" aria-labelledby="social-vimeo"><title id="social-vimeo">' . __( 'Vimeo', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-vimeo' ) . '"></use></svg></a></li>',
|
179 |
),
|
180 |
'xing' => array(
|
181 |
'label' => __( 'Xing URI', 'simple-social-icons' ),
|
182 |
-
'pattern' => '<li><a href="%s" %s><svg role="img" class="social-xing" aria-labelledby="social-xing"><title id="social-xing">' . __( 'Xing', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-xing' ) . '"></use></svg></a></li>',
|
183 |
),
|
184 |
'youtube' => array(
|
185 |
'label' => __( 'YouTube URI', 'simple-social-icons' ),
|
186 |
-
'pattern' => '<li><a href="%s" %s><svg role="img" class="social-youtube" aria-labelledby="social-youtube"><title id="social-youtube">' . __( 'YouTube', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-youtube' ) . '"></use></svg></a></li>',
|
187 |
),
|
188 |
) );
|
189 |
|
@@ -402,7 +409,7 @@ class Simple_Social_Icons_Widget extends WP_Widget {
|
|
402 |
|
403 |
$cssfile = apply_filters( 'simple_social_default_stylesheet', plugin_dir_url( __FILE__ ) . 'css/style.css' );
|
404 |
|
405 |
-
wp_enqueue_style( 'simple-social-icons-font', esc_url( $cssfile ), array(),
|
406 |
|
407 |
wp_enqueue_script('svg-x-use', plugin_dir_url(__FILE__) . 'svgxuse.js', array(), '1.1.21' );
|
408 |
}
|
6 |
Author: Nathan Rice
|
7 |
Author URI: http://www.nathanrice.net/
|
8 |
|
9 |
+
Version: 2.0.1
|
10 |
|
11 |
Text Domain: simple-social-icons
|
12 |
Domain Path: /languages
|
25 |
|
26 |
class Simple_Social_Icons_Widget extends WP_Widget {
|
27 |
|
28 |
+
/**
|
29 |
+
* Plugin version for enqueued static resources.
|
30 |
+
*
|
31 |
+
* @var string
|
32 |
+
*/
|
33 |
+
protected $version = '2.0.1';
|
34 |
+
|
35 |
/**
|
36 |
* Default widget values.
|
37 |
*
|
76 |
'background_color' => '#999999',
|
77 |
'background_color_hover' => '#666666',
|
78 |
'alignment' => 'alignleft',
|
79 |
+
'behance' => '',
|
80 |
'bloglovin' => '',
|
81 |
'dribbble' => '',
|
82 |
'email' => '',
|
106 |
$this->profiles = apply_filters( 'simple_social_default_profiles', array(
|
107 |
'behance' => array(
|
108 |
'label' => __( 'Behance URI', 'simple-social-icons' ),
|
109 |
+
'pattern' => '<li class="ssi-behance"><a href="%s" %s><svg role="img" class="social-behance" aria-labelledby="social-behance"><title id="social-behance">' . __( 'Behance', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-behance' ) . '"></use></svg></a></li>',
|
110 |
),
|
111 |
'bloglovin' => array(
|
112 |
'label' => __( 'Bloglovin URI', 'simple-social-icons' ),
|
113 |
+
'pattern' => '<li class="ssi-bloglovin"><a href="%s" %s><svg role="img" class="social-bloglovin" aria-labelledby="social-bloglovin"><title id="social-bloglovin">' . __( 'Bloglovin', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-bloglovin' ) . '"></use></svg></a></li>',
|
114 |
),
|
115 |
'dribbble' => array(
|
116 |
'label' => __( 'Dribbble URI', 'simple-social-icons' ),
|
117 |
+
'pattern' => '<li class="ssi-dribbble"><a href="%s" %s><svg role="img" class="social-dribbble" aria-labelledby="social-dribbble"><title id="social-dribbble">' . __( 'Dribbble', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-dribbble' ) . '"></use></svg></a></li>',
|
118 |
),
|
119 |
'email' => array(
|
120 |
'label' => __( 'Email URI', 'simple-social-icons' ),
|
121 |
+
'pattern' => '<li class="ssi-email"><a href="%s" %s><svg role="img" class="social-email" aria-labelledby="social-email"><title id="social-email">' . __( 'Email', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-email' ) . '"></use></svg></a></li>',
|
122 |
),
|
123 |
'facebook' => array(
|
124 |
'label' => __( 'Facebook URI', 'simple-social-icons' ),
|
125 |
+
'pattern' => '<li class="ssi-facebook"><a href="%s" %s><svg role="img" class="social-facebook" aria-labelledby="social-facebook"><title id="social-facebook">' . __( 'Facebook', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-facebook' ) . '"></use></svg></a></li>',
|
126 |
),
|
127 |
'flickr' => array(
|
128 |
'label' => __( 'Flickr URI', 'simple-social-icons' ),
|
129 |
+
'pattern' => '<li class="ssi-flickr"><a href="%s" %s><svg role="img" class="social-flickr" aria-labelledby="social-flickr"><title id="social-flickr">' . __( 'Flickr', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-flickr' ) . '"></use></svg></a></li>',
|
130 |
),
|
131 |
'github' => array(
|
132 |
'label' => __( 'GitHub URI', 'simple-social-icons' ),
|
133 |
+
'pattern' => '<li class="ssi-github"><a href="%s" %s><svg role="img" class="social-github" aria-labelledby="social-github"><title id="social-github">' . __( 'Github', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-github' ) . '"></use></svg></a></li>',
|
134 |
),
|
135 |
'gplus' => array(
|
136 |
'label' => __( 'Google+ URI', 'simple-social-icons' ),
|
137 |
+
'pattern' => '<li class="ssi-gplus"><a href="%s" %s><svg role="img" class="social-gplus" aria-labelledby="social-gplus"><title id="social-gplus">' . __( 'Google+', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-gplus' ) . '"></use></svg></a></li>',
|
138 |
),
|
139 |
'instagram' => array(
|
140 |
'label' => __( 'Instagram URI', 'simple-social-icons' ),
|
141 |
+
'pattern' => '<li class="ssi-instagram"><a href="%s" %s><svg role="img" class="social-instagram" aria-labelledby="social-instagram"><title id="social-instagram">' . __( 'Instagram', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-instagram' ) . '"></use></svg></a></li>',
|
142 |
),
|
143 |
'linkedin' => array(
|
144 |
'label' => __( 'Linkedin URI', 'simple-social-icons' ),
|
145 |
+
'pattern' => '<li class="ssi-linkedin"><a href="%s" %s><svg role="img" class="social-linkedin" aria-labelledby="social-linkedin"><title id="social-linkedin">' . __( 'Linkedin', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-linkedin' ) . '"></use></svg></a></li>',
|
146 |
),
|
147 |
'medium' => array(
|
148 |
'label' => __( 'Medium URI', 'simple-social-icons' ),
|
149 |
+
'pattern' => '<li class="ssi-medium"><a href="%s" %s><svg role="img" class="social-medium" aria-labelledby="social-medium"><title id="social-medium">' . __( 'Medium', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-medium' ) . '"></use></svg></a></li>',
|
150 |
),
|
151 |
'periscope' => array(
|
152 |
'label' => __( 'Periscope URI', 'simple-social-icons' ),
|
153 |
+
'pattern' => '<li class="ssi-periscope"><a href="%s" %s><svg role="img" class="social-periscope" aria-labelledby="social-periscope"><title id="social-periscope">' . __( 'Periscope', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-periscope' ) . '"></use></svg></a></li>',
|
154 |
),
|
155 |
'phone' => array(
|
156 |
'label' => __( 'Phone URI', 'simple-social-icons' ),
|
157 |
+
'pattern' => '<li class="ssi-phone"><a href="%s" %s><svg role="img" class="social-phone" aria-labelledby="social-phone"><title id="social-phone">' . __( 'Phone', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-phone' ) . '"></use></svg></a></li>',
|
158 |
),
|
159 |
'pinterest' => array(
|
160 |
'label' => __( 'Pinterest URI', 'simple-social-icons' ),
|
161 |
+
'pattern' => '<li class="ssi-pinterest"><a href="%s" %s><svg role="img" class="social-pinterest" aria-labelledby="social-pinterest"><title id="social-pinterest">' . __( 'Pinterest', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-pinterest' ) . '"></use></svg></a></li>',
|
162 |
),
|
163 |
'rss' => array(
|
164 |
'label' => __( 'RSS URI', 'simple-social-icons' ),
|
165 |
+
'pattern' => '<li class="ssi-rss"><a href="%s" %s><svg role="img" class="social-rss" aria-labelledby="social-rss"><title id="social-rss">' . __( 'RSS', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-rss' ) . '"></use></svg></a></li>',
|
166 |
),
|
167 |
'snapchat' => array(
|
168 |
'label' => __( 'Snapchat URI', 'simple-social-icons' ),
|
169 |
+
'pattern' => '<li class="ssi-snapchat"><a href="%s" %s><svg role="img" class="social-snapchat" aria-labelledby="social-snapchat"><title id="social-snapchat">' . __( 'Snapchat', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-snapchat' ) . '"></use></svg></a></li>',
|
170 |
),
|
171 |
'stumbleupon' => array(
|
172 |
'label' => __( 'StumbleUpon URI', 'simple-social-icons' ),
|
173 |
+
'pattern' => '<li class="ssi-stumbleupon"><a href="%s" %s><svg role="img" class="social-stumbleupon" aria-labelledby="social-stumbleupon"><title id="social-stumbleupon">' . __( 'StumbleUpon', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-stumbleupon' ) . '"></use></svg></a></li>',
|
174 |
),
|
175 |
'tumblr' => array(
|
176 |
'label' => __( 'Tumblr URI', 'simple-social-icons' ),
|
177 |
+
'pattern' => '<li class="ssi-tumblr"><a href="%s" %s><svg role="img" class="social-tumblr" aria-labelledby="social-tumblr"><title id="social-tumblr">' . __( 'Tumblr', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-tumblr' ) . '"></use></svg></a></li>',
|
178 |
),
|
179 |
'twitter' => array(
|
180 |
'label' => __( 'Twitter URI', 'simple-social-icons' ),
|
181 |
+
'pattern' => '<li class="ssi-twitter"><a href="%s" %s><svg role="img" class="social-twitter" aria-labelledby="social-twitter"><title id="social-twitter">' . __( 'Twitter', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-twitter' ) . '"></use></svg></a></li>',
|
182 |
),
|
183 |
'vimeo' => array(
|
184 |
'label' => __( 'Vimeo URI', 'simple-social-icons' ),
|
185 |
+
'pattern' => '<li class="ssi-vimeo"><a href="%s" %s><svg role="img" class="social-vimeo" aria-labelledby="social-vimeo"><title id="social-vimeo">' . __( 'Vimeo', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-vimeo' ) . '"></use></svg></a></li>',
|
186 |
),
|
187 |
'xing' => array(
|
188 |
'label' => __( 'Xing URI', 'simple-social-icons' ),
|
189 |
+
'pattern' => '<li class="ssi-xing"><a href="%s" %s><svg role="img" class="social-xing" aria-labelledby="social-xing"><title id="social-xing">' . __( 'Xing', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-xing' ) . '"></use></svg></a></li>',
|
190 |
),
|
191 |
'youtube' => array(
|
192 |
'label' => __( 'YouTube URI', 'simple-social-icons' ),
|
193 |
+
'pattern' => '<li class="ssi-youtube"><a href="%s" %s><svg role="img" class="social-youtube" aria-labelledby="social-youtube"><title id="social-youtube">' . __( 'YouTube', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-youtube' ) . '"></use></svg></a></li>',
|
194 |
),
|
195 |
) );
|
196 |
|
409 |
|
410 |
$cssfile = apply_filters( 'simple_social_default_stylesheet', plugin_dir_url( __FILE__ ) . 'css/style.css' );
|
411 |
|
412 |
+
wp_enqueue_style( 'simple-social-icons-font', esc_url( $cssfile ), array(), $this->version, 'all' );
|
413 |
|
414 |
wp_enqueue_script('svg-x-use', plugin_dir_url(__FILE__) . 'svgxuse.js', array(), '1.1.21' );
|
415 |
}
|
symbol-defs.svg
CHANGED
@@ -30,7 +30,7 @@
|
|
30 |
</symbol>
|
31 |
<symbol id="social-gplus" viewBox="0 0 32 32">
|
32 |
<title>gplus</title>
|
33 |
-
<path class="path1" d="
|
34 |
</symbol>
|
35 |
<symbol id="social-instagram" viewBox="0 0 32 32">
|
36 |
<title>instagram</title>
|
30 |
</symbol>
|
31 |
<symbol id="social-gplus" viewBox="0 0 32 32">
|
32 |
<title>gplus</title>
|
33 |
+
<path class="path1" d="M1 15.6c-.3 4 2.3 7.9 6.1 9.4 3.7 1.4 8.5.5 10.8-2.9 1.6-2.1 1.9-4.8 1.7-7.4h-9.1v3.2c1.8.1 3.6 0 5.4.1-.8 4-6.3 5.3-9.2 2.7-3-2.3-2.8-7.4.3-9.5 2.2-1.7 5.2-1.3 7.4.2.9-.8 1.6-1.6 2.4-2.5-1.8-1.4-4-2.5-6.4-2.4-4.8-.1-9.3 4.2-9.4 9.1zM25.6 12v2.7h-2.7v2.7h2.7v2.7h2.7v-2.7H31v-2.7h-2.7V12h-2.7z"/><path d="M1 15.6c.1-4.9 4.6-9.2 9.5-9 2.4-.1 4.6.9 6.4 2.4-.8.9-1.6 1.7-2.4 2.5-2.2-1.5-5.2-1.9-7.4-.2-3.1 2.1-3.2 7.2-.3 9.5 2.9 2.6 8.4 1.3 9.2-2.7-1.8 0-3.6 0-5.4-.1v-3.2h9.1c.2 2.5-.2 5.3-1.7 7.4-2.4 3.3-7.1 4.3-10.8 2.9C3.3 23.6.7 19.6 1 15.6zM25.6 12h2.7v2.7H31v2.7h-2.7v2.7h-2.7v-2.7h-2.7v-2.7h2.7c-.1-.9-.1-1.8 0-2.7z"></path>
|
34 |
</symbol>
|
35 |
<symbol id="social-instagram" viewBox="0 0 32 32">
|
36 |
<title>instagram</title>
|