Changeset 3389122
- Timestamp:
- 11/03/2025 07:36:07 PM (4 months ago)
- Location:
- myd-delivery
- Files:
-
- 10 added
- 20 edited
- 1 copied
-
tags/1.3.2 (copied) (copied from myd-delivery/trunk)
-
tags/1.3.2/README.txt (modified) (2 diffs)
-
tags/1.3.2/assets/css/admin/admin-frontend.min.css (modified) (1 diff)
-
tags/1.3.2/assets/img/admin/map-animation-1.avif (added)
-
tags/1.3.2/assets/img/admin/map-animation-1.webp (added)
-
tags/1.3.2/includes/admin/class-settings.php (modified) (1 diff)
-
tags/1.3.2/includes/class-plugin.php (modified) (5 diffs)
-
tags/1.3.2/includes/mercado-pago/bootstrap.php (modified) (4 diffs)
-
tags/1.3.2/includes/mercado-pago/class-mercado-pago.php (modified) (1 diff)
-
tags/1.3.2/includes/telemetry (added)
-
tags/1.3.2/includes/telemetry/class-snapshots.php (added)
-
tags/1.3.2/includes/telemetry/class-telemetry-fallback.php (added)
-
tags/1.3.2/myd-delivery.php (modified) (2 diffs)
-
tags/1.3.2/src/css/admin/admin-style.css (modified) (1 diff)
-
tags/1.3.2/templates/admin/settings-tabs/delivery/tab-delivery.php (modified) (1 diff)
-
tags/1.3.2/templates/cart/cart-payment.php (modified) (1 diff)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/assets/css/admin/admin-frontend.min.css (modified) (1 diff)
-
trunk/assets/img/admin/map-animation-1.avif (added)
-
trunk/assets/img/admin/map-animation-1.webp (added)
-
trunk/includes/admin/class-settings.php (modified) (1 diff)
-
trunk/includes/class-plugin.php (modified) (5 diffs)
-
trunk/includes/mercado-pago/bootstrap.php (modified) (4 diffs)
-
trunk/includes/mercado-pago/class-mercado-pago.php (modified) (1 diff)
-
trunk/includes/telemetry (added)
-
trunk/includes/telemetry/class-snapshots.php (added)
-
trunk/includes/telemetry/class-telemetry-fallback.php (added)
-
trunk/myd-delivery.php (modified) (2 diffs)
-
trunk/src/css/admin/admin-style.css (modified) (1 diff)
-
trunk/templates/admin/settings-tabs/delivery/tab-delivery.php (modified) (1 diff)
-
trunk/templates/cart/cart-payment.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
myd-delivery/tags/1.3.2/README.txt
r3385867 r3389122 5 5 Requires at least: 5.5 6 6 Tested up to: 6.8 7 Stable tag: 1.3. 17 Stable tag: 1.3.2 8 8 Requires PHP: 7.4 9 9 License: GPL-3.0+ … … 76 76 == Changelog == 77 77 78 = 1.3.2 = 79 * Changed: code improvements in Mercado Pago integration. 80 * Changed: code improvements. 81 78 82 = 1.3.1 = 79 83 * Fix: Mercado Pago integration don't load payment methods in some cases. -
myd-delivery/tags/1.3.2/assets/css/admin/admin-frontend.min.css
r3379132 r3389122 1 .myd-tabs-content{display:none}.myd-tabs-content--active{display:block!important}.regular-text.myd-input-repeater{width:8em}.myd-repeater__row{margin:0 0 5px}.myd-repeater__remove{color:red;cursor:pointer}.myd-license-status-tag{color:#fff;font-size:16px;padding:3px 5px}.myd-license-status--error{background:#c22121}.myd-license-status--success{background:#3b9e64}.myd-license-status--invalid{background:#53727c}.myd-delivery-type-content{display:none;margin-bottom:40px}.myd-options-table{margin-bottom:5px;max-width:900px}.myd-options-table__action{width:6%}.myd-input-full{max-width:100%;width:100%!important}.myd-admin-addons{column-gap:16px;display:grid;grid-template-columns:1fr 1fr 1fr}.myd-admin-addons__badge{background:#1bba4b;border-radius:16px;color:#fff;font-size:12px;padding:4px 8px}.myd-badge-beta{background:#2271b1;border-radius:12px;font-size:12px;padding:2px 8px}.myd-custom-content-page{margin-top:20px;max-width:1200px}.myd-admin-cards{display:grid;grid-gap:16px;margin-top:16px}.myd-card-4columns{grid-template-columns:repeat(4,1fr)}.myd-card-3columns{grid-template-columns:repeat(3,1fr)}.myd-card-2columns{grid-template-columns:repeat(2,1fr)}.myd-card-1columns{grid-template-columns:1fr}.myd-card--20padding{padding:20px!important}.myd-admin-cards__item{background:#fff;border:1px solid oklch(92.8% .006 264.531);border-radius:8px;padding:16px}.myd-cards--flex-centered{align-items:center;display:flex;flex-direction:column;gap:6px;justify-content:center}.myd-cards--margin-top10{margin-top:10px!important}.myd-admin-cards__amount{font-size:2.4em;line-height:1.2em}.myd-admin-cards__description{font-size:1em;margin:0}.myd-admin-cards__title{font-size:1.1em;font-weight:600;margin:0}.myd-cards--price{border-left:8px solid #5cc488}.myd-cards--orders{border-left:8px solid #3498db}.myd-cards--purchased{border-left:8px solid #b1d4ea}.myd-cards--average{border-left:8px solid #b1ccd5}.myd-admin-filter{align-items:center;display:flex}.myd-admin-filter__item{background:#fff;border:1px solid #c3c4c7;border-radius:6px;margin-right:5px;padding:6px 16px;text-decoration:none}.myd-admin-filter--active,.myd-admin-filter__item:hover{background:#2271b1;color:#fff}.myd-admin-license-erro{background:#e3e3e3;padding:5px}.myd-custom-field__image-preview{height:auto;max-width:300px}.myd-admin-hidden{display:none}.myd-repeater-container,.myd-repeater-wrapper{column-gap:10px;display:flex;flex-wrap:wrap;row-gap:18px;width:100%}.myd-repeater-wrapper>.myd-repeater-container{border:1px solid #c3c4c7;border-radius:8px;padding:16px;position:relative}.myd-repeater-wrapper{padding:20px 0 12px}.myd-repeater-row{display:flex;flex-basis:100%;flex-wrap:wrap;row-gap:6px}.myd-repeater-row>input:not([type=checkbox]),.myd-repeater-row>label,.myd-repeater-row>textarea{flex-basis:100%;width:100%}.myd-repeater-row>input[type=checkbox],.myd-repeater-row>input[type=checkbox]:before{align-self:center;height:30px;width:30px}.myd-repeater-row>input[type=checkbox]:before{margin:0}.myd-repeater-row>label{color:#1d2327;font-weight:600;line-height:1.3}.myd-repeater-container--internal{background:#fbfbfb;border:1px solid #dfdfdf;border-radius:4px;padding:12px!important}.myd-input-size-75{flex-basis:75%!important}.myd-input-size-30{flex-basis:30%!important}.myd-input-size-20{flex-basis:20%!important}.myd-input-size-25{flex-basis:25%!important}.myd-input-size-10{flex-basis:10%!important}.myd-repeater-sub-row{flex-basis:100%}details[open] .myd-repeater-summary{padding-bottom:16px}.myd-repeater-summary{align-items:center;cursor:pointer;display:flex;justify-content:space-between}.myd-repeater-summary__action--remove{color:#c22121;cursor:pointer;padding:5px}.myd-repeater-summary__action--remove:hover{opacity:.7}.myd-repeater-summary__title{display:list-item}.myd-repeater-row>.myd-repeater-wrapper{padding:0;row-gap:6px}.myd-repeater-container__remove{align-items:center;background:red;border-radius:100%;color:#fff;cursor:pointer;display:flex;height:24px;justify-content:center;position:absolute;right:-10px;top:-10px;width:24px}.myd-repeater-container__remove:hover{opacity:.8}.myd-chart-70{flex-basis:60%;flex-grow:1;width:60%}.myd-chart-30{flex-basis:30%;width:30%}#myd-map{background:#d5d5d5;height:400px;max-width:900px}#myd-search-address{background:#fff;margin-block-end:1px;max-width:900px}#myd-search-address-autocomplete-input{background-color:#fff;border:0;font-size:16px;padding:8px 14px;text-overflow:ellipsis;width:100%}#myd-search-address-autocomplete-input:focus{border-color:#4d90fe}.order-note{display:flex;flex-direction:column;margin-block-end:8px}.order-note__text{background:#9a9a9a;border-radius:6px;color:#fff;font-weight:300;padding:8px 12px}.order-note--success .order-note__text{background:#0fa56e}.order-note--fail .order-note__text{background:#af3737}.order-note__date{color:#727272;font-size:12px}.myd-addon-image{height:100%;max-width:100%;object-fit:cover;width:100%}.myd-addon-image-wrapper{height:120px}.myd-addon-card{background:#fff;border:1px solid #d3d7d8;border-radius:12px;overflow:hidden}.myd-addon-card__content{display:flex;flex-direction:column;padding:24px;row-gap:12px}.myd-addon-card__content>h3,.myd-addon-card__content>p{margin:0}.myd-addon-card__content>.button-primary{width:fit-content}.toplevel_page_myd-delivery-dashoboard .notice:not(.mydd-notice){display:none}.notice.mydd-notice{background:oklch(93.6% .032 17.717);border:1px solid oklch(88.5% .062 18.334);border-radius:8px;color:oklch(39.6% .141 25.723);font-weight:300}body.myd-delivery_page_myd-delivery-settings,body.toplevel_page_myd-delivery-dashoboard{background-color:oklch(98.5% .002 247.839)}.mydd-admin-button{background:oklch(54.6% .245 262.881);border-radius:8px;color:#fff;padding:4px 12px;text-decoration:none;transition:all .4s ease}.mydd-admin-button:hover{background:oklch(48.8% .243 264.376);color:oklch(93.2% .032 255.585)}.mydd-admin-card{background:#fff;border:1px solid oklch(92.8% .006 264.531);border-radius:8px;display:flex;flex-direction:column;gap:12px;padding:24px}.mydd-admin-card__title{color:oklch(13% .028 261.692);font-size:1.5em;font-weight:600;margin:0 0 16px}.mydd-admin-card__content{align-items:center;display:flex;gap:12px}.mydd-admin-card__content>.mydd-admin-button,.mydd-admin-card__content>svg{flex-shrink:0}.mydd-admin-card__content>.mydd-admin-card__text{display:flex;flex-direction:column;flex-grow:1;gap:2px}#mydd-only-pro-tag{align-items:center;background:red;border-radius:200px;color:#fff;display:inline-flex;font-size:.8em;font-weight:500;gap:4px;padding:4px 10px;text-decoration:none;transition:all .4s ease}#mydd-only-pro-tag:hover{background:#de0808}#mydd-admin-support-ilustration{max-width:400px;width:100%}.mydd-admin-card__support-description{font-size:1em;margin:0}.mydd-admin-card__body{align-items:center;display:flex;flex-direction:column;gap:12px;height:100%;justify-content:center}.mydd-admin-card--full{grid-column:1/3}#mydd-admin-card-pro{align-items:center;animation:gradientShift 6s ease-in-out infinite;background:linear-gradient(90deg,#e11e1e,#1458e1);background-size:200% 200%;border-radius:8px;box-shadow:0 2px 6px rgba(0,0,0,.1);color:#fff;display:flex;justify-content:space-between;padding:24px}@keyframes gradientShift{0%{background-position:0 50%}50%{background-position:100% 50%}to{background-position:0 50%}}#mydd-admin-card-pro-title{color:#fff;font-size:2em;font-weight:700;line-height:120%;margin:0}.mydd-admin-card-pro__content{display:flex;flex-direction:column;gap:6px}#mydd-admin-card-pro-description{color:#f8f8f8;font-size:1em;margin:0}#mydd-admin-card-pro-link{background:#fff;border-radius:8px;color:#000d4a;flex-shrink:0;font-weight:600;padding:12px 24px;text-decoration:none} 1 .myd-tabs-content{display:none}.myd-tabs-content--active{display:block!important}.regular-text.myd-input-repeater{width:8em}.myd-repeater__row{margin:0 0 5px}.myd-repeater__remove{color:red;cursor:pointer}.myd-license-status-tag{color:#fff;font-size:16px;padding:3px 5px}.myd-license-status--error{background:#c22121}.myd-license-status--success{background:#3b9e64}.myd-license-status--invalid{background:#53727c}.myd-delivery-type-content{display:none;margin-bottom:40px}.myd-options-table{margin-bottom:5px;max-width:900px}.myd-options-table__action{width:6%}.myd-input-full{max-width:100%;width:100%!important}.myd-admin-addons{column-gap:16px;display:grid;grid-template-columns:1fr 1fr 1fr}.myd-admin-addons__badge{background:#1bba4b;border-radius:16px;color:#fff;font-size:12px;padding:4px 8px}.myd-badge-beta{background:#2271b1;border-radius:12px;font-size:12px;padding:2px 8px}.myd-custom-content-page{margin-top:20px;max-width:1200px}.myd-admin-cards{display:grid;grid-gap:16px;margin-top:16px}.myd-card-4columns{grid-template-columns:repeat(4,1fr)}.myd-card-3columns{grid-template-columns:repeat(3,1fr)}.myd-card-2columns{grid-template-columns:repeat(2,1fr)}.myd-card-1columns{grid-template-columns:1fr}.myd-card--20padding{padding:20px!important}.myd-admin-cards__item{background:#fff;border:1px solid oklch(92.8% .006 264.531);border-radius:8px;padding:16px}.myd-cards--flex-centered{align-items:center;display:flex;flex-direction:column;gap:6px;justify-content:center}.myd-cards--margin-top10{margin-top:10px!important}.myd-admin-cards__amount{font-size:2.4em;line-height:1.2em}.myd-admin-cards__description{font-size:1em;margin:0}.myd-admin-cards__title{font-size:1.1em;font-weight:600;margin:0}.myd-cards--price{border-left:8px solid #5cc488}.myd-cards--orders{border-left:8px solid #3498db}.myd-cards--purchased{border-left:8px solid #b1d4ea}.myd-cards--average{border-left:8px solid #b1ccd5}.myd-admin-filter{align-items:center;display:flex}.myd-admin-filter__item{background:#fff;border:1px solid #c3c4c7;border-radius:6px;margin-right:5px;padding:6px 16px;text-decoration:none}.myd-admin-filter--active,.myd-admin-filter__item:hover{background:#2271b1;color:#fff}.myd-admin-license-erro{background:#e3e3e3;padding:5px}.myd-custom-field__image-preview{height:auto;max-width:300px}.myd-admin-hidden{display:none}.myd-repeater-container,.myd-repeater-wrapper{column-gap:10px;display:flex;flex-wrap:wrap;row-gap:18px;width:100%}.myd-repeater-wrapper>.myd-repeater-container{border:1px solid #c3c4c7;border-radius:8px;padding:16px;position:relative}.myd-repeater-wrapper{padding:20px 0 12px}.myd-repeater-row{display:flex;flex-basis:100%;flex-wrap:wrap;row-gap:6px}.myd-repeater-row>input:not([type=checkbox]),.myd-repeater-row>label,.myd-repeater-row>textarea{flex-basis:100%;width:100%}.myd-repeater-row>input[type=checkbox],.myd-repeater-row>input[type=checkbox]:before{align-self:center;height:30px;width:30px}.myd-repeater-row>input[type=checkbox]:before{margin:0}.myd-repeater-row>label{color:#1d2327;font-weight:600;line-height:1.3}.myd-repeater-container--internal{background:#fbfbfb;border:1px solid #dfdfdf;border-radius:4px;padding:12px!important}.myd-input-size-75{flex-basis:75%!important}.myd-input-size-30{flex-basis:30%!important}.myd-input-size-20{flex-basis:20%!important}.myd-input-size-25{flex-basis:25%!important}.myd-input-size-10{flex-basis:10%!important}.myd-repeater-sub-row{flex-basis:100%}details[open] .myd-repeater-summary{padding-bottom:16px}.myd-repeater-summary{align-items:center;cursor:pointer;display:flex;justify-content:space-between}.myd-repeater-summary__action--remove{color:#c22121;cursor:pointer;padding:5px}.myd-repeater-summary__action--remove:hover{opacity:.7}.myd-repeater-summary__title{display:list-item}.myd-repeater-row>.myd-repeater-wrapper{padding:0;row-gap:6px}.myd-repeater-container__remove{align-items:center;background:red;border-radius:100%;color:#fff;cursor:pointer;display:flex;height:24px;justify-content:center;position:absolute;right:-10px;top:-10px;width:24px}.myd-repeater-container__remove:hover{opacity:.8}.myd-chart-70{flex-basis:60%;flex-grow:1;width:60%}.myd-chart-30{flex-basis:30%;width:30%}#myd-map{background:#d5d5d5;height:400px;max-width:900px}#myd-search-address{background:#fff;margin-block-end:1px;max-width:900px}#myd-search-address-autocomplete-input{background-color:#fff;border:0;font-size:16px;padding:8px 14px;text-overflow:ellipsis;width:100%}#myd-search-address-autocomplete-input:focus{border-color:#4d90fe}.order-note{display:flex;flex-direction:column;margin-block-end:8px}.order-note__text{background:#9a9a9a;border-radius:6px;color:#fff;font-weight:300;padding:8px 12px}.order-note--success .order-note__text{background:#0fa56e}.order-note--fail .order-note__text{background:#af3737}.order-note__date{color:#727272;font-size:12px}.myd-addon-image{height:100%;max-width:100%;object-fit:cover;width:100%}.myd-addon-image-wrapper{height:120px}.myd-addon-card{background:#fff;border:1px solid #d3d7d8;border-radius:12px;overflow:hidden}.myd-addon-card__content{display:flex;flex-direction:column;padding:24px;row-gap:12px}.myd-addon-card__content>h3,.myd-addon-card__content>p{margin:0}.myd-addon-card__content>.button-primary{width:fit-content}.toplevel_page_myd-delivery-dashoboard .notice:not(.mydd-notice){display:none}.notice.mydd-notice{background:oklch(93.6% .032 17.717);border:1px solid oklch(88.5% .062 18.334);border-radius:8px;color:oklch(39.6% .141 25.723);font-weight:300}body.myd-delivery_page_myd-delivery-settings,body.toplevel_page_myd-delivery-dashoboard{background-color:oklch(98.5% .002 247.839)}.mydd-admin-button{background:oklch(54.6% .245 262.881);border-radius:8px;color:#fff;padding:4px 12px;text-decoration:none;transition:all .4s ease}.mydd-admin-button:hover{background:oklch(48.8% .243 264.376);color:oklch(93.2% .032 255.585)}.mydd-admin-card{background:#fff;border:1px solid oklch(92.8% .006 264.531);border-radius:8px;display:flex;flex-direction:column;gap:12px;padding:24px}.mydd-admin-card__title{color:oklch(13% .028 261.692);font-size:1.5em;font-weight:600;margin:0 0 16px}.mydd-admin-card__content{align-items:center;display:flex;gap:12px}.mydd-admin-card__content>.mydd-admin-button,.mydd-admin-card__content>svg{flex-shrink:0}.mydd-admin-card__content>.mydd-admin-card__text{display:flex;flex-direction:column;flex-grow:1;gap:2px}#mydd-only-pro-tag{align-items:center;background:red;border-radius:200px;color:#fff;display:inline-flex;font-size:.8em;font-weight:500;gap:4px;padding:4px 10px;text-decoration:none;transition:all .4s ease}#mydd-only-pro-tag:hover{background:#de0808}#mydd-admin-support-ilustration{max-width:400px;width:100%}.mydd-admin-card__support-description{font-size:1em;margin:0}.mydd-admin-card__body{align-items:center;display:flex;flex-direction:column;gap:12px;height:100%;justify-content:center}.mydd-admin-card--full{grid-column:1/3}#mydd-admin-card-pro{align-items:center;animation:gradientShift 6s ease-in-out infinite;background:linear-gradient(90deg,#e11e1e,#1458e1);background-size:200% 200%;border-radius:8px;box-shadow:0 2px 6px rgba(0,0,0,.1);color:#fff;display:flex;justify-content:space-between;padding:24px}@keyframes gradientShift{0%{background-position:0 50%}50%{background-position:100% 50%}to{background-position:0 50%}}#mydd-admin-card-pro-title{color:#fff;font-size:2em;font-weight:700;line-height:120%;margin:0}.mydd-admin-card-pro__content{display:flex;flex-direction:column;gap:6px}#mydd-admin-card-pro-description{color:#f8f8f8;font-size:1em;margin:0}#mydd-admin-card-pro-link{background:#fff;border-radius:8px;color:#000d4a;flex-shrink:0;font-weight:600;padding:12px 24px;text-decoration:none}.mydd-maps-promo-box{background:#fff;border:1px solid oklch(92.8% .006 264.531);border-radius:16px;display:flex;gap:32px;margin:24px 0;max-width:950px;padding:16px 24px;width:95%}.mydd-maps-promo-box__content{display:flex;flex-direction:column;justify-content:center}.mydd-maps-promo-box__description,.mydd-maps-promo-box__list-item{font-size:1.1em;margin:0}.mydd-maps-promo-box__list-item{align-items:center;display:inline-flex;gap:4px} -
myd-delivery/tags/1.3.2/includes/admin/class-settings.php
r3385537 r3389122 298 298 ], 299 299 ], 300 [ 301 'name' => 'myddelivery_install_id', 302 'option_group' => self::CONFIG_GROUP, 303 'args' => [ 304 'sanitize_callback' => 'sanitize_text_field', 305 ], 306 ], 307 [ 308 'name' => 'myddelivery_install_started_at', 309 'option_group' => self::CONFIG_GROUP, 310 'args' => [], 311 ], 312 [ 313 'name' => 'myddelivery_first_plugin_version', 314 'option_group' => self::CONFIG_GROUP, 315 'args' => [ 316 'sanitize_callback' => 'sanitize_text_field', 317 ], 318 ], 319 [ 320 'name' => 'myddelivery_telemetry_snapshots', 321 'option_group' => self::CONFIG_GROUP, 322 'args' => [ 323 'default' => [], 324 ], 325 ], 300 326 ]; 301 327 } -
myd-delivery/tags/1.3.2/includes/class-plugin.php
r3385537 r3389122 17 17 use Myddelivery\Includes\Ajax\Place_Payment; 18 18 19 use Includes\MercadoPago\Mercado_Pago; 19 use Myddelivery\Includes\MercadoPago\Mercado_Pago; 20 21 use Myddelivery\Includes\Telemetry\Telemetry_Fallback; 22 use Myddelivery\Includes\Telemetry\Snapshots; 20 23 21 24 if ( ! defined( 'ABSPATH' ) ) { … … 163 166 $custom_fields_form_controller->register_hooks(); 164 167 new Myd_Custom_Fields( $this->custom_fields_schema->all() ); 165 } 168 169 Telemetry_Fallback::ensure_defaults(); 170 } 171 172 Snapshots::set_collect_snapshots(); 166 173 167 174 do_action( 'myddelivery_after_init' ); … … 179 186 include_once MYDDELIVERY_PATH . 'includes/admin/abstract-class-admin-settings.php'; 180 187 include_once MYDDELIVERY_PATH . 'includes/admin/class-settings.php'; 188 include_once MYDDELIVERY_PATH . 'includes/telemetry/class-telemetry-fallback.php'; 181 189 } 182 190 … … 217 225 include_once MYDDELIVERY_PATH . 'includes/mercado-pago/bootstrap.php'; 218 226 include_once MYDDELIVERY_PATH . 'includes/mercado-pago/class-mercado-pago.php'; 227 include_once MYDDELIVERY_PATH . 'includes/telemetry/class-snapshots.php'; 219 228 } 220 229 … … 340 349 */ 341 350 public function deactivation() { 351 $ts = \wp_next_scheduled( 'myddelivery_collect_snapshot' ); 352 if ( $ts ) { 353 \wp_unschedule_event( $ts, 'myddelivery_collect_snapshot' ); 354 } 355 342 356 flush_rewrite_rules(); 343 357 } -
myd-delivery/tags/1.3.2/includes/mercado-pago/bootstrap.php
r3385867 r3389122 1 1 <?php 2 2 3 namespace Includes\MercadoPago;4 5 use Includes\MercadoPago\Mercado_Pago;3 namespace Myddelivery\Includes\MercadoPago; 4 5 use Myddelivery\Includes\MercadoPago\Mercado_Pago; 6 6 7 7 if ( ! defined( 'ABSPATH' ) ) { … … 17 17 [ 18 18 'methods' => 'POST', 19 'callback' => ' Includes\MercadoPago\myd_mp_card',19 'callback' => 'Myddelivery\Includes\MercadoPago\myd_mp_card', 20 20 'permission_callback' => '__return_true' 21 21 ] … … 27 27 [ 28 28 'methods' => 'POST', 29 'callback' => ' Includes\MercadoPago\myd_mp_notification',29 'callback' => 'Myddelivery\Includes\MercadoPago\myd_mp_notification', 30 30 'permission_callback' => '__return_true' 31 31 ] … … 37 37 [ 38 38 'methods' => 'GET', 39 'callback' => ' Includes\MercadoPago\myd_mp_order_status',39 'callback' => 'Myddelivery\Includes\MercadoPago\myd_mp_order_status', 40 40 'permission_callback' => '__return_true', 41 41 ] -
myd-delivery/tags/1.3.2/includes/mercado-pago/class-mercado-pago.php
r3385537 r3389122 1 1 <?php 2 2 3 namespace Includes\MercadoPago;3 namespace Myddelivery\Includes\MercadoPago; 4 4 5 5 if ( ! defined( 'ABSPATH' ) ) { -
myd-delivery/tags/1.3.2/myd-delivery.php
r3385867 r3389122 6 6 * Author: EduardoVillao.me 7 7 * Author URI: https://eduardovillao.me/ 8 * Version: 1.3. 18 * Version: 1.3.2 9 9 * Requires PHP: 7.4 10 10 * Requires at least: 5.5 … … 26 26 define( 'MYDDELIVERY_BASENAME', plugin_basename( __FILE__ ) ); 27 27 define( 'MYDDELIVERY_DIRNAME', plugin_basename( __DIR__ ) ); 28 define( 'MYDDELIVERY_VERSION', '1.3. 1' );28 define( 'MYDDELIVERY_VERSION', '1.3.2' ); 29 29 define( 'MYDDELIVERY_MIN_PHP_VERSION', '7.4' ); 30 30 define( 'MYDDELIVERY_MIN_WP_VERSION', '5.5' ); -
myd-delivery/tags/1.3.2/src/css/admin/admin-style.css
r3379132 r3389122 589 589 text-decoration: none; 590 590 } 591 592 .mydd-maps-promo-box { 593 background: #fff; 594 border: 1px solid oklch(92.8% 0.006 264.531); 595 border-radius: 16px; 596 display: flex; 597 gap: 32px; 598 max-width: 950px; 599 padding: 16px 24px; 600 width: 95%; 601 margin: 24px 0; 602 } 603 604 .mydd-maps-promo-box__content { 605 display: flex; 606 flex-direction: column; 607 justify-content: center; 608 } 609 610 .mydd-maps-promo-box__description, 611 .mydd-maps-promo-box__list-item { 612 margin: 0; 613 font-size: 1.1em; 614 } 615 616 .mydd-maps-promo-box__list-item { 617 display: inline-flex; 618 align-items: center; 619 gap: 4px; 620 } -
myd-delivery/tags/1.3.2/templates/admin/settings-tabs/delivery/tab-delivery.php
r3379150 r3389122 118 118 </table> 119 119 120 <div class="mydd-maps-promo-box"> 121 <picture> 122 <source 123 srcset="<?php echo esc_url( MYDDELIVERY_URL . 'assets/img/admin/map-animation-1.avif' ); ?>" 124 type="image/avif" 125 > 126 <img 127 src="<?php echo esc_url( MYDDELIVERY_URL . 'assets/img/admin/map-animation-1.webp' ); ?>" 128 alt="<?php esc_attr_e( 'MyD Maps Illustration', 'myd-delivery' ); ?>" 129 width="250px" 130 > 131 </picture> 132 133 <div class="mydd-maps-promo-box__content"> 134 <h2 class="mydd-admin-card__title"> 135 <?php esc_html_e( 'Tired of surprises from the Google Maps API?', 'myd-delivery' ); ?> 136 </h2> 137 138 <p class="mydd-maps-promo-box__description"> 139 <?php esc_html_e( 'With MyD Maps, you keep automatic delivery distance calculations, but with a fixed and predictable price, no unexpected billing.', 'myd-delivery' ); ?> 140 </p> 141 142 <ul> 143 <li class="mydd-maps-promo-box__list-item"> 144 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20" height="20" color="#6a7282" fill="none"><path d="M14.4961 2.00027H9.49609C8.66766 2.00027 7.99609 2.67185 7.99609 3.50027C7.99609 4.3287 8.66766 5.00027 9.49609 5.00027H14.4961C15.3245 5.00027 15.9961 4.3287 15.9961 3.50027C15.9961 2.67185 15.3245 2.00027 14.4961 2.00027Z" stroke="#6a7282" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /><path d="M7.99609 15.0003H11.4247M7.99609 11.0003H15.9961" stroke="#6a7282" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /><path d="M15.9961 3.50027C17.5495 3.54709 18.4761 3.72035 19.1174 4.36164C19.9961 5.24032 19.9961 6.65451 19.9961 9.4829L19.9961 15.9997C19.9961 18.8282 19.9961 20.2424 19.1174 21.1211C18.2387 21.9997 16.8245 21.9997 13.9961 21.9997L9.99608 21.9997C7.16766 21.9997 5.75345 21.9997 4.87477 21.1211C3.9961 20.2424 3.99609 18.8282 3.99609 15.9998L3.9961 9.48296C3.99609 6.65453 3.99609 5.24031 4.87477 4.36163C5.51605 3.72034 6.4426 3.54708 7.99599 3.50027" stroke="#6a7282" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /></svg> <?php esc_html_e( 'Up to 1,000 calculations/month included (~800 orders on average).', 'myd-delivery' ); ?></li> 145 <li class="mydd-maps-promo-box__list-item"> 146 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20" height="20" color="#6a7282" fill="none"><path d="M16 10L17.2265 11.0572C17.7422 11.5016 18 11.7239 18 12C18 12.2761 17.7422 12.4984 17.2265 12.9428L16 14" stroke="#6a7282" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M8 10L6.77346 11.0572C6.25782 11.5016 6 11.7239 6 12C6 12.2761 6.25782 12.4984 6.77346 12.9428L8 14" stroke="#6a7282" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M13 9L11 15" stroke="#6a7282" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z" stroke="#6a7282" stroke-width="1.5"></path></svg> <?php esc_html_e( 'No need to set up integrations or manage Google Maps API keys.', 'myd-delivery' ); ?></li> 147 <li class="mydd-maps-promo-box__list-item"> 148 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20" height="20" color="#6a7282" fill="none"><path d="M20.9427 16.8354C20.2864 12.8866 18.2432 9.94613 16.467 8.219C15.9501 7.71642 15.6917 7.46513 15.1208 7.23257C14.5499 7 14.0592 7 13.0778 7H10.9222C9.94081 7 9.4501 7 8.87922 7.23257C8.30834 7.46513 8.04991 7.71642 7.53304 8.219C5.75682 9.94613 3.71361 12.8866 3.05727 16.8354C2.56893 19.7734 5.27927 22 8.30832 22H15.6917C18.7207 22 21.4311 19.7734 20.9427 16.8354Z" stroke="#6a7282" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M7.25662 4.44287C7.05031 4.14258 6.75128 3.73499 7.36899 3.64205C8.00392 3.54651 8.66321 3.98114 9.30855 3.97221C9.89237 3.96413 10.1898 3.70519 10.5089 3.33548C10.8449 2.94617 11.3652 2 12 2C12.6348 2 13.1551 2.94617 13.4911 3.33548C13.8102 3.70519 14.1076 3.96413 14.6914 3.97221C15.3368 3.98114 15.9961 3.54651 16.631 3.64205C17.2487 3.73499 16.9497 4.14258 16.7434 4.44287L15.8105 5.80064C15.4115 6.38146 15.212 6.67187 14.7944 6.83594C14.3769 7 13.8373 7 12.7582 7H11.2418C10.1627 7 9.6231 7 9.20556 6.83594C8.78802 6.67187 8.5885 6.38146 8.18945 5.80064L7.25662 4.44287Z" stroke="#6a7282" stroke-width="1.5" stroke-linejoin="round"></path><path d="M13.6267 12.9186C13.4105 12.1205 12.3101 11.4003 10.9892 11.9391C9.66829 12.4778 9.45847 14.2113 11.4565 14.3955C12.3595 14.4787 12.9483 14.2989 13.4873 14.8076C14.0264 15.3162 14.1265 16.7308 12.7485 17.112C11.3705 17.4932 10.006 16.8976 9.85742 16.0517M11.8417 10.9927V11.7531M11.8417 17.2293V17.9927" stroke="#6a7282" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg> <?php esc_html_e( 'No hidden costs or extra usage fees.', 'myd-delivery' ); ?></li> 149 </ul> 150 151 <a class="mydd-admin-button myd-cards--margin-top10 mydd-admin-button--lg" style="width: fit-content;" target="_blank" href="https://myddelivery.com/myd-maps/?utm_source=myd-admin-settings&utm_medium=button&utm_campaign=myd-maps-migrate"><?php esc_html_e( 'Migrate to MyD Maps', 'myd-delivery' ); ?></a> 152 </div> 153 </div> 154 120 155 <?php 121 156 foreach ( $shipping_options_details_template as $template_path ) { -
myd-delivery/tags/1.3.2/templates/cart/cart-payment.php
r3385537 r3389122 1 1 <?php 2 2 3 use Includes\MercadoPago\Mercado_Pago;3 use Myddelivery\Includes\MercadoPago\Mercado_Pago; 4 4 5 5 if ( ! defined( 'ABSPATH' ) ) { -
myd-delivery/trunk/README.txt
r3385867 r3389122 5 5 Requires at least: 5.5 6 6 Tested up to: 6.8 7 Stable tag: 1.3. 17 Stable tag: 1.3.2 8 8 Requires PHP: 7.4 9 9 License: GPL-3.0+ … … 76 76 == Changelog == 77 77 78 = 1.3.2 = 79 * Changed: code improvements in Mercado Pago integration. 80 * Changed: code improvements. 81 78 82 = 1.3.1 = 79 83 * Fix: Mercado Pago integration don't load payment methods in some cases. -
myd-delivery/trunk/assets/css/admin/admin-frontend.min.css
r3379132 r3389122 1 .myd-tabs-content{display:none}.myd-tabs-content--active{display:block!important}.regular-text.myd-input-repeater{width:8em}.myd-repeater__row{margin:0 0 5px}.myd-repeater__remove{color:red;cursor:pointer}.myd-license-status-tag{color:#fff;font-size:16px;padding:3px 5px}.myd-license-status--error{background:#c22121}.myd-license-status--success{background:#3b9e64}.myd-license-status--invalid{background:#53727c}.myd-delivery-type-content{display:none;margin-bottom:40px}.myd-options-table{margin-bottom:5px;max-width:900px}.myd-options-table__action{width:6%}.myd-input-full{max-width:100%;width:100%!important}.myd-admin-addons{column-gap:16px;display:grid;grid-template-columns:1fr 1fr 1fr}.myd-admin-addons__badge{background:#1bba4b;border-radius:16px;color:#fff;font-size:12px;padding:4px 8px}.myd-badge-beta{background:#2271b1;border-radius:12px;font-size:12px;padding:2px 8px}.myd-custom-content-page{margin-top:20px;max-width:1200px}.myd-admin-cards{display:grid;grid-gap:16px;margin-top:16px}.myd-card-4columns{grid-template-columns:repeat(4,1fr)}.myd-card-3columns{grid-template-columns:repeat(3,1fr)}.myd-card-2columns{grid-template-columns:repeat(2,1fr)}.myd-card-1columns{grid-template-columns:1fr}.myd-card--20padding{padding:20px!important}.myd-admin-cards__item{background:#fff;border:1px solid oklch(92.8% .006 264.531);border-radius:8px;padding:16px}.myd-cards--flex-centered{align-items:center;display:flex;flex-direction:column;gap:6px;justify-content:center}.myd-cards--margin-top10{margin-top:10px!important}.myd-admin-cards__amount{font-size:2.4em;line-height:1.2em}.myd-admin-cards__description{font-size:1em;margin:0}.myd-admin-cards__title{font-size:1.1em;font-weight:600;margin:0}.myd-cards--price{border-left:8px solid #5cc488}.myd-cards--orders{border-left:8px solid #3498db}.myd-cards--purchased{border-left:8px solid #b1d4ea}.myd-cards--average{border-left:8px solid #b1ccd5}.myd-admin-filter{align-items:center;display:flex}.myd-admin-filter__item{background:#fff;border:1px solid #c3c4c7;border-radius:6px;margin-right:5px;padding:6px 16px;text-decoration:none}.myd-admin-filter--active,.myd-admin-filter__item:hover{background:#2271b1;color:#fff}.myd-admin-license-erro{background:#e3e3e3;padding:5px}.myd-custom-field__image-preview{height:auto;max-width:300px}.myd-admin-hidden{display:none}.myd-repeater-container,.myd-repeater-wrapper{column-gap:10px;display:flex;flex-wrap:wrap;row-gap:18px;width:100%}.myd-repeater-wrapper>.myd-repeater-container{border:1px solid #c3c4c7;border-radius:8px;padding:16px;position:relative}.myd-repeater-wrapper{padding:20px 0 12px}.myd-repeater-row{display:flex;flex-basis:100%;flex-wrap:wrap;row-gap:6px}.myd-repeater-row>input:not([type=checkbox]),.myd-repeater-row>label,.myd-repeater-row>textarea{flex-basis:100%;width:100%}.myd-repeater-row>input[type=checkbox],.myd-repeater-row>input[type=checkbox]:before{align-self:center;height:30px;width:30px}.myd-repeater-row>input[type=checkbox]:before{margin:0}.myd-repeater-row>label{color:#1d2327;font-weight:600;line-height:1.3}.myd-repeater-container--internal{background:#fbfbfb;border:1px solid #dfdfdf;border-radius:4px;padding:12px!important}.myd-input-size-75{flex-basis:75%!important}.myd-input-size-30{flex-basis:30%!important}.myd-input-size-20{flex-basis:20%!important}.myd-input-size-25{flex-basis:25%!important}.myd-input-size-10{flex-basis:10%!important}.myd-repeater-sub-row{flex-basis:100%}details[open] .myd-repeater-summary{padding-bottom:16px}.myd-repeater-summary{align-items:center;cursor:pointer;display:flex;justify-content:space-between}.myd-repeater-summary__action--remove{color:#c22121;cursor:pointer;padding:5px}.myd-repeater-summary__action--remove:hover{opacity:.7}.myd-repeater-summary__title{display:list-item}.myd-repeater-row>.myd-repeater-wrapper{padding:0;row-gap:6px}.myd-repeater-container__remove{align-items:center;background:red;border-radius:100%;color:#fff;cursor:pointer;display:flex;height:24px;justify-content:center;position:absolute;right:-10px;top:-10px;width:24px}.myd-repeater-container__remove:hover{opacity:.8}.myd-chart-70{flex-basis:60%;flex-grow:1;width:60%}.myd-chart-30{flex-basis:30%;width:30%}#myd-map{background:#d5d5d5;height:400px;max-width:900px}#myd-search-address{background:#fff;margin-block-end:1px;max-width:900px}#myd-search-address-autocomplete-input{background-color:#fff;border:0;font-size:16px;padding:8px 14px;text-overflow:ellipsis;width:100%}#myd-search-address-autocomplete-input:focus{border-color:#4d90fe}.order-note{display:flex;flex-direction:column;margin-block-end:8px}.order-note__text{background:#9a9a9a;border-radius:6px;color:#fff;font-weight:300;padding:8px 12px}.order-note--success .order-note__text{background:#0fa56e}.order-note--fail .order-note__text{background:#af3737}.order-note__date{color:#727272;font-size:12px}.myd-addon-image{height:100%;max-width:100%;object-fit:cover;width:100%}.myd-addon-image-wrapper{height:120px}.myd-addon-card{background:#fff;border:1px solid #d3d7d8;border-radius:12px;overflow:hidden}.myd-addon-card__content{display:flex;flex-direction:column;padding:24px;row-gap:12px}.myd-addon-card__content>h3,.myd-addon-card__content>p{margin:0}.myd-addon-card__content>.button-primary{width:fit-content}.toplevel_page_myd-delivery-dashoboard .notice:not(.mydd-notice){display:none}.notice.mydd-notice{background:oklch(93.6% .032 17.717);border:1px solid oklch(88.5% .062 18.334);border-radius:8px;color:oklch(39.6% .141 25.723);font-weight:300}body.myd-delivery_page_myd-delivery-settings,body.toplevel_page_myd-delivery-dashoboard{background-color:oklch(98.5% .002 247.839)}.mydd-admin-button{background:oklch(54.6% .245 262.881);border-radius:8px;color:#fff;padding:4px 12px;text-decoration:none;transition:all .4s ease}.mydd-admin-button:hover{background:oklch(48.8% .243 264.376);color:oklch(93.2% .032 255.585)}.mydd-admin-card{background:#fff;border:1px solid oklch(92.8% .006 264.531);border-radius:8px;display:flex;flex-direction:column;gap:12px;padding:24px}.mydd-admin-card__title{color:oklch(13% .028 261.692);font-size:1.5em;font-weight:600;margin:0 0 16px}.mydd-admin-card__content{align-items:center;display:flex;gap:12px}.mydd-admin-card__content>.mydd-admin-button,.mydd-admin-card__content>svg{flex-shrink:0}.mydd-admin-card__content>.mydd-admin-card__text{display:flex;flex-direction:column;flex-grow:1;gap:2px}#mydd-only-pro-tag{align-items:center;background:red;border-radius:200px;color:#fff;display:inline-flex;font-size:.8em;font-weight:500;gap:4px;padding:4px 10px;text-decoration:none;transition:all .4s ease}#mydd-only-pro-tag:hover{background:#de0808}#mydd-admin-support-ilustration{max-width:400px;width:100%}.mydd-admin-card__support-description{font-size:1em;margin:0}.mydd-admin-card__body{align-items:center;display:flex;flex-direction:column;gap:12px;height:100%;justify-content:center}.mydd-admin-card--full{grid-column:1/3}#mydd-admin-card-pro{align-items:center;animation:gradientShift 6s ease-in-out infinite;background:linear-gradient(90deg,#e11e1e,#1458e1);background-size:200% 200%;border-radius:8px;box-shadow:0 2px 6px rgba(0,0,0,.1);color:#fff;display:flex;justify-content:space-between;padding:24px}@keyframes gradientShift{0%{background-position:0 50%}50%{background-position:100% 50%}to{background-position:0 50%}}#mydd-admin-card-pro-title{color:#fff;font-size:2em;font-weight:700;line-height:120%;margin:0}.mydd-admin-card-pro__content{display:flex;flex-direction:column;gap:6px}#mydd-admin-card-pro-description{color:#f8f8f8;font-size:1em;margin:0}#mydd-admin-card-pro-link{background:#fff;border-radius:8px;color:#000d4a;flex-shrink:0;font-weight:600;padding:12px 24px;text-decoration:none} 1 .myd-tabs-content{display:none}.myd-tabs-content--active{display:block!important}.regular-text.myd-input-repeater{width:8em}.myd-repeater__row{margin:0 0 5px}.myd-repeater__remove{color:red;cursor:pointer}.myd-license-status-tag{color:#fff;font-size:16px;padding:3px 5px}.myd-license-status--error{background:#c22121}.myd-license-status--success{background:#3b9e64}.myd-license-status--invalid{background:#53727c}.myd-delivery-type-content{display:none;margin-bottom:40px}.myd-options-table{margin-bottom:5px;max-width:900px}.myd-options-table__action{width:6%}.myd-input-full{max-width:100%;width:100%!important}.myd-admin-addons{column-gap:16px;display:grid;grid-template-columns:1fr 1fr 1fr}.myd-admin-addons__badge{background:#1bba4b;border-radius:16px;color:#fff;font-size:12px;padding:4px 8px}.myd-badge-beta{background:#2271b1;border-radius:12px;font-size:12px;padding:2px 8px}.myd-custom-content-page{margin-top:20px;max-width:1200px}.myd-admin-cards{display:grid;grid-gap:16px;margin-top:16px}.myd-card-4columns{grid-template-columns:repeat(4,1fr)}.myd-card-3columns{grid-template-columns:repeat(3,1fr)}.myd-card-2columns{grid-template-columns:repeat(2,1fr)}.myd-card-1columns{grid-template-columns:1fr}.myd-card--20padding{padding:20px!important}.myd-admin-cards__item{background:#fff;border:1px solid oklch(92.8% .006 264.531);border-radius:8px;padding:16px}.myd-cards--flex-centered{align-items:center;display:flex;flex-direction:column;gap:6px;justify-content:center}.myd-cards--margin-top10{margin-top:10px!important}.myd-admin-cards__amount{font-size:2.4em;line-height:1.2em}.myd-admin-cards__description{font-size:1em;margin:0}.myd-admin-cards__title{font-size:1.1em;font-weight:600;margin:0}.myd-cards--price{border-left:8px solid #5cc488}.myd-cards--orders{border-left:8px solid #3498db}.myd-cards--purchased{border-left:8px solid #b1d4ea}.myd-cards--average{border-left:8px solid #b1ccd5}.myd-admin-filter{align-items:center;display:flex}.myd-admin-filter__item{background:#fff;border:1px solid #c3c4c7;border-radius:6px;margin-right:5px;padding:6px 16px;text-decoration:none}.myd-admin-filter--active,.myd-admin-filter__item:hover{background:#2271b1;color:#fff}.myd-admin-license-erro{background:#e3e3e3;padding:5px}.myd-custom-field__image-preview{height:auto;max-width:300px}.myd-admin-hidden{display:none}.myd-repeater-container,.myd-repeater-wrapper{column-gap:10px;display:flex;flex-wrap:wrap;row-gap:18px;width:100%}.myd-repeater-wrapper>.myd-repeater-container{border:1px solid #c3c4c7;border-radius:8px;padding:16px;position:relative}.myd-repeater-wrapper{padding:20px 0 12px}.myd-repeater-row{display:flex;flex-basis:100%;flex-wrap:wrap;row-gap:6px}.myd-repeater-row>input:not([type=checkbox]),.myd-repeater-row>label,.myd-repeater-row>textarea{flex-basis:100%;width:100%}.myd-repeater-row>input[type=checkbox],.myd-repeater-row>input[type=checkbox]:before{align-self:center;height:30px;width:30px}.myd-repeater-row>input[type=checkbox]:before{margin:0}.myd-repeater-row>label{color:#1d2327;font-weight:600;line-height:1.3}.myd-repeater-container--internal{background:#fbfbfb;border:1px solid #dfdfdf;border-radius:4px;padding:12px!important}.myd-input-size-75{flex-basis:75%!important}.myd-input-size-30{flex-basis:30%!important}.myd-input-size-20{flex-basis:20%!important}.myd-input-size-25{flex-basis:25%!important}.myd-input-size-10{flex-basis:10%!important}.myd-repeater-sub-row{flex-basis:100%}details[open] .myd-repeater-summary{padding-bottom:16px}.myd-repeater-summary{align-items:center;cursor:pointer;display:flex;justify-content:space-between}.myd-repeater-summary__action--remove{color:#c22121;cursor:pointer;padding:5px}.myd-repeater-summary__action--remove:hover{opacity:.7}.myd-repeater-summary__title{display:list-item}.myd-repeater-row>.myd-repeater-wrapper{padding:0;row-gap:6px}.myd-repeater-container__remove{align-items:center;background:red;border-radius:100%;color:#fff;cursor:pointer;display:flex;height:24px;justify-content:center;position:absolute;right:-10px;top:-10px;width:24px}.myd-repeater-container__remove:hover{opacity:.8}.myd-chart-70{flex-basis:60%;flex-grow:1;width:60%}.myd-chart-30{flex-basis:30%;width:30%}#myd-map{background:#d5d5d5;height:400px;max-width:900px}#myd-search-address{background:#fff;margin-block-end:1px;max-width:900px}#myd-search-address-autocomplete-input{background-color:#fff;border:0;font-size:16px;padding:8px 14px;text-overflow:ellipsis;width:100%}#myd-search-address-autocomplete-input:focus{border-color:#4d90fe}.order-note{display:flex;flex-direction:column;margin-block-end:8px}.order-note__text{background:#9a9a9a;border-radius:6px;color:#fff;font-weight:300;padding:8px 12px}.order-note--success .order-note__text{background:#0fa56e}.order-note--fail .order-note__text{background:#af3737}.order-note__date{color:#727272;font-size:12px}.myd-addon-image{height:100%;max-width:100%;object-fit:cover;width:100%}.myd-addon-image-wrapper{height:120px}.myd-addon-card{background:#fff;border:1px solid #d3d7d8;border-radius:12px;overflow:hidden}.myd-addon-card__content{display:flex;flex-direction:column;padding:24px;row-gap:12px}.myd-addon-card__content>h3,.myd-addon-card__content>p{margin:0}.myd-addon-card__content>.button-primary{width:fit-content}.toplevel_page_myd-delivery-dashoboard .notice:not(.mydd-notice){display:none}.notice.mydd-notice{background:oklch(93.6% .032 17.717);border:1px solid oklch(88.5% .062 18.334);border-radius:8px;color:oklch(39.6% .141 25.723);font-weight:300}body.myd-delivery_page_myd-delivery-settings,body.toplevel_page_myd-delivery-dashoboard{background-color:oklch(98.5% .002 247.839)}.mydd-admin-button{background:oklch(54.6% .245 262.881);border-radius:8px;color:#fff;padding:4px 12px;text-decoration:none;transition:all .4s ease}.mydd-admin-button:hover{background:oklch(48.8% .243 264.376);color:oklch(93.2% .032 255.585)}.mydd-admin-card{background:#fff;border:1px solid oklch(92.8% .006 264.531);border-radius:8px;display:flex;flex-direction:column;gap:12px;padding:24px}.mydd-admin-card__title{color:oklch(13% .028 261.692);font-size:1.5em;font-weight:600;margin:0 0 16px}.mydd-admin-card__content{align-items:center;display:flex;gap:12px}.mydd-admin-card__content>.mydd-admin-button,.mydd-admin-card__content>svg{flex-shrink:0}.mydd-admin-card__content>.mydd-admin-card__text{display:flex;flex-direction:column;flex-grow:1;gap:2px}#mydd-only-pro-tag{align-items:center;background:red;border-radius:200px;color:#fff;display:inline-flex;font-size:.8em;font-weight:500;gap:4px;padding:4px 10px;text-decoration:none;transition:all .4s ease}#mydd-only-pro-tag:hover{background:#de0808}#mydd-admin-support-ilustration{max-width:400px;width:100%}.mydd-admin-card__support-description{font-size:1em;margin:0}.mydd-admin-card__body{align-items:center;display:flex;flex-direction:column;gap:12px;height:100%;justify-content:center}.mydd-admin-card--full{grid-column:1/3}#mydd-admin-card-pro{align-items:center;animation:gradientShift 6s ease-in-out infinite;background:linear-gradient(90deg,#e11e1e,#1458e1);background-size:200% 200%;border-radius:8px;box-shadow:0 2px 6px rgba(0,0,0,.1);color:#fff;display:flex;justify-content:space-between;padding:24px}@keyframes gradientShift{0%{background-position:0 50%}50%{background-position:100% 50%}to{background-position:0 50%}}#mydd-admin-card-pro-title{color:#fff;font-size:2em;font-weight:700;line-height:120%;margin:0}.mydd-admin-card-pro__content{display:flex;flex-direction:column;gap:6px}#mydd-admin-card-pro-description{color:#f8f8f8;font-size:1em;margin:0}#mydd-admin-card-pro-link{background:#fff;border-radius:8px;color:#000d4a;flex-shrink:0;font-weight:600;padding:12px 24px;text-decoration:none}.mydd-maps-promo-box{background:#fff;border:1px solid oklch(92.8% .006 264.531);border-radius:16px;display:flex;gap:32px;margin:24px 0;max-width:950px;padding:16px 24px;width:95%}.mydd-maps-promo-box__content{display:flex;flex-direction:column;justify-content:center}.mydd-maps-promo-box__description,.mydd-maps-promo-box__list-item{font-size:1.1em;margin:0}.mydd-maps-promo-box__list-item{align-items:center;display:inline-flex;gap:4px} -
myd-delivery/trunk/includes/admin/class-settings.php
r3385537 r3389122 298 298 ], 299 299 ], 300 [ 301 'name' => 'myddelivery_install_id', 302 'option_group' => self::CONFIG_GROUP, 303 'args' => [ 304 'sanitize_callback' => 'sanitize_text_field', 305 ], 306 ], 307 [ 308 'name' => 'myddelivery_install_started_at', 309 'option_group' => self::CONFIG_GROUP, 310 'args' => [], 311 ], 312 [ 313 'name' => 'myddelivery_first_plugin_version', 314 'option_group' => self::CONFIG_GROUP, 315 'args' => [ 316 'sanitize_callback' => 'sanitize_text_field', 317 ], 318 ], 319 [ 320 'name' => 'myddelivery_telemetry_snapshots', 321 'option_group' => self::CONFIG_GROUP, 322 'args' => [ 323 'default' => [], 324 ], 325 ], 300 326 ]; 301 327 } -
myd-delivery/trunk/includes/class-plugin.php
r3385537 r3389122 17 17 use Myddelivery\Includes\Ajax\Place_Payment; 18 18 19 use Includes\MercadoPago\Mercado_Pago; 19 use Myddelivery\Includes\MercadoPago\Mercado_Pago; 20 21 use Myddelivery\Includes\Telemetry\Telemetry_Fallback; 22 use Myddelivery\Includes\Telemetry\Snapshots; 20 23 21 24 if ( ! defined( 'ABSPATH' ) ) { … … 163 166 $custom_fields_form_controller->register_hooks(); 164 167 new Myd_Custom_Fields( $this->custom_fields_schema->all() ); 165 } 168 169 Telemetry_Fallback::ensure_defaults(); 170 } 171 172 Snapshots::set_collect_snapshots(); 166 173 167 174 do_action( 'myddelivery_after_init' ); … … 179 186 include_once MYDDELIVERY_PATH . 'includes/admin/abstract-class-admin-settings.php'; 180 187 include_once MYDDELIVERY_PATH . 'includes/admin/class-settings.php'; 188 include_once MYDDELIVERY_PATH . 'includes/telemetry/class-telemetry-fallback.php'; 181 189 } 182 190 … … 217 225 include_once MYDDELIVERY_PATH . 'includes/mercado-pago/bootstrap.php'; 218 226 include_once MYDDELIVERY_PATH . 'includes/mercado-pago/class-mercado-pago.php'; 227 include_once MYDDELIVERY_PATH . 'includes/telemetry/class-snapshots.php'; 219 228 } 220 229 … … 340 349 */ 341 350 public function deactivation() { 351 $ts = \wp_next_scheduled( 'myddelivery_collect_snapshot' ); 352 if ( $ts ) { 353 \wp_unschedule_event( $ts, 'myddelivery_collect_snapshot' ); 354 } 355 342 356 flush_rewrite_rules(); 343 357 } -
myd-delivery/trunk/includes/mercado-pago/bootstrap.php
r3385867 r3389122 1 1 <?php 2 2 3 namespace Includes\MercadoPago;4 5 use Includes\MercadoPago\Mercado_Pago;3 namespace Myddelivery\Includes\MercadoPago; 4 5 use Myddelivery\Includes\MercadoPago\Mercado_Pago; 6 6 7 7 if ( ! defined( 'ABSPATH' ) ) { … … 17 17 [ 18 18 'methods' => 'POST', 19 'callback' => ' Includes\MercadoPago\myd_mp_card',19 'callback' => 'Myddelivery\Includes\MercadoPago\myd_mp_card', 20 20 'permission_callback' => '__return_true' 21 21 ] … … 27 27 [ 28 28 'methods' => 'POST', 29 'callback' => ' Includes\MercadoPago\myd_mp_notification',29 'callback' => 'Myddelivery\Includes\MercadoPago\myd_mp_notification', 30 30 'permission_callback' => '__return_true' 31 31 ] … … 37 37 [ 38 38 'methods' => 'GET', 39 'callback' => ' Includes\MercadoPago\myd_mp_order_status',39 'callback' => 'Myddelivery\Includes\MercadoPago\myd_mp_order_status', 40 40 'permission_callback' => '__return_true', 41 41 ] -
myd-delivery/trunk/includes/mercado-pago/class-mercado-pago.php
r3385537 r3389122 1 1 <?php 2 2 3 namespace Includes\MercadoPago;3 namespace Myddelivery\Includes\MercadoPago; 4 4 5 5 if ( ! defined( 'ABSPATH' ) ) { -
myd-delivery/trunk/myd-delivery.php
r3385867 r3389122 6 6 * Author: EduardoVillao.me 7 7 * Author URI: https://eduardovillao.me/ 8 * Version: 1.3. 18 * Version: 1.3.2 9 9 * Requires PHP: 7.4 10 10 * Requires at least: 5.5 … … 26 26 define( 'MYDDELIVERY_BASENAME', plugin_basename( __FILE__ ) ); 27 27 define( 'MYDDELIVERY_DIRNAME', plugin_basename( __DIR__ ) ); 28 define( 'MYDDELIVERY_VERSION', '1.3. 1' );28 define( 'MYDDELIVERY_VERSION', '1.3.2' ); 29 29 define( 'MYDDELIVERY_MIN_PHP_VERSION', '7.4' ); 30 30 define( 'MYDDELIVERY_MIN_WP_VERSION', '5.5' ); -
myd-delivery/trunk/src/css/admin/admin-style.css
r3379132 r3389122 589 589 text-decoration: none; 590 590 } 591 592 .mydd-maps-promo-box { 593 background: #fff; 594 border: 1px solid oklch(92.8% 0.006 264.531); 595 border-radius: 16px; 596 display: flex; 597 gap: 32px; 598 max-width: 950px; 599 padding: 16px 24px; 600 width: 95%; 601 margin: 24px 0; 602 } 603 604 .mydd-maps-promo-box__content { 605 display: flex; 606 flex-direction: column; 607 justify-content: center; 608 } 609 610 .mydd-maps-promo-box__description, 611 .mydd-maps-promo-box__list-item { 612 margin: 0; 613 font-size: 1.1em; 614 } 615 616 .mydd-maps-promo-box__list-item { 617 display: inline-flex; 618 align-items: center; 619 gap: 4px; 620 } -
myd-delivery/trunk/templates/admin/settings-tabs/delivery/tab-delivery.php
r3379150 r3389122 118 118 </table> 119 119 120 <div class="mydd-maps-promo-box"> 121 <picture> 122 <source 123 srcset="<?php echo esc_url( MYDDELIVERY_URL . 'assets/img/admin/map-animation-1.avif' ); ?>" 124 type="image/avif" 125 > 126 <img 127 src="<?php echo esc_url( MYDDELIVERY_URL . 'assets/img/admin/map-animation-1.webp' ); ?>" 128 alt="<?php esc_attr_e( 'MyD Maps Illustration', 'myd-delivery' ); ?>" 129 width="250px" 130 > 131 </picture> 132 133 <div class="mydd-maps-promo-box__content"> 134 <h2 class="mydd-admin-card__title"> 135 <?php esc_html_e( 'Tired of surprises from the Google Maps API?', 'myd-delivery' ); ?> 136 </h2> 137 138 <p class="mydd-maps-promo-box__description"> 139 <?php esc_html_e( 'With MyD Maps, you keep automatic delivery distance calculations, but with a fixed and predictable price, no unexpected billing.', 'myd-delivery' ); ?> 140 </p> 141 142 <ul> 143 <li class="mydd-maps-promo-box__list-item"> 144 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20" height="20" color="#6a7282" fill="none"><path d="M14.4961 2.00027H9.49609C8.66766 2.00027 7.99609 2.67185 7.99609 3.50027C7.99609 4.3287 8.66766 5.00027 9.49609 5.00027H14.4961C15.3245 5.00027 15.9961 4.3287 15.9961 3.50027C15.9961 2.67185 15.3245 2.00027 14.4961 2.00027Z" stroke="#6a7282" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /><path d="M7.99609 15.0003H11.4247M7.99609 11.0003H15.9961" stroke="#6a7282" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /><path d="M15.9961 3.50027C17.5495 3.54709 18.4761 3.72035 19.1174 4.36164C19.9961 5.24032 19.9961 6.65451 19.9961 9.4829L19.9961 15.9997C19.9961 18.8282 19.9961 20.2424 19.1174 21.1211C18.2387 21.9997 16.8245 21.9997 13.9961 21.9997L9.99608 21.9997C7.16766 21.9997 5.75345 21.9997 4.87477 21.1211C3.9961 20.2424 3.99609 18.8282 3.99609 15.9998L3.9961 9.48296C3.99609 6.65453 3.99609 5.24031 4.87477 4.36163C5.51605 3.72034 6.4426 3.54708 7.99599 3.50027" stroke="#6a7282" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /></svg> <?php esc_html_e( 'Up to 1,000 calculations/month included (~800 orders on average).', 'myd-delivery' ); ?></li> 145 <li class="mydd-maps-promo-box__list-item"> 146 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20" height="20" color="#6a7282" fill="none"><path d="M16 10L17.2265 11.0572C17.7422 11.5016 18 11.7239 18 12C18 12.2761 17.7422 12.4984 17.2265 12.9428L16 14" stroke="#6a7282" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M8 10L6.77346 11.0572C6.25782 11.5016 6 11.7239 6 12C6 12.2761 6.25782 12.4984 6.77346 12.9428L8 14" stroke="#6a7282" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M13 9L11 15" stroke="#6a7282" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z" stroke="#6a7282" stroke-width="1.5"></path></svg> <?php esc_html_e( 'No need to set up integrations or manage Google Maps API keys.', 'myd-delivery' ); ?></li> 147 <li class="mydd-maps-promo-box__list-item"> 148 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20" height="20" color="#6a7282" fill="none"><path d="M20.9427 16.8354C20.2864 12.8866 18.2432 9.94613 16.467 8.219C15.9501 7.71642 15.6917 7.46513 15.1208 7.23257C14.5499 7 14.0592 7 13.0778 7H10.9222C9.94081 7 9.4501 7 8.87922 7.23257C8.30834 7.46513 8.04991 7.71642 7.53304 8.219C5.75682 9.94613 3.71361 12.8866 3.05727 16.8354C2.56893 19.7734 5.27927 22 8.30832 22H15.6917C18.7207 22 21.4311 19.7734 20.9427 16.8354Z" stroke="#6a7282" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M7.25662 4.44287C7.05031 4.14258 6.75128 3.73499 7.36899 3.64205C8.00392 3.54651 8.66321 3.98114 9.30855 3.97221C9.89237 3.96413 10.1898 3.70519 10.5089 3.33548C10.8449 2.94617 11.3652 2 12 2C12.6348 2 13.1551 2.94617 13.4911 3.33548C13.8102 3.70519 14.1076 3.96413 14.6914 3.97221C15.3368 3.98114 15.9961 3.54651 16.631 3.64205C17.2487 3.73499 16.9497 4.14258 16.7434 4.44287L15.8105 5.80064C15.4115 6.38146 15.212 6.67187 14.7944 6.83594C14.3769 7 13.8373 7 12.7582 7H11.2418C10.1627 7 9.6231 7 9.20556 6.83594C8.78802 6.67187 8.5885 6.38146 8.18945 5.80064L7.25662 4.44287Z" stroke="#6a7282" stroke-width="1.5" stroke-linejoin="round"></path><path d="M13.6267 12.9186C13.4105 12.1205 12.3101 11.4003 10.9892 11.9391C9.66829 12.4778 9.45847 14.2113 11.4565 14.3955C12.3595 14.4787 12.9483 14.2989 13.4873 14.8076C14.0264 15.3162 14.1265 16.7308 12.7485 17.112C11.3705 17.4932 10.006 16.8976 9.85742 16.0517M11.8417 10.9927V11.7531M11.8417 17.2293V17.9927" stroke="#6a7282" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg> <?php esc_html_e( 'No hidden costs or extra usage fees.', 'myd-delivery' ); ?></li> 149 </ul> 150 151 <a class="mydd-admin-button myd-cards--margin-top10 mydd-admin-button--lg" style="width: fit-content;" target="_blank" href="https://myddelivery.com/myd-maps/?utm_source=myd-admin-settings&utm_medium=button&utm_campaign=myd-maps-migrate"><?php esc_html_e( 'Migrate to MyD Maps', 'myd-delivery' ); ?></a> 152 </div> 153 </div> 154 120 155 <?php 121 156 foreach ( $shipping_options_details_template as $template_path ) { -
myd-delivery/trunk/templates/cart/cart-payment.php
r3385537 r3389122 1 1 <?php 2 2 3 use Includes\MercadoPago\Mercado_Pago;3 use Myddelivery\Includes\MercadoPago\Mercado_Pago; 4 4 5 5 if ( ! defined( 'ABSPATH' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.