Plugin Directory

Changeset 1579262


Ignore:
Timestamp:
01/21/2017 01:55:57 PM (9 years ago)
Author:
wpfanatico
Message:

Version 1.0.1 Minor Fixes

Location:
wp-fanatico-display-recent-posts-shortcode/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-fanatico-display-recent-posts-shortcode/trunk/readme.txt

    r1579110 r1579262  
    55Requires at least: 3.0
    66Tested up to: 4.7.1
    7 Stable tag: 1.0.0
    8 License: GPLv2 or later
    9 License url http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
     7Stable tag: 1.0.1
    108
    119
     
    3937== Changelog ==
    4038
     39**Version 1.0.1**
     40
     41* This is version 1.0.1  Minor Fixes
     42
    4143**Version 1.0.0**
    4244
    4345* This is version 1.0.0  First Version!
    44 
  • wp-fanatico-display-recent-posts-shortcode/trunk/wp-fanatico-display-recent-posts-shortcode.php

    r1579110 r1579262  
    1717 
    1818function load_custom_style_wpfanatico() {
    19         wp_register_style( 'simple_grid_css', plugins_url() . '/wpfanatico-display-recent-posts-shortcode/css/simple-grid.css', false, '1.0.0' );
     19        wp_register_style( 'simple_grid_css', plugins_url() . '/wp-fanatico-display-recent-posts-shortcode/css/simple-grid.css', false, '1.0.0' );
    2020        wp_enqueue_style( 'simple_grid_css' );
    2121}
     
    2626    $attr =
    2727    shortcode_atts(
    28     array( 'number' => '3',
    29     'category' => '', 'colum' => '3',),
    30     $atts );   
     28    array(
     29        'number' => '3',
     30        'category' => '',
     31        'colum' => '3',
     32        ),
     33    $atts );
     34   
    3135    if( is_numeric($atts['number']) ) { $number = sanitize_text_field( $atts['number'] ); }
    32     else {  $number = 3; } 
    33     $category = sanitize_text_field( $atts['category'] );   
     36    else {  $number = 3; }
     37   
     38    $category = sanitize_text_field( $atts['category'] );
     39   
    3440    if( is_numeric($atts['colum']) ) {  $colum = sanitize_text_field( $atts['colum'] ); }
    35     else {  $colum = 3; }
     41    else {  $colum = 3; }   
    3642   
    3743   
     
    8086            $count++;   
    8187            if($count==3){ $count=0; }         
    82         } if($colum=='2')   {
     88        }
     89       
     90       
     91        if($colum=='2')
     92        {
    8393            $url=esc_attr(get_permalink( $post->ID ));
    8494            $title=get_the_title();
Note: See TracChangeset for help on using the changeset viewer.