Changeset 2927870
- Timestamp:
- 06/19/2023 11:06:58 AM (3 years ago)
- Location:
- agb-free
- Files:
-
- 94 added
- 11 edited
-
tags/4.5.1 (added)
-
tags/4.5.1/agb-free.php (added)
-
tags/4.5.1/assets (added)
-
tags/4.5.1/assets/icon-256-256.png (added)
-
tags/4.5.1/dyg-form (added)
-
tags/4.5.1/dyg-form/css (added)
-
tags/4.5.1/dyg-form/css/datatables.min.css (added)
-
tags/4.5.1/dyg-form/css/dyg-datatables.css (added)
-
tags/4.5.1/dyg-form/css/dygform-public.css (added)
-
tags/4.5.1/dyg-form/dyg-form.php (added)
-
tags/4.5.1/dyg-form/includes (added)
-
tags/4.5.1/dyg-form/includes/class-dyg-form-storage.php (added)
-
tags/4.5.1/dyg-form/includes/class-dyg-form.php (added)
-
tags/4.5.1/dyg-form/includes/dyg-form-ajax.php (added)
-
tags/4.5.1/dyg-form/includes/dyg-form-functions.php (added)
-
tags/4.5.1/dyg-form/includes/dyg-form-recaptcha2.php (added)
-
tags/4.5.1/dyg-form/includes/dyg-form-recaptcha3.php (added)
-
tags/4.5.1/dyg-form/index.php (added)
-
tags/4.5.1/dyg-form/js (added)
-
tags/4.5.1/dyg-form/js/card.js (added)
-
tags/4.5.1/dyg-form/js/datatables.min.js (added)
-
tags/4.5.1/dyg-form/js/dyg-datatables.js (added)
-
tags/4.5.1/dyg-form/js/dyg-form-cart-total.js (added)
-
tags/4.5.1/dyg-form/js/dyg-form-required.js (added)
-
tags/4.5.1/dyg-form/js/dyg-form-storage.js (added)
-
tags/4.5.1/dyg-form/js/dyg-form.js (added)
-
tags/4.5.1/dyg-form/js/stripe.js (added)
-
tags/4.5.1/dyg-grid (added)
-
tags/4.5.1/dyg-grid/addons (added)
-
tags/4.5.1/dyg-grid/addons/free (added)
-
tags/4.5.1/dyg-grid/addons/free/dygpg-meta.php (added)
-
tags/4.5.1/dyg-grid/addons/free/dygpg_editing_capability.php (added)
-
tags/4.5.1/dyg-grid/addons/free/dygpg_free.php (added)
-
tags/4.5.1/dyg-grid/addons/free/dygpg_go_pro.css (added)
-
tags/4.5.1/dyg-grid/addons/free/dygpg_go_pro.php (added)
-
tags/4.5.1/dyg-grid/addons/free/dygpg_grid_sizing.php (added)
-
tags/4.5.1/dyg-grid/addons/free/dygpg_image_settings_free.php (added)
-
tags/4.5.1/dyg-grid/addons/free/dygpg_main_features.php (added)
-
tags/4.5.1/dyg-grid/addons/free/dygpg_query_mods.php (added)
-
tags/4.5.1/dyg-grid/addons/free/dygpg_styles_css.php (added)
-
tags/4.5.1/dyg-grid/addons/free/dygpg_styles_free.php (added)
-
tags/4.5.1/dyg-grid/addons/free/dygpg_support_relevanssi.php (added)
-
tags/4.5.1/dyg-grid/addons/free/dygpg_transitions_free.css (added)
-
tags/4.5.1/dyg-grid/addons/free/dygpg_transitions_free.php (added)
-
tags/4.5.1/dyg-grid/addons/pro (added)
-
tags/4.5.1/dyg-grid/addons/pro/dygpg_equalise.php (added)
-
tags/4.5.1/dyg-grid/css (added)
-
tags/4.5.1/dyg-grid/css/dyg-post-grid-templates.css (added)
-
tags/4.5.1/dyg-grid/css/dyg-post-grid.css (added)
-
tags/4.5.1/dyg-grid/css/dygpg-form.css (added)
-
tags/4.5.1/dyg-grid/css/fontawesome-all.min.css (added)
-
tags/4.5.1/dyg-grid/css/images (added)
-
tags/4.5.1/dyg-grid/css/images/ui-icons_444444_256x240.png (added)
-
tags/4.5.1/dyg-grid/css/images/ui-icons_555555_256x240.png (added)
-
tags/4.5.1/dyg-grid/css/images/ui-icons_777620_256x240.png (added)
-
tags/4.5.1/dyg-grid/css/images/ui-icons_777777_256x240.png (added)
-
tags/4.5.1/dyg-grid/css/images/ui-icons_cc0000_256x240.png (added)
-
tags/4.5.1/dyg-grid/css/images/ui-icons_ffffff_256x240.png (added)
-
tags/4.5.1/dyg-grid/css/jquery-ui.css (added)
-
tags/4.5.1/dyg-grid/css/magnific-popup.css (added)
-
tags/4.5.1/dyg-grid/dyg-post-grid.php (added)
-
tags/4.5.1/dyg-grid/forms (added)
-
tags/4.5.1/dyg-grid/forms/dygpg-form.php (added)
-
tags/4.5.1/dyg-grid/includes (added)
-
tags/4.5.1/dyg-grid/includes/class-dygpg-ajax.php (added)
-
tags/4.5.1/dyg-grid/includes/class-dygpg-db.php (added)
-
tags/4.5.1/dyg-grid/includes/class-dygpg-form.php (added)
-
tags/4.5.1/dyg-grid/includes/class-dygpg-postgrid.php (added)
-
tags/4.5.1/dyg-grid/includes/dygpg_toolbox.php (added)
-
tags/4.5.1/dyg-grid/index.php (added)
-
tags/4.5.1/dyg-grid/js (added)
-
tags/4.5.1/dyg-grid/js/dyg-resize.js (added)
-
tags/4.5.1/dyg-grid/js/dygpg-ajax-load-more.js (added)
-
tags/4.5.1/dyg-grid/js/dygpg-edit-ajax.js (added)
-
tags/4.5.1/dyg-grid/js/dygpg-edit.js (added)
-
tags/4.5.1/dyg-grid/js/dygpg-misc.js (added)
-
tags/4.5.1/dyg-grid/js/jquery.magnific-popup.min.js (added)
-
tags/4.5.1/dyg-grid/webfonts (added)
-
tags/4.5.1/dyg-grid/webfonts/fa-brands-400.ttf (added)
-
tags/4.5.1/dyg-grid/webfonts/fa-brands-400.woff2 (added)
-
tags/4.5.1/dyg-grid/webfonts/fa-regular-400.ttf (added)
-
tags/4.5.1/dyg-grid/webfonts/fa-regular-400.woff2 (added)
-
tags/4.5.1/dyg-grid/webfonts/fa-solid-900.ttf (added)
-
tags/4.5.1/dyg-grid/webfonts/fa-solid-900.woff2 (added)
-
tags/4.5.1/dyg-grid/webfonts/fa-v4compatibility.ttf (added)
-
tags/4.5.1/dyg-grid/webfonts/fa-v4compatibility.woff2 (added)
-
tags/4.5.1/dyg-theme (added)
-
tags/4.5.1/dyg-theme/includes (added)
-
tags/4.5.1/dyg-theme/includes/dyg-formatter.php (added)
-
tags/4.5.1/dyg-theme/includes/dyg-toolkit.php (added)
-
tags/4.5.1/dyg-theme/includes/dyg_encryption.php (added)
-
tags/4.5.1/readme.txt (added)
-
trunk/agb-free.php (modified) (3 diffs)
-
trunk/dyg-form/js/dyg-form.js (modified) (7 diffs)
-
trunk/dyg-grid/addons/pro (added)
-
trunk/dyg-grid/addons/pro/dygpg_equalise.php (added)
-
trunk/dyg-grid/css/dyg-post-grid-templates.css (modified) (1 diff)
-
trunk/dyg-grid/css/dyg-post-grid.css (modified) (3 diffs)
-
trunk/dyg-grid/css/dygpg-form.css (modified) (2 diffs)
-
trunk/dyg-grid/dyg-post-grid.php (modified) (1 diff)
-
trunk/dyg-grid/forms/dygpg-form.php (modified) (1 diff)
-
trunk/dyg-grid/includes/class-dygpg-postgrid.php (modified) (1 diff)
-
trunk/dyg-grid/js/dyg-resize.js (modified) (1 diff)
-
trunk/dyg-theme/includes/dyg-toolkit.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
agb-free/trunk/agb-free.php
r2926934 r2927870 10 10 * Plugin URI: https://www.advancedgridbuilder.com 11 11 * Description: The ultimate grid and list generator for all Wordpress content types 12 * Version: 4.5. 012 * Version: 4.5.1 13 13 * License: GPL-2.0+ 14 14 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt 15 15 * Text Domain: AGB 16 * 17 * 16 18 * @package AGB 17 19 * … … 38 40 } 39 41 42 if (!function_exists('dyg_add_theme_colors')) { 40 43 //inject the dygiphy theme colours into the head 41 add_action('wp_head', 'dyg_add_theme_colors', 0);44 add_action('wp_head', 'dyg_add_theme_colors', 0); 42 45 43 function dyg_add_theme_colors() {44 echo "<style>46 function dyg_add_theme_colors() { 47 echo "<style> 45 48 :root { 46 49 --dygiphy-theme-color: #91b1db; … … 50 53 --dygiphy-theme-color-dark: #48586d; 51 54 }</style>"; 55 } 52 56 } 57 -
agb-free/trunk/dyg-form/js/dyg-form.js
r2924333 r2927870 59 59 //destory an existing sortable instance to avoid duplicates 60 60 jQuery(this).find('ul').each(function () { 61 if (jQuery(this).hasClass('ui-sortable')) 61 var sortableInstance = jQuery(this).data("ui-sortable"); 62 if (sortableInstance) { 62 63 jQuery(this).sortable("destroy"); 64 } 63 65 }); 64 66 … … 78 80 connectWith: jQuery(this).find('ul'), 79 81 //duplicates rather than moves when initialising. needs more work 80 // remove: function (e, li) {81 // copyHelper = li.item.clone().insertAfter(li.item);82 // $(this).sortable('cancel');83 // return li.item.clone();84 // }82 // remove: function (e, li) { 83 // copyHelper = li.item.clone().insertAfter(li.item); 84 // $(this).sortable('cancel'); 85 // return li.item.clone(); 86 // } 85 87 }).disableSelection(); 86 88 … … 141 143 dygformConditionalLogicShow(this); 142 144 }); 143 // jQuery('[data-show-class],[data-hide-class]').off('change').on('change',function () {144 // var thisForm = jQuery(this).closest('form');145 // dygformConditionalLogic(thisForm);146 // dygformConditionalLogicShow(this);147 // });145 // jQuery('[data-show-class],[data-hide-class]').off('change').on('change',function () { 146 // var thisForm = jQuery(this).closest('form'); 147 // dygformConditionalLogic(thisForm); 148 // dygformConditionalLogicShow(this); 149 // }); 148 150 dygformConditionalLogic('form.dygform'); 149 151 jQuery('.dygform-accordion > label').off('click').on('click', function () { … … 182 184 if (jQuery(`${dygformForm} [data-dygformv3-key`).length) { 183 185 dygFormRecaptcha3(dygformForm); 184 } else 185 { 186 } else { 186 187 dygformAJAXSubmit(); 187 188 } … … 190 191 function dygFormRecaptcha3(dygformForm) { 191 192 grecaptcha.ready(function () { 192 grecaptcha.execute(jQuery(`${dygformForm} [data-dygformv3-key`).data('dygformv3-key'), { action: 'create_comment'}).then(function (token) {193 grecaptcha.execute(jQuery(`${dygformForm} [data-dygformv3-key`).data('dygformv3-key'), { action: 'create_comment' }).then(function (token) { 193 194 jQuery('<input type="hidden" name="g-recaptcha3-response" value="' + token + '">').insertAfter(`${dygformForm} .dygform-recaptcha3`); 194 195 dygformAJAXSubmit(); … … 220 221 fields.push(field); 221 222 }); 222 fields.push({ 'id': 'dygform-name', 'name': jQuery(dygformForm).data('form-name'), 'instance': jQuery(dygformForm).data('instance')});223 fields.push({ 'id': 'dygform-name', 'name': jQuery(dygformForm).data('form-name'), 'instance': jQuery(dygformForm).data('instance') }); 223 224 jQuery('.dygform-post-delete').remove(); 224 225 try { … … 255 256 } 256 257 } else 257 //if not succcessful and recaptcha failed258 if (result.recaptchav2) {259 jQuery(`${dygformForm} .g-recaptcha`).next().show(250);260 } else261 // if not successful and an error message is returned262 if (result.message) {263 jQuery(`${dygformForm} div.dygform-message`).addClass('dygform-error-message');264 jQuery(`${dygformForm} div.dygform-message`).html(result.message);265 jQuery(`${dygformForm} div.dygform-message`).show(250);266 }258 //if not succcessful and recaptcha failed 259 if (result.recaptchav2) { 260 jQuery(`${dygformForm} .g-recaptcha`).next().show(250); 261 } else 262 // if not successful and an error message is returned 263 if (result.message) { 264 jQuery(`${dygformForm} div.dygform-message`).addClass('dygform-error-message'); 265 jQuery(`${dygformForm} div.dygform-message`).html(result.message); 266 jQuery(`${dygformForm} div.dygform-message`).show(250); 267 } 267 268 // if function/parameters is supplied, execute the callback 268 269 if (typeof result.function !== 'undefined') { -
agb-free/trunk/dyg-grid/css/dyg-post-grid-templates.css
r2926934 r2927870 215 215 flex-flow: row wrap; 216 216 align-content: center; 217 height: 100%; 217 218 align-items: center; 218 219 } -
agb-free/trunk/dyg-grid/css/dyg-post-grid.css
r2926934 r2927870 46 46 47 47 .dyg-post-grid-wrapper div.dygpg-filter { 48 text-align: center;48 text-align: left; 49 49 margin-bottom: 30px; 50 50 width: 100%; … … 88 88 color: #91b1db; 89 89 padding: 0px 5px 10px 0px; 90 text-align: left; 90 91 } 91 92 … … 104 105 display: inline-flex; 105 106 border: 1px solid #91b1db; 106 margin: 0px -1px - 2px 0px;107 margin: 0px -1px -1px 0px; 107 108 } 108 109 -
agb-free/trunk/dyg-grid/css/dygpg-form.css
r2926934 r2927870 11 11 width: 1.4em; 12 12 cursor: pointer; 13 } 14 .dygform-accordion > label:after { 15 content: '↕'; 16 position: absolute; 17 right: 10px; 18 font-size: 14px; 19 top: calc(50% - 9px); 13 20 } 14 21 … … 225 232 .dygpg-edit-wrapper .dygform-accordion>label { 226 233 background-color: #c8d8ed; 234 position: relative; 227 235 } 228 236 -
agb-free/trunk/dyg-grid/dyg-post-grid.php
r2926934 r2927870 11 11 $dygpg_state = []; 12 12 13 define('AGB_VERSION', '4.5. 0');13 define('AGB_VERSION', '4.5.1'); 14 14 15 15 include_once DYG_STYLESHEET_DIRECTORY . '/dyg-grid/includes/class-dygpg-db.php'; -
agb-free/trunk/dyg-grid/forms/dygpg-form.php
r2926934 r2927870 25 25 'style' => '', 26 26 'container-style' => '', 27 'data-link' => '',28 'data-link-val' => '',29 27 'show' => '', 30 28 'hide' => '', -
agb-free/trunk/dyg-grid/includes/class-dygpg-postgrid.php
r2926934 r2927870 147 147 $atts['style-fonts'] = ''; 148 148 } 149 if (version_compare($atts['version'] ?? '0.0.0', '4. 4.0', '<')) {149 if (version_compare($atts['version'] ?? '0.0.0', '4.6.0', '<')) { 150 150 $atts['equal-content-heights'] = ($atts['equal-content-heights'] ?? '') === '' ? 'N' : $atts['equal-content-heights']; 151 151 $atts['equal-title-heights'] = ($atts['equal-title-heights'] ?? '') === '' ? 'N' : $atts['equal-title-heights']; 152 152 $atts['equal-grid-heights'] = ($atts['equal-grid-heights'] ?? '') === '' ? 'N' : $atts['equal-grid-heights']; 153 $atts['image'] = ($atts['image'] ?? '') === 'Y' ? '' : $atts['image'];153 $atts['image'] = !in_array($atts['image'], ['B','C']) ? 'N' : $atts['image']; 154 154 unset($atts['sizes']); 155 155 unset($atts['title']); -
agb-free/trunk/dyg-grid/js/dyg-resize.js
r2926934 r2927870 8 8 9 9 function dygpgEqualiseFunctions() { 10 aspect_ratio(); 10 11 equalizeAllRowHeights(); 11 12 equal_height(); 12 aspect_ratio();13 13 } 14 14 //synchronises the height and width of all elements in the class -
agb-free/trunk/dyg-theme/includes/dyg-toolkit.php
r2926934 r2927870 121 121 } 122 122 123 //enqueues the stylesheet with the files timestamp as the version number to force a cache load if the file changes 123 /** 124 * Enqueue a stylesheet with the version based on the file's modification time. 125 * 126 * This function takes a relative URL for local stylesheets, converts it to an absolute path, 127 * and attempts to determine the file's modification time to use as the version. 128 * It then enqueues the stylesheet using WordPress's wp_enqueue_style() function. 129 * 130 * @param string $handle Name of the stylesheet. 131 * @param string $src URL of the stylesheet. If it is a relative URL, it should be relative to the WordPress root directory. 132 * @param array $deps An array of registered stylesheet handles this stylesheet depends on. 133 * @param bool $ver String specifying the stylesheet version number. If set to false, the filemtime will be used. 134 * @param string $media The media for which this stylesheet has been defined. 135 */ 124 136 function dyg_enqueue_style($handle, $src = '', $deps = [], $ver = false, $media = 'all') { 125 137 if (str_contains($src, 'http://localhost/')) { 126 $path = preg_replace('# https?://localhost/([^/]+)#', '', $src);138 $path = preg_replace('#^https?://localhost/#', '', $src); 127 139 } else { 128 140 $path = parse_url($src, PHP_URL_PATH); … … 130 142 131 143 $file = ABSPATH . $path; 132 $ver = filemtime($file); 144 if (file_exists($file)) { 145 $ver = filemtime($file); 146 } 133 147 wp_enqueue_style($handle, $src, $deps, $ver, $media); 134 148 } 149 135 150 136 151 class dyg_ajax { -
agb-free/trunk/readme.txt
r2926934 r2927870 1 # Advanced Grid Builder (AGB)2 Tags: post grid, content grid, grid, grid generator, accordion, image gallery, lightbox, slideshow, blog, list generator, menu generator1 `# Advanced Grid Builder (AGB) 2 Tags: advanced grid builder, post grid, content grid, grid, grid generator, accordion, image gallery, lightbox, slideshow, blog, list generator, menu generator 3 3 Requires at least: 3.6 4 4 Contributors: AGB 5 5 Requires PHP: 7.4 6 6 Tested up to: 6.2 7 Stable tag: 4.5. 07 Stable tag: 4.5.1 8 8 License: GPLv2 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 59 59 60 60 Get started quickly with our "Style Presets". These collections help you quickly achieve some of the most common configurations. The blog preset, for example, was designed specifically for your blog/news posts and includes all the usual fields you would expect to find, including hyperlinked meta fields. Check out more presets [here](https://www.advancedgridbuilder.com/presets/). 61 `
Note: See TracChangeset
for help on using the changeset viewer.