Plugin Directory

Changeset 3163652


Ignore:
Timestamp:
10/06/2024 05:14:54 PM (5 months ago)
Author:
devikas301
Message:

Fixed some css bugs and testing with latest version

Location:
list-custom-post-with-featured-image
Files:
12 added
2 edited

Legend:

Unmodified
Added
Removed
  • list-custom-post-with-featured-image/trunk/css/lcpfi_style.css

    r1593805 r3163652  
     1.lcpfi-post-gallery{
     2    width: 100%;
     3    position: relative;
     4}
     5.row {
     6    display: flex;
     7    flex-wrap: wrap;
     8}
    19.lcpfi-post-gallery .lcpfi-section {
     10  flex: 0 0 25%;   
    211  float: left;
    312  width: 25%;
     
    514}
    615.lcpfi-post-gallery .lcpfi-section img{
    7   width:284px;
    8   height:177px;
     16  max-width: 163px;
     17  height: 177px;
    918}
  • list-custom-post-with-featured-image/trunk/list-cp-featured-image.php

    r2185342 r3163652  
    66Author: Vikas Sharma
    77Author URI: https://profiles.wordpress.org/devikas301
    8 Version: 1.1
     8Version: 1.2
    99License: GPLv2
    1010*/
     
    1818     
    1919    global $post, $wpdb;   
    20     $lcpfi_args = shortcode_atts(array(
     20    $lcpfi_args = shortcode_atts([
    2121        'post_type' => 'post',
    2222        'limit'     => '5', 
    2323        'order'     => 'DESC',
    2424        'pagination'=> 'on'
    25        ), $lcpfi_atts);     
     25       ], $lcpfi_atts);     
    2626     
    27      $lcpfi_pggp = explode('/page/', $_SERVER['REQUEST_URI']);
     27    $lcpfi_pggp = explode('/page/', $_SERVER['REQUEST_URI']);
    2828     
    29      if(isset($lcpfi_pggp[1])){
     29    if(isset($lcpfi_pggp[1])){
    3030        $lcpfi_pggpcount = explode('/', $lcpfi_pggp[1]);       
    3131        $lcpfi_gvpage = $lcpfi_pggpcount[0];       
    32      } else {       
     32    } else {         
    3333      $lcpfi_gvpage = 1;   
    34      }
     34    }
    3535     
    36       $lcpfi_paged = (get_query_var('paged')) ? get_query_var('paged') : ((get_query_var('page')) ? get_query_var('page') : 1);
     36    $lcpfi_paged = (get_query_var('paged')) ? get_query_var('paged') : ((get_query_var('page')) ? get_query_var('page') : 1);
    3737     
    38     $lcpfi_postargs = array(
     38    $lcpfi_postargs = [
    3939            'post_type'     => $lcpfi_args['post_type'],
    4040            'post_status'   => 'publish',         
     
    4343            'order'         => $lcpfi_args['order'],   
    4444            'page'          => $lcpfi_paged
    45       );
     45      ];
    4646      //'offset'         => 0,     
    4747     
     
    103103   * function.
    104104   */
    105   $pagination_args = array(
     105  $pagination_args = [
    106106    'base'         => get_pagenum_link(1).'%_%',
    107107    'format'       => 'page/%#%',
     
    117117    'add_args'     => false,
    118118    'add_fragment' => ''
    119   );
     119  ];
    120120
    121121  $lcpfi_paginate_links = paginate_links($pagination_args);
Note: See TracChangeset for help on using the changeset viewer.