Plugin Directory

Changeset 392519


Ignore:
Timestamp:
06/02/2011 09:26:04 PM (15 years ago)
Author:
Yatko
Message:

changed:
+1 size select box
fixed bugs:
+1 button size not changing

Location:
google-1-widget/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • google-1-widget/trunk/index.html

    r392506 r392519  
    99    <h1>Google +1 WordPress Widget <g:plusone></g:plusone></h1>
    1010    <p>Google +1 WordPress widget adds a configurable Google +1 Button to your WordPress blog.</p>
    11     <h4>Version 1.0.0</h4>
     11    <h4>Version 1.1.0</h4>
    1212    <p>You can set the title, alignment, size and background of the +1 button. Simply install the plugin and place the widget.</p>
    1313
  • google-1-widget/trunk/plusone.html

    r392506 r392519  
    99    <h1>Google +1 WordPress Widget <g:plusone></g:plusone></h1>
    1010    <p>Google +1 WordPress widget adds a configurable Google +1 Button to your WordPress blog.</p>
    11     <h4>Version 1.0.0</h4>
     11    <h4>Version 1.1.0</h4>
    1212    <p>You can set the title, alignment, size and background of the +1 button. Simply install the plugin and place the widget.</p>
    1313
  • google-1-widget/trunk/plusone.php

    r392506 r392519  
    44Plugin URI: http://www.yatko.com/dev/widgets/wordpress/googleplusone/
    55Description: Google +1 WordPress widget adds a configurable Google +1 Button to your WordPress blog. You can set the title, alignment, size and background of the +1 button. Simply install the plugin and place the widget. Visit http://www.yatko.com/dev/widgets/wordpress/googleplusone/
    6 Version: 1.0.0
     6Version: 1.1.0
    77Author: Yatko
    88Author URI: http://www.yatko.com
     
    9696        /* Strip tags for title and name to remove HTML (important for text inputs). */
    9797        $instance['title'] = strip_tags( $new_instance['title'] );
    98         $instance['plusone_Size'] = strip_tags( $new_instance['plusone_ID'] );
     98        $instance['plusone_Size'] = strip_tags( $new_instance['plusone_Size'] );
    9999        $instance['plusone_Align'] = strip_tags( $new_instance['plusone_Align'] );
    100100        $instance['plusone_BGColor'] = strip_tags( $new_instance['plusone_BGColor'] );
     
    109109
    110110        /* Set up default widget settings. */
    111         $defaults = array( 'title' => __('plusone', 'plusone'), 'plusone_Size' => __('0', 'plusone'), 'plusone_Align' => __('center', 'plusone'), 'plusone_BGColor' => __('transparent', 'plusone'));
     111        $defaults = array( 'title' => __('Google +1', 'plusone'), 'plusone_Size' => __('0', 'plusone'), 'plusone_Align' => __('center', 'plusone'), 'plusone_BGColor' => __('transparent', 'plusone'));
    112112        $instance = wp_parse_args( (array) $instance, $defaults ); ?>
    113113
     
    118118        </p>
    119119
    120         <!-- plusone Size: Text Input -->
     120        <!-- plusone Size: Select Box -->
    121121        <p>
    122             <label for="<?php echo $this->get_field_id( 'plusone_Size' ); ?>"><?php _e('+1 Size:', '0'); ?></label>
    123             <input id="<?php echo $this->get_field_id( 'plusone_Size' ); ?>" name="<?php echo $this->get_field_name( 'plusone_Size' ); ?>" value="<?php echo $instance['plusone_Size']; ?>" style="width:100%;" />
     122            <label for="<?php echo $this->get_field_id( 'plusone_Size' ); ?>"><?php _e('+1 Size:', 'medium'); ?></label>
     123            <select id="<?php echo $this->get_field_id( 'plusone_Size' ); ?>" name="<?php echo $this->get_field_name( 'plusone_Size' ); ?>" class="plusOneSelect" style="width:100%;">
     124                <option <?php if ( 'small' == $instance['format'] ) echo 'selected="selected"'; ?>>small</option>
     125                <option <?php if ( 'medium' == $instance['format'] ) echo 'selected="selected"'; ?>>medium</option>
     126                <option <?php if ( 'tall' == $instance['format'] ) echo 'selected="selected"'; ?>>tall</option>
     127            </select>
    124128        </p>
    125129       
     
    127131        <p>
    128132            <label for="<?php echo $this->get_field_id( 'plusone_Align' ); ?>"><?php _e('Align:', 'center'); ?></label>
    129             <select id="<?php echo $this->get_field_id( 'plusone_Align' ); ?>" name="<?php echo $this->get_field_name( 'plusone_Align' ); ?>" class="widefat" style="width:100%;">
     133            <select id="<?php echo $this->get_field_id( 'plusone_Align' ); ?>" name="<?php echo $this->get_field_name( 'plusone_Align' ); ?>" class="plusOneSelect" style="width:100%;">
    130134                <option <?php if ( 'center' == $instance['format'] ) echo 'selected="selected"'; ?>>center</option>
    131135                <option <?php if ( 'left' == $instance['format'] ) echo 'selected="selected"'; ?>>left</option>
  • google-1-widget/trunk/readme.txt

    r392506 r392519  
    1 === +1 Button ===
     1=== Google +1 Button ===
    22Contributors: Yatko
    33Donate link: http://www.yatko.com/
     
    55Requires at least: 2.0.2
    66Tested up to: 3.1.3
    7 Stable tag: 1.0.0
     7Stable tag: 1.1.0
    88
    99Google +1 WordPress widget adds a configurable Google +1 Button to your WordPress blog
     
    2828
    2929== Changelog ==
     30= 1.1.0 =
     31* changed: +1 size select box
     32* fixed: +1 button size not changing
    3033
    3134= 1.0.0 =
Note: See TracChangeset for help on using the changeset viewer.