Plugin Directory

Changeset 1603640


Ignore:
Timestamp:
02/25/2017 11:58:52 PM (9 years ago)
Author:
wpfanatico
Message:
  • Minor Fixes
  • Add date of publication option in shortcode atributes [wpf-list-post date="0"] Hide Date AND [wpf-list-post date="1"] Show Date
  • Update readme.txt
Location:
wp-fanatico-display-recent-posts-shortcode/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-fanatico-display-recent-posts-shortcode/trunk/css/simple-grid.css

    r1579110 r1603640  
    182182}
    183183
     184.cont-img
     185{
     186float: left;
     187/*transition: all 0.3s ease;*/
     188}
     189
     190.cont-img:hover
     191{
     192   
     193}
     194.prueba
     195{
     196transition: 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{
     206font-size: 12px;
     207border-top: 1px solid rgba(183, 183, 183, 0.44);
     208text-align: right;
     209}
     210
    184211@media only screen and (min-width: 60em) { /* 960px */
    185212  .wpf-container {
  • wp-fanatico-display-recent-posts-shortcode/trunk/readme.txt

    r1582576 r1603640  
    44Tags: shortcode, pages, posts, page, query, display, list
    55Requires at least: 3.0
    6 Tested up to: 4.7.1
    7 Stable tag: 1.0.4
     6Tested up to: 4.7.2
     7Stable tag: 1.0.5
    88License: GPLv2 or later
    99
     
    3737Ask Questions here:
    3838
    39 http://wpfanatico.com/plugins-gratis/plugin-para-mostrar-entradas-recientes-por-categoria-en-wordpress-wp-fanatico.html
     39https://wordpress.org/support/plugin/wp-fanatico-display-recent-posts-shortcode
    4040
    4141== Screenshots ==
    4242
    43431.- Three Columns Grid
     44<img src="https://plugins.svn.wordpress.org/wp-fanatico-display-recent-posts-shortcode/assets/screenshot-1.png" >
    4445
    45462.- Two Columns Grid
     47<img src="https://plugins.svn.wordpress.org/wp-fanatico-display-recent-posts-shortcode/assets/screenshot-2.png" >
    4648
    4749== 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
    4857
    4958**Version 1.0.4**
  • wp-fanatico-display-recent-posts-shortcode/trunk/wp-fanatico-display-recent-posts-shortcode.php

    r1582576 r1603640  
    44 * Plugin URI: https://wordpress.org/plugins/wp-fanatico-display-recent-posts-shortcode/
    55 * Description: Display or listing recent posts the diferents ways
    6  * Version: 1.0.4
     6 * Version: 1.0.5
    77 * Author: WPFANATICO.COM
    88 * Author URI: http://wpfanatico.com
    99 *
    1010 * @package Display Posts
    11  * @version 1.0.4
     11 * @version 1.0.5
    1212 * @author Jose Daboin <[email protected]>
    1313 * @copyright Copyright (c) 2017, Jose Daboin
     
    3030        'category' => '',
    3131        'colum' => '3',
     32        'date' => '0'
    3233        ),
    3334    $atts );
     
    3940   
    4041    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;  }   
    4246   
    4347   
     
    7680            if($count==0){$html.='<div class="wpf-row">';}
    7781            $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');
    7983            $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            ';         
    8287            $html.='<p>'.$excerpt.'</p>';
     88            if($date==1){   $html.='<div class="date-post">'.get_the_date( get_option('date_format') ).'</div>'; }
    8389            $html.='</div>';
    8490            if($count==2){
     
    101107            $html.='<a href="'.$url.'"><h2 class="wpf-post-title">'.$title.'</h2></a>';
    102108            $html.='<p>'.$excerpt.'</p>';
     109            if($date==1){   $html.='<div class="date-post">'.get_the_date( get_option('date_format') ).'</div>'; }
    103110            $html.='</div>';
    104111            if($count==1){ $html.='</div>';  } 
Note: See TracChangeset for help on using the changeset viewer.