Changeset 2966065
- Timestamp:
- 09/12/2023 07:12:03 PM (2 years ago)
- Location:
- soivigol-post-list/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (3 diffs)
-
soivigol-post-list.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
soivigol-post-list/trunk/readme.txt
r2648940 r2966065 3 3 Tags: block 4 4 Requires at least: 5.3.2 5 Tested up to: 5.8.26 Stable tag: 0.2. 25 Tested up to: 6.3.1 6 Stable tag: 0.2.3 7 7 Requires PHP: 7.0.0 8 8 License: GPL-2.0-or-later … … 26 26 - 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. 27 27 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: 28 In 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 29 30 - spt_before_title_loop 30 31 - spt_after_title_loop … … 68 69 * Release 69 70 - 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 4 4 * 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. 5 5 * 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. 16 * Version: 0.2.3 7 7 * Plugin Uri: https://www.davidviña.es 8 8 * Author: David Viña … … 114 114 ), 115 115 'category' => array( 116 'type' => 'string', 116 'type' => 'string', 117 'default' => '', 117 118 ), 118 119 'pagination' => array( 119 'type' => 'boolean', 120 'type' => 'boolean', 121 'default' => false, 120 122 ), 121 123 'numPosts' => array( 122 'type' => 'number', 124 'type' => 'number', 125 'default' => 12, 123 126 ), 124 127 'numCol' => array( 125 'type' => 'number', 128 'type' => 'number', 129 'default' => 3, 126 130 ), 127 131 'bgColor' => array( 128 'type' => 'string', 132 'type' => 'string', 133 'default' => '#ffffff', 129 134 ), 130 135 'textColor' => array( 131 'type' => 'string', 136 'type' => 'string', 137 'default' => '#333333', 132 138 ), 133 139 'bgColorH' => array( 134 'type' => 'string', 140 'type' => 'string', 141 'default' => '#ffffff', 135 142 ), 136 143 'textColorH' => array( 137 'type' => 'string', 144 'type' => 'string', 145 'default' => '#333333', 138 146 ), 139 147 'boxShadow' => array( 140 'type' => 'boolean', 148 'type' => 'boolean', 149 'default' => false, 141 150 ), 142 151 'boxShadowH' => array( 143 'type' => 'boolean', 152 'type' => 'boolean', 153 'default' => false, 144 154 ), 145 155 'borderRadius' => array( … … 156 166 ), 157 167 'idBlock' => array( 158 'type' => 'number', 168 'type' => 'number', 169 'default' => 0, 159 170 ), 160 171 'aspectImage' => array( 161 'type' => 'string', 172 'type' => 'string', 173 'default' => '', 162 174 ), 163 175 'titleColor' => array( 164 'type' => 'string', 176 'type' => 'string', 177 'default' => '', 165 178 ), 166 179 'titleColorH' => array( 167 'type' => 'string', 180 'type' => 'string', 181 'default' => '', 168 182 ), 169 183 'titleTag' => array( 170 'type' => 'string', 184 'type' => 'string', 185 'default' => '', 171 186 ), 172 187 'titleSize' => array( 173 'type' => 'number', 188 'type' => 'number', 189 'default' => '', 174 190 ), 175 191 'excertp' => array( … … 186 202 ), 187 203 'labelReadMore' => array( 188 'type' => 'string', 204 'type' => 'string', 205 'default' => '', 189 206 ), 190 207 'contentPadding' => array( 191 'type' => 'number', 208 'type' => 'number', 209 'default' => '', 192 210 ), 193 211 ), … … 380 398 if ( $excertp ) { 381 399 echo '<p>' . wp_kses_post( soivigol_get_excerpt( intval( $attributes['excertpLenth'] ), get_the_excerpt() ) ) . '</p>'; 400 do_action( 'spt_after_content_loop' ); 382 401 } 383 do_action( 'spt_after_content_loop' );384 402 if ( $read_more ) { 385 403 echo '<p><a href="' . esc_url( get_the_permalink() ) . '">' . esc_html( $label_read_more ) . '</a></p>'; 404 do_action( 'spt_after_button_loop' ); 386 405 } 387 do_action( 'spt_after_button_loop' );388 406 echo '</div>'; 389 407 if ( $read_more ) {
Note: See TracChangeset
for help on using the changeset viewer.