Version Description
- Added the options for the display of the social share in home page.
- Fixed wp error occuring for the http request made by site.
Download this release
Release Info
Developer | Access Keys |
Plugin | Social Share WordPress Plugin – AccessPress Social Share |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.0.1
- accesspress-social-share.php +43 -54
- images/Thumbs.db +0 -0
- inc/backend/activation.php +1 -1
- inc/backend/main-page.php +9 -4
- readme.txt +17 -17
accesspress-social-share.php
CHANGED
@@ -4,7 +4,7 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
|
|
4 |
Plugin name: AccessPress Social Share
|
5 |
Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-share/
|
6 |
Description: A plugin to add various social media shares to a site with dynamic configuration options.
|
7 |
-
Version: 1.0.
|
8 |
Author: AccessPress Themes
|
9 |
Author URI: http://accesspressthemes.com
|
10 |
Text Domain:apss-share
|
@@ -31,7 +31,7 @@ if( !defined( 'APSS_LANG_DIR' ) ) {
|
|
31 |
}
|
32 |
|
33 |
if( !defined( 'APSS_VERSION' ) ) {
|
34 |
-
define( 'APSS_VERSION', '1.0.
|
35 |
}
|
36 |
|
37 |
if(!defined('APSS_TEXT_DOMAIN')){
|
@@ -226,64 +226,49 @@ if( !class_exists( 'APSS_Class' ) ){
|
|
226 |
}
|
227 |
|
228 |
$share_shows_in_options=$options['share_options'];
|
229 |
-
if(in_array('posts', $share_shows_in_options)){
|
230 |
-
if($options['share_positions']=='below_content'){
|
231 |
-
return $content."<div class='apss-social-share apss-theme-$icon_set_value clearfix' >$api_link</div>";
|
232 |
-
}
|
233 |
|
234 |
-
|
235 |
-
|
236 |
-
}
|
237 |
|
238 |
-
if($options['share_positions']=='on_both'){
|
239 |
-
return "<div class='apss-social-share apss-theme-$icon_set_value clearfix'>$api_link</div>".$content."<div class='apss-social-share apss-theme-$icon_set_value clearfix'>$api_link</div>";
|
240 |
-
}
|
241 |
|
242 |
-
}else if(in_array('pages', $share_shows_in_options) && is_page()){
|
243 |
-
if($options['share_positions']=='below_content'){
|
244 |
-
return $content."<div class='apss-social-share apss-theme-$icon_set_value clearfix'>$api_link</div>";
|
245 |
-
}
|
246 |
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
if($options['share_positions']=='above_content'){
|
262 |
-
return "<div class='apss-social-share apss-theme-$icon_set_value clearfix'>$api_link</div>".$content;
|
263 |
-
}
|
264 |
-
|
265 |
-
if($options['share_positions']=='on_both'){
|
266 |
-
return "<div class='apss-social-share apss-theme-$icon_set_value clearfix'>$api_link</div>".$content."<div class='apss-social-share apss-theme-$icon_set_value clearfix'>$api_link</div>";
|
267 |
-
}
|
268 |
|
|
|
|
|
269 |
|
270 |
-
|
|
|
|
|
271 |
|
272 |
-
if($options['share_positions']=='below_content'){
|
273 |
-
return $content."<div class='apss-social-share apss-theme-$icon_set_value clearfix'>$api_link</div>";
|
274 |
-
}
|
275 |
|
276 |
-
|
277 |
-
|
278 |
-
|
|
|
279 |
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
|
284 |
-
|
285 |
-
|
286 |
-
|
|
|
|
|
|
|
287 |
|
288 |
|
289 |
}
|
@@ -427,10 +412,14 @@ if( !class_exists( 'APSS_Class' ) ){
|
|
427 |
|
428 |
//function to return json values from social media urls
|
429 |
private function get_json_values( $url ){
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
|
|
|
|
|
|
|
|
434 |
|
435 |
////////////////////////////////////for count ends here/////////////////////////////////////////////
|
436 |
|
4 |
Plugin name: AccessPress Social Share
|
5 |
Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-share/
|
6 |
Description: A plugin to add various social media shares to a site with dynamic configuration options.
|
7 |
+
Version: 1.0.1
|
8 |
Author: AccessPress Themes
|
9 |
Author URI: http://accesspressthemes.com
|
10 |
Text Domain:apss-share
|
31 |
}
|
32 |
|
33 |
if( !defined( 'APSS_VERSION' ) ) {
|
34 |
+
define( 'APSS_VERSION', '1.0.1' );
|
35 |
}
|
36 |
|
37 |
if(!defined('APSS_TEXT_DOMAIN')){
|
226 |
}
|
227 |
|
228 |
$share_shows_in_options=$options['share_options'];
|
|
|
|
|
|
|
|
|
229 |
|
230 |
+
$all = in_array('all', $options['share_options']);
|
231 |
+
$is_lists_authorized = (is_search()) && $all ? true : false;
|
|
|
232 |
|
|
|
|
|
|
|
233 |
|
|
|
|
|
|
|
|
|
234 |
|
235 |
+
$all = in_array('all', $options['share_options']);
|
236 |
+
$is_lists_authorized = (is_search()) && $all ? true : false;
|
237 |
+
|
238 |
+
$front_page = in_array('front_page', $options['share_options']);
|
239 |
+
$is_front_page=(is_front_page()) && $front_page ? true : false;
|
240 |
+
|
241 |
+
$share_shows_in_options=$options['share_options'];
|
242 |
+
$is_singular = is_singular($share_shows_in_options) && !is_front_page() ? true : false;
|
243 |
+
if(!empty($share_shows_in_options)){
|
244 |
+
$is_tax =is_tax($share_shows_in_options);
|
245 |
+
}else{
|
246 |
+
$is_tax=false;
|
247 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
248 |
|
249 |
+
$is_category = in_array('categories', $options['share_options']);
|
250 |
+
$default_category=(is_category()) && $is_category ? true : false;
|
251 |
|
252 |
+
$is_default_archive=in_array('archives', $options['share_options']);
|
253 |
+
$default_archives=( (is_archive() && !is_tax() )&& !is_category() ) && $is_default_archive ? true : false;
|
254 |
+
|
255 |
|
|
|
|
|
|
|
256 |
|
257 |
+
if($is_lists_authorized || $is_singular || $is_tax || $is_front_page || $default_category || $default_archives){
|
258 |
+
if($options['share_positions']=='below_content'){
|
259 |
+
return $content."<div class='apss-social-share apss-theme-$icon_set_value clearfix' >$api_link</div>";
|
260 |
+
}
|
261 |
|
262 |
+
if($options['share_positions']=='above_content'){
|
263 |
+
return "<div class='apss-social-share apss-theme-$icon_set_value clearfix'>$api_link</div>".$content;
|
264 |
+
}
|
265 |
|
266 |
+
if($options['share_positions']=='on_both'){
|
267 |
+
return "<div class='apss-social-share apss-theme-$icon_set_value clearfix'>$api_link</div>".$content."<div class='apss-social-share apss-theme-$icon_set_value clearfix'>$api_link</div>";
|
268 |
+
}
|
269 |
+
}else{
|
270 |
+
return $content;
|
271 |
+
}
|
272 |
|
273 |
|
274 |
}
|
412 |
|
413 |
//function to return json values from social media urls
|
414 |
private function get_json_values( $url ){
|
415 |
+
$args=array( 'timeout' => 10 );
|
416 |
+
$response = wp_remote_get( $url, $args );
|
417 |
+
if(is_wp_error($response)){
|
418 |
+
//echo 'Error Found ( '.$response->get_error_message().' )';
|
419 |
+
}else{
|
420 |
+
return $response['body'];
|
421 |
+
}
|
422 |
+
}
|
423 |
|
424 |
////////////////////////////////////for count ends here/////////////////////////////////////////////
|
425 |
|
images/Thumbs.db
CHANGED
Binary file
|
inc/backend/activation.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
defined('ABSPATH') or die("No script kiddies please!");
|
3 |
$apss_share_settings=array();
|
4 |
-
$share_options = array('
|
5 |
$apss_share_settings['share_options']=$share_options;
|
6 |
$apss_share_settings['social_icon_set']='1';
|
7 |
$apss_share_settings['share_positions']='below_content';
|
1 |
<?php
|
2 |
defined('ABSPATH') or die("No script kiddies please!");
|
3 |
$apss_share_settings=array();
|
4 |
+
$share_options = array('post', 'page');
|
5 |
$apss_share_settings['share_options']=$share_options;
|
6 |
$apss_share_settings['social_icon_set']='1';
|
7 |
$apss_share_settings['share_positions']='below_content';
|
inc/backend/main-page.php
CHANGED
@@ -81,10 +81,15 @@ if(isset($_SESSION['apss_message'])){ ?>
|
|
81 |
<div class="apss-tab-contents apss-share-options" id="tab-apss-share-options" style='display:none'>
|
82 |
<h2><?php _e('Share options:', APSS_TEXT_DOMAIN); ?> </h2>
|
83 |
<span class="social-text"><?php _e( 'Please choose the options where you want to display social share:', APSS_TEXT_DOMAIN ); ?></span>
|
84 |
-
<p><input type="checkbox" id="apss_posts" value="
|
85 |
-
<p><input type="checkbox" id="apss_pages" value="
|
86 |
-
|
87 |
-
<p><input type="checkbox" id="
|
|
|
|
|
|
|
|
|
|
|
88 |
</div>
|
89 |
|
90 |
<div class="apss-tab-contents apss-display-settings" id="tab-apss-display-settings" style='display:none'>
|
81 |
<div class="apss-tab-contents apss-share-options" id="tab-apss-share-options" style='display:none'>
|
82 |
<h2><?php _e('Share options:', APSS_TEXT_DOMAIN); ?> </h2>
|
83 |
<span class="social-text"><?php _e( 'Please choose the options where you want to display social share:', APSS_TEXT_DOMAIN ); ?></span>
|
84 |
+
<p><input type="checkbox" id="apss_posts" value="post" name="apss_share_settings[share_options][]" <?php if (in_array("post", $options['share_options']) || in_array("posts", $options['share_options'])) { echo "checked='checked'"; } ?> ><label for="apss_posts"><?php _e( 'Posts', APSS_TEXT_DOMAIN ); ?> </label></p>
|
85 |
+
<p><input type="checkbox" id="apss_pages" value="page" name="apss_share_settings[share_options][]" <?php if (in_array("page", $options['share_options']) || in_array("pages", $options['share_options'])) { echo "checked='checked'"; } ?> ><label for="apss_pages"><?php _e('Pages', APSS_TEXT_DOMAIN ); ?> </label></p>
|
86 |
+
|
87 |
+
<p><input type="checkbox" id="apss_front_page" value="front_page" name="apss_share_settings[share_options][]" <?php if (in_array("front_page", $options['share_options'])) { echo "checked='checked'"; } ?> ><label for="apss_front_page"><?php _e('Front Page', APSS_TEXT_DOMAIN ); ?></label></p>
|
88 |
+
<p><input type="checkbox" id="apss_archives" value="archives" name="apss_share_settings[share_options][]" <?php if (in_array("archives", $options['share_options'])) { echo "checked='checked'"; } ?> ><label for="apss_archives"><?php _e('Archives', APSS_TEXT_DOMAIN ); ?></label></p>
|
89 |
+
|
90 |
+
<p><input type="checkbox" id="apss_categories" value="categories" name="apss_share_settings[share_options][]" <?php if (in_array("categories", $options['share_options'])) { echo "checked='checked'"; } ?> ><label for="apss_categories"><?php _e('Categories', APSS_TEXT_DOMAIN ); ?></label></p>
|
91 |
+
<p><input type="checkbox" id="apss_all" value="all" name="apss_share_settings[share_options][]" <?php if (in_array("all", $options['share_options'])) { echo "checked='checked'"; } ?> ><label for="apss_all"><?php _e('Other (search results, etc)', APSS_TEXT_DOMAIN ); ?></label></p>
|
92 |
+
|
93 |
</div>
|
94 |
|
95 |
<div class="apss-tab-contents apss-display-settings" id="tab-apss-display-settings" style='display:none'>
|
readme.txt
CHANGED
@@ -1,18 +1,17 @@
|
|
1 |
-
=== AccessPress Social Share ===
|
2 |
Contributors: Access Keys
|
3 |
Tags: social share counter, social share, social media share, social network share, social media, social network, share counter, social share count, social url share, social icons
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.1
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
-
Share your
|
12 |
-
Beautifully designed themes | Share count | Go viral.
|
13 |
|
14 |
== Description ==
|
15 |
-
<strong>AccessPress Social Share</strong> is a <strong>Free WordPress plugin</strong> to allow anyone easily share website content (page, posts) on major social media (Facebook, Twitter, Google+, Pinterest, LinkedIn and Digg ) by the use of the latest APIs on your website!
|
16 |
|
17 |
A perfect plugin to make any content on your website social-share-friendly, and increase your social reach dramatically!
|
18 |
|
@@ -26,18 +25,18 @@ Just get it done in a few minutes!
|
|
26 |
|
27 |
* <strong>Beautifully designed 5 themes to select from.</strong> More available in Pro versoin.
|
28 |
* <strong>Major 6 social media included </strong>(Facebook, Twitter, Google+, Pinterest, LinkedIn and Digg). More available in Pro version.
|
29 |
-
* <strong>Latest use of APIs to fetch data</strong
|
30 |
-
* <strong>Auto updates on all APIs</strong
|
31 |
-
* <strong>Option to select which social media profile to show</strong
|
32 |
-
* <strong>Display order for selected social media</strong
|
33 |
-
* <strong>Cache setting</strong> - you can set a cache period to avoid frequent API calls
|
34 |
-
* <strong>Fully Responsive</strong> - compatible with mobile devices
|
35 |
* <strong>User friendly and very interactive user interface</strong>
|
36 |
- Anyone can use it, its as easy as drag and drop.
|
37 |
* <strong>Upgrades available</strong>
|
38 |
- For more features like more social media profiles, more design themes, your own design etc. - upgrade to Pro.
|
39 |
* <strong>Support</strong>
|
40 |
-
- Dedicated email, forum support
|
41 |
* <strong>Free updates</strong>
|
42 |
- Get free updates for lifetime.
|
43 |
|
@@ -62,13 +61,13 @@ For complete information and documentation regarding plugin, please visit below
|
|
62 |
|
63 |
== Installation ==
|
64 |
1. Unzip accesspress-social-share.zip
|
65 |
-
2. Upload all the files to the /wp-content/plugins/accesspress-social-share
|
66 |
3. Activate the plugin through the 'Plugins' menu in WordPress.
|
67 |
4. For customizing the plugin's settings, click on AccessPress Social Share menu in Wordpress left admin menu.
|
68 |
|
69 |
== Frequently Asked Questions ==
|
70 |
= What does this plugin do? =
|
71 |
-
This plugin provides the ability to allow anyone easily share website content (page, posts) on major social media (Facebook, Twitter, googleplus, LinkedIn, Pinterest, Digg ) by the use of the latest APIs on your website!
|
72 |
|
73 |
= Will it effect my site's speed? =
|
74 |
No , because we have provided the caching option to store the share count in the database and update within certain period kept in the plugin cache settings section.
|
@@ -90,11 +89,12 @@ Once you install the plugin , you can check some general documentation about how
|
|
90 |
6. Backend Miscellaneous Settings Section
|
91 |
|
92 |
== Changelog ==
|
93 |
-
|
|
|
|
|
94 |
|
95 |
= 1.0.0 =
|
96 |
-
* Plugin submitted to http://wordpress.org for review and approval
|
97 |
-
* Plugin committed to plugin repository after approval.
|
98 |
|
99 |
== Upgrade Notice ==
|
100 |
There is an update available for the AccessPress Social Share Plugin. Please update to recieve new updates and bug fixes.
|
1 |
+
=== AccessPress Social Share ===
|
2 |
Contributors: Access Keys
|
3 |
Tags: social share counter, social share, social media share, social network share, social media, social network, share counter, social share count, social url share, social icons
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.1
|
7 |
+
Stable tag: 1.0.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
+
Share your site urls in most popular social medias and show share counts on your website with various designs.
|
|
|
12 |
|
13 |
== Description ==
|
14 |
+
<strong>AccessPress Social Share</strong> is a <strong>Free WordPress plugin</strong> to allow anyone easily share website content (page, posts, image, media) on major social media (Facebook, Twitter, Google+, Pinterest, LinkedIn and Digg ) by the use of the latest APIs on your website!
|
15 |
|
16 |
A perfect plugin to make any content on your website social-share-friendly, and increase your social reach dramatically!
|
17 |
|
25 |
|
26 |
* <strong>Beautifully designed 5 themes to select from.</strong> More available in Pro versoin.
|
27 |
* <strong>Major 6 social media included </strong>(Facebook, Twitter, Google+, Pinterest, LinkedIn and Digg). More available in Pro version.
|
28 |
+
* <strong>Latest use of APIs to fetch data</strong>
|
29 |
+
* <strong>Auto updates on all APIs</strong>
|
30 |
+
* <strong>Option to select which social media profile to show</strong>
|
31 |
+
* <strong>Display order for selected social media</strong>
|
32 |
+
* <strong>Cache setting</strong> - you can set a cache period to avoid frequent API calls
|
33 |
+
* <strong>Fully Responsive</strong> - compatible with mobile devices
|
34 |
* <strong>User friendly and very interactive user interface</strong>
|
35 |
- Anyone can use it, its as easy as drag and drop.
|
36 |
* <strong>Upgrades available</strong>
|
37 |
- For more features like more social media profiles, more design themes, your own design etc. - upgrade to Pro.
|
38 |
* <strong>Support</strong>
|
39 |
+
- Dedicated email, forum support
|
40 |
* <strong>Free updates</strong>
|
41 |
- Get free updates for lifetime.
|
42 |
|
61 |
|
62 |
== Installation ==
|
63 |
1. Unzip accesspress-social-share.zip
|
64 |
+
2. Upload all the files to the /wp-content/plugins/accesspress-social-share
|
65 |
3. Activate the plugin through the 'Plugins' menu in WordPress.
|
66 |
4. For customizing the plugin's settings, click on AccessPress Social Share menu in Wordpress left admin menu.
|
67 |
|
68 |
== Frequently Asked Questions ==
|
69 |
= What does this plugin do? =
|
70 |
+
This plugin provides the ability to allow anyone easily share website content (page, posts, image, media) on major social media (Facebook, Twitter, googleplus, LinkedIn, Pinterest, Digg ) by the use of the latest APIs on your website!
|
71 |
|
72 |
= Will it effect my site's speed? =
|
73 |
No , because we have provided the caching option to store the share count in the database and update within certain period kept in the plugin cache settings section.
|
89 |
6. Backend Miscellaneous Settings Section
|
90 |
|
91 |
== Changelog ==
|
92 |
+
= 1.0.1 =
|
93 |
+
* Added the options for the display of the social share in home page.
|
94 |
+
* Fixed wp error occuring for the http request made by site.
|
95 |
|
96 |
= 1.0.0 =
|
97 |
+
* Plugin submitted to http://wordpress.org for review and approval
|
|
|
98 |
|
99 |
== Upgrade Notice ==
|
100 |
There is an update available for the AccessPress Social Share Plugin. Please update to recieve new updates and bug fixes.
|