Changeset 3174692
- Timestamp:
- 10/24/2024 03:23:52 AM (18 months ago)
- Location:
- agb-free/trunk
- Files:
-
- 2 added
- 21 edited
-
agb-free.php (modified) (1 diff)
-
dyg-form/css/dygform-public.css (modified) (1 diff)
-
dyg-form/js/dyg-form.js (modified) (3 diffs)
-
dyg-grid/addons/free/dygpg_accordion.php (modified) (2 diffs)
-
dyg-grid/addons/free/dygpg_accordion_pro.php (modified) (1 diff)
-
dyg-grid/addons/free/dygpg_carousel.js (modified) (1 diff)
-
dyg-grid/addons/free/dygpg_carousel.php (modified) (7 diffs)
-
dyg-grid/addons/free/dygpg_carousel_pro.php (modified) (3 diffs)
-
dyg-grid/addons/free/dygpg_meta_pro.php (modified) (4 diffs)
-
dyg-grid/addons/free/dygpg_styles_free.php (modified) (14 diffs)
-
dyg-grid/addons/free/dygpg_styles_free_data.php (modified) (24 diffs)
-
dyg-grid/addons/free/dygpg_table_free.php (modified) (2 diffs)
-
dyg-grid/addons/free/dygpg_table_pro.php (modified) (1 diff)
-
dyg-grid/addons/free/dygpg_text_alignment.php (added)
-
dyg-grid/css/dyg-post-grid-templates.css (modified) (4 diffs)
-
dyg-grid/dyg-post-grid.php (modified) (1 diff)
-
dyg-grid/forms/dygpg-form.php (modified) (1 diff)
-
dyg-grid/includes/class-dygpg-postgrid.php (modified) (5 diffs)
-
dyg-grid/js/dyg-resize.js (modified) (1 diff)
-
dyg-grid/js/dygpg-editor.js (modified) (7 diffs)
-
dyg-grid/js/dygpg-load-more.js (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
update_wordpress_repo.py (added)
Legend:
- Unmodified
- Added
- Removed
-
agb-free/trunk/agb-free.php
r2998190 r3174692 10 10 * Plugin URI: https://www.advancedgridbuilder.com 11 11 * Description: The ultimate grid and list generator for all Wordpress content types 12 * Version: 6. 0.312 * Version: 6.3.3 13 13 * License: GPL-2.0+ 14 14 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt -
agb-free/trunk/dyg-form/css/dygform-public.css
r2983320 r3174692 571 571 margin-right: 20px; 572 572 } 573 .dygform .two-thirds-width { 574 display:inline-block; 575 width: calc(calc(100% - 40px) / 3); 576 margin-right: 20px; 577 } 578 .dygform .two-thirds-width { 579 display:inline-block; 580 width: calc(100% - (calc(calc(100% - 40px) / 3) + 20px)); 581 } 573 582 .dygform .fourth-width { 574 583 display:inline-block; -
agb-free/trunk/dyg-form/js/dyg-form.js
r2983320 r3174692 222 222 }, 223 223 beforeSend: function () { 224 window.dygformIsReady = false; //mainly used for testing 224 225 }, 225 226 complete: function () { … … 256 257 } 257 258 dygformReady(); 259 window.dygformIsReady = true; 258 260 }, 259 261 error: function (error) { … … 261 263 jQuery(`${dygformForm} div.dygform-message`).addClass('dygform-error-message'); 262 264 jQuery(`${dygformForm} div.dygform-message`).show(250); 265 window.dygformIsReady = true; 263 266 } 264 267 } -
agb-free/trunk/dyg-grid/addons/free/dygpg_accordion.php
r2983320 r3174692 15 15 */ 16 16 public function modify_wrapper_classes($class, $obj) { 17 if ($obj->args[' accordion-enable'] === 'Y') {17 if ($obj->args['grid-type'] === 'Accordion') { 18 18 $class .= " dygpg-style-accordion"; 19 19 } … … 49 49 public function dygpg_legacy_atts($atts) { 50 50 if (version_compare($atts['version'] ?? '0.0.0', '5.8.6', '<') && ($atts['preset'] ?? '') === 'dygpg-accordion') { 51 $atts[' accordion-enable'] = 'Y';51 $atts['grid-type'] = 'Accordion'; 52 52 } 53 53 return $atts; -
agb-free/trunk/dyg-grid/addons/free/dygpg_accordion_pro.php
r2998189 r3174692 13 13 public function modify_data($data) { 14 14 $element = [ 15 'accordion_enable' => [ 16 'type' => 'checkbox', 17 'label' => 'Accordion', 18 'data-link' => 'accordion-enable', 19 'data-link-val' => 'Y', 20 ], 21 'accordion_show_first' => [ 22 'type' => 'checkbox', 23 'label' => 'Accordion (show first)', 24 'data-link' => 'accordion-show-first', 25 'data-link-val' => 'Y', 26 ], 27 'accordion_toggle_open' => [ 28 'type' => 'checkbox', 29 'label' => 'Accordion (toggle open)', 30 'data-link' => 'accordion-toggle-open', 31 'data-link-val' => 'Y', 15 'accordion-option-wrapper' => [ 16 'type' => 'div', 17 'container-class' => 'xx-option-wrapper accordion-option-wrapper', //general class for all grid type option wrappers 18 'label' => 'Accordion Options', 19 'contains' => [ 20 'accordion_show_first' => [ 21 'type' => 'checkbox', 22 'label' => 'Accordion (show first)', 23 'data-link' => 'accordion-show-first', 24 'container-class' => 'third-width', 25 'data-link-val' => 'Y', 26 ], 27 'accordion_toggle_open' => [ 28 'type' => 'checkbox', 29 'label' => 'Accordion (toggle open)', 30 'data-link' => 'accordion-toggle-open', 31 'container-class' => 'third-width end', 32 'data-link-val' => 'Y', 33 ], 34 ], 32 35 ], 33 36 ]; 34 dygform_insert_element($data, 'fonts', $element); 37 38 dygform_insert_element($data, 'grid-type-wrapper', $element); 35 39 36 40 return $data; -
agb-free/trunk/dyg-grid/addons/free/dygpg_carousel.js
r2983320 r3174692 15 15 $carousel.off('afterChange.dygpgCarousel').on('afterChange.dygpgCarousel', function () { 16 16 checkSlickChangeMore(this); 17 window.agbResize = false 17 18 apply_filters('dygpg-resize', null); 19 window.agbResize = true; 20 }); 21 22 // Bind the setPosition event to call aspect_ratio 23 $carousel.on('setPosition', function(event, slick){ 24 aspect_ratio(); 18 25 }); 19 26 -
agb-free/trunk/dyg-grid/addons/free/dygpg_carousel.php
r2983320 r3174692 15 15 add_filter('dygpg-modify-submit-args', [$this, 'modify_submit_args'], 20, 2); //needs to fire after breakpoints are validated 16 16 add_filter('dygpg-modify-existing-args', [$this, 'modify_existing_args'], 10, 1); 17 } 18 19 private function is_carousel($obj) { 20 $result = in_array($obj->args['use_carousel'], ['S', 'F']) && (($obj->args['grid-type'] ?? '') === 'Carousel'); 21 return $result; 17 22 } 18 23 … … 49 54 50 55 function add_wrapper_parameter($param, $obj) { 51 if (! in_array($obj->args['use_carousel'], ['S', 'F'])) {56 if (!$this->is_carousel($obj)) { 52 57 return $param; 53 58 } … … 104 109 105 110 function modify_wrapper_classes($classes, $obj) { 106 if (! in_array($obj->args['use_carousel'], ['S', 'F'])) {111 if (!$this->is_carousel($obj)) { 107 112 return $classes; 108 113 } … … 118 123 119 124 function modify_load_more_wrapper_classes($classes, $obj) { 120 if (! in_array($obj->args['use_carousel'], ['S', 'F'])) {125 if (!$this->is_carousel($obj)) { 121 126 return $classes; 122 127 } … … 125 130 } 126 131 function modify_load_more_ajax_class($classes, $obj) { 127 if (! in_array($obj->args['use_carousel'], ['S', 'F'])) {132 if (!$this->is_carousel($obj)) { 128 133 return $classes; 129 134 } … … 133 138 134 139 function modify_load_more_button_classes($classes, $obj) { 135 if (! in_array($obj->args['use_carousel'], ['S', 'F'])) {140 if (!$this->is_carousel($obj)) { 136 141 return $classes; 137 142 } … … 159 164 */ 160 165 public function shortcode_array($shortcode) { 161 $shortcode['use_carousel'] = ' N';166 $shortcode['use_carousel'] = 'S'; 162 167 $shortcode['use_carousel_center_mode'] = ''; 163 168 $shortcode['carousel_autoplay'] = 'Y'; -
agb-free/trunk/dyg-grid/addons/free/dygpg_carousel_pro.php
r2998189 r3174692 15 15 'carousel_wrapper' => [ 16 16 'type' => 'div', 17 'label' => 'Carousel settings', 18 'container-class' => 'dygform-accordion', 19 'style' => 'display:none;', 20 'help' => 'panel/carousel-settings', 17 'container-class' => 'xx-option-wrapper carousel-option-wrapper', 21 18 'contains' => [ 22 19 'carousel_select_wrapper' => [ … … 26 23 'container-style' => 'width: 100%;', 27 24 'contains' => [ 28 'carousel_off' => [29 'type' => 'radio',30 'data-link' => 'use_carousel',31 'checked' => 'checked',32 'data-link-val' => 'N',33 'label' => 'Off',34 ],35 25 'carousel_scroll' => [ 36 26 'type' => 'radio', … … 113 103 ], 114 104 ]; 115 dygform_insert_element($data, ' image_wrapper', $element);105 dygform_insert_element($data, 'grid-type-wrapper', $element); 116 106 117 107 return $data; -
agb-free/trunk/dyg-grid/addons/free/dygpg_meta_pro.php
r2998189 r3174692 18 18 'meta_wrapper' => [ 19 19 'type' => 'div', 20 'label' => 'Meta formatting', 21 'help' => 'meta-formatting', 20 22 'contains' => [ 21 23 'inline_separator' => [ … … 73 75 'data-link' => 'button', 74 76 ], 75 'field_padding' => [77 'field_padding' => [ 76 78 'type' => 'input', 77 79 'element-type' => 'text', … … 80 82 'data-link' => 'field-padding', 81 83 ], 82 'field_max_width' => [84 'field_max_width' => [ 83 85 'type' => 'input', 84 86 'element-type' => 'text', … … 91 93 ]); 92 94 } 93 94 95 96 95 97 96 public function load_form($data, $args) { -
agb-free/trunk/dyg-grid/addons/free/dygpg_styles_free.php
r2983320 r3174692 17 17 add_filter('dygpg-class', [$this, 'filter_class'], 10, 2); 18 18 add_action('wp_enqueue_scripts', [$this, 'enqueue_scripts']); 19 add_filter("dygpg-load-form", [$this, 'load'], 10, 2); 20 add_filter('dygpg-legacy-atts', [$this, 'dygpg_legacy_atts'], 10, 2); 19 21 20 22 $this->elements = [ … … 64 66 'container-style' => 'columns:3;', 65 67 'contains' => [ 66 'fonts' => [68 'fonts' => [ 67 69 'type' => 'checkbox', 68 70 'label' => 'Override theme fonts', … … 71 73 'default' => 'Y', 72 74 ], 73 0 => [75 0 => [ 74 76 'type' => 'checkbox', 75 77 'label' => 'Cell Shadow', … … 78 80 'default' => '', 79 81 ], 80 1 => [82 1 => [ 81 83 'type' => 'checkbox', 82 84 'label' => 'Image Shadow', … … 85 87 'default' => '', 86 88 ], 87 2 => [89 2 => [ 88 90 'type' => 'checkbox', 89 91 'label' => 'Hover Enlarge', … … 92 94 'default' => '', 93 95 ], 94 3 => [ 95 'type' => 'checkbox', 96 'label' => 'Center All Text', 97 'data-link' => 'style-center-text', 98 'data-link-val' => 'Y', 99 'default' => '', 100 ], 101 'style-bottom-content-vertical' => [ 102 'type' => 'checkbox', 103 'label' => 'Content Bottom (Vertical)', 104 'data-link' => 'style-bottom-content-vertical', 105 'data-link-val' => 'Y', 106 'default' => '', 107 ], 108 4 => [ 109 'type' => 'checkbox', 110 'label' => 'Content Center (Vertical)', 111 'data-link' => 'style-center-content-vertical', 112 'data-link-val' => 'Y', 113 'default' => '', 114 ], 115 5 => [ 116 'type' => 'checkbox', 117 'label' => 'Content Center (Horizontal)', 118 'data-link' => 'style-center-content-horizontal', 119 'data-link-val' => 'Y', 120 'default' => '', 121 ], 122 6 => [ 96 6 => [ 123 97 'type' => 'checkbox', 124 98 'label' => 'Image Hover Zoom', … … 127 101 'default' => '', 128 102 ], 129 7 => [103 7 => [ 130 104 'type' => 'checkbox', 131 105 'label' => 'Cell Hover Shadow', … … 133 107 'data-link-val' => 'Y', 134 108 'default' => '', 109 ], 110 ], 111 ], 112 'grid-type-wrapper' => [ 113 'type' => 'div', 114 'label' => 'Grid Type', 115 'help' => 'grid-type', 116 'contains' => [ 117 'grid-type' => [ 118 'class' => 'dygpg-grid-type-select', 119 'type' => 'dropdown_group', 120 'container-class' => 'half-width', 121 'default' => '', 122 'data-link' => 'grid-type', 123 'placeholder' => 'Grid type', 124 'options' => [ 125 ], 135 126 ], 136 127 ], … … 141 132 } 142 133 143 134 /** 135 * revise the agb editor form at load 136 * insert the role options to the dropdown and select the default 137 * 138 * @param array $data 139 * @param array $args 140 * @return array 141 */ 142 public function load($data, $args) { 143 $e = dygform_find_element($data, "grid-type"); 144 dygform_add_options($e, ['Grid', 'Accordion', 'Carousel', 'Table'], $args['grid-type'] ?? ''); 145 return $data; 146 } 147 144 148 public function enqueue_scripts() { 145 149 dyg_enqueue_style('dygpg-styles-pro', DYG_STYLESHEET_DIRECTORY_URI . '/dyg-grid/addons/free/dygpg_styles_free.css'); 146 150 } 147 148 151 149 152 public function store_args($args, $atts) { … … 153 156 154 157 public function filter_class($class, $obj) { 155 if ($obj->args['style-center-text'] === 'Y') { 156 $class .= ' dygpg-center-text'; 157 } 158 if ($obj->args['style-center-content-horizontal'] === 'Y') { 159 $class .= ' dygpg-center-content-horizontal'; 160 } 158 161 159 if ($obj->args['style-cell-hover-shadow'] === 'Y') { 162 160 $class .= ' dygpg-shadow-hover'; … … 164 162 if ($obj->args['style-image-hover-zoom'] === 'Y') { 165 163 $class .= ' dygpg-style-image-zoom'; 166 }167 if ($obj->args['style-center-content-vertical'] === 'Y') {168 $class .= ' dygpg-center-content-vertical';169 }170 if ($obj->args['style-bottom-content-vertical'] === 'Y') {171 $class .= ' dygpg-bottom-content-vertical';172 164 } 173 165 if ($obj->args['style-shadow'] === 'Y') { … … 195 187 $shortcode[$element['data-link']] = $element['default'] ?? ''; 196 188 } 189 190 $shortcode['grid-type'] = 'Grid'; 197 191 198 192 return $shortcode; … … 206 200 */ 207 201 public function sort_form_elements($data) { 208 $e = dygform_find_element($data, 'style-preset-options');202 $e = dygform_find_element($data, 'style-preset-options'); 209 203 $containsArray = (array) $e->contains; 210 uasort($containsArray, function ($a, $b) {204 uasort($containsArray, function ($a, $b) { 211 205 return strcmp($a->label, $b->label); 212 206 }); … … 282 276 } 283 277 278 /** 279 * modifies the grid attributes for legacy versions of the plugin 280 * @param type $atts - array of shortcode attributes 281 * @return type 282 */ 283 public function dygpg_legacy_atts($atts) { 284 if (version_compare($atts['version'] ?? '0.0.0', '6.1.0', '>')) { 285 return $atts; 286 } 287 288 if (in_array($atts['use_carousel'], ['S', 'F'])) { 289 $atts['grid-type'] = 'Carousel'; 290 } 291 292 if (in_array($atts['accordion-enable'], ['Y'])) { 293 $atts['grid-type'] = 'Accordion'; 294 } 295 296 if (in_array($atts['show_table_headers'], ['Y'])) { 297 $atts['grid-type'] = 'Table'; 298 } 299 300 301 return $atts; 302 } 303 284 304 } -
agb-free/trunk/dyg-grid/addons/free/dygpg_styles_free_data.php
r2998189 r3174692 9 9 'args' => 10 10 array ( 11 ' accordion-enable' => 'Y',11 'grid-type' => 'Accordion', 12 12 'accordion-show-first' => 'Y', 13 13 'accordion-toggle-open' => 'Y', … … 17 17 'attribute_padding_content' => '20px', 18 18 'attribute_padding_title' => '10px 20px', 19 'cell-v-align' => 'T', 19 20 'columns' => '1,1,1,1', 20 21 'pattern' => '%title%,%<,%content%,%>', 21 22 'style-fonts' => '', 23 'term_args' => 24 array ( 25 'taxonomy' => '', 26 'orderby' => 'title', 27 'hide_empty' => false, 28 'order' => 'ASC', 29 ), 22 30 'title' => 'N', 23 31 'title-tag' => 'h6', 32 'use-dynamic-filter-links' => 'Y', 24 33 ), 25 34 ), … … 50 59 'resolutions' => '1080px,1080px', 51 60 'size' => 'large', 52 'style-center-text' => 'Y', 61 'content-h-align' => 'C', 62 'cell-h-align' => 'C', 53 63 'style-fonts' => '', 54 64 'title' => 'N', 55 65 'title-tag' => 'h4', 56 66 'use_carousel' => 'F', 67 'grid-type' => 'Carousel', 57 68 'width' => '200px,200px', 58 69 ), … … 72 83 'attribute_padding_content' => '17px', 73 84 'attribute_text-align_button' => 'center', 85 'cell-v-align' => 'T', 74 86 'columns' => '3,3,2,1', 75 'equal-grid-heights' => ' Y',76 'equal-title-heights' => ' Y',87 'equal-grid-heights' => 'R', 88 'equal-title-heights' => 'R', 77 89 'link-titles' => 'Y', 78 90 'pattern' => '%image%,%<,%date%,%author%,%category%,%title%,%excerpt%,%button%,%>', … … 103 115 'pattern' => '%<,%excerpt%,%>,%date%,%category%,%author%,%title%', 104 116 'pattern-direction' => '%date%,%category%,%author%', 105 ' style-center-content-horizontal' => 'Y',117 'content-h-align' => 'C', 106 118 'title' => 'N', 107 119 'transition' => 'fade', … … 129 141 'pattern' => '%<,%excerpt%,%>,%date%,%category%,%author%,%title%', 130 142 'pattern-direction' => '%date%,%category%,%author%', 131 ' style-center-content-horizontal' => 'Y',132 ' style-center-content-vertical' => 'Y',143 'content-h-align' => 'C', 144 'content-v-align' => 'M', 133 145 'title' => 'N', 134 146 'transition' => 'flipx', … … 152 164 'attribute_margin_content' => '0px', 153 165 'attribute_padding_content' => '0px 4% 8% 4%', 166 'carousel_autoplay' => '', 154 167 'carousel_center_padding' => '20%,20%,20%,20%', 155 168 'carousel_speed' => '5000', 156 169 'carousel_track_padding' => '40px', 170 'cell-h-align' => 'C', 171 'cell-v-align' => 'T', 157 172 'cell_background_overlay_color' => 'linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.9) 100%)', 158 173 'column-gap' => '0px,0px,0px,0px', 159 174 'columns' => '1,1,1,1', 160 'image' => 'B', 175 'content-h-align' => 'C', 176 'content-v-align' => 'B', 177 'content_background_images' => 'B', 161 178 'pattern' => '%<,%title%,%excerpt%,%>', 162 179 'resolutions' => '0px,0px,0px,0px', 163 180 'size' => 'large', 164 'style-bottom-content-vertical' => 'Y',165 'style-center-content-horizontal' => 'Y',166 'style-center-text' => 'Y',167 181 'style-fonts' => '', 168 182 'style-shadow' => 'Y', 169 183 'title' => 'N', 184 'use-dynamic-filter-links' => 'Y', 170 185 'use_carousel' => 'S', 186 'grid-type' => 'Carousel', 171 187 'use_carousel_center_mode' => 'Y', 172 188 'use_srcset' => '', … … 181 197 'args' => 182 198 array ( 183 'columns' => '6, 4,3,1',199 'columns' => '6,5,4,2', 184 200 'iclass-aspect-ratio' => '1-1', 185 201 'link' => 'N', … … 206 222 'attribute_text-align_image' => 'center', 207 223 'carousel_variable_width' => 'Y', 224 'cell-v-align' => 'T', 208 225 'column-gap' => '50px,50px,50px,50px', 209 226 'columns' => '1,1,1,1', 210 'equal-grid-heights' => 'R',211 'equal-title-heights' => 'R',212 227 'iclass-aspect-ratio' => '', 213 228 'image-width' => '', … … 216 231 'pattern' => '%image%,%<,%title%,%excerpt%,%>', 217 232 'title' => 'N', 233 'use-dynamic-filter-links' => 'Y', 218 234 'use_carousel_center_mode' => 'Y', 219 235 ), … … 227 243 'args' => 228 244 array ( 245 'cell-h-align' => 'C', 229 246 'column-gap' => '3px,3px,3px,3px', 230 247 'content-aspect-ratio' => 'match_image', 248 'content-h-align' => 'C', 249 'content-v-align' => 'M', 231 250 'iclass-aspect-ratio' => '', 232 251 'link' => 'L', 233 252 'link-images' => '', 234 253 'pattern' => '%<,%title%,%>', 235 'style-center-content-horizontal' => 'Y',236 'style-center-content-vertical' => 'Y',237 254 'title' => 'N', 238 255 'transition' => 'flipx', 239 256 'use-columns' => 'V', 240 ), 257 'use-dynamic-filter-links' => 'Y', 258 ), 259 ), 260 'dygpg-gallery-fade' => 261 array ( 262 'args' => 263 array ( 264 'attribute_color_content' => 'white', 265 'attribute_padding_content' => '10px', 266 'carousel_variable_width' => 'Y', 267 'column-gap' => '0px,0px,0px,0px', 268 'content-aspect-ratio' => '1:1', 269 'content-h-align' => 'C', 270 'content-v-align' => 'M', 271 'content_background_images' => 'C', 272 'content_background_overlay_color' => '#000000aa', 273 'iclass-aspect-ratio' => '', 274 'link' => 'L', 275 'link-images' => '', 276 'pattern' => '%<,%excerpt%,%>', 277 'pattern-direction' => '%date%,%category%,%author%', 278 'title' => 'N', 279 'transition' => 'fade', 280 'use-dynamic-filter-links' => 'Y', 281 'use_carousel_center_mode' => 'Y', 282 ), 283 'type' => 'Galleries', 284 'contains' => 'Excerpt Fade', 285 'value' => 'dygpg-gallery-fade', 286 'version' => 'free', 241 287 ), 242 288 'dygpg-gallery-hover' => … … 259 305 'link-images' => '', 260 306 'pattern' => '%title%,%<,%excerpt%,%>', 261 'style-center-text' => 'Y', 307 'content-h-align' => 'C', 308 'cell-h-align' => 'C', 262 309 'title' => 'N', 263 310 'transition' => 'squash-down', … … 377 424 'attribute_padding_content' => '30px', 378 425 'columns' => '2,2,2,1', 379 'equal- grid-heights' => 'Y',426 'equal-content-heights' => 'Y', 380 427 'iclass-aspect-ratio' => '16:9', 381 428 'pattern' => '%image%,%<,%date%,%category%,%title%,%excerpt%,%>', 382 ' style-center-content-horizontal' => 'Y',429 'content-h-align' => 'C', 383 430 'style-fonts' => '', 384 431 'style-hover-enlarge' => 'Y', … … 436 483 'pattern-direction' => '%title%,%category%,%author%,%date%,%button%,%image%,%woo_price%,%category%,%settings_panel%,%product_cat%', 437 484 'show_table_headers' => 'Y', 485 'grid-type' => 'Table', 438 486 'style-cell-hover-shadow' => 'Y', 439 487 'style-fonts' => '', … … 470 518 'pattern-direction' => '%image%,%product_cat%,%title%,%excerpt%,%woo_price%,%category%,%author%,%date%,%button%,%settings_panel%', 471 519 'show_table_headers' => 'Y', 520 'grid-type' => 'Table', 472 521 'size' => 'thumbnail', 473 522 'style-cell-hover-shadow' => 'Y', … … 501 550 'title' => 'N', 502 551 'use_carousel' => 'S', 552 'grid-type' => 'Carousel', 503 553 'use_srcset' => '', 504 554 ), … … 518 568 'link-cell' => 'Y', 519 569 'link-images' => '', 520 'style-center-text' => 'Y', 570 'content-h-align' => 'C', 571 'cell-h-align' => 'C', 521 572 'style-shadow' => 'Y', 522 573 'title' => 'N', … … 543 594 'link-images' => '', 544 595 'pattern' => '%<,%title%,%excerpt%,%>', 545 ' style-center-content-horizontal' => 'Y',546 ' style-center-content-vertical' => 'Y',596 'content-h-align' => 'C', 597 'content-v-align' => 'M', 547 598 'title' => 'N', 548 599 ), … … 565 616 'attribute_padding_cell' => '8%', 566 617 'attribute_padding_content' => '4%', 618 'breakpoints' => '0px', 619 'carousel_center_padding' => '60px,60px', 567 620 'carousel_speed' => '5000', 621 'cell-height' => '150px,150px', 622 'cell-v-align' => 'T', 568 623 'cell_background_overlay_color' => '#000000aa', 569 'column-gap' => '0px,0px,0px,0px', 570 'columns' => '3,3,3,3', 624 'column-gap' => '0px,0px', 625 'columns' => '1,1', 626 'content-h-align' => 'C', 627 'content-v-align' => 'M', 571 628 'image' => 'B', 572 629 'pattern' => '%<,%title%,%excerpt%,%>', 630 'resolutions' => '350px,350px', 573 631 'size' => 'large', 574 'style-center-content-horizontal' => 'Y', 575 'style-center-content-vertical' => 'Y', 576 'style-fonts' => '', 577 'title' => 'N', 632 'style-fonts' => '', 633 'title' => 'N', 634 'use-dynamic-filter-links' => 'Y', 578 635 'use_carousel' => 'F', 636 'grid-type' => 'Carousel', 579 637 'use_srcset' => '', 638 'width' => '200px,200px', 580 639 ), 581 640 ), … … 605 664 'resolutions' => '0px,0px', 606 665 'size' => 'large', 607 ' style-bottom-content-vertical' => 'Y',608 ' style-center-content-horizontal' => 'Y',609 ' style-center-text' => 'Y',666 'content-v-align' => 'B', 667 'content-h-align' => 'C', 668 'cell-h-align' => 'C', 610 669 'style-fonts' => '', 611 670 'title' => 'N', 612 671 'use_carousel' => 'F', 672 'grid-type' => 'Carousel', 613 673 'use_srcset' => '', 614 674 'width' => '200px,200px', … … 629 689 'attribute_padding_content' => '17px', 630 690 'attribute_text-align_button' => 'center', 691 'cell-v-align' => 'T', 631 692 'columns' => '3,3,2,1', 632 'equal-grid-heights' => ' Y',633 'equal-title-heights' => ' Y',693 'equal-grid-heights' => 'R', 694 'equal-title-heights' => 'R', 634 695 'link-titles' => 'Y', 635 696 'pattern' => '%image%,%<,%date%,%author%,%category%,%title%,%excerpt%,%button%,%>', … … 648 709 'args' => 649 710 array ( 650 ' accordion-enable' => 'Y',711 'grid-type' => 'Accordion', 651 712 'accordion-show-first' => 'Y', 652 713 'attribute_background-color_title' => 'var(--agb-accent-color)', … … 697 758 'resolutions' => '332px,332px,332px,332px', 698 759 'start-index' => '1', 699 ' style-center-content-horizontal' => 'Y',700 ' style-center-content-vertical' => 'Y',701 ' style-center-text' => 'Y',760 'content-h-align' => 'C', 761 'content-v-align' => 'M', 762 'cell-h-align' => 'C', 702 763 'style-fonts' => '', 703 764 'title' => 'N', … … 726 787 'pattern-direction' => '%date%,%category%,%author%', 727 788 'resolutions' => '100px,100px,100px,100px', 728 ' style-center-content-horizontal' => 'Y',789 'content-h-align' => 'C', 729 790 'style-fonts' => '', 730 791 'title' => 'N', -
agb-free/trunk/dyg-grid/addons/free/dygpg_table_free.php
r2983320 r3174692 16 16 */ 17 17 public function modify_style_array($css, $obj) { 18 if ($obj->args[' show_table_headers'] !== 'Y') {18 if ($obj->args['grid-type'] !== 'Table') { 19 19 return $css; 20 20 } … … 36 36 */ 37 37 public function get_widget($output, $obj) { 38 if ($obj->args['show_table_headers'] !== 'Y' ) {38 if ($obj->args['show_table_headers'] !== 'Y' OR $obj->args['grid-type'] !== 'Table') { 39 39 return $output; 40 40 } -
agb-free/trunk/dyg-grid/addons/free/dygpg_table_pro.php
r2998189 r3174692 14 14 public function modify_data($data) { 15 15 $element = [ 16 'show_table_header' => [ 17 'type' => 'checkbox', 18 'data-link' => 'show_table_headers', 19 'data-link-val' => 'Y', 20 'label' => 'Show Table Headers', 16 'table-option-wrapper' => [ 17 'type' => 'div', 18 'label' => 'Table Options', 19 'help' => 'table-options', 20 'container-class' => 'xx-option-wrapper table-option-wrapper', 21 'contains' => [ 22 'show_table_header' => [ 23 'type' => 'checkbox', 24 'data-link' => 'show_table_headers', 25 'data-link-val' => 'Y', 26 'label' => 'Show Table Headers', 27 ], 28 ], 21 29 ], 22 30 ]; 23 dygform_insert_element($data, ' show_content', $element);31 dygform_insert_element($data, 'grid-type-wrapper', $element); 24 32 25 33 return $data; -
agb-free/trunk/dyg-grid/css/dyg-post-grid-templates.css
r2983320 r3174692 135 135 .dygpg-row-layout .dygpg-cell { 136 136 display: flex; 137 flex-direction: row ;137 flex-direction: row!important; 138 138 } 139 139 … … 191 191 .dygpg-meta li { 192 192 display:inline; 193 padding: 0px !important; 193 194 } 194 195 .dygpg-blog-fade .dygpg-transition-wrapper { … … 225 226 /*end dygpg-list*/ 226 227 227 .dygpg-center-text .dygpg-content, 228 .dygpg-cell-valign-top .dygpg-cell, 229 .dygpg-content-valign-top .dygpg-content { 230 flex-direction: column; 231 justify-content: flex-start; 232 } 233 234 .dygpg-cell-valign-bottom .dygpg-cell, 235 .dygpg-content-valign-bottom .dygpg-content { 236 display: flex; 237 flex-direction: column; 238 justify-content: flex-end; 239 height: 100%; 240 } 241 242 .dygpg-cell-valign-middle .dygpg-cell, 243 .dygpg-content-valign-middle .dygpg-content { 244 display: flex; 245 flex-direction: column; 246 justify-content: center; 247 height: 100%; 248 } 249 250 .dygpg-cell-halign-left .dygpg-cell, 251 .dygpg-content-halign-left .dygpg-content { 252 text-align: left; 253 align-items: flex-start; 254 } 255 256 .dygpg-cell-halign-right .dygpg-cell, 257 .dygpg-content-halign-right .dygpg-content { 258 text-align: right; 259 align-items: flex-end; 260 } 261 262 .dygpg-cell-halign-center .dygpg-cell, 263 .dygpg-content-halign-center .dygpg-content { 264 text-align: center; 265 align-items: center; 266 } 267 268 /* .dygpg-center-text .dygpg-content, 228 269 .dygpg-center-text .dygpg-pattern-button, 229 270 .dygpg-center-text .dygpg-text { … … 254 295 .dygpg-center-content-vertical .dygpg-content span { 255 296 flex: 0 1 auto; 256 } 297 } */ 257 298 .dygpg-button button { 258 299 background-color: unset; -
agb-free/trunk/dyg-grid/dyg-post-grid.php
r2998190 r3174692 11 11 $dygpg_state = []; 12 12 13 define('AGB_VERSION', '6. 0.3');13 define('AGB_VERSION', '6.3.3'); 14 14 $previousVersion = get_option('agb_version'); 15 15 -
agb-free/trunk/dyg-grid/forms/dygpg-form.php
r2998189 r3174692 35 35 . "<i class='fas fa-arrows-alt'></i>" 36 36 . "<i class='fas fa-times dygpg-close-edit'></i>" 37 . "<div class='dygpg-version'>AGB " . (is_agb_theme() ? 'Theme' : '') . (is_agb_free() ? 'Free' : '') . (is_agb_pro() ? 'Pro' : '') . ' v'. AGB_VERSION. "</div>",37 . "<div class='dygpg-version'>AGB " . apply_filters('dygpg_version_string', (is_agb_theme() ? 'Theme' : '') . (is_agb_free() ? 'Free' : '') . (is_agb_pro() ? 'Pro' : '') . ' v'. AGB_VERSION) . "</div>", 38 38 ], 39 39 'id' => [ -
agb-free/trunk/dyg-grid/includes/class-dygpg-postgrid.php
r2998189 r3174692 72 72 73 73 /** 74 * modifies the args to handle legacy versions of agb thay may have u sed args differently to the current version74 * modifies the args to handle legacy versions of agb thay may have used args differently to the current version 75 75 */ 76 76 public static function handle_legacy_atts($atts) { … … 779 779 } 780 780 781 781 782 // handles the loop for posts 782 783 function grid_query_post() { … … 797 798 $this->qpgexcerpt = function_exists('get_field') ? get_field('post_grid_excerpt') : ''; 798 799 // the et_builder_get_the_term_list function is not loaded when the post_grid is generated via ajax 799 $this->qdate = get_the_date();800 800 if (strpos($this->args['pattern'], '%content%') !== false) { 801 801 $this->qcontent = $this->args['content-shortcodes'] === 'Y' ? do_shortcode(get_the_content()) : get_the_content(); //filter will render divi content … … 803 803 $this->qcontent = ''; 804 804 } 805 $this->qdate = get_the_date(); 805 806 $this->qexcerpt = strpos($this->args['pattern'], '%excerpt%') !== false ? apply_filters('the_excerpt', get_the_excerpt()) : ''; 806 807 //if qpid is zero, it's probably a media library loop so the attachment is the same as the post; 807 $this->qpid = get_post_thumbnail_id( ) === 0 ? $this->qid : get_post_thumbnail_id();808 $this->qpid = get_post_thumbnail_id($this->qid) === 0 ? $this->qid : get_post_thumbnail_id($this->qid); 808 809 $this->qsrc = wp_get_attachment_image_src($this->qpid, $this->args['size'])[0] ?? ''; 809 810 $this->qsrcfull = wp_get_attachment_image_src($this->qpid, 'full')[0] ?? ''; … … 816 817 return false; 817 818 } 818 error_log("qindex=$this->qindex, offset={$this->args['params']['offset']}, total=$this->qtotal, qid=$this->qid");819 819 } 820 820 -
agb-free/trunk/dyg-grid/js/dyg-resize.js
r2983320 r3174692 4 4 5 5 function dygpgEqualiseFunctions() { 6 window.agbReady = false; 6 7 aspect_ratio(); 7 8 equalizeAllRowHeights(); 8 9 equal_height(); 10 window.agbResize = false 9 11 apply_filters('dygpg-resize', ''); 12 window.agbResize = true; 13 window.agbReady = true; 10 14 } 11 15 -
agb-free/trunk/dyg-grid/js/dygpg-editor.js
r2998189 r3174692 62 62 }); 63 63 64 // Function to show/hide option wrappers based on the select value for the grid type selector 65 function updateOptionWrappers(selectElement) { 66 var selectedValue = jQuery(selectElement).val().toLowerCase(); 67 var $dygpgWrapper = jQuery(selectElement).closest('form'); 68 69 // Hide all option wrappers within the same .dgpg-wrapper 70 $dygpgWrapper.find('.xx-option-wrapper').hide(); 71 72 // Show the selected option wrapper 73 $dygpgWrapper.find('.' + selectedValue + '-option-wrapper').show(); 74 } 75 64 76 65 77 function dygpgAdminAjaxReadyFunctions() { 78 // Initial setup for grid type options 79 jQuery('.dygpg-grid-type-select').each(function () { 80 updateOptionWrappers(this); 81 }); 82 83 // Update on select change for grid type options 84 jQuery('.dygpg-grid-type-select').off('change').on('change', function () { 85 updateOptionWrappers(this); 86 }); 87 66 88 //auto select reset when a preset button is clicked 67 89 jQuery('select[name="theme-preset-options"]').off('change').on('change', function () { … … 158 180 var $input = jQuery(input); 159 181 var inputId = input.id; // Assuming each input has a unique ID 160 182 161 183 // Check if Tagify has already been initialized using the Map 162 184 if (tagifyInstances.has(inputId)) { … … 165 187 return; // Skip this iteration 166 188 } 167 189 168 190 var whitelist_string = $input.attr('data-whitelist'); 169 191 170 192 var tagify = new Tagify(input, { 171 193 whitelist: whitelist_string, … … 179 201 } 180 202 }); 181 203 182 204 // Store the Tagify instance 183 205 tagifyInstances.set(inputId, tagify); 184 206 185 207 // Placeholder toggle function 186 208 function togglePlaceholderLabel() { … … 194 216 } 195 217 } 196 218 197 219 // Attach the placeholder toggle function to Tagify events 198 tagify.on('focus', function () {220 tagify.on('focus', function () { 199 221 var previous = $input.prev(); 200 222 previous.removeClass('dygpg-placeholder-initial'); 201 223 $input.addClass('dygpg-placeholder-hidden'); 202 224 }); 203 225 204 226 tagify.on('blur', togglePlaceholderLabel); 205 227 206 228 // For initial state 207 229 togglePlaceholderLabel(); 208 230 209 231 var dragsort = new DragSort(tagify.DOM.scope, { 210 232 selector: '.' + tagify.settings.classNames.tag, … … 213 235 } 214 236 }); 215 237 216 238 // Must update Tagify's value according to the re-ordered nodes in the DOM 217 239 function onDragEnd(elm) { … … 264 286 jQuery('body').prepend(e); 265 287 var x = jQuery(window).width() - jQuery(e).find('form').width(); 266 jQuery(e).css('top', y);267 jQuery(e).css('left', 0);268 269 } 288 jQuery(e).css('top', y); 289 jQuery(e).css('left', 0); 290 291 } -
agb-free/trunk/dyg-grid/js/dygpg-load-more.js
r2998189 r3174692 14 14 return; 15 15 } 16 window.agbReady = false; //mainly for testing 16 17 17 18 dygLoadMoreInProgress = true; -
agb-free/trunk/readme.txt
r2998190 r3174692 5 5 Requires PHP: 7.4 6 6 Tested up to: 6.4.1 7 Stable tag: 6. 0.37 Stable tag: 6.3.3 8 8 License: GPLv2 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.