Plugin Directory

Changeset 2966065


Ignore:
Timestamp:
09/12/2023 07:12:03 PM (2 years ago)
Author:
soivigol
Message:

Tested last version. Update version

Location:
soivigol-post-list/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • soivigol-post-list/trunk/readme.txt

    r2648940 r2966065  
    33Tags:              block
    44Requires at least: 5.3.2
    5 Tested up to:      5.8.2
    6 Stable tag:        0.2.2
     5Tested up to:      6.3.1
     6Stable tag:        0.2.3
    77Requires PHP:      7.0.0
    88License:           GPL-2.0-or-later
     
    2626- Set whether you want the excerpt to be displayed, the size of the excerpt in characters, whether you want the link to the individual entry to be made in the whole box or only in a link where you can customize the text.
    2727
    28 In addition, this plugin provides 4 hooks so you can insert different customizations inside the loop. A very interesting option if you are creating a Custom Post Type list and need to display different Custom Field options. The hooks are the following:
     28In addition, this plugin provides 5 hooks so you can insert different customizations inside the loop. A very interesting option if you are creating a Custom Post Type list and need to display different Custom Field options. The hooks are the following:
     29- spt_after_bottom_loop
    2930- spt_before_title_loop
    3031- spt_after_title_loop
     
    6869* Release
    6970- NEW features and design improvements
     71
     72= 0.2.3 =
     73* Fix
     74- Fix errors if the attributes are empty.
  • soivigol-post-list/trunk/soivigol-post-list.php

    r2648940 r2966065  
    44 * Description:     List of posts and other Custom Post Type with pagination, possibility to filter by category in posts, number of posts per page and number of columns.
    55 * Customization of the design of each items when it is posible select elements to show, custom title, custom padding of the content, select image aspect ratio and more features.
    6  * Version:         0.2.1
     6 * Version:         0.2.3
    77 * Plugin Uri:      https://www.davidviña.es
    88 * Author:          David Viña
     
    114114                ),
    115115                'category'       => array(
    116                     'type' => 'string',
     116                    'type'    => 'string',
     117                    'default' => '',
    117118                ),
    118119                'pagination'     => array(
    119                     'type' => 'boolean',
     120                    'type'    => 'boolean',
     121                    'default' => false,
    120122                ),
    121123                'numPosts'       => array(
    122                     'type' => 'number',
     124                    'type'    => 'number',
     125                    'default' => 12,
    123126                ),
    124127                'numCol'         => array(
    125                     'type' => 'number',
     128                    'type'    => 'number',
     129                    'default' => 3,
    126130                ),
    127131                'bgColor'        => array(
    128                     'type' => 'string',
     132                    'type'    => 'string',
     133                    'default' => '#ffffff',
    129134                ),
    130135                'textColor'      => array(
    131                     'type' => 'string',
     136                    'type'    => 'string',
     137                    'default' => '#333333',
    132138                ),
    133139                'bgColorH'       => array(
    134                     'type' => 'string',
     140                    'type'    => 'string',
     141                    'default' => '#ffffff',
    135142                ),
    136143                'textColorH'     => array(
    137                     'type' => 'string',
     144                    'type'    => 'string',
     145                    'default' => '#333333',
    138146                ),
    139147                'boxShadow'      => array(
    140                     'type' => 'boolean',
     148                    'type'    => 'boolean',
     149                    'default' => false,
    141150                ),
    142151                'boxShadowH'     => array(
    143                     'type' => 'boolean',
     152                    'type'    => 'boolean',
     153                    'default' => false,
    144154                ),
    145155                'borderRadius'   => array(
     
    156166                ),
    157167                'idBlock'        => array(
    158                     'type' => 'number',
     168                    'type'    => 'number',
     169                    'default' => 0,
    159170                ),
    160171                'aspectImage'    => array(
    161                     'type' => 'string',
     172                    'type'    => 'string',
     173                    'default' => '',
    162174                ),
    163175                'titleColor'     => array(
    164                     'type' => 'string',
     176                    'type'    => 'string',
     177                    'default' => '',
    165178                ),
    166179                'titleColorH'    => array(
    167                     'type' => 'string',
     180                    'type'    => 'string',
     181                    'default' => '',
    168182                ),
    169183                'titleTag'       => array(
    170                     'type' => 'string',
     184                    'type'    => 'string',
     185                    'default' => '',
    171186                ),
    172187                'titleSize'      => array(
    173                     'type' => 'number',
     188                    'type'    => 'number',
     189                    'default' => '',
    174190                ),
    175191                'excertp'        => array(
     
    186202                ),
    187203                'labelReadMore'  => array(
    188                     'type' => 'string',
     204                    'type'    => 'string',
     205                    'default' => '',
    189206                ),
    190207                'contentPadding' => array(
    191                     'type' => 'number',
     208                    'type'    => 'number',
     209                    'default' => '',
    192210                ),
    193211            ),
     
    380398            if ( $excertp ) {
    381399                echo '<p>' . wp_kses_post( soivigol_get_excerpt( intval( $attributes['excertpLenth'] ), get_the_excerpt() ) ) . '</p>';
     400                do_action( 'spt_after_content_loop' );
    382401            }
    383             do_action( 'spt_after_content_loop' );
    384402            if ( $read_more ) {
    385403                echo '<p><a href="' . esc_url( get_the_permalink() ) . '">' . esc_html( $label_read_more ) . '</a></p>';
     404                do_action( 'spt_after_button_loop' );
    386405            }
    387             do_action( 'spt_after_button_loop' );
    388406            echo '</div>';
    389407            if ( $read_more ) {
Note: See TracChangeset for help on using the changeset viewer.