Plugin Directory

Changeset 425518


Ignore:
Timestamp:
08/18/2011 06:44:25 PM (15 years ago)
Author:
metronet
Message:

1.0.2

  • Added is_ssl()
  • Added CSS class
  • Option to hide button on home page
Location:
plus-one
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • plus-one/tags/1.0.2/plus-one-settings.php

    r394187 r425518  
    66        'plus_one_on_posts'     => '1',
    77        'plus_one_on_pages'     => '1',
     8        'plus_one_on_home'      => '1',
    89        'plus_one_location'     => '2',
    910        'plus_one_size'         => '3',
     
    105106                   
    106107                    <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>
    107119               
    108120                </td>
  • plus-one/tags/1.0.2/plus-one.php

    r395033 r425518  
    44Plugin URI: http://wordpress.org/extend/plugins/plus-one/
    55Description: Use this plugin to easily add the Google +1 button to your WordPress site
    6 Version: 1.0.1
     6Version: 1.0.2
    77Author: Metronet
    88Author URI: http://metronet.no/
     
    3131    $plus_one_options = get_option( 'plus_one_options' );
    3232    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   
    3441    if ( ($plus_one_options['plus_one_language'] != 'en-US' || $plus_one_options['plus_one_parse'] == 2) ) :
    3542       
     
    5865    $plus_one_options = get_option( 'plus_one_options' );
    5966   
    60     $plus_one_button = '<g:plusone';
     67    $plus_one_button = '<div class="plus-one-wrap"><g:plusone';
    6168   
    6269    // Size
     
    6572       
    6673    else if ( $plus_one_options['plus_one_size'] == '2' )
    67         $plus_one_button .= ' size="medium>';
     74        $plus_one_button .= ' size="medium"';
    6875       
    6976    else if ( $plus_one_options['plus_one_size'] == '4' )
     
    8794    $plus_one_button .= '>';
    8895   
    89     $plus_one_button .= '</g:plusone>';
     96    $plus_one_button .= '</g:plusone></div>';
    9097   
    9198    return $plus_one_button;
     
    100107    $plus_one_options = get_option( 'plus_one_options' );
    101108   
     109    // +1 on Posts
    102110    if ( is_single() && $plus_one_options['plus_one_on_posts'] != '1' )
    103111        return $content;
    104112       
     113    // +1 on Pages
    105114    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' )
    106119        return $content;
    107120   
  • plus-one/tags/1.0.2/readme.txt

    r395033 r425518  
    44Tags: +1, plus one, plus 1, Google, +1 button, button
    55Requires at least: 3.0
    6 Tested up to: 3.2
    7 Stable tag: 1.0.1
     6Tested up to: 3.2.1
     7Stable tag: 1.0.2
    88
    99The Plus One plugin easily adds the Google +1 button to your site.
     
    4848== Changelog ==
    4949
     50= 1.0.2 =
     51* Added is_ssl()
     52* Added CSS class
     53* Option to hide button on home page
     54
    5055= 1.0.1 =
    5156* Various bug fixes
     
    5762== Upgrade Notice ==
    5863
     64= 1.0.2 =
     65* Added is_ssl()
     66* Added CSS class
     67* Option to hide button on home page
     68
    5969= 1.0.1 =
    6070* Various bug fixes
  • plus-one/trunk/plus-one-settings.php

    r394187 r425518  
    66        'plus_one_on_posts'     => '1',
    77        'plus_one_on_pages'     => '1',
     8        'plus_one_on_home'      => '1',
    89        'plus_one_location'     => '2',
    910        'plus_one_size'         => '3',
     
    105106                   
    106107                    <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>
    107119               
    108120                </td>
  • plus-one/trunk/plus-one.php

    r395033 r425518  
    44Plugin URI: http://wordpress.org/extend/plugins/plus-one/
    55Description: Use this plugin to easily add the Google +1 button to your WordPress site
    6 Version: 1.0.1
     6Version: 1.0.2
    77Author: Metronet
    88Author URI: http://metronet.no/
     
    3131    $plus_one_options = get_option( 'plus_one_options' );
    3232    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   
    3441    if ( ($plus_one_options['plus_one_language'] != 'en-US' || $plus_one_options['plus_one_parse'] == 2) ) :
    3542       
     
    5865    $plus_one_options = get_option( 'plus_one_options' );
    5966   
    60     $plus_one_button = '<g:plusone';
     67    $plus_one_button = '<div class="plus-one-wrap"><g:plusone';
    6168   
    6269    // Size
     
    6572       
    6673    else if ( $plus_one_options['plus_one_size'] == '2' )
    67         $plus_one_button .= ' size="medium>';
     74        $plus_one_button .= ' size="medium"';
    6875       
    6976    else if ( $plus_one_options['plus_one_size'] == '4' )
     
    8794    $plus_one_button .= '>';
    8895   
    89     $plus_one_button .= '</g:plusone>';
     96    $plus_one_button .= '</g:plusone></div>';
    9097   
    9198    return $plus_one_button;
     
    100107    $plus_one_options = get_option( 'plus_one_options' );
    101108   
     109    // +1 on Posts
    102110    if ( is_single() && $plus_one_options['plus_one_on_posts'] != '1' )
    103111        return $content;
    104112       
     113    // +1 on Pages
    105114    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' )
    106119        return $content;
    107120   
  • plus-one/trunk/readme.txt

    r395033 r425518  
    44Tags: +1, plus one, plus 1, Google, +1 button, button
    55Requires at least: 3.0
    6 Tested up to: 3.2
    7 Stable tag: 1.0.1
     6Tested up to: 3.2.1
     7Stable tag: 1.0.2
    88
    99The Plus One plugin easily adds the Google +1 button to your site.
     
    4848== Changelog ==
    4949
     50= 1.0.2 =
     51* Added is_ssl()
     52* Added CSS class
     53* Option to hide button on home page
     54
    5055= 1.0.1 =
    5156* Various bug fixes
     
    5762== Upgrade Notice ==
    5863
     64= 1.0.2 =
     65* Added is_ssl()
     66* Added CSS class
     67* Option to hide button on home page
     68
    5969= 1.0.1 =
    6070* Various bug fixes
Note: See TracChangeset for help on using the changeset viewer.