Plugin Directory

Changeset 750295


Ignore:
Timestamp:
08/02/2013 09:44:34 PM (13 years ago)
Author:
iteamweb
Message:

Deprecated functions removed

Location:
display-categories-widget/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • display-categories-widget/trunk/display_categories_widget.php

    r715558 r750295  
    4040
    4141?>
    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>-->
    4444
    4545<p>
     
    5151                </select>
    5252            </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 &nbsp; <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 &nbsp; <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>
    5555<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 &nbsp; <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 &nbsp; <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>
    5757<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 &nbsp; <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 &nbsp; <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 &nbsp; <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 &nbsp; <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>
    6060 
    6161
     
    9898        if ($yourcat) echo '<h2>' . $yourcat->name . '</h2>';
    9999      }
     100      if($cat_id="BLANK") $cat_id="0";
    100101if($instance['show_format']==0)
    101102{
  • display-categories-widget/trunk/readme.txt

    r715558 r750295  
    4242== Changelog ==
    4343
     44= 1.0.7 =
     45* If nothing is selected then all categories will be displayed. Removal of deprecated functions
     46
    4447= 1.0.6 =
    4548* Optional display for Dropdown or List view of categories
Note: See TracChangeset for help on using the changeset viewer.