Changeset 580392
- Timestamp:
- 08/01/2012 07:18:01 PM (14 years ago)
- Location:
- express-posts/trunk
- Files:
-
- 2 edited
-
express-posts.php (modified) (7 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
express-posts/trunk/express-posts.php
r555332 r580392 4 4 Plugin URI: http://vancoder.ca/plugins/express-posts 5 5 Description: A brief description of the Plugin. 6 Version: 1. 06 Version: 1.1 7 7 Author: Vancoder 8 8 Author URI: http://vancoder.ca … … 110 110 if ( $query->posts ) { 111 111 112 echo str_replace( 'express_posts', 'express_posts express_posts-' . $instance['relationship'], $before_widget ); 112 113 114 echo str_replace( 'widget-container', 'widget-container express_posts-' . $instance['relationship'], $before_widget ); 115 113 116 114 117 if ( $instance['show_widget_title'] ) { … … 151 154 } 152 155 echo '</ul>'; 156 157 if ($instance['footer']) { 158 echo '<div class="footer">' . $instance['footer'] . '</div>'; 159 } 160 161 153 162 echo $after_widget; 154 163 } … … 171 180 'siblings_ordering' => 'menu_order', 172 181 'custom_date_format' => 'F j, Y', 173 'relationship' => 'subset' 182 'relationship' => 'subset', 183 'footer' => '' 174 184 ); 175 185 $instance = wp_parse_args( ( array ) $instance, $defaults ); … … 187 197 <fieldset class="subset" style="display: <?php echo ('subset' == $instance['relationship'] ? 'block' : 'none'); ?>"> 188 198 <p><label for="<?php echo $this->get_field_id( 'quantity' ); ?>"><?php _e( 'Quantity:' ); ?></label> 189 <input id="<?php echo $this->get_field_id( 'quantity' ); ?>" name="<?php echo $this->get_field_name( 'quantity' ); ?>" type="text" value="<?php echo $instance['quantity']; ?>" size="3" /></p>199 <input id="<?php echo $this->get_field_id( 'quantity' ); ?>" name="<?php echo $this->get_field_name( 'quantity' ); ?>" type="text" value="<?php echo esc_attr($instance['quantity']); ?>" size="3" /></p> 190 200 191 201 <p><input type="checkbox" id="<?php echo $this->get_field_id( 'show_excerpt' ); ?>" name="<?php echo $this->get_field_name( 'show_excerpt' ); ?>" <?php checked( $instance['show_excerpt'], 1, true ); ?> value="1" /> <label for="<?php echo $this->get_field_id( 'show_excerpt' ); ?>">Show excerpt</label></p> … … 207 217 208 218 <p><label for="<?php echo $this->get_field_id( 'custom_date_format' ); ?>"><?php _e( 'Custom date format:' ); ?></label> 209 <input id="<?php echo $this->get_field_id( 'custom_date_format' ); ?>" name="<?php echo $this->get_field_name( 'custom_date_format' ); ?>" type="text" value="<?php echo $instance['custom_date_format']; ?>" size="3" /></p>219 <input id="<?php echo $this->get_field_id( 'custom_date_format' ); ?>" name="<?php echo $this->get_field_name( 'custom_date_format' ); ?>" type="text" value="<?php echo esc_attr($instance['custom_date_format']); ?>" size="3" /></p> 210 220 <p><label for="<?php echo $this->get_field_id( 'categories' ); ?>"><?php _e( 'Categories:' ); ?></label><br /> 211 221 <?php … … 220 230 ?> 221 231 </p> 232 233 <p><label for="<?php echo $this->get_field_id( 'footer' ); ?>"><?php _e( 'Footer:' ); ?></label> <input class="widefat" id="<?php echo $this->get_field_id( 'footer' ); ?>" name="<?php echo $this->get_field_name( 'footer' ); ?>" type="text" value="<?php echo esc_attr($instance['footer']); ?>" /><br /></p> 234 222 235 </fieldset> 223 236 -
express-posts/trunk/readme.txt
r559506 r580392 6 6 Requires at least: 3.2.1 7 7 Tested up to: 3.4 8 Stable tag: 1. 08 Stable tag: 1.1 9 9 10 10 Express posts provides a widget to display either a subset of posts, the children of a page or its siblings. … … 31 31 == Changelog == 32 32 33 = 1.1 = 34 * Added footer 35 * Fixed id bug 36 33 37 = 1.0 = 34 * Initial release .38 * Initial release
Note: See TracChangeset
for help on using the changeset viewer.