Changeset 713755
- Timestamp:
- 05/16/2013 05:37:23 AM (13 years ago)
- Location:
- pagepost-specific-social-share-buttons
- Files:
-
- 9 added
- 9 edited
-
assets/banner-772x250.jpg (modified) (previous)
-
assets/screenshot-1.png (modified) (previous)
-
assets/screenshot-2.png (modified) (previous)
-
tags/1.1 (added)
-
tags/1.1/page-post-specific-social-share.php (added)
-
tags/1.1/ppss_admin_page.php (added)
-
tags/1.1/ppss_display.php (added)
-
tags/1.1/ppss_style.css (added)
-
tags/1.1/readme.txt (added)
-
tags/1.1/screenshot-1.png (added)
-
tags/1.1/screenshot-2.png (added)
-
tags/1.1/screenshot-3.png (added)
-
trunk/page-post-specific-social-share.php (modified) (1 diff)
-
trunk/ppss_admin_page.php (modified) (6 diffs)
-
trunk/ppss_display.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/screenshot-1.png (modified) (previous)
-
trunk/screenshot-2.png (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
-
pagepost-specific-social-share-buttons/trunk/page-post-specific-social-share.php
r698939 r713755 6 6 Author URI: http://www.completewebresources.com/ 7 7 Plugin URI: http://www.completewebresources.com/page-post-specific-social-share-wp-plugin/ 8 Version: 1. 0.18 Version: 1.1 9 9 License: GPL 10 10 */ -
pagepost-specific-social-share-buttons/trunk/ppss_admin_page.php
r698934 r713755 33 33 $meta = get_post_meta($post->ID, $field['id'], true); 34 34 echo '<tr>', 35 '<th style=""><label for="', $field['id'], '"> Displaysocial share buttons on this post / page:</label></th>',35 '<th style=""><label for="', $field['id'], '">Hide social share buttons on this post / page:</label></th>', 36 36 '<td>'; 37 37 echo '<input type="checkbox" value="',$field['value'],'" name="', $field['id'], '" id="', $field['id'], '"', $meta ? ' checked="checked"' : '', ' />'; … … 122 122 $option['position'] = esc_html($_POST['ppss_social_share_position']); 123 123 $option['border'] = esc_html($_POST['ppss_social_share_border']); 124 $option['bkcolor'] = (isset($_POST['ppss_social_share_background_color']) and $_POST['ppss_social_share_background_color']=='on') ? true : false; 124 125 125 $option[' bkcolor'] = (isset($_POST['ppss_social_share_background_color']) and $_POST['ppss_social_share_background_color']=='on') ? true : false;126 $option['enabler'] = (isset($_POST['ppss_social_share_enabler']) and $_POST['ppss_social_share_enabler']=='on') ? true : false; 126 127 127 128 $option['bkcolor_value'] = esc_html($_POST['ppss_social_share_bkcolor_value']); 128 129 $option['jsload'] = (isset($_POST['ppss_social_share_javascript_load']) and $_POST['ppss_social_share_javascript_load']=='on') ? true : false; 129 130 $option['mobdev'] = (isset($_POST['ppss_social_share_mobile_device']) and $_POST['ppss_social_share_mobile_device']=='on') ? true : false; 130 131 131 $option['twitter_id'] = esc_html($_POST['ppss_social_share_twitter_id']); 132 132 $option['custom_code'] = stripslashes($_POST['ppss_social_share_custom_code']); … … 163 163 164 164 $bkcolor = ($option['bkcolor']) ? 'checked="checked"' : ''; 165 166 $enabler = ($option['enabler']) ? 'checked="checked"' : ''; 167 165 168 $jsload = ($option['jsload']) ? 'checked="checked"' : ''; 166 169 $mobdev = ($option['mobdev']) ? 'checked="checked"' : ''; … … 170 173 $linkedin_count = ($option['linkedin_count']) ? 'checked="checked"' : ''; 171 174 $pinterest_count = ($option['pinterest_count']) ? 'checked="checked"' : ''; 175 176 $enablerColor = $enabler ? '#0B932D' : '#ff0000'; 172 177 173 178 $out .= ' … … 182 187 <div class="inside"> 183 188 <table> 184 189 190 <tr><td style="padding:15px 0 20px 0; font-weight:bold; font-size:15px; color:'.$enablerColor.'" valign="top">'.__("Enable share buttons", 'menu-test' ).':</td> 191 <td style="padding:15px 0 20px 0;"> 192 <input type="checkbox" name="ppss_social_share_enabler" '.$enabler.' /> 193 </td></tr> 194 185 195 <tr><td valign="top" style="width:180px;">'.__("Active share buttons", 'menu-test' ).':</td> 186 196 <td style="padding-bottom:30px;">'; … … 412 422 $option['border'] = $border; 413 423 $option['bkcolor'] = true; 424 $option['enabler'] = true; 414 425 $option['bkcolor_value'] = $color; 415 426 $option['jsload'] = true; -
pagepost-specific-social-share-buttons/trunk/ppss_display.php
r698281 r713755 49 49 return the_excerpt(); 50 50 } 51 if ($filter=='the_excerpt' and $last_execution=='the_excerpt') {52 add_filter('the_content', 'ppss_twitter_facebook_contents');53 }51 if ($filter=='the_excerpt' and $last_execution=='the_excerpt') { 52 add_filter('the_content', 'ppss_twitter_facebook_contents'); 53 } 54 54 55 55 $option = ppss_social_share_get_options_stored(); … … 230 230 global $post; 231 231 $ppss_displayer = get_post_meta($post->ID, 'ab_checkbox', true); 232 233 if($ppss_displayer) { 234 232 233 $enabler = $option['enabler']; 234 235 if($enabler) { // global enable check 236 237 if(!$ppss_displayer) { 238 235 239 if (($option['position'] == 'below') || ($option['position'] == 'above') || ($option['position'] == 'both')) 236 240 { … … 295 299 296 300 } 301 } 302 297 303 } 298 304 -
pagepost-specific-social-share-buttons/trunk/readme.txt
r698939 r713755 6 6 Requires at least: 3.0 7 7 Tested up to: 3.5.1 8 Stable tag: 1. 0.18 Stable tag: 1.1 9 9 10 10 == Description == … … 24 24 <p>Demo: http://www.completewebresources.com/page-post-specific-social-share-wp-plugin/</p> 25 25 26 * The ability to enable/disable social media buttons for entire website. Default: enabled 27 28 * The ability to display/hide social media buttons on specific posts or pages. 29 26 30 * The ability to control the position of the social media buttons to be displayed on the posts or pages. 27 31 28 32 * An easy to use admin panel where you can set different types of border styles with or without background colors. 29 33 30 * Javascript is loaded to the footer to avoid most of the conflicts caused by other plugins. You can also choose the scripts to be loaded in the header if you wish. 34 * Javascript is loaded to the footer to avoid most of the conflicts caused by other plugins. You can also choose the 35 36 scripts to be loaded in the header if you wish. 31 37 32 38 * Option to display on home page, static pages, category, tag, archive pages etc. 33 39 34 * Special metabox on the page or post editing windows to control the display of social buttons on the specific post/page. 40 * Special metabox on the page or post editing windows to control the display of social buttons on the specific 41 42 post/page. 35 43 36 44 * Facebook Like thumbnail will now display thumbnail specific to the post or page. … … 42 50 * Option to disable on Mobile Devices (iPad, iPhone, Blackberry, Nokia, Android, Opera Mini) 43 51 44 * Advanced image search for Pinterest sharing. (searches post thumbnail, then attached image to post and lastly any image inserted in the post content (picks up first image found).52 * Advanced image search for Pinterest sharing. (searches post thumbnail, then attached image to post and lastly any 45 53 46 * Last but not least, option to add your own custom code to display additional buttons along with the default available social media buttons. 54 image inserted in the post content (picks up first image found). 55 56 * Last but not least, option to add your own custom code to display additional buttons along with the default available 57 58 social media buttons. 47 59 48 60 … … 69 81 = 1.0.1 = 70 82 * Minor edit 83 84 = 1.1 = 85 * Added a global enable/disable option 86 * Hide social share buttons on specific pages/posts
Note: See TracChangeset
for help on using the changeset viewer.