WordPress.org

Plugin Directory

Changeset 1584755


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

Version 0.71.1

Location:
list-category-posts
Files:
6 edited
8 copied

Legend:

Unmodified
Added
Removed
  • list-category-posts/tags/0.71.1/include/lcp-catlistdisplayer.php

    r1567318 r1584755  
    241241    } 
    242242 
    243     if ( $this->params['tags_as_class'] == 'yes' ) { 
     243    if ( array_key_exists('tags_as_class', $this->params) && $this->params['tags_as_class'] == 'yes' ) { 
    244244      $post_tags = wp_get_post_Tags($single->ID); 
    245245      if ( !empty($post_tags) ){ 
  • list-category-posts/tags/0.71.1/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> 
  • list-category-posts/tags/0.71.1/include/lcp-widget.php

    r1447893 r1584755  
    3838    $thumbnail_size = ($instance['thumbnail_size']) ? $instance['thumbnail_size'] : 'thumbnail'; 
    3939    $morelink = empty($instance['morelink']) ? ' ' : $instance['morelink']; 
     40    $tags_as_class = ($instance['tags_as_class'] == 'yes') ? 'yes' : 'no'; 
    4041    $template = empty($instance['template']) ? 'default' : $instance['template']; 
    4142 
     
    5960      'thumbnail_size' => $thumbnail_size, 
    6061      'morelink' => $morelink, 
    61       'template' => $template 
     62      'tags_as_class' => $tags_as_class, 
     63      'template' => $template, 
    6264    ); 
    6365 
     
    105107    $instance['thumbnail_size'] = strip_tags($new_instance['thumbnail_size']); 
    106108    $instance['morelink'] = strip_tags($new_instance['morelink']); 
     109    $instance['tags_as_class'] = strip_tags($new_instance['tags_as_class']); 
    107110    $instance['template'] = strip_tags($new_instance['template']); 
    108111 
  • list-category-posts/tags/0.71.1/list-category-posts.php

    r1567318 r1584755  
    44  Plugin URI: https://github.com/picandocodigo/List-Category-Posts 
    55  Description: List Category Posts allows you to list posts by category in a post/page using the [catlist] shortcode. This shortcode accepts a category name or id, the order in which you want the posts to display, the number of posts to display and many more parameters. You can use [catlist] as many times as needed with different arguments. Usage: [catlist argument1=value1 argument2=value2]. 
    6   Version: 0.71 
     6  Version: 0.71.1 
    77  Author: Fernando Briano 
    88  Author URI: http://fernandobriano.com 
  • list-category-posts/tags/0.71.1/readme.txt

    r1567318 r1584755  
    44Tags: list, categories, posts, cms 
    55Requires at least: 3.3 
    6 Tested up to: 4.7 
    7 Stable tag: 0.71 
     6Tested up to: 4.7.2 
     7Stable tag: 0.71.1 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    459459== Changelog == 
    460460 
     461= 0.71.1 = 
     462 
     463* Fixes ["Undefined index: tags_as_class"](https://github.com/picandocodigo/List-Category-Posts/issues/227). Thanks @vacuus for the Pull Request! :) 
     464 
    461465= 0.71 = 
    462466 
  • list-category-posts/trunk/include/lcp-catlistdisplayer.php

    r1567318 r1584755  
    241241    } 
    242242 
    243     if ( $this->params['tags_as_class'] == 'yes' ) { 
     243    if ( array_key_exists('tags_as_class', $this->params) && $this->params['tags_as_class'] == 'yes' ) { 
    244244      $post_tags = wp_get_post_Tags($single->ID); 
    245245      if ( !empty($post_tags) ){ 
  • 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> 
  • list-category-posts/trunk/include/lcp-widget.php

    r1447893 r1584755  
    3838    $thumbnail_size = ($instance['thumbnail_size']) ? $instance['thumbnail_size'] : 'thumbnail'; 
    3939    $morelink = empty($instance['morelink']) ? ' ' : $instance['morelink']; 
     40    $tags_as_class = ($instance['tags_as_class'] == 'yes') ? 'yes' : 'no'; 
    4041    $template = empty($instance['template']) ? 'default' : $instance['template']; 
    4142 
     
    5960      'thumbnail_size' => $thumbnail_size, 
    6061      'morelink' => $morelink, 
    61       'template' => $template 
     62      'tags_as_class' => $tags_as_class, 
     63      'template' => $template, 
    6264    ); 
    6365 
     
    105107    $instance['thumbnail_size'] = strip_tags($new_instance['thumbnail_size']); 
    106108    $instance['morelink'] = strip_tags($new_instance['morelink']); 
     109    $instance['tags_as_class'] = strip_tags($new_instance['tags_as_class']); 
    107110    $instance['template'] = strip_tags($new_instance['template']); 
    108111 
  • list-category-posts/trunk/list-category-posts.php

    r1567318 r1584755  
    44  Plugin URI: https://github.com/picandocodigo/List-Category-Posts 
    55  Description: List Category Posts allows you to list posts by category in a post/page using the [catlist] shortcode. This shortcode accepts a category name or id, the order in which you want the posts to display, the number of posts to display and many more parameters. You can use [catlist] as many times as needed with different arguments. Usage: [catlist argument1=value1 argument2=value2]. 
    6   Version: 0.71 
     6  Version: 0.71.1 
    77  Author: Fernando Briano 
    88  Author URI: http://fernandobriano.com 
  • list-category-posts/trunk/readme.txt

    r1567318 r1584755  
    44Tags: list, categories, posts, cms 
    55Requires at least: 3.3 
    6 Tested up to: 4.7 
    7 Stable tag: 0.71 
     6Tested up to: 4.7.2 
     7Stable tag: 0.71.1 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    459459== Changelog == 
    460460 
     461= 0.71.1 = 
     462 
     463* Fixes ["Undefined index: tags_as_class"](https://github.com/picandocodigo/List-Category-Posts/issues/227). Thanks @vacuus for the Pull Request! :) 
     464 
    461465= 0.71 = 
    462466 
Note: See TracChangeset for help on using the changeset viewer.