Version Description
- Changed text domain to reflect plugin slug
Download this release
Release Info
Developer | Synved |
Plugin | Social Media Feather | social media sharing |
Version | 1.7.9 |
Comparing to | |
See all releases |
Code changes from version 1.7.3 to 1.7.9
- readme.txt +63 -18
- social-media-feather.php +1 -1
- synved-option/addons/option-type-addon/option-type-addon.php +8 -2
- synved-social/synved-social-setup.php +104 -104
- synved-social/synved-social.php +40 -27
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== Social Media Feather - lightweight social media sharing and follow buttons ===
|
2 |
Contributors: Synved
|
3 |
Donate link: http://synved.com/wordpress-social-media-feather/
|
4 |
-
Tags: shortcode, shortcodes, link, links, url, permalink, permalinks, time, icons, button, buttons, free, content, plugin, Share, sharing, social share, social sharing, page, pages, widget, CSS, list, media, profile, shortlinks, social, social media, Like, twitter, google, Facebook, Reddit, youtube, vimeo, tumblr, instagram, flickr, foursquare, bookmark, bookmarks, bookmarking,
|
5 |
Requires at least: 3.1
|
6 |
-
Tested up to: 4.
|
7 |
Stable tag: trunk
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -22,25 +22,25 @@ https://www.youtube.com/watch?v=iJAq2nJi6BM
|
|
22 |
|
23 |
Now the only social sharing and bookmarking plugin with full support for the **Retina and high resolution displays** as used in iPad 5 and other devices!
|
24 |
|
25 |
-
The primary goal behind the plugin is to provide very lightweight WordPress social sharing and following that doesn’t add any unnecessary burden to your site and especially on your users.
|
26 |
|
27 |
-
What sets WordPress Social Media Feather aside from the plethora of other social sharing and following WordPress plugins is its focus on simplicity, performance and unobtrusive impact.
|
28 |
|
29 |
-
In order to achieve
|
30 |
|
31 |
-
By keeping load times at a minimum, you ensure that all the social sharing aspects of your site don’t interfere with those visitors who just want to access the content but are not interested in sharing on social platforms.
|
32 |
|
33 |
-
On the other hand, given the widespread focus on WordPress social media integration, your site will still provide social bookmarks to improve visibility of your posts and content and improve your overall global reach.
|
34 |
|
35 |
-
The **WordPress social media sharing** offered by the plugin includes all major social sharing providers like Facebook, Twitter, Google+, reddit, Pinterest, tumblr, Linkedin and even e-mail.
|
36 |
|
37 |
-
It will show social buttons that your users can click to share to facebook or tweet your posts and pages on your site or submit it to reddit and google plus and all other social sharing networks.
|
38 |
|
39 |
The **WordPress social media following** offered by the plugin includes all major social network providers and tools like Facebook, Twitter, Google+, Pinterest, Linkedin, YouTube, tumblr, instagram, flickr, foursquare, vimeo or RSS.
|
40 |
|
41 |
-
|
42 |
|
43 |
-
You can disable automatic rendering of social icons for specific posts by using *Custom Fields*. Simply set a custom field of `synved_social_exclude_share` to "yes" (without quotes) to disable rendering of sharing buttons on the post/page or `synved_social_exclude_follow` to "yes" (without quotes) to remove following buttons from the post or alternatively `synved_social_exclude` to disable both.
|
44 |
|
45 |
= Features =
|
46 |
* Integrated WordPress social sharing for all your posts
|
@@ -73,8 +73,14 @@ You can change the order of displayed buttons by changing the order of keywords:
|
|
73 |
This shortcode will create a list of social sharing buttons to share content on your site using the "Wheel" icons skin:
|
74 |
`[feather_share skin="wheel"]`
|
75 |
|
76 |
-
This shortcode will create a list of social media sharing buttons to share content on your site using the
|
77 |
-
`[feather_share
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
|
79 |
The next shortcode will create a list of social following buttons that allow visitors to follow you:
|
80 |
`[feather_follow]`
|
@@ -82,9 +88,15 @@ The next shortcode will create a list of social following buttons that allow vis
|
|
82 |
The next shortcode will create a list of social following buttons that allow visitors to follow you, using the "Balloon" icons skin:
|
83 |
`[feather_follow skin="balloon"]`
|
84 |
|
|
|
|
|
|
|
85 |
The next shortcode will create a list of social media following buttons that allow visitors to follow you, using the "Balloon" icons skin with a size of 64 pixels:
|
86 |
`[feather_follow skin="balloon" size="64"]`
|
87 |
|
|
|
|
|
|
|
88 |
= Template Tags =
|
89 |
|
90 |
If you don't want to use shortcodes but instead prefer to use PHP directly, there are 2 PHP functions/template tags you can use.
|
@@ -98,7 +110,7 @@ For following buttons you can use:
|
|
98 |
|
99 |
= Related Links: =
|
100 |
|
101 |
-
* [WordPress Social Media Plugin Official Page](http://synved.com/wordpress-social-media-feather/ "WordPress Social Media Feather – lightweight social sharing and following")
|
102 |
* [Extra Social Icons Skins](http://synved.com/product/feather-extra-social-icons/ "Add 8 extra social icon skins to the Social Media Feather plugin!")
|
103 |
* [Grey Fade addon that can grey out and fade out any social icons set](http://synved.com/product/feather-grey-fade/ "Customize any of the available social icon skins with 2 cool effects!")
|
104 |
* [Light Prompt that adds counts for social shares](http://synved.com/product/feather-light-prompt/ "Add counters for social shares using Light Prompt")
|
@@ -127,18 +139,51 @@ You can achieve this by using *Custom Fields*. Simply set a custom field of `syn
|
|
127 |
|
128 |
You can achieve this by using *Custom Fields*. Simply set a custom field of `synved_social_exclude_follow` to "yes" (without quotes) to remove following buttons from the post or page. Alternatively set `synved_social_exclude` to "yes" (without quotes) to disable both sharing and following.
|
129 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
== Screenshots ==
|
131 |
|
132 |
1. An example of how the sharing or following buttons appear in the front-end at 64 pixel resolution
|
133 |
-
2. An example of how the
|
134 |
-
3. An example of how the
|
135 |
4. Showing how using the [Grey Fade addon](http://synved.com/product/feather-grey-fade/ "Customize any of the available social icon skins with 2 cool effects!") transforms the sharing or following buttons in the front-end
|
136 |
-
5. A demo of how providers can be customized in the back-end
|
137 |
-
6. An view of some of the settings that can be customized in the back-end
|
138 |
7. This shows the available social sharing and following widgets and their settings
|
139 |
|
140 |
== Changelog ==
|
141 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
= 1.7.3 =
|
143 |
* Strip HTML from titles in sharing links
|
144 |
* Fix for certain Fancybox plugins loading lightboxes on sharing images
|
1 |
=== Social Media Feather - lightweight social media sharing and follow buttons ===
|
2 |
Contributors: Synved
|
3 |
Donate link: http://synved.com/wordpress-social-media-feather/
|
4 |
+
Tags: shortcode, shortcodes, link, links, url, permalink, permalinks, time, icons, button, buttons, free, content, plugin, Share, sharing, social share, social sharing, page, pages, widget, CSS, list, media, profile, shortlinks, social, social media, Like, twitter, google, Facebook, Reddit, youtube, vimeo, tumblr, instagram, flickr, foursquare, pinterest, linkedin, social media buttons, bookmark, bookmarks, bookmarking, social links, image, edit, manage, mail, Post, posts, Style, seo, title, filter, follow, following, social following, social follow, Social Media Icons, Social Media Widget, social widget, retina, iOS, iphone, ipad, high resolution, sidebar
|
5 |
Requires at least: 3.1
|
6 |
+
Tested up to: 4.4
|
7 |
Stable tag: trunk
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
22 |
|
23 |
Now the only social sharing and bookmarking plugin with full support for the **Retina and high resolution displays** as used in iPad 5 and other devices!
|
24 |
|
25 |
+
The primary goal behind the plugin is to provide very lightweight WordPress social sharing and following that doesn’t add any unnecessary burden to your site and especially on your users, so you can easily add share buttons and social profiles links to your posts and pages automatically and speedily.
|
26 |
|
27 |
+
What sets WordPress Social Media Feather aside from the plethora of other social sharing and following WordPress plugins is its focus on simplicity, performance and unobtrusive impact. Social share buttons and links to your social pages are fast to setup with automatic display or social widgets.
|
28 |
|
29 |
+
In order to achieve higher performance the plugin makes no use of JavaScript and as a consequence it’s **really fast** while still providing all the social media functionality you might need, like very professional social share buttons with high quality icons.
|
30 |
|
31 |
+
By keeping load times at a minimum, you ensure that all the social sharing aspects of your site don’t interfere with those visitors who just want to access the content but are not interested in sharing on social media platforms.
|
32 |
|
33 |
+
On the other hand, given the widespread focus on WordPress social media integration, your site will still provide social bookmarks and share buttons to improve visibility of your posts and content and improve your overall global reach on social platforms.
|
34 |
|
35 |
+
The **WordPress social media sharing** offered by the plugin includes all major social sharing buttons providers like Facebook, Twitter, Google+, reddit, Pinterest, tumblr, Linkedin and even e-mail.
|
36 |
|
37 |
+
It will show social buttons that your users can click to share to facebook or tweet your posts and pages on your site or submit it to reddit and google plus or publish it on tumblr and all other social sharing networks.
|
38 |
|
39 |
The **WordPress social media following** offered by the plugin includes all major social network providers and tools like Facebook, Twitter, Google+, Pinterest, Linkedin, YouTube, tumblr, instagram, flickr, foursquare, vimeo or RSS.
|
40 |
|
41 |
+
Our social media plugin also offers widgets for sharing and following buttons that you can place in any widgetized area in your site and the widgets also expose some settings and parameters to tweak the appearance of the social buttons. The plugin also provides shortcodes that can be used for the same purpose, creating both share and follow buttons and allowing selection of visibility of different social media networks or reordering how the various social networks appear (see example shortcodes at the bottom).
|
42 |
|
43 |
+
You can disable automatic rendering of social icons for specific posts by using *Custom Fields*. Simply set a custom field of `synved_social_exclude_share` to "yes" (without quotes) to disable rendering of sharing buttons on the post/page or `synved_social_exclude_follow` to "yes" (without quotes) to remove following buttons from the post or alternatively `synved_social_exclude` to disable both. The *Custom Fields* editor needs to be enabled on your post/page edit screen by clicking at the top right where it says "Screen Options".
|
44 |
|
45 |
= Features =
|
46 |
* Integrated WordPress social sharing for all your posts
|
73 |
This shortcode will create a list of social sharing buttons to share content on your site using the "Wheel" icons skin:
|
74 |
`[feather_share skin="wheel"]`
|
75 |
|
76 |
+
This shortcode will create a list of social media sharing buttons to share content on your site using the default icon skin with a size of 64 pixels:
|
77 |
+
`[feather_share size="64"]`
|
78 |
+
|
79 |
+
You can add a custom CSS class to your share buttons using the "class" attribute:
|
80 |
+
`[feather_share class="myclass"]`
|
81 |
+
|
82 |
+
You can combine all the parameters above to customize the look, for instance using the "Wheel" icon skin at a size of 64 pixels and only showing Google+, Twitter and Facebook, in that specific order:
|
83 |
+
`[feather_share skin="wheel" size="64" show="google_plus, twitter, facebook" hide="reddit, pinterest, linkedin, tumblr, mail"]`
|
84 |
|
85 |
The next shortcode will create a list of social following buttons that allow visitors to follow you:
|
86 |
`[feather_follow]`
|
88 |
The next shortcode will create a list of social following buttons that allow visitors to follow you, using the "Balloon" icons skin:
|
89 |
`[feather_follow skin="balloon"]`
|
90 |
|
91 |
+
You can add a custom CSS class to your social profiles buttons using the "class" attribute:
|
92 |
+
`[feather_follow class="myclass"]`
|
93 |
+
|
94 |
The next shortcode will create a list of social media following buttons that allow visitors to follow you, using the "Balloon" icons skin with a size of 64 pixels:
|
95 |
`[feather_follow skin="balloon" size="64"]`
|
96 |
|
97 |
+
You can specify a manual URL to be used for the sharing buttons:
|
98 |
+
`[feather_share url="http://www.example.org"]`
|
99 |
+
|
100 |
= Template Tags =
|
101 |
|
102 |
If you don't want to use shortcodes but instead prefer to use PHP directly, there are 2 PHP functions/template tags you can use.
|
110 |
|
111 |
= Related Links: =
|
112 |
|
113 |
+
* [WordPress Social Media Plugin Official Page](http://synved.com/wordpress-social-media-feather/ "WordPress Social Media Feather – lightweight WordPress social sharing and following")
|
114 |
* [Extra Social Icons Skins](http://synved.com/product/feather-extra-social-icons/ "Add 8 extra social icon skins to the Social Media Feather plugin!")
|
115 |
* [Grey Fade addon that can grey out and fade out any social icons set](http://synved.com/product/feather-grey-fade/ "Customize any of the available social icon skins with 2 cool effects!")
|
116 |
* [Light Prompt that adds counts for social shares](http://synved.com/product/feather-light-prompt/ "Add counters for social shares using Light Prompt")
|
139 |
|
140 |
You can achieve this by using *Custom Fields*. Simply set a custom field of `synved_social_exclude_follow` to "yes" (without quotes) to remove following buttons from the post or page. Alternatively set `synved_social_exclude` to "yes" (without quotes) to disable both sharing and following.
|
141 |
|
142 |
+
= How do I change the Twitter button to twit the title of the post instead of the message "Hey, check this out"? =
|
143 |
+
|
144 |
+
You can achieve this by editing the Twitter Share Link under Settings -> Social Media from this:
|
145 |
+
`http://twitter.com/share?url=%%url%%&text=%%message%%`
|
146 |
+
to this:
|
147 |
+
`http://twitter.com/share?url=%%url%%&text=%%title%%`
|
148 |
+
|
149 |
+
= How do I only show sharing buttons in my sidebar, rather than under each post? =
|
150 |
+
|
151 |
+
Go to Settings -> Social Media and under "Automatic Display" uncheck "Display Sharing Buttons" as well as "Display Follow Buttons". Then go under Appearance -> Widgets and add the "Social Media Feather: Sharing" widget to your sidebar.
|
152 |
+
|
153 |
+
= How do I only show follow buttons in my sidebar, rather than under each post? =
|
154 |
+
|
155 |
+
Go to Settings -> Social Media and under "Automatic Display" uncheck "Display Sharing Buttons" as well as "Display Follow Buttons". Then go under Appearance -> Widgets and add the "Social Media Feather: Follow Us" widget to your sidebar.
|
156 |
+
|
157 |
== Screenshots ==
|
158 |
|
159 |
1. An example of how the sharing or following buttons appear in the front-end at 64 pixel resolution
|
160 |
+
2. An example of how the share or follow icons appear in the front-end at 24 pixel resolution
|
161 |
+
3. An example of how the following or sharing links appear in the front-end using the [Extra Social Icons addon](http://synved.com/product/feather-extra-social-icons/ "Add 8 extra social icon skins to the Social Media Feather plugin!")
|
162 |
4. Showing how using the [Grey Fade addon](http://synved.com/product/feather-grey-fade/ "Customize any of the available social icon skins with 2 cool effects!") transforms the sharing or following buttons in the front-end
|
163 |
+
5. A demo of how social media providers can be customized in the back-end
|
164 |
+
6. An view of some of the settings that can be customized in Social Media the back-end
|
165 |
7. This shows the available social sharing and following widgets and their settings
|
166 |
|
167 |
== Changelog ==
|
168 |
|
169 |
+
= 1.7.9 =
|
170 |
+
* Changed text domain to reflect plugin slug
|
171 |
+
|
172 |
+
= 1.7.8 =
|
173 |
+
* Disable credit link by default
|
174 |
+
|
175 |
+
= 1.7.7 =
|
176 |
+
* Fixed addon installer's path calculation for rare cases
|
177 |
+
|
178 |
+
= 1.7.6 =
|
179 |
+
* Minor adjustments
|
180 |
+
|
181 |
+
= 1.7.5 =
|
182 |
+
* Updated social network links descriptions to be more clear
|
183 |
+
|
184 |
+
= 1.7.4 =
|
185 |
+
* Cache provider list to improve performance when social buttons are shown many times
|
186 |
+
|
187 |
= 1.7.3 =
|
188 |
* Strip HTML from titles in sharing links
|
189 |
* Fix for certain Fancybox plugins loading lightboxes on sharing images
|
social-media-feather.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Social Media Feather
|
|
4 |
Plugin URI: http://synved.com/wordpress-social-media-feather/
|
5 |
Description: Super lightweight social media plugin to add nice and effective social media sharing and following buttons and icons anywhere on your site quickly and easily
|
6 |
Author: Synved
|
7 |
-
Version: 1.7.
|
8 |
Author URI: http://synved.com/
|
9 |
|
10 |
LEGAL STATEMENTS
|
4 |
Plugin URI: http://synved.com/wordpress-social-media-feather/
|
5 |
Description: Super lightweight social media plugin to add nice and effective social media sharing and following buttons and icons anywhere on your site quickly and easily
|
6 |
Author: Synved
|
7 |
+
Version: 1.7.9
|
8 |
Author URI: http://synved.com/
|
9 |
|
10 |
LEGAL STATEMENTS
|
synved-option/addons/option-type-addon/option-type-addon.php
CHANGED
@@ -4,7 +4,7 @@ if (!function_exists('synved_option_render_type_addon'))
|
|
4 |
{
|
5 |
function synved_option_addon_type_addon_version()
|
6 |
{
|
7 |
-
return
|
8 |
}
|
9 |
|
10 |
function synved_option_render_type_addon($id, $name, $item, $out_name, $extra = null)
|
@@ -64,10 +64,16 @@ function synved_option_item_addon_install($id, $name, $item)
|
|
64 |
{
|
65 |
global $wp_filesystem;
|
66 |
|
|
|
67 |
$dirs = glob($path . '*', GLOB_ONLYDIR);
|
68 |
|
|
|
|
|
|
|
|
|
|
|
69 |
wp_mkdir_p(realpath($path));
|
70 |
-
$return = unzip_file($tmpfname,
|
71 |
|
72 |
if ($wp_filesystem != null)
|
73 |
{
|
4 |
{
|
5 |
function synved_option_addon_type_addon_version()
|
6 |
{
|
7 |
+
return 100000003;
|
8 |
}
|
9 |
|
10 |
function synved_option_render_type_addon($id, $name, $item, $out_name, $extra = null)
|
64 |
{
|
65 |
global $wp_filesystem;
|
66 |
|
67 |
+
$unzip_path = realpath($path);
|
68 |
$dirs = glob($path . '*', GLOB_ONLYDIR);
|
69 |
|
70 |
+
if ($wp_filesystem != null)
|
71 |
+
{
|
72 |
+
$unzip_path = $wp_filesystem->find_folder($unzip_path);
|
73 |
+
}
|
74 |
+
|
75 |
wp_mkdir_p(realpath($path));
|
76 |
+
$return = unzip_file($tmpfname, $unzip_path);
|
77 |
|
78 |
if ($wp_filesystem != null)
|
79 |
{
|
synved-social/synved-social-setup.php
CHANGED
@@ -56,8 +56,8 @@ function synved_social_provider_settings()
|
|
56 |
'default' => $display_default,
|
57 |
'style' => 'group',
|
58 |
'set' => $display_set,
|
59 |
-
'label' => __($provider_label . ' Service', '
|
60 |
-
'tip' => __('Decides for what types of services ' . $provider_label . ' will be used by default', '
|
61 |
),
|
62 |
)
|
63 |
);
|
@@ -69,13 +69,13 @@ function synved_social_provider_settings()
|
|
69 |
$providers_settings = array_merge($providers_settings,
|
70 |
array(
|
71 |
$provider_name . '_share_link' => array(
|
72 |
-
'label' => __($provider_label . ' Share Link', '
|
73 |
-
'tip' => __('The link used by default for sharing content on ' . $provider_label . '
|
74 |
'hint' => $share_item['link']
|
75 |
),
|
76 |
$provider_name . '_share_title' => array(
|
77 |
-
'label' => __($provider_label . ' Share Title', '
|
78 |
-
'tip' => __('The title used by default for the ' . $provider_label . ' share button (a standard one will be used if left empty)', '
|
79 |
'hint' => $share_item['title']
|
80 |
),
|
81 |
)
|
@@ -89,13 +89,13 @@ function synved_social_provider_settings()
|
|
89 |
$providers_settings = array_merge($providers_settings,
|
90 |
array(
|
91 |
$provider_name . '_follow_link' => array(
|
92 |
-
'label' => __($provider_label . ' Follow Link', '
|
93 |
-
'tip' => __('The link used by default for following you on ' . $provider_label, '
|
94 |
'hint' => $follow_item['link']
|
95 |
),
|
96 |
$provider_name . '_follow_title' => array(
|
97 |
-
'label' => __($provider_label . ' Follow Title', '
|
98 |
-
'tip' => __('The title used by default for the ' . $provider_label . ' follow button (a standard one will be used if left empty)', '
|
99 |
'hint' => $follow_item['title']
|
100 |
),
|
101 |
)
|
@@ -115,126 +115,126 @@ $synved_social_options = array(
|
|
115 |
'render-fragment' => 'synved_social_page_render_fragment',
|
116 |
'sections' => array(
|
117 |
'section_general' => array(
|
118 |
-
'label' => __('General Settings', '
|
119 |
-
'tip' => __('Settings affecting the general behaviour of the plugin', '
|
120 |
'settings' => array(
|
121 |
'use_shortlinks' => array(
|
122 |
-
'default' => false, 'label' => __('Use Shortlinks', '
|
123 |
-
'tip' => __('Allows for shortened URLs to be used when sharing content if a shortening plugin is installed', '
|
124 |
),
|
125 |
'share_full_url' => array(
|
126 |
-
'default' => false, 'label' => __('Share Full URL', '
|
127 |
-
'tip' => __('Determines whether to always share the full URL or just the post permalink. You can override this for individual posts by setting the "synved_social_share_full_url" custom field to either "yes" or "no", case sensitive', '
|
128 |
),
|
129 |
'layout_rtl' => array(
|
130 |
-
'default' => false, 'label' => __('Right To Left Layout', '
|
131 |
-
'tip' => __('Check this option if you have a right-to-left site layout and icons show spacing issues', '
|
132 |
),
|
133 |
'shortcode_widgets' => array(
|
134 |
-
'default' => true, 'label' => __('Shortcodes In Widgets', '
|
135 |
-
'tip' => __('Allow shortcodes in Text widgets', '
|
136 |
),
|
137 |
'show_credit' => array(
|
138 |
-
'default' =>
|
139 |
-
'tip' => __('Display a small icon with a link to the Social Media Feather page', '
|
140 |
),
|
141 |
'share_message_default' => array(
|
142 |
-
'default' => __('Hey check this out', '
|
143 |
-
'tip' => __('Specify the default message to use when sharing content, this is what gets replaced into the %%message%% variable', '
|
144 |
),
|
145 |
)
|
146 |
),
|
147 |
'section_automatic_display' => array(
|
148 |
-
'label' => __('Automatic Display', '
|
149 |
-
'tip' => __('Settings affecting automating appending of social buttons to post contents', '
|
150 |
'settings' => array(
|
151 |
'automatic_share' => array(
|
152 |
-
'default' => false, 'label' => __('Display Sharing Buttons', '
|
153 |
-
'tip' => __('Tries to automatically append sharing buttons to your posts (disable for specific posts by setting custom field synved_social_exclude or synved_social_exclude_share to "yes", case sensitive)', '
|
154 |
),
|
155 |
'automatic_share_position' => array(
|
156 |
'default' => 'after_post',
|
157 |
'set' => 'after_post=After Post,before_post=Before Post,after_before_post=After and Before Post',
|
158 |
-
'label' => __('Share Buttons Position', '
|
159 |
-
'tip' => __('Select where the sharing buttons should be placed. Note: placing buttons Before Post might not work in all themes.', '
|
160 |
),
|
161 |
'automatic_share_single' => array(
|
162 |
-
'default' => false, 'label' => __('Sharing Single Posts', '
|
163 |
-
'tip' => __('Sharing buttons are only displayed on single posts/pages and not on archive pages like blog/category/tag/author pages', '
|
164 |
),
|
165 |
'automatic_share_post_types' => array(
|
166 |
'type' => 'custom',
|
167 |
'default' => 'post',
|
168 |
'set' => synved_option_callback('synved_social_automatic_append_post_types_set', array('post', 'page')),
|
169 |
-
'label' => __('Share Post Types', '
|
170 |
-
'tip' => __('Post types for which automatic appending for share buttons should be attempted (CTRL + click to select multiple ones)', '
|
171 |
'render' => 'synved_social_automatic_append_post_types_render'
|
172 |
),
|
173 |
'automatic_share_prefix' => array(
|
174 |
-
'default' => '', 'label' => __('Share Prefix Markup', '
|
175 |
-
'tip' => __('When automatically appending, place this markup before the share buttons markup', '
|
176 |
),
|
177 |
'automatic_share_postfix' => array(
|
178 |
-
'default' => '', 'label' => __('Share Postfix Markup', '
|
179 |
-
'tip' => __('When automatically appending, place this markup after all of the share buttons markup', '
|
180 |
),
|
181 |
'automatic_follow' => array(
|
182 |
-
'default' => false, 'label' => __('Display Follow Buttons', '
|
183 |
-
'tip' => __('Tries to automatically append follow buttons to your posts (disable for specific posts by setting custom field synved_social_exclude or synved_social_exclude_follow to "yes", case sensitive)', '
|
184 |
),
|
185 |
'automatic_follow_position' => array(
|
186 |
'default' => 'after_post',
|
187 |
'set' => 'after_post=After Post,before_post=Before Post,after_before_post=After and Before Post',
|
188 |
-
'label' => __('Follow Buttons Position', '
|
189 |
-
'tip' => __('Select where the follow buttons should be placed. Note: placing buttons Before Post might not work in all themes.', '
|
190 |
),
|
191 |
'automatic_follow_single' => array(
|
192 |
-
'default' => false, 'label' => __('Follow Single Posts', '
|
193 |
-
'tip' => __('Follow buttons are only displayed on single posts/pages and not on archive pages like blog/category/tag/author pages', '
|
194 |
),
|
195 |
'automatic_follow_post_types' => array(
|
196 |
'type' => 'custom',
|
197 |
'default' => 'post',
|
198 |
'set' => synved_option_callback('synved_social_automatic_append_post_types_set', array('post', 'page')),
|
199 |
-
'label' => __('Follow Post Types', '
|
200 |
-
'tip' => __('Post types for which automatic appending for follow buttons should be attempted (CTRL + click to select multiple ones)', '
|
201 |
'render' => 'synved_social_automatic_append_post_types_render'
|
202 |
),
|
203 |
'automatic_follow_before_share' => array(
|
204 |
-
'default' => false, 'label' => __('Follow Before Share', '
|
205 |
-
'tip' => __('When automatically appending, place follow buttons before share buttons. Only valid when share and follow buttons positions are the same.', '
|
206 |
),
|
207 |
'automatic_follow_prefix' => array(
|
208 |
-
'default' => '', 'label' => __('Follow Prefix Markup', '
|
209 |
-
'tip' => __('When automatically appending, place this markup before the follow buttons markup', '
|
210 |
),
|
211 |
'automatic_follow_postfix' => array(
|
212 |
-
'default' => '', 'label' => __('Follow Postfix Markup', '
|
213 |
-
'tip' => __('When automatically appending, place this markup after all of the follow buttons markup', '
|
214 |
),
|
215 |
'automatic_append_prefix' => array(
|
216 |
-
'default' => '', 'label' => __('Prefix Markup', '
|
217 |
-
'tip' => __('When automatically appending, place this markup before the buttons markup', '
|
218 |
),
|
219 |
'automatic_append_separator' => array(
|
220 |
-
'default' => '<br/>', 'label' => __('Separator Markup', '
|
221 |
-
'tip' => __('When automatically appending both, use this markup as separator between the set of share buttons and the set of follow buttons. Only valid when share and follow buttons positions are the same.', '
|
222 |
),
|
223 |
'automatic_append_postfix' => array(
|
224 |
-
'default' => '', 'label' => __('Postfix Markup', '
|
225 |
-
'tip' => __('When automatically appending, place this markup after all of the buttons markup', '
|
226 |
),
|
227 |
)
|
228 |
),
|
229 |
'section_customize_look' => array(
|
230 |
-
'label' => __('Customize Look', '
|
231 |
-
'tip' => synved_option_callback('synved_social_section_customize_look_tip', __('Customize the look & feel of Social Media Feather', '
|
232 |
'settings' => array(
|
233 |
'icon_skin' => array(
|
234 |
'default' => 'regular',
|
235 |
'set' => synved_option_callback('synved_social_cb_icon_skin_set', 'regular=Regular'),
|
236 |
-
'label' => __('Icon Skin', '
|
237 |
-
'tip' => synved_option_callback('synved_social_setting_icon_skin_tip',__('Select the default skin to use for the icons', '
|
238 |
'render' => 'synved_social_icon_skin_render'
|
239 |
),
|
240 |
'addon_extra_icons' => array(
|
@@ -243,8 +243,8 @@ $synved_social_options = array(
|
|
243 |
'folder' => 'extra-icons',
|
244 |
'module' => 'synved-social',
|
245 |
'style' => 'addon-important',
|
246 |
-
'label' => __('Extra Icon Skins', '
|
247 |
-
'tip' => synved_option_callback('synved_social_option_addon_extra_icons_tip', __('Click the button to install the "Extra Social Icons" addon, get it <a target="_blank" href="http://synved.com/product/feather-extra-social-icons/">here</a>.', '
|
248 |
),
|
249 |
'addon_grey_fade' => array(
|
250 |
'type' => 'addon',
|
@@ -252,8 +252,8 @@ $synved_social_options = array(
|
|
252 |
'folder' => 'grey-fade',
|
253 |
'module' => 'synved-social',
|
254 |
'style' => 'addon-important',
|
255 |
-
'label' => __('Grey Fade Effect', '
|
256 |
-
'tip' => synved_option_callback('synved_social_option_addon_grey_fade_tip', __('Click the button to install the "Grey Fade" addon, get it <a target="_blank" href="http://synved.com/product/feather-grey-fade/">here</a>.', '
|
257 |
),
|
258 |
'addon_light_prompt' => array(
|
259 |
'type' => 'addon',
|
@@ -261,60 +261,60 @@ $synved_social_options = array(
|
|
261 |
'folder' => 'light-prompt',
|
262 |
'module' => 'synved-social',
|
263 |
'style' => 'addon-important',
|
264 |
-
'label' => __('Light Prompt Overlay', '
|
265 |
-
'tip' => synved_option_callback('synved_social_option_addon_light_prompt_tip', __('Click the button to install the "Light Prompt" addon, get it <a target="_blank" href="http://synved.com/product/feather-light-prompt/">here</a>.', '
|
266 |
),
|
267 |
'icon_size' => array(
|
268 |
'default' => 48,
|
269 |
'set' => '16=16x16,24=24x24,32=32x32,48=48x48,64=64x64,96=96x96',
|
270 |
-
'label' => __('Icon Size', '
|
271 |
-
'tip' => __('Select the size in pixels for the icons. Note: for high resolution displays like Retina the maximum size is 64x64.', '
|
272 |
),
|
273 |
'icon_resolution' => array(
|
274 |
'default' => 'single',
|
275 |
'set' => 'single=Single,double=Double',
|
276 |
-
'label' => __('Icon Resolution', '
|
277 |
-
'tip' => __('Select what icon resolutions will be used. Single might make the icons slightly blurry on low resolution displays. Double will always look the best but will consume more bandwidth.', '
|
278 |
),
|
279 |
'icon_spacing' => array(
|
280 |
'default' => 5,
|
281 |
-
'label' => __('Icon Spacing', '
|
282 |
-
'tip' => __('Select the spacing in pixels between the icons', '
|
283 |
),
|
284 |
'buttons_container' => array(
|
285 |
'default' => 'none',
|
286 |
'set' => 'none=None,share=Sharing Buttons,follow=Following Buttons,both=Both',
|
287 |
-
'label' => __('Buttons in Container', '
|
288 |
-
'tip' => __('Determines whether or not to wrap the buttons in a container, which will affect how the buttons are rendered, based on the "Buttons Container Type" setting.', '
|
289 |
),
|
290 |
'buttons_container_type' => array(
|
291 |
'default' => 'basic',
|
292 |
'set' => 'basic=Basic,block=Block',
|
293 |
-
'label' => __('Buttons Container Type', '
|
294 |
-
'tip' => __('"Basic" should not affect rendering, while "Block" should display the buttons in their own row. <b>Note</b>: selecting "Block" might not look the way you want if you\'re using Prefix or Postfix markup.', '
|
295 |
),
|
296 |
'buttons_alignment_share' => array(
|
297 |
'default' => 'none',
|
298 |
'set' => 'none=Theme Default,left=Align Left,right=Align Right,center=Align Center',
|
299 |
-
'label' => __('Share Buttons Alignment', '
|
300 |
-
'tip' => __('Will attempt at aligning the share buttons accordingly. <strong>Note:</strong> this will enforce "Buttons Container Type" of "Block" and might not work reliably on all themes', '
|
301 |
),
|
302 |
'buttons_alignment_follow' => array(
|
303 |
'default' => 'none',
|
304 |
'set' => 'none=Theme Default,left=Align Left,right=Align Right,center=Align Center',
|
305 |
-
'label' => __('Follow Buttons Alignment', '
|
306 |
-
'tip' => __('Will attempt at aligning the follow buttons accordingly. <strong>Note:</strong> this will enforce "Buttons Container Type" of "Block" and might not work reliably on all themes', '
|
307 |
),
|
308 |
'custom_style' => array(
|
309 |
'type' => 'style',
|
310 |
-
'label' => __('Extra Styles', '
|
311 |
-
'tip' => __('Any CSS styling code you type in here will be loaded after all of the Social Media Feather styles.', '
|
312 |
),
|
313 |
)
|
314 |
),
|
315 |
'section_service_providers' => array(
|
316 |
-
'label' => __('Service Providers', '
|
317 |
-
'tip' => __('Customize social sharing and following providers', '
|
318 |
'settings' => synved_social_provider_settings()
|
319 |
)
|
320 |
)
|
@@ -341,7 +341,7 @@ function synved_social_page_settings_tip($tip, $item)
|
|
341 |
{
|
342 |
if (!function_exists('synved_shortcode_version'))
|
343 |
{
|
344 |
-
$tip .= ' <div style="background:#f2f2f2;font-size:110%;color:#444;margin-right:270px;padding:10px 15px;"><b>' . __('Note', '
|
345 |
}
|
346 |
|
347 |
if (function_exists('synved_connect_support_social_follow_render'))
|
@@ -356,7 +356,7 @@ function synved_social_page_render_fragment($fragment, $out, $params)
|
|
356 |
{
|
357 |
if ($fragment == 'page-submit-tail')
|
358 |
{
|
359 |
-
$out .= '<div style="clear:both; margin-top: -12px;"><a target="_blank" href="http://wordpress.org/support/view/plugin-reviews/social-media-feather?rate=5#postform">If you like the plugin, you can help us by leaving a 5
|
360 |
}
|
361 |
|
362 |
return $out;
|
@@ -489,11 +489,11 @@ function synved_social_option_addon_extra_icons_tip($tip, $item)
|
|
489 |
// missing icons for installed extra-icons addon
|
490 |
if (!function_exists('synved_social_addon_extra_icons_version'))
|
491 |
{
|
492 |
-
$tip .= ' <span style="background:#ecc;padding:5px 8px;">' . __('The "Extra Social Icons" addon is already installed but requires an update for recently added providers, please use your download link or <a href="http://synved.com/about/contact/?subject=Feather%20Extra%20Icons%20new%20link">request a new one</a>', '
|
493 |
}
|
494 |
else
|
495 |
{
|
496 |
-
$tip .= ' <span style="background:#eee;padding:5px 8px;">' . __('The "Extra Social Icons" addon is already installed! You can use the button to re-install it.', '
|
497 |
}
|
498 |
}
|
499 |
|
@@ -506,7 +506,7 @@ function synved_social_option_addon_grey_fade_tip($tip, $item)
|
|
506 |
|
507 |
if (synved_option_addon_installed('synved_social', 'addon_grey_fade'))
|
508 |
{
|
509 |
-
$tip .= ' <span style="background:#eee;padding:5px 8px;">' . __('The "Grey Fade" addon is already installed! You can use the button to re-install it.', '
|
510 |
}
|
511 |
else
|
512 |
{
|
@@ -522,7 +522,7 @@ function synved_social_option_addon_light_prompt_tip($tip, $item)
|
|
522 |
|
523 |
if (synved_option_addon_installed('synved_social', 'addon_light_prompt'))
|
524 |
{
|
525 |
-
$tip .= ' <span style="background:#eee;padding:5px 8px;">' . __('The "Light Prompt" addon is already installed! You can use the button to re-install it.', '
|
526 |
}
|
527 |
else
|
528 |
{
|
@@ -946,22 +946,22 @@ function synved_social_init()
|
|
946 |
$providers_follow = array_keys(synved_social_service_provider_list('follow'));
|
947 |
|
948 |
$providers_params = array(
|
949 |
-
'show' => __('Specify a comma-separated list of %1$s providers to show and their order, possible values are %2$s', '
|
950 |
-
'hide' => __('Specify a comma-separated list of %1$s providers to hide, possible values are %2$s', '
|
951 |
);
|
952 |
|
953 |
$common_params = array(
|
954 |
-
'skin' => __('Specify which skin to use for the icons', '
|
955 |
-
'size' => sprintf(__('Specify the size for the icons, possible values are %s', '
|
956 |
-
'spacing' => __('Determines how much blank space there will be between the buttons, in pixels', '
|
957 |
-
'container' => __('Determines whether to wrap the buttons in a container', '
|
958 |
-
'container_type' => sprintf(__('Determines what type of container to use, possible values are %1$s', '
|
959 |
-
'class' => __('Select additional CSS classes for the buttons, separated by spaces', '
|
960 |
);
|
961 |
|
962 |
$share_params = array(
|
963 |
-
'url' => __('URL to use for the sharing buttons, default is the current post URL', '
|
964 |
-
'title' => __('Title to use for the sharing buttons, default is the current post title', '
|
965 |
);
|
966 |
|
967 |
$follow_params = array(
|
@@ -977,11 +977,11 @@ function synved_social_init()
|
|
977 |
}
|
978 |
|
979 |
synved_shortcode_item_help_set('feather_share', array(
|
980 |
-
'tip' => __('Creates a list of buttons for social sharing as selected in the Social Media options', '
|
981 |
'parameters' => $share_params
|
982 |
));
|
983 |
synved_shortcode_item_help_set('feather_follow', array(
|
984 |
-
'tip' => __('Creates a list of buttons for social following as selected in the Social Media options', '
|
985 |
'parameters' => $follow_params
|
986 |
));
|
987 |
}
|
56 |
'default' => $display_default,
|
57 |
'style' => 'group',
|
58 |
'set' => $display_set,
|
59 |
+
'label' => __($provider_label . ' Service', 'social-media-feather'),
|
60 |
+
'tip' => __('Decides for what types of services ' . $provider_label . ' will be used by default', 'social-media-feather')
|
61 |
),
|
62 |
)
|
63 |
);
|
69 |
$providers_settings = array_merge($providers_settings,
|
70 |
array(
|
71 |
$provider_name . '_share_link' => array(
|
72 |
+
'label' => __($provider_label . ' Share Link', 'social-media-feather'),
|
73 |
+
'tip' => __('The link used by default for sharing content on ' . $provider_label . '. <b>Note: this generally doesn\'t need to be changed, only change it if you know what you\'re doing.</b>', 'social-media-feather'),
|
74 |
'hint' => $share_item['link']
|
75 |
),
|
76 |
$provider_name . '_share_title' => array(
|
77 |
+
'label' => __($provider_label . ' Share Title', 'social-media-feather'),
|
78 |
+
'tip' => __('The title used by default for the ' . $provider_label . ' share button (a standard one will be used if left empty)', 'social-media-feather'),
|
79 |
'hint' => $share_item['title']
|
80 |
),
|
81 |
)
|
89 |
$providers_settings = array_merge($providers_settings,
|
90 |
array(
|
91 |
$provider_name . '_follow_link' => array(
|
92 |
+
'label' => __($provider_label . ' Follow Link', 'social-media-feather'),
|
93 |
+
'tip' => __('The link used by default for following you on ' . $provider_label . '. Change this to point to your own social profile page on ' . $provider_label . '.', 'social-media-feather'),
|
94 |
'hint' => $follow_item['link']
|
95 |
),
|
96 |
$provider_name . '_follow_title' => array(
|
97 |
+
'label' => __($provider_label . ' Follow Title', 'social-media-feather'),
|
98 |
+
'tip' => __('The title used by default for the ' . $provider_label . ' follow button (a standard one will be used if left empty)', 'social-media-feather'),
|
99 |
'hint' => $follow_item['title']
|
100 |
),
|
101 |
)
|
115 |
'render-fragment' => 'synved_social_page_render_fragment',
|
116 |
'sections' => array(
|
117 |
'section_general' => array(
|
118 |
+
'label' => __('General Settings', 'social-media-feather'),
|
119 |
+
'tip' => __('Settings affecting the general behaviour of the plugin', 'social-media-feather'),
|
120 |
'settings' => array(
|
121 |
'use_shortlinks' => array(
|
122 |
+
'default' => false, 'label' => __('Use Shortlinks', 'social-media-feather'),
|
123 |
+
'tip' => __('Allows for shortened URLs to be used when sharing content if a shortening plugin is installed', 'social-media-feather')
|
124 |
),
|
125 |
'share_full_url' => array(
|
126 |
+
'default' => false, 'label' => __('Share Full URL', 'social-media-feather'),
|
127 |
+
'tip' => __('Determines whether to always share the full URL or just the post permalink. You can override this for individual posts by setting the "synved_social_share_full_url" custom field to either "yes" or "no", case sensitive', 'social-media-feather')
|
128 |
),
|
129 |
'layout_rtl' => array(
|
130 |
+
'default' => false, 'label' => __('Right To Left Layout', 'social-media-feather'),
|
131 |
+
'tip' => __('Check this option if you have a right-to-left site layout and icons show spacing issues', 'social-media-feather')
|
132 |
),
|
133 |
'shortcode_widgets' => array(
|
134 |
+
'default' => true, 'label' => __('Shortcodes In Widgets', 'social-media-feather'),
|
135 |
+
'tip' => __('Allow shortcodes in Text widgets', 'social-media-feather')
|
136 |
),
|
137 |
'show_credit' => array(
|
138 |
+
'default' => false, 'label' => __('Show Credit', 'social-media-feather'),
|
139 |
+
'tip' => __('Display a small icon with a link to the Social Media Feather page', 'social-media-feather')
|
140 |
),
|
141 |
'share_message_default' => array(
|
142 |
+
'default' => __('Hey check this out', 'social-media-feather'), 'label' => __('Default Message', 'social-media-feather'),
|
143 |
+
'tip' => __('Specify the default message to use when sharing content, this is what gets replaced into the %%message%% variable', 'social-media-feather')
|
144 |
),
|
145 |
)
|
146 |
),
|
147 |
'section_automatic_display' => array(
|
148 |
+
'label' => __('Automatic Display', 'social-media-feather'),
|
149 |
+
'tip' => __('Settings affecting automating appending of social buttons to post contents', 'social-media-feather'),
|
150 |
'settings' => array(
|
151 |
'automatic_share' => array(
|
152 |
+
'default' => false, 'label' => __('Display Sharing Buttons', 'social-media-feather'),
|
153 |
+
'tip' => __('Tries to automatically append sharing buttons to your posts (disable for specific posts by setting custom field synved_social_exclude or synved_social_exclude_share to "yes", case sensitive)', 'social-media-feather')
|
154 |
),
|
155 |
'automatic_share_position' => array(
|
156 |
'default' => 'after_post',
|
157 |
'set' => 'after_post=After Post,before_post=Before Post,after_before_post=After and Before Post',
|
158 |
+
'label' => __('Share Buttons Position', 'social-media-feather'),
|
159 |
+
'tip' => __('Select where the sharing buttons should be placed. Note: placing buttons Before Post might not work in all themes.', 'social-media-feather')
|
160 |
),
|
161 |
'automatic_share_single' => array(
|
162 |
+
'default' => false, 'label' => __('Sharing Single Posts', 'social-media-feather'),
|
163 |
+
'tip' => __('Sharing buttons are only displayed on single posts/pages and not on archive pages like blog/category/tag/author pages', 'social-media-feather')
|
164 |
),
|
165 |
'automatic_share_post_types' => array(
|
166 |
'type' => 'custom',
|
167 |
'default' => 'post',
|
168 |
'set' => synved_option_callback('synved_social_automatic_append_post_types_set', array('post', 'page')),
|
169 |
+
'label' => __('Share Post Types', 'social-media-feather'),
|
170 |
+
'tip' => __('Post types for which automatic appending for share buttons should be attempted (CTRL + click to select multiple ones)', 'social-media-feather'),
|
171 |
'render' => 'synved_social_automatic_append_post_types_render'
|
172 |
),
|
173 |
'automatic_share_prefix' => array(
|
174 |
+
'default' => '', 'label' => __('Share Prefix Markup', 'social-media-feather'),
|
175 |
+
'tip' => __('When automatically appending, place this markup before the share buttons markup', 'social-media-feather')
|
176 |
),
|
177 |
'automatic_share_postfix' => array(
|
178 |
+
'default' => '', 'label' => __('Share Postfix Markup', 'social-media-feather'),
|
179 |
+
'tip' => __('When automatically appending, place this markup after all of the share buttons markup', 'social-media-feather')
|
180 |
),
|
181 |
'automatic_follow' => array(
|
182 |
+
'default' => false, 'label' => __('Display Follow Buttons', 'social-media-feather'),
|
183 |
+
'tip' => __('Tries to automatically append follow buttons to your posts (disable for specific posts by setting custom field synved_social_exclude or synved_social_exclude_follow to "yes", case sensitive)', 'social-media-feather')
|
184 |
),
|
185 |
'automatic_follow_position' => array(
|
186 |
'default' => 'after_post',
|
187 |
'set' => 'after_post=After Post,before_post=Before Post,after_before_post=After and Before Post',
|
188 |
+
'label' => __('Follow Buttons Position', 'social-media-feather'),
|
189 |
+
'tip' => __('Select where the follow buttons should be placed. Note: placing buttons Before Post might not work in all themes.', 'social-media-feather')
|
190 |
),
|
191 |
'automatic_follow_single' => array(
|
192 |
+
'default' => false, 'label' => __('Follow Single Posts', 'social-media-feather'),
|
193 |
+
'tip' => __('Follow buttons are only displayed on single posts/pages and not on archive pages like blog/category/tag/author pages', 'social-media-feather')
|
194 |
),
|
195 |
'automatic_follow_post_types' => array(
|
196 |
'type' => 'custom',
|
197 |
'default' => 'post',
|
198 |
'set' => synved_option_callback('synved_social_automatic_append_post_types_set', array('post', 'page')),
|
199 |
+
'label' => __('Follow Post Types', 'social-media-feather'),
|
200 |
+
'tip' => __('Post types for which automatic appending for follow buttons should be attempted (CTRL + click to select multiple ones)', 'social-media-feather'),
|
201 |
'render' => 'synved_social_automatic_append_post_types_render'
|
202 |
),
|
203 |
'automatic_follow_before_share' => array(
|
204 |
+
'default' => false, 'label' => __('Follow Before Share', 'social-media-feather'),
|
205 |
+
'tip' => __('When automatically appending, place follow buttons before share buttons. Only valid when share and follow buttons positions are the same.', 'social-media-feather')
|
206 |
),
|
207 |
'automatic_follow_prefix' => array(
|
208 |
+
'default' => '', 'label' => __('Follow Prefix Markup', 'social-media-feather'),
|
209 |
+
'tip' => __('When automatically appending, place this markup before the follow buttons markup', 'social-media-feather')
|
210 |
),
|
211 |
'automatic_follow_postfix' => array(
|
212 |
+
'default' => '', 'label' => __('Follow Postfix Markup', 'social-media-feather'),
|
213 |
+
'tip' => __('When automatically appending, place this markup after all of the follow buttons markup', 'social-media-feather')
|
214 |
),
|
215 |
'automatic_append_prefix' => array(
|
216 |
+
'default' => '', 'label' => __('Prefix Markup', 'social-media-feather'),
|
217 |
+
'tip' => __('When automatically appending, place this markup before the buttons markup', 'social-media-feather')
|
218 |
),
|
219 |
'automatic_append_separator' => array(
|
220 |
+
'default' => '<br/>', 'label' => __('Separator Markup', 'social-media-feather'),
|
221 |
+
'tip' => __('When automatically appending both, use this markup as separator between the set of share buttons and the set of follow buttons. Only valid when share and follow buttons positions are the same.', 'social-media-feather')
|
222 |
),
|
223 |
'automatic_append_postfix' => array(
|
224 |
+
'default' => '', 'label' => __('Postfix Markup', 'social-media-feather'),
|
225 |
+
'tip' => __('When automatically appending, place this markup after all of the buttons markup', 'social-media-feather')
|
226 |
),
|
227 |
)
|
228 |
),
|
229 |
'section_customize_look' => array(
|
230 |
+
'label' => __('Customize Look', 'social-media-feather'),
|
231 |
+
'tip' => synved_option_callback('synved_social_section_customize_look_tip', __('Customize the look & feel of Social Media Feather', 'social-media-feather')),
|
232 |
'settings' => array(
|
233 |
'icon_skin' => array(
|
234 |
'default' => 'regular',
|
235 |
'set' => synved_option_callback('synved_social_cb_icon_skin_set', 'regular=Regular'),
|
236 |
+
'label' => __('Icon Skin', 'social-media-feather'),
|
237 |
+
'tip' => synved_option_callback('synved_social_setting_icon_skin_tip',__('Select the default skin to use for the icons', 'social-media-feather')),
|
238 |
'render' => 'synved_social_icon_skin_render'
|
239 |
),
|
240 |
'addon_extra_icons' => array(
|
243 |
'folder' => 'extra-icons',
|
244 |
'module' => 'synved-social',
|
245 |
'style' => 'addon-important',
|
246 |
+
'label' => __('Extra Icon Skins', 'social-media-feather'),
|
247 |
+
'tip' => synved_option_callback('synved_social_option_addon_extra_icons_tip', __('Click the button to install the "Extra Social Icons" addon, get it <a target="_blank" href="http://synved.com/product/feather-extra-social-icons/">here</a>.', 'social-media-feather'))
|
248 |
),
|
249 |
'addon_grey_fade' => array(
|
250 |
'type' => 'addon',
|
252 |
'folder' => 'grey-fade',
|
253 |
'module' => 'synved-social',
|
254 |
'style' => 'addon-important',
|
255 |
+
'label' => __('Grey Fade Effect', 'social-media-feather'),
|
256 |
+
'tip' => synved_option_callback('synved_social_option_addon_grey_fade_tip', __('Click the button to install the "Grey Fade" addon, get it <a target="_blank" href="http://synved.com/product/feather-grey-fade/">here</a>.', 'social-media-feather'))
|
257 |
),
|
258 |
'addon_light_prompt' => array(
|
259 |
'type' => 'addon',
|
261 |
'folder' => 'light-prompt',
|
262 |
'module' => 'synved-social',
|
263 |
'style' => 'addon-important',
|
264 |
+
'label' => __('Light Prompt Overlay', 'social-media-feather'),
|
265 |
+
'tip' => synved_option_callback('synved_social_option_addon_light_prompt_tip', __('Click the button to install the "Light Prompt" addon, get it <a target="_blank" href="http://synved.com/product/feather-light-prompt/">here</a>.', 'social-media-feather'))
|
266 |
),
|
267 |
'icon_size' => array(
|
268 |
'default' => 48,
|
269 |
'set' => '16=16x16,24=24x24,32=32x32,48=48x48,64=64x64,96=96x96',
|
270 |
+
'label' => __('Icon Size', 'social-media-feather'),
|
271 |
+
'tip' => __('Select the size in pixels for the icons. Note: for high resolution displays like Retina the maximum size is 64x64.', 'social-media-feather')
|
272 |
),
|
273 |
'icon_resolution' => array(
|
274 |
'default' => 'single',
|
275 |
'set' => 'single=Single,double=Double',
|
276 |
+
'label' => __('Icon Resolution', 'social-media-feather'),
|
277 |
+
'tip' => __('Select what icon resolutions will be used. Single might make the icons slightly blurry on low resolution displays. Double will always look the best but will consume more bandwidth.', 'social-media-feather')
|
278 |
),
|
279 |
'icon_spacing' => array(
|
280 |
'default' => 5,
|
281 |
+
'label' => __('Icon Spacing', 'social-media-feather'),
|
282 |
+
'tip' => __('Select the spacing in pixels between the icons', 'social-media-feather')
|
283 |
),
|
284 |
'buttons_container' => array(
|
285 |
'default' => 'none',
|
286 |
'set' => 'none=None,share=Sharing Buttons,follow=Following Buttons,both=Both',
|
287 |
+
'label' => __('Buttons in Container', 'social-media-feather'),
|
288 |
+
'tip' => __('Determines whether or not to wrap the buttons in a container, which will affect how the buttons are rendered, based on the "Buttons Container Type" setting.', 'social-media-feather')
|
289 |
),
|
290 |
'buttons_container_type' => array(
|
291 |
'default' => 'basic',
|
292 |
'set' => 'basic=Basic,block=Block',
|
293 |
+
'label' => __('Buttons Container Type', 'social-media-feather'),
|
294 |
+
'tip' => __('"Basic" should not affect rendering, while "Block" should display the buttons in their own row. <b>Note</b>: selecting "Block" might not look the way you want if you\'re using Prefix or Postfix markup.', 'social-media-feather')
|
295 |
),
|
296 |
'buttons_alignment_share' => array(
|
297 |
'default' => 'none',
|
298 |
'set' => 'none=Theme Default,left=Align Left,right=Align Right,center=Align Center',
|
299 |
+
'label' => __('Share Buttons Alignment', 'social-media-feather'),
|
300 |
+
'tip' => __('Will attempt at aligning the share buttons accordingly. <strong>Note:</strong> this will enforce "Buttons Container Type" of "Block" and might not work reliably on all themes', 'social-media-feather')
|
301 |
),
|
302 |
'buttons_alignment_follow' => array(
|
303 |
'default' => 'none',
|
304 |
'set' => 'none=Theme Default,left=Align Left,right=Align Right,center=Align Center',
|
305 |
+
'label' => __('Follow Buttons Alignment', 'social-media-feather'),
|
306 |
+
'tip' => __('Will attempt at aligning the follow buttons accordingly. <strong>Note:</strong> this will enforce "Buttons Container Type" of "Block" and might not work reliably on all themes', 'social-media-feather')
|
307 |
),
|
308 |
'custom_style' => array(
|
309 |
'type' => 'style',
|
310 |
+
'label' => __('Extra Styles', 'social-media-feather'),
|
311 |
+
'tip' => __('Any CSS styling code you type in here will be loaded after all of the Social Media Feather styles.', 'social-media-feather')
|
312 |
),
|
313 |
)
|
314 |
),
|
315 |
'section_service_providers' => array(
|
316 |
+
'label' => __('Service Providers', 'social-media-feather'),
|
317 |
+
'tip' => __('Customize social sharing and following providers', 'social-media-feather'),
|
318 |
'settings' => synved_social_provider_settings()
|
319 |
)
|
320 |
)
|
341 |
{
|
342 |
if (!function_exists('synved_shortcode_version'))
|
343 |
{
|
344 |
+
$tip .= ' <div style="background:#f2f2f2;font-size:110%;color:#444;margin-right:270px;padding:10px 15px;"><b>' . __('Note', 'social-media-feather') . '</b>: ' . sprintf(__('The Social Media Feather plugin is fully compatible with our free <a target="_blank" href="%1$s">WordPress Shortcodes</a> plugin! WordPress Shortcodes will simplify adding Social Media shortcodes to your posts and pages! You can install it using your <a href="%2$s">plugin installer</a>.', 'social-media-feather'), 'http://synved.com/wordpress-shortcodes/', add_query_arg(array('tab' => 'search', 's' => 'synved shortcodes'), admin_url('plugin-install.php'))) . '</div>';
|
345 |
}
|
346 |
|
347 |
if (function_exists('synved_connect_support_social_follow_render'))
|
356 |
{
|
357 |
if ($fragment == 'page-submit-tail')
|
358 |
{
|
359 |
+
$out .= '<div style="clear:both; margin-top: -12px;"><a target="_blank" href="http://wordpress.org/support/view/plugin-reviews/social-media-feather?rate=5#postform" style="font-size:120%"><b>We need your help!</b> If you like the plugin, you can help us by leaving a 5-stars review! It only takes a minute and it\'s free!</a></div>';
|
360 |
}
|
361 |
|
362 |
return $out;
|
489 |
// missing icons for installed extra-icons addon
|
490 |
if (!function_exists('synved_social_addon_extra_icons_version'))
|
491 |
{
|
492 |
+
$tip .= ' <span style="background:#ecc;padding:5px 8px;">' . __('The "Extra Social Icons" addon is already installed but requires an update for recently added providers, please use your download link or <a href="http://synved.com/about/contact/?subject=Feather%20Extra%20Icons%20new%20link">request a new one</a>', 'social-media-feather') . '</span>';
|
493 |
}
|
494 |
else
|
495 |
{
|
496 |
+
$tip .= ' <span style="background:#eee;padding:5px 8px;">' . __('The "Extra Social Icons" addon is already installed! You can use the button to re-install it.', 'social-media-feather') . '</span>';
|
497 |
}
|
498 |
}
|
499 |
|
506 |
|
507 |
if (synved_option_addon_installed('synved_social', 'addon_grey_fade'))
|
508 |
{
|
509 |
+
$tip .= ' <span style="background:#eee;padding:5px 8px;">' . __('The "Grey Fade" addon is already installed! You can use the button to re-install it.', 'social-media-feather') . '</span>';
|
510 |
}
|
511 |
else
|
512 |
{
|
522 |
|
523 |
if (synved_option_addon_installed('synved_social', 'addon_light_prompt'))
|
524 |
{
|
525 |
+
$tip .= ' <span style="background:#eee;padding:5px 8px;">' . __('The "Light Prompt" addon is already installed! You can use the button to re-install it.', 'social-media-feather') . '</span>';
|
526 |
}
|
527 |
else
|
528 |
{
|
946 |
$providers_follow = array_keys(synved_social_service_provider_list('follow'));
|
947 |
|
948 |
$providers_params = array(
|
949 |
+
'show' => __('Specify a comma-separated list of %1$s providers to show and their order, possible values are %2$s', 'social-media-feather'),
|
950 |
+
'hide' => __('Specify a comma-separated list of %1$s providers to hide, possible values are %2$s', 'social-media-feather'),
|
951 |
);
|
952 |
|
953 |
$common_params = array(
|
954 |
+
'skin' => __('Specify which skin to use for the icons', 'social-media-feather'),
|
955 |
+
'size' => sprintf(__('Specify the size for the icons, possible values are %s', 'social-media-feather'), $size_set),
|
956 |
+
'spacing' => __('Determines how much blank space there will be between the buttons, in pixels', 'social-media-feather'),
|
957 |
+
'container' => __('Determines whether to wrap the buttons in a container', 'social-media-feather'),
|
958 |
+
'container_type' => sprintf(__('Determines what type of container to use, possible values are %1$s', 'social-media-feather'), 'basic, block'),
|
959 |
+
'class' => __('Select additional CSS classes for the buttons, separated by spaces', 'social-media-feather'),
|
960 |
);
|
961 |
|
962 |
$share_params = array(
|
963 |
+
'url' => __('URL to use for the sharing buttons, default is the current post URL', 'social-media-feather'),
|
964 |
+
'title' => __('Title to use for the sharing buttons, default is the current post title', 'social-media-feather'),
|
965 |
);
|
966 |
|
967 |
$follow_params = array(
|
977 |
}
|
978 |
|
979 |
synved_shortcode_item_help_set('feather_share', array(
|
980 |
+
'tip' => __('Creates a list of buttons for social sharing as selected in the Social Media options', 'social-media-feather'),
|
981 |
'parameters' => $share_params
|
982 |
));
|
983 |
synved_shortcode_item_help_set('feather_follow', array(
|
984 |
+
'tip' => __('Creates a list of buttons for social following as selected in the Social Media options', 'social-media-feather'),
|
985 |
'parameters' => $follow_params
|
986 |
));
|
987 |
}
|
synved-social/synved-social.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Module Name: Synved Social
|
4 |
Description: Social sharing and following tools
|
5 |
Author: Synved
|
6 |
-
Version: 1.7.
|
7 |
Author URI: http://synved.com/
|
8 |
License: GPLv2
|
9 |
|
@@ -18,8 +18,8 @@ In no event shall Synved Ltd. be liable to you or any third party for any direct
|
|
18 |
|
19 |
|
20 |
define('SYNVED_SOCIAL_LOADED', true);
|
21 |
-
define('SYNVED_SOCIAL_VERSION',
|
22 |
-
define('SYNVED_SOCIAL_VERSION_STRING', '1.7.
|
23 |
|
24 |
define('SYNVED_SOCIAL_ADDON_PATH', str_replace(array('/', '\\'), DIRECTORY_SEPARATOR, dirname(__FILE__) . '/addons'));
|
25 |
|
@@ -115,11 +115,11 @@ class SynvedSocialWidget extends WP_Widget
|
|
115 |
$instance = wp_parse_args((array) $instance, $defaults);
|
116 |
?>
|
117 |
<p>
|
118 |
-
<label for="<?php echo $this->get_field_id('title'); ?>"><?php echo(__('Title', '
|
119 |
<input type="text" class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" value="<?php echo $instance['title']; ?>" />
|
120 |
</p>
|
121 |
<p>
|
122 |
-
<label for="<?php echo $this->get_field_id('icon_skin'); ?>"><?php echo(__('Icon Skin', '
|
123 |
<?php
|
124 |
$params = array(
|
125 |
'tip' => '',
|
@@ -144,7 +144,7 @@ class SynvedSocialWidget extends WP_Widget
|
|
144 |
}
|
145 |
?>
|
146 |
<br/>
|
147 |
-
<label for="<?php echo $this->get_field_id('icon_size'); ?>"><?php echo(__('Icon Size', '
|
148 |
<?php
|
149 |
$params = array(
|
150 |
'tip' => '',
|
@@ -156,7 +156,7 @@ class SynvedSocialWidget extends WP_Widget
|
|
156 |
synved_option_render_item('synved_social', 'icon_size', null, true, $params, 'widget');
|
157 |
?>
|
158 |
<br/>
|
159 |
-
<label for="<?php echo $this->get_field_id('icon_spacing'); ?>"><?php echo(__('Icon Spacing', '
|
160 |
<input type="text" size="3" class="" id="<?php echo $this->get_field_id('icon_spacing'); ?>" name="<?php echo $this->get_field_name('icon_spacing'); ?>" value="<?php echo $instance['icon_spacing']; ?>" />
|
161 |
</p>
|
162 |
<?php
|
@@ -167,14 +167,14 @@ class SynvedSocialShareWidget extends SynvedSocialWidget
|
|
167 |
{
|
168 |
function __construct()
|
169 |
{
|
170 |
-
parent::__construct('synved_social_share', __('Social Media Feather: Sharing', '
|
171 |
}
|
172 |
|
173 |
function get_defaults()
|
174 |
{
|
175 |
$defaults = parent::get_defaults();
|
176 |
|
177 |
-
return array_merge($defaults, array('title' => __('Sharing', '
|
178 |
}
|
179 |
|
180 |
function render_social_markup($params = null)
|
@@ -187,14 +187,14 @@ class SynvedSocialFollowWidget extends SynvedSocialWidget
|
|
187 |
{
|
188 |
function __construct()
|
189 |
{
|
190 |
-
parent::__construct('synved_social_follow', __('Social Media Feather: Follow Us', '
|
191 |
}
|
192 |
|
193 |
function get_defaults()
|
194 |
{
|
195 |
$defaults = parent::get_defaults();
|
196 |
|
197 |
-
return array_merge($defaults, array('title' => __('Follow Us', '
|
198 |
}
|
199 |
|
200 |
function render_social_markup($params = null)
|
@@ -316,28 +316,41 @@ function synved_social_service_provider_list($context, $raw = false)
|
|
316 |
|
317 |
if ($raw == false)
|
318 |
{
|
319 |
-
$
|
320 |
|
321 |
-
|
|
|
|
|
322 |
{
|
323 |
-
$
|
324 |
-
$link = synved_option_get('synved_social', $provider_name . '_' . $context . '_link');
|
325 |
-
$title = synved_option_get('synved_social', $provider_name . '_' . $context . '_title');
|
326 |
|
327 |
-
|
328 |
{
|
329 |
-
|
|
|
|
|
|
|
|
|
330 |
{
|
331 |
-
$
|
332 |
-
|
|
|
|
|
333 |
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
|
339 |
-
|
|
|
340 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
341 |
}
|
342 |
}
|
343 |
|
@@ -837,7 +850,7 @@ function synved_social_button_list_markup($context, $vars = null, $buttons = nul
|
|
837 |
|
838 |
if ($message == null)
|
839 |
{
|
840 |
-
$message = __('Hey check this out', '
|
841 |
}
|
842 |
|
843 |
$vars['message'] = $message;
|
@@ -1240,7 +1253,7 @@ function synved_social_button_list_markup($context, $vars = null, $buttons = nul
|
|
1240 |
|
1241 |
if (synved_option_get('synved_social', 'show_credit'))
|
1242 |
{
|
1243 |
-
$out .= '<a class="synved-social-credit" target="_blank" rel="nofollow" title="' . __('WordPress Social Media Feather', '
|
1244 |
}
|
1245 |
|
1246 |
if ($container != 'none' && ($container == 'both' || $container == $context))
|
3 |
Module Name: Synved Social
|
4 |
Description: Social sharing and following tools
|
5 |
Author: Synved
|
6 |
+
Version: 1.7.9
|
7 |
Author URI: http://synved.com/
|
8 |
License: GPLv2
|
9 |
|
18 |
|
19 |
|
20 |
define('SYNVED_SOCIAL_LOADED', true);
|
21 |
+
define('SYNVED_SOCIAL_VERSION', 100070009);
|
22 |
+
define('SYNVED_SOCIAL_VERSION_STRING', '1.7.9');
|
23 |
|
24 |
define('SYNVED_SOCIAL_ADDON_PATH', str_replace(array('/', '\\'), DIRECTORY_SEPARATOR, dirname(__FILE__) . '/addons'));
|
25 |
|
115 |
$instance = wp_parse_args((array) $instance, $defaults);
|
116 |
?>
|
117 |
<p>
|
118 |
+
<label for="<?php echo $this->get_field_id('title'); ?>"><?php echo(__('Title', 'social-media-feather')) ?>:</label>
|
119 |
<input type="text" class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" value="<?php echo $instance['title']; ?>" />
|
120 |
</p>
|
121 |
<p>
|
122 |
+
<label for="<?php echo $this->get_field_id('icon_skin'); ?>"><?php echo(__('Icon Skin', 'social-media-feather')) ?>:</label>
|
123 |
<?php
|
124 |
$params = array(
|
125 |
'tip' => '',
|
144 |
}
|
145 |
?>
|
146 |
<br/>
|
147 |
+
<label for="<?php echo $this->get_field_id('icon_size'); ?>"><?php echo(__('Icon Size', 'social-media-feather')) ?>:</label>
|
148 |
<?php
|
149 |
$params = array(
|
150 |
'tip' => '',
|
156 |
synved_option_render_item('synved_social', 'icon_size', null, true, $params, 'widget');
|
157 |
?>
|
158 |
<br/>
|
159 |
+
<label for="<?php echo $this->get_field_id('icon_spacing'); ?>"><?php echo(__('Icon Spacing', 'social-media-feather')) ?>:</label>
|
160 |
<input type="text" size="3" class="" id="<?php echo $this->get_field_id('icon_spacing'); ?>" name="<?php echo $this->get_field_name('icon_spacing'); ?>" value="<?php echo $instance['icon_spacing']; ?>" />
|
161 |
</p>
|
162 |
<?php
|
167 |
{
|
168 |
function __construct()
|
169 |
{
|
170 |
+
parent::__construct('synved_social_share', __('Social Media Feather: Sharing', 'social-media-feather'));
|
171 |
}
|
172 |
|
173 |
function get_defaults()
|
174 |
{
|
175 |
$defaults = parent::get_defaults();
|
176 |
|
177 |
+
return array_merge($defaults, array('title' => __('Sharing', 'social-media-feather')));
|
178 |
}
|
179 |
|
180 |
function render_social_markup($params = null)
|
187 |
{
|
188 |
function __construct()
|
189 |
{
|
190 |
+
parent::__construct('synved_social_follow', __('Social Media Feather: Follow Us', 'social-media-feather'));
|
191 |
}
|
192 |
|
193 |
function get_defaults()
|
194 |
{
|
195 |
$defaults = parent::get_defaults();
|
196 |
|
197 |
+
return array_merge($defaults, array('title' => __('Follow Us', 'social-media-feather')));
|
198 |
}
|
199 |
|
200 |
function render_social_markup($params = null)
|
316 |
|
317 |
if ($raw == false)
|
318 |
{
|
319 |
+
global $synved_social;
|
320 |
|
321 |
+
$list_name = 'provider_list' . '_' . $context;
|
322 |
+
|
323 |
+
if (!isset($synved_social[$list_name]) || $synved_social[$list_name] == null)
|
324 |
{
|
325 |
+
$return_list = array();
|
|
|
|
|
326 |
|
327 |
+
foreach ($provider_list as $provider_name => $provider_item)
|
328 |
{
|
329 |
+
$display = synved_option_get('synved_social', $provider_name . '_display');
|
330 |
+
$link = synved_option_get('synved_social', $provider_name . '_' . $context . '_link');
|
331 |
+
$title = synved_option_get('synved_social', $provider_name . '_' . $context . '_title');
|
332 |
+
|
333 |
+
if ($display === null || in_array($display, array($context, 'both')))
|
334 |
{
|
335 |
+
if ($link != null)
|
336 |
+
{
|
337 |
+
$provider_item['link'] = $link;
|
338 |
+
}
|
339 |
|
340 |
+
if ($title != null)
|
341 |
+
{
|
342 |
+
$provider_item['title'] = $title;
|
343 |
+
}
|
344 |
|
345 |
+
$return_list[$provider_name] = $provider_item;
|
346 |
+
}
|
347 |
}
|
348 |
+
|
349 |
+
$synved_social[$list_name] = $return_list;
|
350 |
+
}
|
351 |
+
else
|
352 |
+
{
|
353 |
+
$return_list = $synved_social[$list_name];
|
354 |
}
|
355 |
}
|
356 |
|
850 |
|
851 |
if ($message == null)
|
852 |
{
|
853 |
+
$message = __('Hey check this out', 'social-media-feather');
|
854 |
}
|
855 |
|
856 |
$vars['message'] = $message;
|
1253 |
|
1254 |
if (synved_option_get('synved_social', 'show_credit'))
|
1255 |
{
|
1256 |
+
$out .= '<a class="synved-social-credit" target="_blank" rel="nofollow" title="' . __('WordPress Social Media Feather', 'social-media-feather') . '" href="http://synved.com/wordpress-social-media-feather/" style="color:#444; text-decoration:none; font-size:8px; margin-left:5px;vertical-align:10px;white-space:nowrap;"><span>' . __('by ', 'social-media-feather') . '</span><img style="display: inline;margin:0;padding:0;width:16px;height:16px;" width="16" height="16" alt="feather" src="' . $uri . '/image/icon.png" /></a>';
|
1257 |
}
|
1258 |
|
1259 |
if ($container != 'none' && ($container == 'both' || $container == $context))
|