Changeset 1603640
- Timestamp:
- 02/25/2017 11:58:52 PM (9 years ago)
- Location:
- wp-fanatico-display-recent-posts-shortcode/trunk
- Files:
-
- 3 edited
-
css/simple-grid.css (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
wp-fanatico-display-recent-posts-shortcode.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-fanatico-display-recent-posts-shortcode/trunk/css/simple-grid.css
r1579110 r1603640 182 182 } 183 183 184 .cont-img 185 { 186 float: left; 187 /*transition: all 0.3s ease;*/ 188 } 189 190 .cont-img:hover 191 { 192 193 } 194 .prueba 195 { 196 transition: all 0.3s ease; 197 } 198 .prueba:hover 199 { 200 opacity:0.8; 201 box-shadow: 0px 0px 0px 3px rgba(183, 183, 183, 0.44); 202 } 203 204 .date-post 205 { 206 font-size: 12px; 207 border-top: 1px solid rgba(183, 183, 183, 0.44); 208 text-align: right; 209 } 210 184 211 @media only screen and (min-width: 60em) { /* 960px */ 185 212 .wpf-container { -
wp-fanatico-display-recent-posts-shortcode/trunk/readme.txt
r1582576 r1603640 4 4 Tags: shortcode, pages, posts, page, query, display, list 5 5 Requires at least: 3.0 6 Tested up to: 4.7. 17 Stable tag: 1.0. 46 Tested up to: 4.7.2 7 Stable tag: 1.0.5 8 8 License: GPLv2 or later 9 9 … … 37 37 Ask Questions here: 38 38 39 http ://wpfanatico.com/plugins-gratis/plugin-para-mostrar-entradas-recientes-por-categoria-en-wordpress-wp-fanatico.html39 https://wordpress.org/support/plugin/wp-fanatico-display-recent-posts-shortcode 40 40 41 41 == Screenshots == 42 42 43 43 1.- Three Columns Grid 44 <img src="https://plugins.svn.wordpress.org/wp-fanatico-display-recent-posts-shortcode/assets/screenshot-1.png" > 44 45 45 46 2.- Two Columns Grid 47 <img src="https://plugins.svn.wordpress.org/wp-fanatico-display-recent-posts-shortcode/assets/screenshot-2.png" > 46 48 47 49 == Changelog == 50 **Version 1.0.5** 51 52 * Minor Fixes 53 54 * Add date of publication option in shortcode atributes [wpf-list-post date="0"] Hide Date AND [wpf-list-post date="1"] Show Date 55 56 * Update readme.txt 48 57 49 58 **Version 1.0.4** -
wp-fanatico-display-recent-posts-shortcode/trunk/wp-fanatico-display-recent-posts-shortcode.php
r1582576 r1603640 4 4 * Plugin URI: https://wordpress.org/plugins/wp-fanatico-display-recent-posts-shortcode/ 5 5 * Description: Display or listing recent posts the diferents ways 6 * Version: 1.0. 46 * Version: 1.0.5 7 7 * Author: WPFANATICO.COM 8 8 * Author URI: http://wpfanatico.com 9 9 * 10 10 * @package Display Posts 11 * @version 1.0. 411 * @version 1.0.5 12 12 * @author Jose Daboin <[email protected]> 13 13 * @copyright Copyright (c) 2017, Jose Daboin … … 30 30 'category' => '', 31 31 'colum' => '3', 32 'date' => '0' 32 33 ), 33 34 $atts ); … … 39 40 40 41 if( is_numeric($attr['colum']) ) { $colum = sanitize_text_field( $attr['colum'] ); } 41 else { $colum = 3; } 42 else { $colum = 3; } 43 44 if( is_numeric($attr['date']) ) { $date = sanitize_text_field( $attr['date'] ); } 45 else { $date = 0; } 42 46 43 47 … … 76 80 if($count==0){$html.='<div class="wpf-row">';} 77 81 $html.='<div class="wpf-col-4">'; 78 $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), ' post');82 $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'medium', 'post'); 79 83 $thumb_f=esc_attr($thumb[0]); 80 $html.='<a href="'.$url.'"><img class="prueba" src="'.$thumb_f.'"></a> 81 <a href="'.$url.'"><h2 class="wpf-post-title">'.$title.'</h2></a>'; 84 $html.='<a href="'.$url.'" class="cont-img"><img class="prueba" src="'.$thumb_f.'"> </a> 85 <a href="'.$url.'"><h2 class="wpf-post-title">'.$title.'</h2></a> 86 '; 82 87 $html.='<p>'.$excerpt.'</p>'; 88 if($date==1){ $html.='<div class="date-post">'.get_the_date( get_option('date_format') ).'</div>'; } 83 89 $html.='</div>'; 84 90 if($count==2){ … … 101 107 $html.='<a href="'.$url.'"><h2 class="wpf-post-title">'.$title.'</h2></a>'; 102 108 $html.='<p>'.$excerpt.'</p>'; 109 if($date==1){ $html.='<div class="date-post">'.get_the_date( get_option('date_format') ).'</div>'; } 103 110 $html.='</div>'; 104 111 if($count==1){ $html.='</div>'; }
Note: See TracChangeset
for help on using the changeset viewer.