Changeset 1579262
- Timestamp:
- 01/21/2017 01:55:57 PM (9 years ago)
- Location:
- wp-fanatico-display-recent-posts-shortcode/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
wp-fanatico-display-recent-posts-shortcode.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-fanatico-display-recent-posts-shortcode/trunk/readme.txt
r1579110 r1579262 5 5 Requires at least: 3.0 6 6 Tested 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 7 Stable tag: 1.0.1 10 8 11 9 … … 39 37 == Changelog == 40 38 39 **Version 1.0.1** 40 41 * This is version 1.0.1 Minor Fixes 42 41 43 **Version 1.0.0** 42 44 43 45 * 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 17 17 18 18 function load_custom_style_wpfanatico() { 19 wp_register_style( 'simple_grid_css', plugins_url() . '/wp fanatico-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' ); 20 20 wp_enqueue_style( 'simple_grid_css' ); 21 21 } … … 26 26 $attr = 27 27 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 31 35 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 34 40 if( is_numeric($atts['colum']) ) { $colum = sanitize_text_field( $atts['colum'] ); } 35 else { $colum = 3; } 41 else { $colum = 3; } 36 42 37 43 … … 80 86 $count++; 81 87 if($count==3){ $count=0; } 82 } if($colum=='2') { 88 } 89 90 91 if($colum=='2') 92 { 83 93 $url=esc_attr(get_permalink( $post->ID )); 84 94 $title=get_the_title();
Note: See TracChangeset
for help on using the changeset viewer.