Version Description
- Fixed the bug for pinterest images share.
- Fixed the bug for the post and page share url.
=
Download this release
Release Info
Developer | Access Keys |
Plugin | Social Share WordPress Plugin – AccessPress Social Share |
Version | 1.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.0.2 to 1.0.3
- accesspress-social-share.php +10 -9
- css/backend.css +18 -3
- images/Thumbs.db +0 -0
- images/demo-btn.png +0 -0
- images/promo-bottom.png +0 -0
- images/promo-top.png +0 -0
- images/upgrade-btn.png +0 -0
- inc/backend/main-page.php +8 -1
- readme.txt +7 -1
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')){
|
@@ -125,7 +125,7 @@ if( !class_exists( 'APSS_Class' ) ){
|
|
125 |
$counter_enable_options=$options['counter_enable_options'];
|
126 |
$api_link='';
|
127 |
$icon_set_value=$options['social_icon_set'];
|
128 |
-
$url=
|
129 |
$text= get_the_title();
|
130 |
$cache_period = ($options['cache_period'] != '') ? $options['cache_period']*60*60 : 24 * 60 * 60 ;
|
131 |
$counter_share='';
|
@@ -175,13 +175,14 @@ if( !class_exists( 'APSS_Class' ) ){
|
|
175 |
$counter_pinterest="<div class='count'>$count_pinterest</div>";
|
176 |
}
|
177 |
global $post;
|
178 |
-
if(has_post_thumbnail()){
|
179 |
-
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' );
|
180 |
-
$link = 'http://pinterest.com/pin/create/bookmarklet/?media='.$image[0].'&url='.$url.'&title='.get_the_title().'&description='.$post->post_excerpt;
|
181 |
-
$api_link .="<div class='apss-pinterest apss-single-icon'><a title='Share on Pinterest' target='$apss_link_open_option' href='$link'><div class='apss-icon-block'><i class='fa fa-pinterest'></i><span class='apss-social-text'>Share on $key</span><span class='apss-share'>share</span></div>$counter_pinterest</a></div>";
|
182 |
-
}else{
|
183 |
|
184 |
-
}
|
|
|
185 |
break;
|
186 |
|
187 |
case 'linkedin':
|
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.3
|
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.3' );
|
35 |
}
|
36 |
|
37 |
if(!defined('APSS_TEXT_DOMAIN')){
|
125 |
$counter_enable_options=$options['counter_enable_options'];
|
126 |
$api_link='';
|
127 |
$icon_set_value=$options['social_icon_set'];
|
128 |
+
$url= get_the_permalink();//$this->curPageURL();
|
129 |
$text= get_the_title();
|
130 |
$cache_period = ($options['cache_period'] != '') ? $options['cache_period']*60*60 : 24 * 60 * 60 ;
|
131 |
$counter_share='';
|
175 |
$counter_pinterest="<div class='count'>$count_pinterest</div>";
|
176 |
}
|
177 |
global $post;
|
178 |
+
// if(has_post_thumbnail()){
|
179 |
+
// $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' );
|
180 |
+
// $link = 'http://pinterest.com/pin/create/bookmarklet/?media='.$image[0].'&url='.$url.'&title='.get_the_title().'&description='.$post->post_excerpt;
|
181 |
+
// $api_link .="<div class='apss-pinterest apss-single-icon'><a title='Share on Pinterest' target='$apss_link_open_option' href='$link'><div class='apss-icon-block'><i class='fa fa-pinterest'></i><span class='apss-social-text'>Share on $key</span><span class='apss-share'>share</span></div>$counter_pinterest</a></div>";
|
182 |
+
// }else{
|
183 |
|
184 |
+
// }
|
185 |
+
$api_link .="<div class='apss-pinterest apss-single-icon'><a href='javascript:void((function()%7Bvar%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','http://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)%7D)());'><div class='apss-icon-block'><i class='fa fa-pinterest'></i><span class='apss-social-text'>Share on $key</span><span class='apss-share'>share</span></div>$counter_pinterest</a></div>";
|
186 |
break;
|
187 |
|
188 |
case 'linkedin':
|
css/backend.css
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
.apss-setting-tabs li a {
|
13 |
display: block;
|
14 |
font-size: 15px;
|
15 |
-
padding: 15px
|
16 |
text-decoration: none;
|
17 |
background-color: #bdbbbb;
|
18 |
border-left: 1px solid #e5e5e5;
|
@@ -26,6 +26,7 @@
|
|
26 |
-ms-transition: all 0.5s ease-in-out;*/
|
27 |
}
|
28 |
|
|
|
29 |
.apss-setting-tabs li {
|
30 |
margin: 0;
|
31 |
float: left;
|
@@ -102,8 +103,9 @@
|
|
102 |
}
|
103 |
|
104 |
.apss-wrapper-block {
|
105 |
-
|
106 |
padding: 20px 0;
|
|
|
107 |
}
|
108 |
|
109 |
.apss-setting-header {
|
@@ -166,7 +168,7 @@
|
|
166 |
border-radius: 5px;
|
167 |
line-height: 26px;
|
168 |
margin: 0 0 10px;
|
169 |
-
width:
|
170 |
}
|
171 |
|
172 |
|
@@ -378,4 +380,17 @@
|
|
378 |
margin: 0 10px 0 0;
|
379 |
}
|
380 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
381 |
|
12 |
.apss-setting-tabs li a {
|
13 |
display: block;
|
14 |
font-size: 15px;
|
15 |
+
padding: 15px 20px;
|
16 |
text-decoration: none;
|
17 |
background-color: #bdbbbb;
|
18 |
border-left: 1px solid #e5e5e5;
|
26 |
-ms-transition: all 0.5s ease-in-out;*/
|
27 |
}
|
28 |
|
29 |
+
|
30 |
.apss-setting-tabs li {
|
31 |
margin: 0;
|
32 |
float: left;
|
103 |
}
|
104 |
|
105 |
.apss-wrapper-block {
|
106 |
+
width: 833px;
|
107 |
padding: 20px 0;
|
108 |
+
float:left;
|
109 |
}
|
110 |
|
111 |
.apss-setting-header {
|
168 |
border-radius: 5px;
|
169 |
line-height: 26px;
|
170 |
margin: 0 0 10px;
|
171 |
+
width: 43%;
|
172 |
}
|
173 |
|
174 |
|
380 |
margin: 0 10px 0 0;
|
381 |
}
|
382 |
|
383 |
+
.apss-promoFloat{
|
384 |
+
background: #f1f1f1;
|
385 |
+
float: left;
|
386 |
+
width: 311px;
|
387 |
+
padding: 20px 10px;
|
388 |
+
}
|
389 |
+
.apss-promo-buttons{
|
390 |
+
padding:20px 0;
|
391 |
+
text-align:center;
|
392 |
+
}
|
393 |
+
.apss-promo-buttons a{
|
394 |
+
display:inline-block;
|
395 |
+
}
|
396 |
|
images/Thumbs.db
CHANGED
Binary file
|
images/demo-btn.png
ADDED
Binary file
|
images/promo-bottom.png
ADDED
Binary file
|
images/promo-top.png
ADDED
Binary file
|
images/upgrade-btn.png
ADDED
Binary file
|
inc/backend/main-page.php
CHANGED
@@ -180,4 +180,11 @@ if(isset($_SESSION['apss_message'])){ ?>
|
|
180 |
</div>
|
181 |
</form>
|
182 |
</div>
|
183 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
180 |
</div>
|
181 |
</form>
|
182 |
</div>
|
183 |
+
</div>
|
184 |
+
<div class="apss-promoFloat">
|
185 |
+
<img src="<?php echo APSS_IMAGE_DIR . '/promo-top.png' ?>" alt="promo-top" />
|
186 |
+
<div class="apss-promo-buttons"><a target='_blank' href="http://accesspressthemes.com/demo/wordpress-plugins/accesspress-social-pro" /><img src="<?php echo APSS_IMAGE_DIR . '/demo-btn.png' ?>" alt="demo link" /></a><a target='_blank' href="http://codecanyon.net/item/accesspress-social-pro/10429645?ref=AccessKeys" ><img src="<?php echo APSS_IMAGE_DIR . '/upgrade-btn.png' ?>" alt="upgrade link" /></a></div>
|
187 |
+
<img src="<?php echo APSS_IMAGE_DIR . '/promo-top.png' ?>" alt="promo-bottom" />
|
188 |
+
<div class="apss-promo-buttons"><a target='_blank' href="http://accesspressthemes.com/demo/wordpress-plugins/accesspress-social-pro" /><img src="<?php echo APSS_IMAGE_DIR . '/demo-btn.png' ?>" alt="demo link" /></a><a target='_blank' href="http://codecanyon.net/item/accesspress-social-pro/10429645?ref=AccessKeys" ><img src="<?php echo APSS_IMAGE_DIR . '/upgrade-btn.png' ?>" alt="upgrade link" /></a></div>
|
189 |
+
</div>
|
190 |
+
<div class="clear"></div>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: social share counter, social share, social media share, social network sha
|
|
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 |
|
@@ -88,6 +88,12 @@ Once you install the plugin , you can check some general documentation about how
|
|
88 |
5. Backend Display Settings Section
|
89 |
6. Backend Miscellaneous Settings Section
|
90 |
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
== Changelog ==
|
92 |
= 1.0.2 =
|
93 |
* Fixed the bug for pre-selected page share options.
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.1
|
7 |
+
Stable tag: 1.0.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
88 |
5. Backend Display Settings Section
|
89 |
6. Backend Miscellaneous Settings Section
|
90 |
|
91 |
+
== Changelog ==
|
92 |
+
= 1.0.3 =
|
93 |
+
* Fixed the bug for pinterest images share.
|
94 |
+
* Fixed the bug for the post and page share url.
|
95 |
+
|
96 |
+
|
97 |
== Changelog ==
|
98 |
= 1.0.2 =
|
99 |
* Fixed the bug for pre-selected page share options.
|