Version Description
- Added more shortcode attributes - counter display option, share text option. Please see how to use section.
- Added 1 more theme.
Download this release
Release Info
Developer | Access Keys |
Plugin | Social Share WordPress Plugin – AccessPress Social Share |
Version | 2.0.8 |
Comparing to | |
See all releases |
Code changes from version 2.0.7 to 2.0.8
- accesspress-social-share.php +2 -2
- css/frontend.css +192 -1
- images/theme/theme6.jpg +0 -0
- inc/backend/activation.php +1 -0
- inc/backend/how-to-use.php +9 -2
- inc/backend/main-page.php +11 -0
- inc/backend/save-settings.php +1 -0
- inc/frontend/content-filter.php +24 -1
- inc/frontend/shortcode.php +40 -2
- readme.txt +5 -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: 2.0.
|
8 |
Author: AccessPress Themes
|
9 |
Author URI: http://accesspressthemes.com
|
10 |
Text Domain:apss-share
|
@@ -30,7 +30,7 @@ if( !defined( 'APSS_LANG_DIR' ) ) {
|
|
30 |
}
|
31 |
|
32 |
if( !defined( 'APSS_VERSION' ) ) {
|
33 |
-
define( 'APSS_VERSION', '2.0.
|
34 |
}
|
35 |
|
36 |
if( !defined('APSS_TEXT_DOMAIN')){
|
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: 2.0.8
|
8 |
Author: AccessPress Themes
|
9 |
Author URI: http://accesspressthemes.com
|
10 |
Text Domain:apss-share
|
30 |
}
|
31 |
|
32 |
if( !defined( 'APSS_VERSION' ) ) {
|
33 |
+
define( 'APSS_VERSION', '2.0.8' );
|
34 |
}
|
35 |
|
36 |
if( !defined('APSS_TEXT_DOMAIN')){
|
css/frontend.css
CHANGED
@@ -26,7 +26,7 @@ a:hover, a:focus {
|
|
26 |
.entry-content .apss-social-share a {
|
27 |
text-decoration: none;
|
28 |
}
|
29 |
-
|
30 |
.entry-content .apss-social-share a:hover {
|
31 |
color:#fff;
|
32 |
}
|
@@ -52,6 +52,27 @@ text-align: center;
|
|
52 |
///////////////////////////////
|
53 |
*/
|
54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
|
56 |
/***********************************theme1 css********************************************************/
|
57 |
|
@@ -1004,6 +1025,176 @@ text-align: center;
|
|
1004 |
}
|
1005 |
|
1006 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1007 |
/************************************************responsive*************************************************************/
|
1008 |
|
1009 |
|
26 |
.entry-content .apss-social-share a {
|
27 |
text-decoration: none;
|
28 |
}
|
29 |
+
.apss-theme-6 .apss-single-icon a::before
|
30 |
.entry-content .apss-social-share a:hover {
|
31 |
color:#fff;
|
32 |
}
|
52 |
///////////////////////////////
|
53 |
*/
|
54 |
|
55 |
+
.apss-total-share-count{
|
56 |
+
|
57 |
+
display: inline-block;
|
58 |
+
vertical-align: top;
|
59 |
+
margin-top: 4px;
|
60 |
+
}
|
61 |
+
|
62 |
+
.apss-count-number{
|
63 |
+
font-size: 28px;
|
64 |
+
display: inline-block;
|
65 |
+
vertical-align: top;}
|
66 |
+
|
67 |
+
.apss-total-shares{ display: inline-block;
|
68 |
+
font-size: 13px;
|
69 |
+
vertical-align: middle;
|
70 |
+
margin-top: 11px;}
|
71 |
+
|
72 |
+
.apss-total-text{
|
73 |
+
display: block;
|
74 |
+
line-height: 9px;
|
75 |
+
}
|
76 |
|
77 |
/***********************************theme1 css********************************************************/
|
78 |
|
1025 |
}
|
1026 |
|
1027 |
|
1028 |
+
|
1029 |
+
/**********************************************THEME 6 CSS ************************************************************/
|
1030 |
+
|
1031 |
+
.apss-theme-6 .apss-social-text{
|
1032 |
+
display:none;
|
1033 |
+
}
|
1034 |
+
|
1035 |
+
.apss-theme-6 .apss-share{
|
1036 |
+
display: none;
|
1037 |
+
}
|
1038 |
+
|
1039 |
+
.apss-theme-6 .apss-single-icon {
|
1040 |
+
border-bottom: none;
|
1041 |
+
margin-bottom: 20px;
|
1042 |
+
display: inline-block;
|
1043 |
+
}
|
1044 |
+
.apss-theme-6 .apss-single-icon a{
|
1045 |
+
|
1046 |
+
color: #fff;
|
1047 |
+
display: block;
|
1048 |
+
float: left;
|
1049 |
+
height: 30px;
|
1050 |
+
margin: 5px;
|
1051 |
+
padding: 5px;
|
1052 |
+
position: relative;
|
1053 |
+
width: 30px;
|
1054 |
+
background: none !important;
|
1055 |
+
text-align: center;
|
1056 |
+
vertical-align: middle;
|
1057 |
+
line-height: 30px;
|
1058 |
+
}
|
1059 |
+
|
1060 |
+
.apss-theme-6 .apss-single-icon a:before{
|
1061 |
+
content: '';
|
1062 |
+
-ms-transform: rotate(45deg);
|
1063 |
+
-webkit-transform: rotate(45deg);
|
1064 |
+
transform: rotate(45deg);
|
1065 |
+
background-color: #E6E6E6;
|
1066 |
+
width: 33px;
|
1067 |
+
height: 33px;
|
1068 |
+
display: inline-block;
|
1069 |
+
position: absolute;
|
1070 |
+
left: 50%;
|
1071 |
+
margin-left: -17px;
|
1072 |
+
transition: all 0.5s ease-in-out;
|
1073 |
+
-webkit-transition: all 0.5s ease-in-out;
|
1074 |
+
-moz-transition: all 0.5s ease-in-out;
|
1075 |
+
-o-transition: all 0.5s ease-in-out;
|
1076 |
+
-ms-transition: all 0.5s ease-in-out;
|
1077 |
+
|
1078 |
+
}
|
1079 |
+
|
1080 |
+
|
1081 |
+
.apss-theme-6 .apss-single-icon .apss-icon-block{
|
1082 |
+
vertical-align: middle;
|
1083 |
+
line-height: 46px;
|
1084 |
+
display: inline-block;
|
1085 |
+
}
|
1086 |
+
|
1087 |
+
|
1088 |
+
.apss-theme-6 .apss-icon-block{
|
1089 |
+
|
1090 |
+
position: relative;
|
1091 |
+
}
|
1092 |
+
|
1093 |
+
.apss-theme-6 .apss-single-icon .fa{
|
1094 |
+
color: #8A8A8A;
|
1095 |
+
font-size: 17px;
|
1096 |
+
line-height: 1;
|
1097 |
+
position: relative;
|
1098 |
+
display: block;
|
1099 |
+
}
|
1100 |
+
|
1101 |
+
|
1102 |
+
|
1103 |
+
.apss-theme-6 .apss-share{
|
1104 |
+
|
1105 |
+
font-size: 13px;
|
1106 |
+
text-align: center;
|
1107 |
+
line-height: 1;
|
1108 |
+
padding: 3px 0 2px;
|
1109 |
+
text-transform: capitalize;
|
1110 |
+
-webkit-box-sizing: border-box;
|
1111 |
+
-moz-box-sizing: border-box;
|
1112 |
+
box-sizing: border-box;
|
1113 |
+
}
|
1114 |
+
|
1115 |
+
.apss-theme-6 .count{
|
1116 |
+
display: block;
|
1117 |
+
font-size: 13px;
|
1118 |
+
text-align: center;
|
1119 |
+
|
1120 |
+
padding: 2px;
|
1121 |
+
|
1122 |
+
color: #000;
|
1123 |
+
margin-top: 5px
|
1124 |
+
|
1125 |
+
}
|
1126 |
+
|
1127 |
+
|
1128 |
+
.apss-theme-6 .apss-icon-block a:hover .fa, .apss-theme-6 .apss-single-icon:hover .fa{
|
1129 |
+
color:#fff;
|
1130 |
+
}
|
1131 |
+
|
1132 |
+
.apss-theme-6 .apss-facebook a:hover:before {
|
1133 |
+
background-color:#3b5998;
|
1134 |
+
}
|
1135 |
+
|
1136 |
+
|
1137 |
+
.apss-theme-6 .apss-twitter a:hover:before {
|
1138 |
+
background-color:#1dcaff;
|
1139 |
+
}
|
1140 |
+
|
1141 |
+
|
1142 |
+
.apss-theme-6 .apss-google-plus a:hover:before {
|
1143 |
+
background-color:#dd4b39;
|
1144 |
+
}
|
1145 |
+
|
1146 |
+
|
1147 |
+
.apss-theme-6 .apss-pinterest a:hover:before {
|
1148 |
+
background-color:#C92228;
|
1149 |
+
}
|
1150 |
+
|
1151 |
+
|
1152 |
+
|
1153 |
+
.apss-theme-6 .apss-linkedin a:hover:before {
|
1154 |
+
background-color:#3f729b;
|
1155 |
+
}
|
1156 |
+
|
1157 |
+
.apss-theme-6 .apss-digg a:hover:before {
|
1158 |
+
background-color:#2169a8;
|
1159 |
+
|
1160 |
+
}
|
1161 |
+
.apss-theme-6 .apss-print a:hover:before {
|
1162 |
+
background-color:#5e5959;
|
1163 |
+
}
|
1164 |
+
|
1165 |
+
|
1166 |
+
.apss-theme-6 .apss-email a:hover:before {
|
1167 |
+
background-color:#8f8f8f;
|
1168 |
+
}
|
1169 |
+
|
1170 |
+
.apss-theme-6 .apss-single-icon a:hover{
|
1171 |
+
background-color:#fff;
|
1172 |
+
}
|
1173 |
+
|
1174 |
+
.apss-theme-6 .apss-single-icon .apss-icon-block{
|
1175 |
+
background:none;
|
1176 |
+
}
|
1177 |
+
|
1178 |
+
.apss-theme-6 .apss-single-icon.apss-print .count{
|
1179 |
+
display:none;
|
1180 |
+
}
|
1181 |
+
|
1182 |
+
.apss-theme-6 .apss-single-icon.apss-email .count{
|
1183 |
+
display:none;
|
1184 |
+
}
|
1185 |
+
|
1186 |
+
.apss-share-text{
|
1187 |
+
opacity: 0.4;
|
1188 |
+
line-height: 16px;
|
1189 |
+
color: #333;
|
1190 |
+
font-size: 14px;
|
1191 |
+
font-family: 'Open Sans', sans-serif;
|
1192 |
+
margin-left: 9px;
|
1193 |
+
}
|
1194 |
+
|
1195 |
+
|
1196 |
+
|
1197 |
+
|
1198 |
/************************************************responsive*************************************************************/
|
1199 |
|
1200 |
|
images/theme/theme6.jpg
ADDED
Binary file
|
inc/backend/activation.php
CHANGED
@@ -18,6 +18,7 @@ $apss_share_settings['social_networks']=$social_networks;
|
|
18 |
$apss_share_settings['share_text'] = '';
|
19 |
$apss_share_settings['twitter_username'] = '';
|
20 |
$apss_share_settings['counter_enable_options']='0';
|
|
|
21 |
$apss_share_settings['cache_period']='24';
|
22 |
$apss_share_settings['apss_social_counts_transients']=array();
|
23 |
$apss_share_settings['dialog_box_options'] ='1';
|
18 |
$apss_share_settings['share_text'] = '';
|
19 |
$apss_share_settings['twitter_username'] = '';
|
20 |
$apss_share_settings['counter_enable_options']='0';
|
21 |
+
$apss_share_settings['total_counter_enable_options']='0';
|
22 |
$apss_share_settings['cache_period']='24';
|
23 |
$apss_share_settings['apss_social_counts_transients']=array();
|
24 |
$apss_share_settings['dialog_box_options'] ='1';
|
inc/backend/how-to-use.php
CHANGED
@@ -25,8 +25,15 @@
|
|
25 |
<dd><p>You can use shortcode for the display of the social share in the contents. Optionally You can enter the name of the networks you want to display. The networks will be displayed in the order of entered networks.
|
26 |
<ul class="how-list">
|
27 |
<li><i class="fa fa-check"></i>Example 1: <code>[apss-share]</code></li>
|
28 |
-
<li
|
29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
</ul>
|
31 |
</p></dd>
|
32 |
<dd>
|
25 |
<dd><p>You can use shortcode for the display of the social share in the contents. Optionally You can enter the name of the networks you want to display. The networks will be displayed in the order of entered networks.
|
26 |
<ul class="how-list">
|
27 |
<li><i class="fa fa-check"></i>Example 1: <code>[apss-share]</code></li>
|
28 |
+
<li>Available shortcode parameters</li>
|
29 |
+
<ul>
|
30 |
+
<li><i class="fa fa-check"></i>networks : You can define which social medias to show in the shortcode. You need to enter the networks name in string in comma separated values. If you don't want to choose which social medias to appear in shortcode, you can discard this option. </li>
|
31 |
+
<li>Available network parameters are: facebook, twitter, google-plus, pinterest, linkedin, digg, email, print</li>
|
32 |
+
<li><i class="fa fa-check"></i>share_text: You can add the share text. To use share text use share_text='text to be shared'. If you don't use this parameter the share text will not appear in shortcode.</li>
|
33 |
+
<li><i class="fa fa-check"></i>counter : You can enable or disable the share counter. To enable the share count use counter='1' and to disable it simply don't use counter parameter or use parameter counter='0'.</li>
|
34 |
+
<li><i class="fa fa-check"></i>total_counter : You can enable or disable the total share counter. To enable the total share count use total_counter='1' and to disable it simply don't use total_counter parameter or use parameter total_counter='0'.</li>
|
35 |
+
</ul>
|
36 |
+
<li><i class="fa fa-check"></i>Example 2: <code>[apss-share networks='facebook, twitter, pinterest' share_text='Share it' counter='1' total_counter='1']</code></li>
|
37 |
</ul>
|
38 |
</p></dd>
|
39 |
<dd>
|
inc/backend/main-page.php
CHANGED
@@ -102,11 +102,16 @@ if(isset($_SESSION['apss_message'])){ ?>
|
|
102 |
<div class=" apss-icon-sets">
|
103 |
<h2><?php _e( 'Social icons sets: ', APSS_TEXT_DOMAIN ); ?> </h2>
|
104 |
<?php _e('Please choose any one out of available icon themes:', APSS_TEXT_DOMAIN ); ?>
|
|
|
|
|
|
|
|
|
105 |
<p><input id="apss_icon_set_1" value="1" name="apss_share_settings[social_icon_set]" type="radio" <?php if($options['social_icon_set'] =='1'){ echo "checked='checked'"; } ?> ><label for="apss_icon_set_1"><span class="apss_demo_icon apss_demo_icons_1"></span><?php _e('Theme 1', APSS_TEXT_DOMAIN ); ?><div class="apss-theme-image"><img src="<?php echo APSS_IMAGE_DIR.'/theme/theme1.jpg';?>"/></div></label></p>
|
106 |
<p><input id="apss_icon_set_2" value="2" name="apss_share_settings[social_icon_set]" type="radio" <?php if($options['social_icon_set'] =='2'){ echo "checked='checked'"; } ?> ><label for="apss_icon_set_2"><span class="apss_demo_icon apss_demo_icons_2"></span><?php _e('Theme 2', APSS_TEXT_DOMAIN ); ?><div class="apss-theme-image"><img src="<?php echo APSS_IMAGE_DIR.'/theme/theme2.jpg';?>"/></div></label></p>
|
107 |
<p><input id="apss_icon_set_3" value="3" name="apss_share_settings[social_icon_set]" type="radio" <?php if($options['social_icon_set'] =='3'){ echo "checked='checked'"; } ?> ><label for="apss_icon_set_3"><span class="apss_demo_icon apss_demo_icons_3"></span><?php _e('Theme 3', APSS_TEXT_DOMAIN ); ?><div class="apss-theme-image"><img src="<?php echo APSS_IMAGE_DIR.'/theme/theme3.jpg';?>"/></div></label></p>
|
108 |
<p><input id="apss_icon_set_4" value="4" name="apss_share_settings[social_icon_set]" type="radio" <?php if($options['social_icon_set'] =='4'){ echo "checked='checked'"; } ?> ><label for="apss_icon_set_4"><span class="apss_demo_icon apss_demo_icons_4"></span><?php _e('Theme 4', APSS_TEXT_DOMAIN ); ?><div class="apss-theme-image"><img src="<?php echo APSS_IMAGE_DIR.'/theme/theme4.jpg';?>"/></div></label></p>
|
109 |
<p><input id="apss_icon_set_5" value="5" name="apss_share_settings[social_icon_set]" type="radio" <?php if($options['social_icon_set'] =='5'){ echo "checked='checked'"; } ?> ><label for="apss_icon_set_5"><span class="apss_demo_icon apss_demo_icons_5"></span><?php _e('Theme 5', APSS_TEXT_DOMAIN ); ?><div class="apss-theme-image"><img src="<?php echo APSS_IMAGE_DIR.'/theme/theme5.jpg';?>"/></div></label></p>
|
|
|
110 |
</div>
|
111 |
</div>
|
112 |
|
@@ -131,6 +136,12 @@ if(isset($_SESSION['apss_message'])){ ?>
|
|
131 |
<div class="misc-opt"><input type="radio" id='counter_enable_options_y' name="apss_share_settings[counter_enable_options]" value="1" <?php if($options['counter_enable_options'] =='1'){ echo "checked='checked'"; } ?> /><label for="counter_enable_options_y"><?php _e( 'Yes', APSS_TEXT_DOMAIN ); ?></label></div>
|
132 |
</div>
|
133 |
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
<div class="apss-dialog-boxs clearfix">
|
135 |
<h4><?php _e('Social share link options:', APSS_TEXT_DOMAIN ); ?> </h4>
|
136 |
<div class="misc-opt"><input type="radio" id='dialog_box_options_1' name="apss_share_settings[dialog_box_options]" value="0" <?php if($options['dialog_box_options'] =='0'){ echo "checked='checked'"; } ?> /><label for="dialog_box_options_1"><?php _e( 'Open in same window', APSS_TEXT_DOMAIN ); ?></label></div>
|
102 |
<div class=" apss-icon-sets">
|
103 |
<h2><?php _e( 'Social icons sets: ', APSS_TEXT_DOMAIN ); ?> </h2>
|
104 |
<?php _e('Please choose any one out of available icon themes:', APSS_TEXT_DOMAIN ); ?>
|
105 |
+
<?php for($i=1; $i<=6; $i++){ ?>
|
106 |
+
<p><input id="apss_icon_set_<?php echo $i; ?>" value="<?php echo $i; ?>" name="apss_share_settings[social_icon_set]" type="radio" <?php if($options['social_icon_set'] == $i ){ echo "checked='checked'"; } ?> ><label for="apss_icon_set_<?php echo $i; ?>"><span class="apss_demo_icon apss_demo_icons_<?php echo $i; ?>"></span><?php _e("Theme $i", APSS_TEXT_DOMAIN ); ?><div class="apss-theme-image"><img src='<?php echo APSS_IMAGE_DIR."/theme/theme$i.jpg";?>'/></div></label></p>
|
107 |
+
<?php } ?>
|
108 |
+
<?php /* ?>
|
109 |
<p><input id="apss_icon_set_1" value="1" name="apss_share_settings[social_icon_set]" type="radio" <?php if($options['social_icon_set'] =='1'){ echo "checked='checked'"; } ?> ><label for="apss_icon_set_1"><span class="apss_demo_icon apss_demo_icons_1"></span><?php _e('Theme 1', APSS_TEXT_DOMAIN ); ?><div class="apss-theme-image"><img src="<?php echo APSS_IMAGE_DIR.'/theme/theme1.jpg';?>"/></div></label></p>
|
110 |
<p><input id="apss_icon_set_2" value="2" name="apss_share_settings[social_icon_set]" type="radio" <?php if($options['social_icon_set'] =='2'){ echo "checked='checked'"; } ?> ><label for="apss_icon_set_2"><span class="apss_demo_icon apss_demo_icons_2"></span><?php _e('Theme 2', APSS_TEXT_DOMAIN ); ?><div class="apss-theme-image"><img src="<?php echo APSS_IMAGE_DIR.'/theme/theme2.jpg';?>"/></div></label></p>
|
111 |
<p><input id="apss_icon_set_3" value="3" name="apss_share_settings[social_icon_set]" type="radio" <?php if($options['social_icon_set'] =='3'){ echo "checked='checked'"; } ?> ><label for="apss_icon_set_3"><span class="apss_demo_icon apss_demo_icons_3"></span><?php _e('Theme 3', APSS_TEXT_DOMAIN ); ?><div class="apss-theme-image"><img src="<?php echo APSS_IMAGE_DIR.'/theme/theme3.jpg';?>"/></div></label></p>
|
112 |
<p><input id="apss_icon_set_4" value="4" name="apss_share_settings[social_icon_set]" type="radio" <?php if($options['social_icon_set'] =='4'){ echo "checked='checked'"; } ?> ><label for="apss_icon_set_4"><span class="apss_demo_icon apss_demo_icons_4"></span><?php _e('Theme 4', APSS_TEXT_DOMAIN ); ?><div class="apss-theme-image"><img src="<?php echo APSS_IMAGE_DIR.'/theme/theme4.jpg';?>"/></div></label></p>
|
113 |
<p><input id="apss_icon_set_5" value="5" name="apss_share_settings[social_icon_set]" type="radio" <?php if($options['social_icon_set'] =='5'){ echo "checked='checked'"; } ?> ><label for="apss_icon_set_5"><span class="apss_demo_icon apss_demo_icons_5"></span><?php _e('Theme 5', APSS_TEXT_DOMAIN ); ?><div class="apss-theme-image"><img src="<?php echo APSS_IMAGE_DIR.'/theme/theme5.jpg';?>"/></div></label></p>
|
114 |
+
<?php */ ?>
|
115 |
</div>
|
116 |
</div>
|
117 |
|
136 |
<div class="misc-opt"><input type="radio" id='counter_enable_options_y' name="apss_share_settings[counter_enable_options]" value="1" <?php if($options['counter_enable_options'] =='1'){ echo "checked='checked'"; } ?> /><label for="counter_enable_options_y"><?php _e( 'Yes', APSS_TEXT_DOMAIN ); ?></label></div>
|
137 |
</div>
|
138 |
|
139 |
+
<div class="apss-total-counter-settings clearfix">
|
140 |
+
<h4><?php _e( 'Social share total counter enable?', APSS_TEXT_DOMAIN ); ?> </h4>
|
141 |
+
<div class="misc-opt"><input type="radio" id='total_counter_enable_options_n' name="apss_share_settings[total_counter_enable_options]" value="0" <?php if(isset($options['total_counter_enable_options']) && $options['total_counter_enable_options'] == '0'){ echo "checked='checked'"; } ?> /><label for="total_counter_enable_options_n"><?php _e( 'No', APSS_TEXT_DOMAIN ); ?></label></div>
|
142 |
+
<div class="misc-opt"><input type="radio" id='total_counter_enable_options_y' name="apss_share_settings[total_counter_enable_options]" value="1" <?php if(isset($options['total_counter_enable_options']) && $options['total_counter_enable_options'] == '1'){ echo "checked='checked'"; } ?> /><label for="total_counter_enable_options_y"><?php _e( 'Yes', APSS_TEXT_DOMAIN ); ?></label></div>
|
143 |
+
</div>
|
144 |
+
|
145 |
<div class="apss-dialog-boxs clearfix">
|
146 |
<h4><?php _e('Social share link options:', APSS_TEXT_DOMAIN ); ?> </h4>
|
147 |
<div class="misc-opt"><input type="radio" id='dialog_box_options_1' name="apss_share_settings[dialog_box_options]" value="0" <?php if($options['dialog_box_options'] =='0'){ echo "checked='checked'"; } ?> /><label for="dialog_box_options_1"><?php _e( 'Open in same window', APSS_TEXT_DOMAIN ); ?></label></div>
|
inc/backend/save-settings.php
CHANGED
@@ -23,6 +23,7 @@
|
|
23 |
$apss_share_settings['share_text'] = $_POST['apss_share_settings']['share_text'];
|
24 |
$apss_share_settings['twitter_username'] = stripslashes_deep($_POST['apss_share_settings']['twitter_username']);
|
25 |
$apss_share_settings['counter_enable_options'] = $_POST['apss_share_settings']['counter_enable_options'];
|
|
|
26 |
$apss_share_settings['cache_period']= is_numeric($_POST['apss_share_settings']['cache_settings']) ? $_POST['apss_share_settings']['cache_settings'] : '24' ;
|
27 |
$apss_share_settings['dialog_box_options'] = $_POST['apss_share_settings']['dialog_box_options'];
|
28 |
$apss_share_settings['footer_javascript'] = $_POST['apss_share_settings']['footer_javascript'];
|
23 |
$apss_share_settings['share_text'] = $_POST['apss_share_settings']['share_text'];
|
24 |
$apss_share_settings['twitter_username'] = stripslashes_deep($_POST['apss_share_settings']['twitter_username']);
|
25 |
$apss_share_settings['counter_enable_options'] = $_POST['apss_share_settings']['counter_enable_options'];
|
26 |
+
$apss_share_settings['total_counter_enable_options'] = $_POST['apss_share_settings']['total_counter_enable_options'];
|
27 |
$apss_share_settings['cache_period']= is_numeric($_POST['apss_share_settings']['cache_settings']) ? $_POST['apss_share_settings']['cache_settings'] : '24' ;
|
28 |
$apss_share_settings['dialog_box_options'] = $_POST['apss_share_settings']['dialog_box_options'];
|
29 |
$apss_share_settings['footer_javascript'] = $_POST['apss_share_settings']['footer_javascript'];
|
inc/frontend/content-filter.php
CHANGED
@@ -6,13 +6,29 @@ $counter_enable_options=$options['counter_enable_options'];
|
|
6 |
$icon_set_value=$options['social_icon_set'];
|
7 |
$url = get_permalink(); //$this->curPageURL();
|
8 |
$cache_period = ($options['cache_period'] != '') ? $options['cache_period']*60*60 : 24 * 60 * 60 ;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
?>
|
|
|
|
|
10 |
<?php if( isset( $options['share_text'] ) && $options['share_text'] !='' ){ ?>
|
11 |
<div class='apss-share-text'><?php echo $options['share_text']; ?></div>
|
12 |
<?php
|
13 |
}
|
|
|
|
|
|
|
14 |
foreach( $options['social_networks'] as $key=>$value ){
|
15 |
if( intval($value)=='1' ){
|
|
|
|
|
16 |
switch( $key ){
|
17 |
//counter available for facebook
|
18 |
case 'facebook':
|
@@ -170,4 +186,11 @@ foreach( $options['social_networks'] as $key=>$value ){
|
|
170 |
}
|
171 |
|
172 |
}
|
173 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
$icon_set_value=$options['social_icon_set'];
|
7 |
$url = get_permalink(); //$this->curPageURL();
|
8 |
$cache_period = ($options['cache_period'] != '') ? $options['cache_period']*60*60 : 24 * 60 * 60 ;
|
9 |
+
|
10 |
+
if(isset($options['total_counter_enable_options'])){
|
11 |
+
if($options['total_counter_enable_options'] =='1'){
|
12 |
+
$enable_counter = 1;
|
13 |
+
}
|
14 |
+
}else{
|
15 |
+
$enable_counter = 0;
|
16 |
+
}
|
17 |
+
|
18 |
?>
|
19 |
+
|
20 |
+
|
21 |
<?php if( isset( $options['share_text'] ) && $options['share_text'] !='' ){ ?>
|
22 |
<div class='apss-share-text'><?php echo $options['share_text']; ?></div>
|
23 |
<?php
|
24 |
}
|
25 |
+
|
26 |
+
$total_count = 0;
|
27 |
+
|
28 |
foreach( $options['social_networks'] as $key=>$value ){
|
29 |
if( intval($value)=='1' ){
|
30 |
+
$count = $this->get_count($key, $url);
|
31 |
+
$total_count += $count;
|
32 |
switch( $key ){
|
33 |
//counter available for facebook
|
34 |
case 'facebook':
|
186 |
}
|
187 |
|
188 |
}
|
189 |
+
if( isset($enable_counter) && $enable_counter == '1' ){
|
190 |
+
?>
|
191 |
+
<div class='apss-total-share-count'>
|
192 |
+
<span class='apss-count-number'><?php echo $total_count; ?></span>
|
193 |
+
<div class="apss-total-shares"><span class='apss-total-text'><?php echo _e( ' Total', APSS_TEXT_DOMAIN ); ?></span>
|
194 |
+
<span class='apss-shares-text'><?php echo _e( ' Shares', APSS_TEXT_DOMAIN ); ?></span></div>
|
195 |
+
</div>
|
196 |
+
<?php } ?>
|
inc/frontend/shortcode.php
CHANGED
@@ -4,7 +4,7 @@ global $post;
|
|
4 |
$options = get_option( APSS_SETTING_NAME );
|
5 |
$apss_link_open_option=($options['dialog_box_options']=='1') ? "_blank": "";
|
6 |
$twitter_user=$options['twitter_username'];
|
7 |
-
|
8 |
$icon_set_value=$options['social_icon_set'];
|
9 |
$url= get_permalink();
|
10 |
$cache_period = ($options['cache_period'] != '') ? $options['cache_period']*60*60 : 24 * 60 * 60 ;
|
@@ -17,8 +17,28 @@ if( isset($attr['networks']) ){
|
|
17 |
$new_array[$network] = '1';
|
18 |
}
|
19 |
$options['social_networks'] = $new_array;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
}
|
|
|
|
|
|
|
|
|
|
|
21 |
?>
|
|
|
22 |
<div class='apss-social-share apss-theme-<?php echo $icon_set_value; ?> clearfix'>
|
23 |
<?php
|
24 |
$title=str_replace('+', '%20', urlencode($post->post_title));
|
@@ -28,8 +48,20 @@ $excerpt= substr($content, 0, 100).'...';
|
|
28 |
}else{
|
29 |
$excerpt = $content;
|
30 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
foreach( $options['social_networks'] as $key=>$value ){
|
32 |
if( intval($value)=='1' ){
|
|
|
|
|
33 |
switch($key){
|
34 |
//counter available for facebook
|
35 |
case 'facebook':
|
@@ -185,5 +217,11 @@ foreach( $options['social_networks'] as $key=>$value ){
|
|
185 |
}
|
186 |
}
|
187 |
|
188 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
189 |
</div>
|
4 |
$options = get_option( APSS_SETTING_NAME );
|
5 |
$apss_link_open_option=($options['dialog_box_options']=='1') ? "_blank": "";
|
6 |
$twitter_user=$options['twitter_username'];
|
7 |
+
//$counter_enable_options=$options['counter_enable_options'];
|
8 |
$icon_set_value=$options['social_icon_set'];
|
9 |
$url= get_permalink();
|
10 |
$cache_period = ($options['cache_period'] != '') ? $options['cache_period']*60*60 : 24 * 60 * 60 ;
|
17 |
$new_array[$network] = '1';
|
18 |
}
|
19 |
$options['social_networks'] = $new_array;
|
20 |
+
}
|
21 |
+
|
22 |
+
if(isset($attr['total_counter'])){
|
23 |
+
if($attr['total_counter'] =='1'){
|
24 |
+
$total_counter_enable_options = 1;
|
25 |
+
}
|
26 |
+
}else{
|
27 |
+
$total_counter_enable_options = 0;
|
28 |
+
}
|
29 |
+
|
30 |
+
|
31 |
+
if(isset($attr['counter'])){
|
32 |
+
if($attr['counter'] =='1'){
|
33 |
+
$counter_enable_options = 1;
|
34 |
}
|
35 |
+
}else{
|
36 |
+
$counter_enable_options = 0;
|
37 |
+
}
|
38 |
+
|
39 |
+
|
40 |
?>
|
41 |
+
|
42 |
<div class='apss-social-share apss-theme-<?php echo $icon_set_value; ?> clearfix'>
|
43 |
<?php
|
44 |
$title=str_replace('+', '%20', urlencode($post->post_title));
|
48 |
}else{
|
49 |
$excerpt = $content;
|
50 |
}
|
51 |
+
|
52 |
+
?>
|
53 |
+
|
54 |
+
<?php if( isset( $attr['share_text'] ) && $attr['share_text'] !='' ){ ?>
|
55 |
+
<div class='apss-share-text'><?php echo $attr['share_text']; ?></div>
|
56 |
+
<?php } ?>
|
57 |
+
|
58 |
+
|
59 |
+
<?php
|
60 |
+
$total_count = 0;
|
61 |
foreach( $options['social_networks'] as $key=>$value ){
|
62 |
if( intval($value)=='1' ){
|
63 |
+
$count = $this->get_count($key, $url);
|
64 |
+
$total_count += $count;
|
65 |
switch($key){
|
66 |
//counter available for facebook
|
67 |
case 'facebook':
|
217 |
}
|
218 |
}
|
219 |
|
220 |
+
if( isset($total_counter_enable_options) && $total_counter_enable_options == '1' ){ ?>
|
221 |
+
<div class='apss-total-share-count'>
|
222 |
+
<span class='apss-count-number'><?php echo $total_count; ?></span>
|
223 |
+
<div class="apss-total-shares"><span class='apss-total-text'><?php echo _e( ' Total', APSS_TEXT_DOMAIN ); ?></span>
|
224 |
+
<span class='apss-shares-text'><?php echo _e( ' Shares', APSS_TEXT_DOMAIN ); ?></span></div>
|
225 |
+
</div>
|
226 |
+
<?php } ?>
|
227 |
</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.2
|
7 |
-
Stable tag: 2.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -131,6 +131,10 @@ Yes. You can use the AccessPress social share by using shortcode anywhere you wa
|
|
131 |
6. Backend Miscellaneous Settings Section
|
132 |
|
133 |
== Changelog ==
|
|
|
|
|
|
|
|
|
134 |
= 2.0.7 =
|
135 |
* Added the shortcode for share count number display in the content.
|
136 |
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.2
|
7 |
+
Stable tag: 2.0.8
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
131 |
6. Backend Miscellaneous Settings Section
|
132 |
|
133 |
== Changelog ==
|
134 |
+
= 2.0.8 =
|
135 |
+
* Added more shortcode attributes - counter display option, share text option. Please see how to use section.
|
136 |
+
* Added 1 more theme.
|
137 |
+
|
138 |
= 2.0.7 =
|
139 |
* Added the shortcode for share count number display in the content.
|
140 |
|