Changeset 3127695
- Timestamp:
- 07/29/2024 08:29:34 PM (20 months ago)
- Location:
- tainacan-blocksy
- Files:
-
- 3 added
- 4 edited
-
svn-commit.6.tmp (added)
-
svn-commit.7.tmp (added)
-
svn-commit.8.tmp (added)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/functions.php (modified) (2 diffs)
-
trunk/inc/options/single-elements/items-related-to-this.php (modified) (2 diffs)
-
trunk/template-parts/tainacan-item-single-items-related-to-this.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tainacan-blocksy/trunk/README.txt
r3110753 r3127695 4 4 Tags: museums, archives, collections, tainacan, blocksy 5 5 Requires at least: 5.9 6 Tested up to: 6. 56 Tested up to: 6.6 7 7 Requires PHP: 7.0 8 Stable tag: 0.3. 38 Stable tag: 0.3.4 9 9 Requires Plugins: tainacan 10 10 License: GPLv2 or later … … 59 59 60 60 == Changelog == 61 62 = 0.3.4 = 63 * Adds support for variable items width in related items carousel 61 64 62 65 = 0.3.3 = -
tainacan-blocksy/trunk/functions.php
r3110753 r3127695 5 5 Description: Tainacan plugin support for Blocksy theme 6 6 Author: tainacan 7 Version: 0.3. 37 Version: 0.3.4 8 8 Text Domain: tainacan-blocksy 9 9 License: GPLv2 or later … … 16 16 17 17 /** Theme/plugin version */ 18 const TAINACAN_BLOCKSY_VERSION = '0.3. 3';18 const TAINACAN_BLOCKSY_VERSION = '0.3.4'; 19 19 const TAINACAN_BLOCKSY_IS_CHILD_THEME = false; 20 20 -
tainacan-blocksy/trunk/inc/options/single-elements/items-related-to-this.php
r3094767 r3127695 46 46 'choices' => $layout_choices, 47 47 'sync' => '', 48 ],49 blocksy_rand_md5() => [50 'type' => 'ct-condition',51 'condition' => [52 $prefix . 'items_related_to_this_layout' => 'carousel'53 ],54 'options' => [55 $prefix . 'items_related_to_this_max_items_per_screen' => [56 'label' => __( 'Max amount of items per slide', 'tainacan-blocksy' ),57 'type' => 'ct-number',58 'design' => 'inline',59 'value' => 6,60 'min' => 1,61 'max' => 10,62 'sync' => ''63 ]64 ]65 48 ], 66 49 blocksy_rand_md5() => [ … … 158 141 } 159 142 143 if ( null !== TAINACAN_VERSION && version_compare( TAINACAN_VERSION, '0.21.8' ) >= 0 ) { 144 $inner_options[blocksy_rand_md5()] = [ 145 'type' => 'ct-condition', 146 'condition' => [ 147 $prefix . 'items_related_to_this_layout' => 'carousel', 148 $prefix . 'items_related_to_this_variable_items_width' => 'no', 149 ], 150 'options' => [ 151 $prefix . 'items_related_to_this_max_items_per_screen' => [ 152 'label' => __( 'Max amount of items per slide', 'tainacan-blocksy' ), 153 'type' => 'ct-number', 154 'design' => 'inline', 155 'value' => 6, 156 'min' => 1, 157 'max' => 10, 158 'sync' => '' 159 ] 160 ] 161 ]; 162 $inner_options[blocksy_rand_md5()] = [ 163 'type' => 'ct-condition', 164 'condition' => [ 165 $prefix . 'items_related_to_this_layout' => 'carousel' 166 ], 167 'options' => [ 168 $prefix . 'items_related_to_this_variable_items_width' => [ 169 'label' => __( 'Variable items width', 'tainacan-blocksy' ), 170 'type' => 'ct-switch', 171 'value' => 'no', 172 'desc' => __( 'Toggle to define each slide size based on its content natural width.', 'tainacan-blocksy' ), 173 'sync' => '' 174 ] 175 ] 176 ]; 177 } else { 178 $inner_options[blocksy_rand_md5()] = [ 179 'type' => 'ct-condition', 180 'condition' => [ 181 $prefix . 'items_related_to_this_layout' => 'carousel', 182 ], 183 'options' => [ 184 $prefix . 'items_related_to_this_max_items_per_screen' => [ 185 'label' => __( 'Max amount of items per slide', 'tainacan-blocksy' ), 186 'type' => 'ct-number', 187 'design' => 'inline', 188 'value' => 6, 189 'min' => 1, 190 'max' => 10, 191 'sync' => '' 192 ] 193 ] 194 ]; 195 } 196 160 197 $options = [ 161 198 $prefix . 'display_items_related_to_this' => [ -
tainacan-blocksy/trunk/template-parts/tainacan-item-single-items-related-to-this.php
r3094767 r3127695 6 6 $max_columns_count = get_theme_mod( $prefix . '_items_related_to_this_max_columns_count', 4 ); 7 7 $max_items_per_screen = get_theme_mod( $prefix . '_items_related_to_this_max_items_per_screen', 6 ); 8 $variable_items_width = get_theme_mod( $prefix . '_items_related_to_this_variable_items_width', 'no') === 'yes'; 8 9 $max_items_number = get_theme_mod( $prefix . '_items_related_to_this_max_items_number', 12 ); 9 10 $order_option = get_theme_mod( $prefix . '_items_related_to_this_order', 'title_asc' ); … … 50 51 'carousel_args' => [ 51 52 'max_items_per_screen' => $max_items_per_screen, 52 'image_size' => $image_size 53 'image_size' => $image_size, 54 'variable_items_width' => $variable_items_width, 53 55 ] 54 56 ]);
Note: See TracChangeset
for help on using the changeset viewer.