Plugin Directory

Changeset 406842


Ignore:
Timestamp:
07/08/2011 05:31:44 PM (15 years ago)
Author:
Name.ly
Message:

Adjusted width of the setting inputs for WP 3.2.

Location:
feed2tabs/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • feed2tabs/trunk/feed2tabs.php

    r406646 r406842  
    77Plugin URI: http://feed2tabs.com/plugins/wordpress/
    88Description: In addition to link bundling services <a href="http://brief.ly/" target="_blank" ><em>Brief.ly</em></a>, <a href="http://links2.me/" target="_blank" ><em>Links2.Me</em></a>, <a href="http://many.at/" target="_blank" ><em>Many.at</em></a>, Feed2Tabs plugin automatically opens the most recent posts from your RSS feed in the tabs. If you also want your visitors to be able to open all reference in each page with one click, consider installing Links2Tabs plugin.
    9 Version: 0.0.2
     9Version: 0.0.3
    1010Author: Name.ly
    1111Author URI: http://name.ly/
     
    8989
    9090        /* Widget control settings. */
    91         $control_ops = array ( 'id_base' => 'feed2tabs-widget', 'width' => 505, );
     91        $control_ops = array ( 'id_base' => 'feed2tabs-widget', 'width' => 200, );
    9292
    9393        /* Create the widget. */
     
    123123        <p>
    124124            <label for="<?php echo $this->get_field_id ( 'title' ); ?>"><?php _e ( 'Title:', 'feed2tabs' ); ?></label><br />
    125             <input value="<?php echo $instance ['title']; ?>" id="<?php echo $this->get_field_id ( 'title' ); ?>" name="<?php echo $this->get_field_name ( 'title' ); ?>" size="80" /><br />
     125            <input value="<?php echo $instance ['title']; ?>" id="<?php echo $this->get_field_id ( 'title' ); ?>" name="<?php echo $this->get_field_name ( 'title' ); ?>" class="widefat" /><br />
    126126            <small><?php _e ( 'Leave blank for none.', 'feed2tabs' ); ?></small>
    127127        </p>
     
    130130        <p>
    131131            <label for="<?php echo $this->get_field_id ( 'source' ); ?>"><?php echo str_replace ( '%feed%', $site_feed_link, __ ( 'Feed URL:', 'feed2tabs' ) ); ?></label><br />
    132             <input value="<?php echo $instance ['source']; ?>" id="<?php echo $this->get_field_id ( 'source' ); ?>" name="<?php echo $this->get_field_name ( 'source' ); ?>" size="80" /><br />
     132            <input value="<?php echo $instance ['source']; ?>" id="<?php echo $this->get_field_id ( 'source' ); ?>" name="<?php echo $this->get_field_name ( 'source' ); ?>" class="widefat" /><br />
    133133            <small><?php echo str_replace ( '%feed%', $site_feed_link, __ ( 'Leave blank to use this blog\'s feed %feed% as the source.', 'feed2tabs' ) ); ?><br />
    134134            <?php _e ( 'Else, provide an address of any valid feed (Atom, RSS, XML, et al) you want to open.', 'feed2tabs' ); ?><br />
     
    139139        <p>
    140140            <label for="<?php echo $this->get_field_id ( 'toc' ); ?>"><?php _e ( 'Table of Contents:', 'feed2tabs' ); ?></label><br />
    141             <input value="<?php echo $instance ['toc']; ?>" id="<?php echo $this->get_field_id ( 'toc' ); ?>" name="<?php echo $this->get_field_name ( 'toc' ); ?>" size="80" /><br />
     141            <input value="<?php echo $instance ['toc']; ?>" id="<?php echo $this->get_field_id ( 'toc' ); ?>" name="<?php echo $this->get_field_name ( 'toc' ); ?>" class="widefat" /><br />
    142142            <small><?php _e ( 'Caption of the Table of Contents. Set to <code>off</code> to hide the ToC.', 'feed2tabs' ); ?></small>
    143143        </p>
     
    146146        <p><?php
    147147            echo '<label for="' . $this->get_field_id ( 'numposts' ) . '">' . __ ( 'Limit the number of shown feed items to:', 'feed2tabs' ) . '</label><br />' . NEW_LINE;
    148             echo '<select name="' . $this->get_field_name ( 'numposts' ) . '" id="' . $this->get_field_id ( 'numposts' ) . '" >' . NEW_LINE;
     148            echo '<select name="' . $this->get_field_name ( 'numposts' ) . '" id="' . $this->get_field_id ( 'numposts' ) . '" class="widefat" >' . NEW_LINE;
    149149            for ( $i=1; $i<=NAME_LY_MAX_NUMBER_OF_TABS; $i++ ) {
    150150                echo '  <option ' . ( $i == $instance [ 'numposts' ] ? 'selected ' : '' ) . 'value="' . $i . '">' . $i . '</option>' . NEW_LINE;
     
    157157        <p><?php
    158158            echo '<label for="' . $this->get_field_id ( 'target' ) . '">' . __ ( 'Link destination:', 'feed2tabs' ) . '</label><br />' . NEW_LINE;
    159             echo '<select name="' . $this->get_field_name ( 'target' ) . '" id="' . $this->get_field_id ( 'target' ) . '" >' . NEW_LINE;
     159            echo '<select name="' . $this->get_field_name ( 'target' ) . '" id="' . $this->get_field_id ( 'target' ) . '" class="widefat" >' . NEW_LINE;
    160160            echo '  <option ' . ( '_blank' == $instance ['target'] ? 'selected ' : '' ) . 'value="_blank">' . __ (  'New Window', 'feed2tabs' ) . '</option>' . NEW_LINE;
    161161            echo '  <option ' . ( '_blank' != $instance ['target'] ? 'selected ' : '' ) . 'value="_same">' . __ (  'Same Window', 'feed2tabs' ) . '</option>' . NEW_LINE;
     
    167167        <p>
    168168            <label for="<?php echo $this->get_field_id ( 'description' ); ?>"><?php _e ( 'Description:', 'feed2tabs' ); ?></label><br />
    169             <input value="<?php echo $instance ['description']; ?>" id="<?php echo $this->get_field_id ( 'description' ); ?>" name="<?php echo $this->get_field_name ( 'description' ); ?>" size="80" /><br />
     169            <input value="<?php echo $instance ['description']; ?>" id="<?php echo $this->get_field_id ( 'description' ); ?>" name="<?php echo $this->get_field_name ( 'description' ); ?>" class="widefat" /><br />
    170170            <small><?php _e ( 'Text to appear as the icon description.', 'feed2tabs' ); ?></small>
    171171        </p>
     
    174174        <p><?php
    175175            echo '<label for="' . $this->get_field_id( 'custom_api_base' ) . '">' . __ ( 'Custom API base URL (so that the advanced users have extra playground):', 'feed2tabs' ) . '</label><br />' . NEW_LINE;
    176             echo '<input value="' . $instance [ 'custom_api_base' ] . '" id="' . $this->get_field_id ( 'custom_api_base' ) . '" name="' . $this->get_field_name ( 'custom_api_base' ) . '" size="80" /><br />' . NEW_LINE;
     176            echo '<input value="' . $instance [ 'custom_api_base' ] . '" id="' . $this->get_field_id ( 'custom_api_base' ) . '" name="' . $this->get_field_name ( 'custom_api_base' ) . '" class="widefat" /><br />' . NEW_LINE;
    177177            echo '<small>' . __ ( 'You can choose from a predefined API base', 'feed2tabs' ) . '</small>' . NEW_LINE;
    178             echo '<select name="' . $this->get_field_name ( 'api_base' ) . '" id="' . $this->get_field_id ( 'api_base' ) . '" onClick="document.getElementById(\'' . $this->get_field_id( 'custom_api_base' ) . '\').value=this.value;" >' . NEW_LINE;
     178            echo '<select name="' . $this->get_field_name ( 'api_base' ) . '" id="' . $this->get_field_id ( 'api_base' ) . '" onClick="document.getElementById(\'' . $this->get_field_id( 'custom_api_base' ) . '\').value=this.value;" class="widefat" style="width:50%;" >' . NEW_LINE;
    179179            foreach ( $feed2tabs_api_default_bases as $key => $api_default_base ) {
    180180                echo '  <option ' . ( false !== stripos ( $instance [ 'custom_api_base' ], $api_default_base ) ? 'selected ' : '' ) . 'value="' . $api_default_base . '">' . $key . '</option>' . NEW_LINE;
  • feed2tabs/trunk/readme.txt

    r406646 r406842  
    55Requires at least: 3.0
    66Tested up to: 3.2
    7 Stable tag: 0.0.2
     7Stable tag: 0.0.3
    88License: GPLv2 or later
    99
     
    114114
    115115= 0.0.1 =
     116
    116117* Initial version.
    117118* Created and tested.
    118119
    119120= 0.0.2 =
     121
    120122* Added a note that Wordpress 3.0 is the minimal version.
     123
     124= 0.0.3 =
     125
     126* Adjusted width of the setting inputs for WP 3.2.
    121127
    122128
     
    125131
    126132= 0.0.1 =
     133
    127134This is a great plugin, give it a try.
    128135
    129136= 0.0.2 =
     137
    130138Users using WP below 3.0 should upgrade.
    131139
Note: See TracChangeset for help on using the changeset viewer.