Changeset 750295
- Timestamp:
- 08/02/2013 09:44:34 PM (13 years ago)
- Location:
- display-categories-widget/trunk
- Files:
-
- 2 edited
-
display_categories_widget.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
display-categories-widget/trunk/display_categories_widget.php
r715558 r750295 40 40 41 41 ?> 42 <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:'); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>43 <!--<p><label for="<?php echo $this->get_field_id('cat_id'); ?>">Category id: <input class="widefat" id="<?php echo $this->get_field_id('cat_id'); ?>" name="<?php echo $this->get_field_name('cat_id'); ?>" type="text" value="<?php echo attribute_escape($cat_id); ?>" /></label></p>-->42 <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:'); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($title); ?>" /></label></p> 43 <!--<p><label for="<?php echo $this->get_field_id('cat_id'); ?>">Category id: <input class="widefat" id="<?php echo $this->get_field_id('cat_id'); ?>" name="<?php echo $this->get_field_name('cat_id'); ?>" type="text" value="<?php echo esc_attr($cat_id); ?>" /></label></p>--> 44 44 45 45 <p> … … 51 51 </select> 52 52 </p> 53 <p><label for="<?php echo $this->get_field_id('dcw_limit'); ?>"><?php _e('Limit (optional):'); ?> <input class="widefat" id="<?php echo $this->get_field_id('dcw_limit'); ?>" name="<?php echo $this->get_field_name('dcw_limit'); ?>" type="text" value="<?php echo attribute_escape($dcw_limit); ?>" /></label></p>54 <p><?php _e('Display Parent? (optional):'); ?> <br><input name="<?php echo $this->get_field_name('display_parent'); ?>" type="radio" value="1" <?php if( attribute_escape($display_parent)==1) echo "checked"; ?> />Yes <input name="<?php echo $this->get_field_name('display_parent'); ?>" type="radio" value="0" <?php if(attribute_escape($display_parent)==0) echo "checked"; ?>/>No </p>53 <p><label for="<?php echo $this->get_field_id('dcw_limit'); ?>"><?php _e('Limit (optional):'); ?> <input class="widefat" id="<?php echo $this->get_field_id('dcw_limit'); ?>" name="<?php echo $this->get_field_name('dcw_limit'); ?>" type="text" value="<?php echo esc_attr($dcw_limit); ?>" /></label></p> 54 <p><?php _e('Display Parent? (optional):'); ?> <br><input name="<?php echo $this->get_field_name('display_parent'); ?>" type="radio" value="1" <?php if(esc_attr($display_parent)==1) echo "checked"; ?> />Yes <input name="<?php echo $this->get_field_name('display_parent'); ?>" type="radio" value="0" <?php if(esc_attr($display_parent)==0) echo "checked"; ?>/>No </p> 55 55 <br> 56 <p><?php _e('Show? (optional):'); ?> <br><input name="<?php echo $this->get_field_name('show_format'); ?>" type="radio" value="0" <?php if( attribute_escape($show_format)==0) echo "checked"; ?> />List <input name="<?php echo $this->get_field_name('show_format'); ?>" type="radio" value="2" <?php if(attribute_escape($show_format)==2) echo "checked"; ?>/>Drop Down </p>56 <p><?php _e('Show? (optional):'); ?> <br><input name="<?php echo $this->get_field_name('show_format'); ?>" type="radio" value="0" <?php if(esc_attr($show_format)==0) echo "checked"; ?> />List <input name="<?php echo $this->get_field_name('show_format'); ?>" type="radio" value="2" <?php if(esc_attr($show_format)==2) echo "checked"; ?>/>Drop Down </p> 57 57 <br> 58 <p><?php _e('Display Empty categories? (optional):'); ?> <br><input name="<?php echo $this->get_field_name('display_empty_categories'); ?>" type="radio" value="0" <?php if( attribute_escape($display_empty_categories)==0) echo "checked"; ?> />Yes <input name="<?php echo $this->get_field_name('display_empty_categories'); ?>" type="radio" value="1" <?php if(attribute_escape($display_empty_categories)==1) echo "checked"; ?>/>No </p>59 <p><?php _e('Display Number of posts near categories? (optional):'); ?> <br><input name="<?php echo $this->get_field_name('showcount_value'); ?>" type="radio" value="1" <?php if( attribute_escape($showcount_value)==1) echo "checked"; ?> />Yes <input name="<?php echo $this->get_field_name('showcount_value'); ?>" type="radio" value="0" <?php if(attribute_escape($showcount_value)==0) echo "checked"; ?>/>No </p>58 <p><?php _e('Display Empty categories? (optional):'); ?> <br><input name="<?php echo $this->get_field_name('display_empty_categories'); ?>" type="radio" value="0" <?php if(esc_attr($display_empty_categories)==0) echo "checked"; ?> />Yes <input name="<?php echo $this->get_field_name('display_empty_categories'); ?>" type="radio" value="1" <?php if(esc_attr($display_empty_categories)==1) echo "checked"; ?>/>No </p> 59 <p><?php _e('Display Number of posts near categories? (optional):'); ?> <br><input name="<?php echo $this->get_field_name('showcount_value'); ?>" type="radio" value="1" <?php if(esc_attr($showcount_value)==1) echo "checked"; ?> />Yes <input name="<?php echo $this->get_field_name('showcount_value'); ?>" type="radio" value="0" <?php if(esc_attr($showcount_value)==0) echo "checked"; ?>/>No </p> 60 60 61 61 … … 98 98 if ($yourcat) echo '<h2>' . $yourcat->name . '</h2>'; 99 99 } 100 if($cat_id="BLANK") $cat_id="0"; 100 101 if($instance['show_format']==0) 101 102 { -
display-categories-widget/trunk/readme.txt
r715558 r750295 42 42 == Changelog == 43 43 44 = 1.0.7 = 45 * If nothing is selected then all categories will be displayed. Removal of deprecated functions 46 44 47 = 1.0.6 = 45 48 * Optional display for Dropdown or List view of categories
Note: See TracChangeset
for help on using the changeset viewer.