Changeset 425518
- Timestamp:
- 08/18/2011 06:44:25 PM (15 years ago)
- Location:
- plus-one
- Files:
-
- 6 edited
- 1 copied
-
tags/1.0.2 (copied) (copied from plus-one/trunk)
-
tags/1.0.2/plus-one-settings.php (modified) (2 diffs)
-
tags/1.0.2/plus-one.php (modified) (6 diffs)
-
tags/1.0.2/readme.txt (modified) (3 diffs)
-
trunk/plus-one-settings.php (modified) (2 diffs)
-
trunk/plus-one.php (modified) (6 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plus-one/tags/1.0.2/plus-one-settings.php
r394187 r425518 6 6 'plus_one_on_posts' => '1', 7 7 'plus_one_on_pages' => '1', 8 'plus_one_on_home' => '1', 8 9 'plus_one_location' => '2', 9 10 'plus_one_size' => '3', … … 105 106 106 107 <input type="checkbox" name="plus_one_options[plus_one_on_pages]" value="1"<?php checked( '1' == $plus_one_options['plus_one_on_pages'] ); ?> /> 108 109 </td> 110 </tr> 111 112 <th scope="row"><?php _e('Hide on Home Page', 'plus-one'); ?>:</th> 113 <td> 114 115 <select name="plus_one_options[plus_one_on_home]"> 116 <option value="1" <?php selected( $plus_one_options['plus_one_on_home'], 1 ); ?>><?php _e('Disabled', 'plus-one'); ?></option> 117 <option value="2" <?php selected( $plus_one_options['plus_one_on_home'], 2 ); ?>><?php _e('Enabled', 'plus-one'); ?></option> 118 </select> 107 119 108 120 </td> -
plus-one/tags/1.0.2/plus-one.php
r395033 r425518 4 4 Plugin URI: http://wordpress.org/extend/plugins/plus-one/ 5 5 Description: Use this plugin to easily add the Google +1 button to your WordPress site 6 Version: 1.0. 16 Version: 1.0.2 7 7 Author: Metronet 8 8 Author URI: http://metronet.no/ … … 31 31 $plus_one_options = get_option( 'plus_one_options' ); 32 32 echo "\n\n<!-- Google +1 Button for WordPress -->\n"; 33 echo '<script type="text/javascript" src="http://apis.google.com/js/plusone.js">'; 33 34 // SSL Check 35 if ( is_ssl() ) : 36 echo '<script type="text/javascript" src="https://apis.google.com/js/plusone.js">'; 37 else : 38 echo '<script type="text/javascript" src="http://apis.google.com/js/plusone.js">'; 39 endif; 40 34 41 if ( ($plus_one_options['plus_one_language'] != 'en-US' || $plus_one_options['plus_one_parse'] == 2) ) : 35 42 … … 58 65 $plus_one_options = get_option( 'plus_one_options' ); 59 66 60 $plus_one_button = '< g:plusone';67 $plus_one_button = '<div class="plus-one-wrap"><g:plusone'; 61 68 62 69 // Size … … 65 72 66 73 else if ( $plus_one_options['plus_one_size'] == '2' ) 67 $plus_one_button .= ' size="medium >';74 $plus_one_button .= ' size="medium"'; 68 75 69 76 else if ( $plus_one_options['plus_one_size'] == '4' ) … … 87 94 $plus_one_button .= '>'; 88 95 89 $plus_one_button .= '</g:plusone> ';96 $plus_one_button .= '</g:plusone></div>'; 90 97 91 98 return $plus_one_button; … … 100 107 $plus_one_options = get_option( 'plus_one_options' ); 101 108 109 // +1 on Posts 102 110 if ( is_single() && $plus_one_options['plus_one_on_posts'] != '1' ) 103 111 return $content; 104 112 113 // +1 on Pages 105 114 if ( is_page() && $plus_one_options['plus_one_on_pages'] != '1' ) 115 return $content; 116 117 // +1 on Home Page 118 if ( is_home() && $plus_one_options['plus_one_on_home'] == '2' ) 106 119 return $content; 107 120 -
plus-one/tags/1.0.2/readme.txt
r395033 r425518 4 4 Tags: +1, plus one, plus 1, Google, +1 button, button 5 5 Requires at least: 3.0 6 Tested up to: 3.2 7 Stable tag: 1.0. 16 Tested up to: 3.2.1 7 Stable tag: 1.0.2 8 8 9 9 The Plus One plugin easily adds the Google +1 button to your site. … … 48 48 == Changelog == 49 49 50 = 1.0.2 = 51 * Added is_ssl() 52 * Added CSS class 53 * Option to hide button on home page 54 50 55 = 1.0.1 = 51 56 * Various bug fixes … … 57 62 == Upgrade Notice == 58 63 64 = 1.0.2 = 65 * Added is_ssl() 66 * Added CSS class 67 * Option to hide button on home page 68 59 69 = 1.0.1 = 60 70 * Various bug fixes -
plus-one/trunk/plus-one-settings.php
r394187 r425518 6 6 'plus_one_on_posts' => '1', 7 7 'plus_one_on_pages' => '1', 8 'plus_one_on_home' => '1', 8 9 'plus_one_location' => '2', 9 10 'plus_one_size' => '3', … … 105 106 106 107 <input type="checkbox" name="plus_one_options[plus_one_on_pages]" value="1"<?php checked( '1' == $plus_one_options['plus_one_on_pages'] ); ?> /> 108 109 </td> 110 </tr> 111 112 <th scope="row"><?php _e('Hide on Home Page', 'plus-one'); ?>:</th> 113 <td> 114 115 <select name="plus_one_options[plus_one_on_home]"> 116 <option value="1" <?php selected( $plus_one_options['plus_one_on_home'], 1 ); ?>><?php _e('Disabled', 'plus-one'); ?></option> 117 <option value="2" <?php selected( $plus_one_options['plus_one_on_home'], 2 ); ?>><?php _e('Enabled', 'plus-one'); ?></option> 118 </select> 107 119 108 120 </td> -
plus-one/trunk/plus-one.php
r395033 r425518 4 4 Plugin URI: http://wordpress.org/extend/plugins/plus-one/ 5 5 Description: Use this plugin to easily add the Google +1 button to your WordPress site 6 Version: 1.0. 16 Version: 1.0.2 7 7 Author: Metronet 8 8 Author URI: http://metronet.no/ … … 31 31 $plus_one_options = get_option( 'plus_one_options' ); 32 32 echo "\n\n<!-- Google +1 Button for WordPress -->\n"; 33 echo '<script type="text/javascript" src="http://apis.google.com/js/plusone.js">'; 33 34 // SSL Check 35 if ( is_ssl() ) : 36 echo '<script type="text/javascript" src="https://apis.google.com/js/plusone.js">'; 37 else : 38 echo '<script type="text/javascript" src="http://apis.google.com/js/plusone.js">'; 39 endif; 40 34 41 if ( ($plus_one_options['plus_one_language'] != 'en-US' || $plus_one_options['plus_one_parse'] == 2) ) : 35 42 … … 58 65 $plus_one_options = get_option( 'plus_one_options' ); 59 66 60 $plus_one_button = '< g:plusone';67 $plus_one_button = '<div class="plus-one-wrap"><g:plusone'; 61 68 62 69 // Size … … 65 72 66 73 else if ( $plus_one_options['plus_one_size'] == '2' ) 67 $plus_one_button .= ' size="medium >';74 $plus_one_button .= ' size="medium"'; 68 75 69 76 else if ( $plus_one_options['plus_one_size'] == '4' ) … … 87 94 $plus_one_button .= '>'; 88 95 89 $plus_one_button .= '</g:plusone> ';96 $plus_one_button .= '</g:plusone></div>'; 90 97 91 98 return $plus_one_button; … … 100 107 $plus_one_options = get_option( 'plus_one_options' ); 101 108 109 // +1 on Posts 102 110 if ( is_single() && $plus_one_options['plus_one_on_posts'] != '1' ) 103 111 return $content; 104 112 113 // +1 on Pages 105 114 if ( is_page() && $plus_one_options['plus_one_on_pages'] != '1' ) 115 return $content; 116 117 // +1 on Home Page 118 if ( is_home() && $plus_one_options['plus_one_on_home'] == '2' ) 106 119 return $content; 107 120 -
plus-one/trunk/readme.txt
r395033 r425518 4 4 Tags: +1, plus one, plus 1, Google, +1 button, button 5 5 Requires at least: 3.0 6 Tested up to: 3.2 7 Stable tag: 1.0. 16 Tested up to: 3.2.1 7 Stable tag: 1.0.2 8 8 9 9 The Plus One plugin easily adds the Google +1 button to your site. … … 48 48 == Changelog == 49 49 50 = 1.0.2 = 51 * Added is_ssl() 52 * Added CSS class 53 * Option to hide button on home page 54 50 55 = 1.0.1 = 51 56 * Various bug fixes … … 57 62 == Upgrade Notice == 58 63 64 = 1.0.2 = 65 * Added is_ssl() 66 * Added CSS class 67 * Option to hide button on home page 68 59 69 = 1.0.1 = 60 70 * Various bug fixes
Note: See TracChangeset
for help on using the changeset viewer.