WordPress.org

Plugin Directory


Ignore:
Timestamp:
01/30/17 03:09:37 (13 months ago)
Author:
fernandobt
Message:

Version 0.71.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • list-category-posts/trunk/include/lcp-widget-form.php

    r1177950 r1584755  
    2222                    'show_catlink'=>'', 
    2323                    'morelink' =>'', 
    24                     'template' => '' 
     24                    'tags_as_class' => '', 
     25                    'template' => '', 
    2526                    ); 
    2627  $instance = wp_parse_args( (array) $instance, $default); 
     
    4344  $thumbnail_size = strip_tags($instance['thumbnail_size']); 
    4445  $morelink = strip_tags($instance['morelink']); 
     46  $tags_as_class = strip_tags($instance['tags_as_class']); 
    4547  $template = strip_tags($instance['template']); 
    4648 
     
    229231    value="<?php echo esc_attr($morelink); ?>" /> 
    230232</p> 
     233<p> 
     234  <label for="<?php echo $this->get_field_id('tags_as_class'); ?>"> 
     235    <?php _e("Tags as class", 'list-category-posts'); ?>: 
     236  </label> 
     237  <br/> 
     238  <select id="<?php echo $this->get_field_id('tags_as_class'); ?>" name="<?php echo $this->get_field_name('tags_as_class'); ?>" type="text"> 
     239    <option value='no' <?php if($tags_as_class == 'no'): echo "selected: selected"; endif;?>> 
     240      <?php _e("No", 'list-category-posts')?> 
     241    </option> 
     242    <option value='yes' <?php if($tags_as_class == 'yes'): echo "selected: selected"; endif;?>> 
     243      <?php _e("Yes", 'list-category-posts')?> 
     244    </option> 
     245  </select> 
     246</p> 
    231247 
    232248<p> 
Note: See TracChangeset for help on using the changeset viewer.