Changeset 406842
- Timestamp:
- 07/08/2011 05:31:44 PM (15 years ago)
- Location:
- feed2tabs/trunk
- Files:
-
- 2 edited
-
feed2tabs.php (modified) (9 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
feed2tabs/trunk/feed2tabs.php
r406646 r406842 7 7 Plugin URI: http://feed2tabs.com/plugins/wordpress/ 8 8 Description: 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. 29 Version: 0.0.3 10 10 Author: Name.ly 11 11 Author URI: http://name.ly/ … … 89 89 90 90 /* Widget control settings. */ 91 $control_ops = array ( 'id_base' => 'feed2tabs-widget', 'width' => 505, );91 $control_ops = array ( 'id_base' => 'feed2tabs-widget', 'width' => 200, ); 92 92 93 93 /* Create the widget. */ … … 123 123 <p> 124 124 <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 /> 126 126 <small><?php _e ( 'Leave blank for none.', 'feed2tabs' ); ?></small> 127 127 </p> … … 130 130 <p> 131 131 <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 /> 133 133 <small><?php echo str_replace ( '%feed%', $site_feed_link, __ ( 'Leave blank to use this blog\'s feed %feed% as the source.', 'feed2tabs' ) ); ?><br /> 134 134 <?php _e ( 'Else, provide an address of any valid feed (Atom, RSS, XML, et al) you want to open.', 'feed2tabs' ); ?><br /> … … 139 139 <p> 140 140 <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 /> 142 142 <small><?php _e ( 'Caption of the Table of Contents. Set to <code>off</code> to hide the ToC.', 'feed2tabs' ); ?></small> 143 143 </p> … … 146 146 <p><?php 147 147 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; 149 149 for ( $i=1; $i<=NAME_LY_MAX_NUMBER_OF_TABS; $i++ ) { 150 150 echo ' <option ' . ( $i == $instance [ 'numposts' ] ? 'selected ' : '' ) . 'value="' . $i . '">' . $i . '</option>' . NEW_LINE; … … 157 157 <p><?php 158 158 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; 160 160 echo ' <option ' . ( '_blank' == $instance ['target'] ? 'selected ' : '' ) . 'value="_blank">' . __ ( 'New Window', 'feed2tabs' ) . '</option>' . NEW_LINE; 161 161 echo ' <option ' . ( '_blank' != $instance ['target'] ? 'selected ' : '' ) . 'value="_same">' . __ ( 'Same Window', 'feed2tabs' ) . '</option>' . NEW_LINE; … … 167 167 <p> 168 168 <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 /> 170 170 <small><?php _e ( 'Text to appear as the icon description.', 'feed2tabs' ); ?></small> 171 171 </p> … … 174 174 <p><?php 175 175 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; 177 177 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; 179 179 foreach ( $feed2tabs_api_default_bases as $key => $api_default_base ) { 180 180 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 5 5 Requires at least: 3.0 6 6 Tested up to: 3.2 7 Stable tag: 0.0. 27 Stable tag: 0.0.3 8 8 License: GPLv2 or later 9 9 … … 114 114 115 115 = 0.0.1 = 116 116 117 * Initial version. 117 118 * Created and tested. 118 119 119 120 = 0.0.2 = 121 120 122 * 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. 121 127 122 128 … … 125 131 126 132 = 0.0.1 = 133 127 134 This is a great plugin, give it a try. 128 135 129 136 = 0.0.2 = 137 130 138 Users using WP below 3.0 should upgrade. 131 139
Note: See TracChangeset
for help on using the changeset viewer.