Changeset 3460329
- Timestamp:
- 02/12/2026 08:40:27 PM (8 days ago)
- Location:
- woo-order-on-whatsapp
- Files:
-
- 78 added
- 10 edited
- 1 copied
-
tags/2.9 (copied) (copied from woo-order-on-whatsapp/trunk)
-
tags/2.9/README.txt (modified) (2 diffs)
-
tags/2.9/assets/css/admin/admin-style.min.css (modified) (1 diff)
-
tags/2.9/composer.json (added)
-
tags/2.9/composer.lock (added)
-
tags/2.9/includes/class-admin.php (modified) (1 diff)
-
tags/2.9/src/css/admin/admin-style.css (modified) (4 diffs)
-
tags/2.9/templates/admin/dashboard.php (added)
-
tags/2.9/vendor (added)
-
tags/2.9/vendor/autoload.php (added)
-
tags/2.9/vendor/composer (added)
-
tags/2.9/vendor/composer/ClassLoader.php (added)
-
tags/2.9/vendor/composer/InstalledVersions.php (added)
-
tags/2.9/vendor/composer/autoload_classmap.php (added)
-
tags/2.9/vendor/composer/autoload_namespaces.php (added)
-
tags/2.9/vendor/composer/autoload_psr4.php (added)
-
tags/2.9/vendor/composer/autoload_real.php (added)
-
tags/2.9/vendor/composer/autoload_static.php (added)
-
tags/2.9/vendor/composer/installed.json (added)
-
tags/2.9/vendor/composer/installed.php (added)
-
tags/2.9/vendor/composer/platform_check.php (added)
-
tags/2.9/vendor/eduardovillao (added)
-
tags/2.9/vendor/eduardovillao/wpfeatureloop-sdk (added)
-
tags/2.9/vendor/eduardovillao/wpfeatureloop-sdk/assets (added)
-
tags/2.9/vendor/eduardovillao/wpfeatureloop-sdk/assets/css (added)
-
tags/2.9/vendor/eduardovillao/wpfeatureloop-sdk/assets/css/wpfeatureloop.min.css (added)
-
tags/2.9/vendor/eduardovillao/wpfeatureloop-sdk/assets/js (added)
-
tags/2.9/vendor/eduardovillao/wpfeatureloop-sdk/assets/js/wpfeatureloop.min.js (added)
-
tags/2.9/vendor/eduardovillao/wpfeatureloop-sdk/composer.json (added)
-
tags/2.9/vendor/eduardovillao/wpfeatureloop-sdk/composer.lock (added)
-
tags/2.9/vendor/eduardovillao/wpfeatureloop-sdk/include.php (added)
-
tags/2.9/vendor/eduardovillao/wpfeatureloop-sdk/src (added)
-
tags/2.9/vendor/eduardovillao/wpfeatureloop-sdk/src/Api.php (added)
-
tags/2.9/vendor/eduardovillao/wpfeatureloop-sdk/src/Client.php (added)
-
tags/2.9/vendor/eduardovillao/wpfeatureloop-sdk/src/RestApi.php (added)
-
tags/2.9/vendor/eduardovillao/wpfeatureloop-sdk/src/User.php (added)
-
tags/2.9/vendor/eduardovillao/wpfeatureloop-sdk/src/Widget.php (added)
-
tags/2.9/vendor/eduardovillao/wpfeatureloop-sdk/templates (added)
-
tags/2.9/vendor/eduardovillao/wpfeatureloop-sdk/templates/js-templates.php (added)
-
tags/2.9/vendor/eduardovillao/wpfeatureloop-sdk/templates/modal-comment.php (added)
-
tags/2.9/vendor/eduardovillao/wpfeatureloop-sdk/templates/modal-feature.php (added)
-
tags/2.9/vendor/eduardovillao/wpfeatureloop-sdk/templates/skeleton.php (added)
-
tags/2.9/vendor/eduardovillao/wpfeatureloop-sdk/templates/toast.php (added)
-
tags/2.9/vendor/eduardovillao/wpfeatureloop-sdk/templates/widget-inner.php (added)
-
tags/2.9/woo-order-on-whatsapp.php (modified) (3 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/assets/css/admin/admin-style.min.css (modified) (1 diff)
-
trunk/composer.json (added)
-
trunk/composer.lock (added)
-
trunk/includes/class-admin.php (modified) (1 diff)
-
trunk/src/css/admin/admin-style.css (modified) (4 diffs)
-
trunk/templates/admin/dashboard.php (added)
-
trunk/vendor (added)
-
trunk/vendor/autoload.php (added)
-
trunk/vendor/composer (added)
-
trunk/vendor/composer/ClassLoader.php (added)
-
trunk/vendor/composer/InstalledVersions.php (added)
-
trunk/vendor/composer/autoload_classmap.php (added)
-
trunk/vendor/composer/autoload_namespaces.php (added)
-
trunk/vendor/composer/autoload_psr4.php (added)
-
trunk/vendor/composer/autoload_real.php (added)
-
trunk/vendor/composer/autoload_static.php (added)
-
trunk/vendor/composer/installed.json (added)
-
trunk/vendor/composer/installed.php (added)
-
trunk/vendor/composer/platform_check.php (added)
-
trunk/vendor/eduardovillao (added)
-
trunk/vendor/eduardovillao/wpfeatureloop-sdk (added)
-
trunk/vendor/eduardovillao/wpfeatureloop-sdk/assets (added)
-
trunk/vendor/eduardovillao/wpfeatureloop-sdk/assets/css (added)
-
trunk/vendor/eduardovillao/wpfeatureloop-sdk/assets/css/wpfeatureloop.min.css (added)
-
trunk/vendor/eduardovillao/wpfeatureloop-sdk/assets/js (added)
-
trunk/vendor/eduardovillao/wpfeatureloop-sdk/assets/js/wpfeatureloop.min.js (added)
-
trunk/vendor/eduardovillao/wpfeatureloop-sdk/composer.json (added)
-
trunk/vendor/eduardovillao/wpfeatureloop-sdk/composer.lock (added)
-
trunk/vendor/eduardovillao/wpfeatureloop-sdk/include.php (added)
-
trunk/vendor/eduardovillao/wpfeatureloop-sdk/src (added)
-
trunk/vendor/eduardovillao/wpfeatureloop-sdk/src/Api.php (added)
-
trunk/vendor/eduardovillao/wpfeatureloop-sdk/src/Client.php (added)
-
trunk/vendor/eduardovillao/wpfeatureloop-sdk/src/RestApi.php (added)
-
trunk/vendor/eduardovillao/wpfeatureloop-sdk/src/User.php (added)
-
trunk/vendor/eduardovillao/wpfeatureloop-sdk/src/Widget.php (added)
-
trunk/vendor/eduardovillao/wpfeatureloop-sdk/templates (added)
-
trunk/vendor/eduardovillao/wpfeatureloop-sdk/templates/js-templates.php (added)
-
trunk/vendor/eduardovillao/wpfeatureloop-sdk/templates/modal-comment.php (added)
-
trunk/vendor/eduardovillao/wpfeatureloop-sdk/templates/modal-feature.php (added)
-
trunk/vendor/eduardovillao/wpfeatureloop-sdk/templates/skeleton.php (added)
-
trunk/vendor/eduardovillao/wpfeatureloop-sdk/templates/toast.php (added)
-
trunk/vendor/eduardovillao/wpfeatureloop-sdk/templates/widget-inner.php (added)
-
trunk/woo-order-on-whatsapp.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woo-order-on-whatsapp/tags/2.9/README.txt
r3448782 r3460329 5 5 Requires at least: 5.5 6 6 Tested up to: 6.9 7 Stable tag: 2. 8.17 Stable tag: 2.9 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 71 71 == Changelog == 72 72 73 = 2.9 = 74 * Changed: code improvements. 75 * Added: new Dashboard admin screen. 76 * Changed: compatibility with Pro version. 77 73 78 = 2.8.1 = 74 79 * Added: Telemetry system to improve plugin support and understand usage patterns. -
woo-order-on-whatsapp/tags/2.9/assets/css/admin/admin-style.min.css
r3216723 r3460329 1 .myd-tabs-content {display:none}.myd-tabs-content--active{display:block}.owm-pro-tag{background:red;border-radius:4px;color:#fff;font-size:12px;padding:2px 5px;text-decoration:none;transition:all .3s ease;white-space:nowrap}.owm-pro-tag:hover{background:red;color:#fff;opacity:.8}p.omw-description{color:#7d7d7d!important;font-size:13px!important}.owm-offer-banner__image{border-radius:16px;height:auto;max-width:900px;object-fit:contain;width:100%}.owm-offer-banner__link{display:block;margin-block-start:20px}1 .myd-tabs-content--active{display:block}.owm-pro-tag{background:red;border-radius:4px;color:#fff;font-size:12px;padding:2px 5px;text-decoration:none;transition:all .3s ease;white-space:nowrap}.owm-pro-tag:hover{background:red;color:#fff;opacity:.8}p.omw-description{color:#7d7d7d!important;font-size:13px!important}.owm-offer-banner__image{border-radius:16px;height:auto;max-width:900px;object-fit:contain;width:100%}.owm-offer-banner__link{display:block;margin-block-start:20px}.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}.woo-order-on-whatsapp-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_woo-order-on-whatsapp-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.toplevel_page_woo-order-on-whatsapp-dashoboard,body.woo-order-on-whatsapp_page_woo-order-on-whatsapp-settings{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} -
woo-order-on-whatsapp/tags/2.9/includes/class-admin.php
r3448344 r3460329 175 175 */ 176 176 public function add_admin_page() { 177 178 add_menu_page( 177 \add_menu_page( 179 178 apply_filters( 'omw_admin_page_title', $this->page_title ), 180 179 apply_filters( 'omw_admin_page_name', $this->plugin_name ), 181 'manage_options', 180 'publish_posts', 181 'order-on-mobile-for-woocommerce-dashboard', 182 '', 183 OMW_PLUGN_URL . 'assets/img/whatsapp.webp', 184 56, 185 ); 186 187 \add_submenu_page( 188 'order-on-mobile-for-woocommerce-dashboard', 189 \esc_html__( 'Dashboard', 'woo-order-on-whatsapp' ), 190 \esc_html__( 'Dashboard', 'woo-order-on-whatsapp' ), 191 'publish_posts', 192 'order-on-mobile-for-woocommerce-dashboard', 193 [ $this, 'get_template_dashboard' ], 194 0 195 ); 196 197 \add_submenu_page( 198 'order-on-mobile-for-woocommerce-dashboard', 199 \esc_html__( 'Settings', 'woo-order-on-whatsapp' ), 200 \esc_html__( 'Settings', 'woo-order-on-whatsapp' ), 201 'publish_posts', 182 202 apply_filters( 'omw_admin_page_slug', $this->page_options_slug ), 183 203 [ $this, 'create_admin_page' ], 184 OMW_PLUGN_URL . 'assets/img/whatsapp.webp', 185 56 204 1 186 205 ); 206 } 207 208 public function get_template_dashboard() { 209 $template = apply_filters( 'omw_template_path_dashboard', OMW_PLUGIN_PATH . 'templates/admin/dashboard.php' ); 210 include_once $template; 187 211 } 188 212 -
woo-order-on-whatsapp/tags/2.9/src/css/admin/admin-style.css
r3448344 r3460329 1 .myd-tabs-content {2 display: none;3 }4 5 1 .myd-tabs-content--active { 6 2 display: block; … … 8 4 9 5 .owm-pro-tag { 10 background: red;11 border-radius: 4px;12 padding: 2px 5px;13 color: #fff;14 font-size: 12px;6 background: red; 7 border-radius: 4px; 8 padding: 2px 5px; 9 color: #fff; 10 font-size: 12px; 15 11 text-decoration: none; 16 12 transition: all 0.3s ease; … … 33 29 height: auto; 34 30 max-width: 900px; 35 object-fit: contain;31 object-fit: contain; 36 32 border-radius: 16px; 37 33 } … … 41 37 margin-block-start: 20px; 42 38 } 39 40 .myd-tabs-content { 41 display: none; 42 } 43 44 .myd-tabs-content--active { 45 display: block !important; 46 } 47 48 .regular-text.myd-input-repeater { 49 width: 8em; 50 } 51 52 .myd-repeater__row { 53 margin: 0 0 5px 0; 54 } 55 56 .myd-repeater__remove { 57 cursor: pointer; 58 color: red; 59 } 60 61 .myd-license-status-tag { 62 font-size: 16px; 63 padding: 3px 5px; 64 color: #fff; 65 } 66 67 .myd-license-status--error { 68 background: #c22121; 69 } 70 71 .myd-license-status--success { 72 background: #3b9e64; 73 } 74 75 .myd-license-status--invalid { 76 background: #53727c; 77 } 78 79 .woo-order-on-whatsapp-type-content { 80 display: none; 81 } 82 83 .woo-order-on-whatsapp-type-content { 84 margin-bottom: 40px; 85 } 86 87 .myd-options-table { 88 max-width: 900px; 89 margin-bottom: 5px; 90 } 91 92 .myd-options-table__action { 93 width: 6%; 94 } 95 96 .myd-input-full { 97 width: 100% !important; 98 max-width: 100%; 99 } 100 101 .myd-admin-addons { 102 display: grid; 103 grid-template-columns: 1fr 1fr 1fr; 104 column-gap: 16px; 105 } 106 107 .myd-admin-addons__badge { 108 background: #1bba4b; 109 border-radius: 16px; 110 padding: 4px 8px; 111 color: #fff; 112 font-size: 12px; 113 } 114 115 .myd-badge-beta { 116 background: #2271b1; 117 padding: 2px 8px; 118 border-radius: 12px; 119 font-size: 12px; 120 } 121 122 .myd-custom-content-page { 123 margin-top: 20px; 124 max-width: 1200px; 125 } 126 127 .myd-admin-cards { 128 display: grid; 129 grid-gap: 16px; 130 margin-top: 16px; 131 } 132 133 .myd-card-4columns { 134 grid-template-columns: repeat(4, 1fr); 135 } 136 137 .myd-card-3columns { 138 grid-template-columns: repeat(3, 1fr); 139 } 140 141 .myd-card-2columns { 142 grid-template-columns: repeat(2, 1fr); 143 } 144 145 .myd-card-1columns { 146 grid-template-columns: 1fr; 147 } 148 149 .myd-card--20padding { 150 padding: 20px !important; 151 } 152 153 .myd-admin-cards__item { 154 background: #fff; 155 padding: 16px; 156 border-radius: 8px; 157 border: 1px solid oklch(92.8% 0.006 264.531); 158 } 159 160 .myd-cards--flex-centered { 161 display: flex; 162 flex-direction: column; 163 align-items: center; 164 justify-content: center; 165 gap: 6px; 166 } 167 168 .myd-cards--margin-top10 { 169 margin-top: 10px !important; 170 } 171 172 .myd-admin-cards__amount { 173 font-size: 2.4em; 174 line-height: 1.2em; 175 } 176 177 .myd-admin-cards__description { 178 margin: 0; 179 font-size: 1em; 180 } 181 182 .myd-admin-cards__title { 183 margin: 0; 184 font-size: 1.1em; 185 font-weight: 600; 186 } 187 188 .myd-cards--price { 189 border-left: 8px solid #5cc488; 190 } 191 192 .myd-cards--orders { 193 border-left: 8px solid #3498db; 194 } 195 196 .myd-cards--purchased { 197 border-left: 8px solid #b1d4ea; 198 } 199 200 .myd-cards--average { 201 border-left: 8px solid #b1ccd5; 202 } 203 204 .myd-admin-filter { 205 display: flex; 206 align-items: center; 207 } 208 209 .myd-admin-filter__item { 210 padding: 6px 16px; 211 background: #fff; 212 border: 1px solid #c3c4c7; 213 border-radius: 6px; 214 margin-right: 5px; 215 text-decoration: none; 216 } 217 218 .myd-admin-filter__item:hover, 219 .myd-admin-filter--active { 220 background: #2271b1; 221 color: #fff; 222 } 223 224 .myd-admin-license-erro { 225 padding: 5px; 226 background: #e3e3e3; 227 } 228 229 .myd-custom-field__image-preview { 230 max-width: 300px; 231 height: auto; 232 } 233 234 .myd-admin-hidden { 235 display: none; 236 } 237 238 /** REPEATER **/ 239 .myd-repeater-wrapper, 240 .myd-repeater-container { 241 display: flex; 242 flex-wrap: wrap; 243 row-gap: 18px; 244 column-gap: 10px; 245 width: 100%; 246 } 247 248 .myd-repeater-wrapper > .myd-repeater-container { 249 padding: 16px; 250 border-radius: 8px; 251 border: 1px solid #c3c4c7; 252 position: relative; 253 } 254 255 .myd-repeater-wrapper { 256 padding: 20px 0 12px 0; 257 } 258 259 .myd-repeater-row { 260 display: flex; 261 flex-wrap: wrap; 262 flex-basis: 100%; 263 row-gap: 6px; 264 } 265 266 .myd-repeater-row > label, 267 .myd-repeater-row > input:not([type="checkbox"]), 268 .myd-repeater-row > textarea { 269 flex-basis: 100%; 270 width: 100%; 271 } 272 273 .myd-repeater-row > input[type="checkbox"], 274 .myd-repeater-row > input[type="checkbox"]:before { 275 height: 30px; 276 align-self: center; 277 width: 30px; 278 } 279 280 .myd-repeater-row > input[type="checkbox"]:before { 281 margin: 0; 282 } 283 284 .myd-repeater-row > label { 285 line-height: 1.3; 286 font-weight: 600; 287 color: #1d2327; 288 } 289 290 .myd-repeater-container--internal { 291 background: #fbfbfb; 292 border: 1px solid #dfdfdf; 293 border-radius: 4px; 294 padding: 12px 12px 12px 12px !important; 295 } 296 297 .myd-input-size-75 { 298 flex-basis: 75% !important; 299 } 300 301 .myd-input-size-30 { 302 flex-basis: 30% !important; 303 } 304 305 .myd-input-size-20 { 306 flex-basis: 20% !important; 307 } 308 309 .myd-input-size-25 { 310 flex-basis: 25% !important; 311 } 312 313 .myd-input-size-10 { 314 flex-basis: 10% !important; 315 } 316 317 .myd-repeater-sub-row { 318 flex-basis: 100%; 319 } 320 321 details[open] .myd-repeater-summary { 322 padding-bottom: 16px; 323 } 324 325 .myd-repeater-summary { 326 display: flex; 327 justify-content: space-between; 328 cursor: pointer; 329 align-items: center; 330 } 331 332 .myd-repeater-summary__action--remove { 333 color: #c22121; 334 cursor: pointer; 335 padding: 5px; 336 } 337 338 .myd-repeater-summary__action--remove:hover { 339 opacity: 0.7; 340 } 341 342 .myd-repeater-summary__title { 343 display: list-item; 344 } 345 346 .myd-repeater-row > .myd-repeater-wrapper { 347 padding: 0; 348 row-gap: 6px; 349 } 350 351 .myd-repeater-container__remove { 352 position: absolute; 353 top: -10px; 354 right: -10px; 355 cursor: pointer; 356 background: red; 357 border-radius: 100%; 358 width: 24px; 359 height: 24px; 360 display: flex; 361 justify-content: center; 362 align-items: center; 363 color: #fff; 364 } 365 366 .myd-repeater-container__remove:hover { 367 opacity: 0.8; 368 } 369 370 .myd-chart-70 { 371 width: 60%; 372 flex-basis: 60%; 373 flex-grow: 1; 374 } 375 376 .myd-chart-30 { 377 width: 30%; 378 flex-basis: 30%; 379 } 380 381 /* Delivery Price by distance */ 382 #myd-map { 383 height: 400px; 384 background: #d5d5d5; 385 max-width: 900px; 386 } 387 388 #myd-search-address { 389 background: #fff; 390 margin-block-end: 1px; 391 max-width: 900px; 392 } 393 394 #myd-search-address-autocomplete-input { 395 background-color: #fff; 396 font-size: 16px; 397 padding: 8px 14px; 398 text-overflow: ellipsis; 399 width: 100%; 400 border: 0px; 401 } 402 403 #myd-search-address-autocomplete-input:focus { 404 border-color: #4d90fe; 405 } 406 407 .order-note { 408 display: flex; 409 flex-direction: column; 410 margin-block-end: 8px; 411 } 412 413 .order-note__text { 414 padding: 8px 12px; 415 background: #9a9a9a; 416 border-radius: 6px; 417 color: #fff; 418 font-weight: 300; 419 } 420 421 .order-note--success .order-note__text { 422 background: #0fa56e; 423 } 424 425 .order-note--fail .order-note__text { 426 background: #af3737; 427 } 428 429 .order-note__date { 430 font-size: 12px; 431 color: #727272; 432 } 433 434 .myd-addon-image { 435 max-width: 100%; 436 width: 100%; 437 height: 100%; 438 object-fit: cover; 439 } 440 441 .myd-addon-image-wrapper { 442 height: 120px; 443 } 444 445 .myd-addon-card { 446 border: 1px solid #d3d7d8; 447 border-radius: 12px; 448 background: #fff; 449 overflow: hidden; 450 } 451 452 .myd-addon-card__content { 453 padding: 24px; 454 display: flex; 455 flex-direction: column; 456 row-gap: 12px; 457 } 458 459 .myd-addon-card__content > h3, 460 .myd-addon-card__content > p { 461 margin: 0; 462 } 463 464 .myd-addon-card__content > .button-primary { 465 width: fit-content; 466 } 467 468 .toplevel_page_woo-order-on-whatsapp-dashoboard .notice:not(.mydd-notice) { 469 display: none; 470 } 471 472 .notice.mydd-notice { 473 background: oklch(93.6% 0.032 17.717); 474 border-radius: 8px; 475 color: oklch(39.6% 0.141 25.723); 476 font-weight: 300; 477 border: 1px solid oklch(88.5% 0.062 18.334); 478 } 479 480 body.toplevel_page_woo-order-on-whatsapp-dashoboard, 481 body.woo-order-on-whatsapp_page_woo-order-on-whatsapp-settings { 482 background-color: oklch(98.5% 0.002 247.839); 483 } 484 485 .mydd-admin-button { 486 background: oklch(54.6% 0.245 262.881); 487 transition: all 0.4s ease; 488 padding: 4px 12px; 489 border-radius: 8px; 490 color: #fff; 491 text-decoration: none; 492 } 493 494 .mydd-admin-button:hover { 495 background: oklch(48.8% 0.243 264.376); 496 color: oklch(93.2% 0.032 255.585); 497 } 498 499 .mydd-admin-card { 500 display: flex; 501 flex-direction: column; 502 gap: 12px; 503 background: #fff; 504 border: 1px solid oklch(92.8% 0.006 264.531); 505 border-radius: 8px; 506 padding: 24px; 507 } 508 509 .mydd-admin-card__title { 510 font-size: 1.5em; 511 margin: 0; 512 margin-bottom: 16px; 513 font-weight: 600; 514 color: oklch(13% 0.028 261.692); 515 } 516 517 .mydd-admin-card__content { 518 display: flex; 519 align-items: center; 520 gap: 12px; 521 } 522 523 .mydd-admin-card__content > svg, 524 .mydd-admin-card__content > .mydd-admin-button { 525 flex-shrink: 0; 526 } 527 528 .mydd-admin-card__content > .mydd-admin-card__text { 529 flex-grow: 1; 530 display: flex; 531 flex-direction: column; 532 gap: 2px; 533 } 534 535 #mydd-only-pro-tag { 536 font-size: 0.8em; 537 background: red; 538 padding: 4px 10px; 539 border-radius: 200px; 540 color: #fff; 541 text-decoration: none; 542 font-weight: 500; 543 display: inline-flex; 544 gap: 4px; 545 align-items: center; 546 transition: all 0.4s ease; 547 } 548 549 #mydd-only-pro-tag:hover { 550 background: rgb(222, 8, 8); 551 } 552 553 #mydd-admin-support-ilustration { 554 width: 100%; 555 max-width: 400px; 556 } 557 558 .mydd-admin-card__support-description { 559 margin: 0; 560 font-size: 1em; 561 } 562 563 .mydd-admin-card__body { 564 display: flex; 565 flex-direction: column; 566 gap: 12px; 567 align-items: center; 568 justify-content: center; 569 height: 100%; 570 } 571 572 .mydd-admin-card--full { 573 grid-column: 1/3; 574 } 575 576 #mydd-admin-card-pro { 577 background: linear-gradient(90deg, #e11e1e, #1458e1); 578 background-size: 200% 200%; 579 animation: gradientShift 6s ease-in-out infinite; 580 color: #fff; 581 border-radius: 8px; 582 padding: 24px; 583 display: flex; 584 align-items: center; 585 justify-content: space-between; 586 box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); 587 } 588 589 @keyframes gradientShift { 590 0% { 591 background-position: 0% 50%; 592 } 593 50% { 594 background-position: 100% 50%; 595 } 596 100% { 597 background-position: 0% 50%; 598 } 599 } 600 601 #mydd-admin-card-pro-title { 602 font-size: 2em; 603 margin: 0; 604 font-weight: 700; 605 line-height: 120%; 606 color: #fff; 607 } 608 609 .mydd-admin-card-pro__content { 610 display: flex; 611 flex-direction: column; 612 gap: 6px; 613 } 614 615 #mydd-admin-card-pro-description { 616 margin: 0; 617 font-size: 1em; 618 color: #f8f8f8; 619 } 620 621 #mydd-admin-card-pro-link { 622 flex-shrink: 0; 623 padding: 12px 24px; 624 background: #fff; 625 color: #000d4a; 626 border-radius: 8px; 627 font-weight: 600; 628 text-decoration: none; 629 } 630 631 .mydd-maps-promo-box { 632 background: #fff; 633 border: 1px solid oklch(92.8% 0.006 264.531); 634 border-radius: 16px; 635 display: flex; 636 gap: 32px; 637 max-width: 950px; 638 padding: 16px 24px; 639 width: 95%; 640 margin: 24px 0; 641 } 642 643 .mydd-maps-promo-box__content { 644 display: flex; 645 flex-direction: column; 646 justify-content: center; 647 } 648 649 .mydd-maps-promo-box__description, 650 .mydd-maps-promo-box__list-item { 651 margin: 0; 652 font-size: 1.1em; 653 } 654 655 .mydd-maps-promo-box__list-item { 656 display: inline-flex; 657 align-items: center; 658 gap: 4px; 659 } -
woo-order-on-whatsapp/tags/2.9/woo-order-on-whatsapp.php
r3448767 r3460329 6 6 * Author: EduardoVillao.me 7 7 * Author URI: https://eduardovillao.me/ 8 * Version: 2. 8.18 * Version: 2.9 9 9 * Requires at least: 5.5 10 10 * Requires PHP: 7.4 … … 21 21 define( 'OMW_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); 22 22 define( 'OMW_PLUGN_URL', plugin_dir_url( __FILE__ ) ); 23 define( 'OMW_VERSION', '2. 8.1' );23 define( 'OMW_VERSION', '2.9' ); 24 24 define( 'OMW_PHP_MINIMUM_VERSION', '7.4' ); 25 25 define( 'OMW_WP_MINIMUM_VERSION', '5.5' ); … … 37 37 include_once OMW_PLUGIN_PATH . 'includes/class-omw-plugin.php'; 38 38 OMW_Plugin::instance(); 39 require_once __DIR__ . '/vendor/autoload.php'; 40 \WPFeatureLoop\Client::init('pk_live_783e198c8177013cc256635034cd22ba', 'cmljj016h000004l4i9gn0pkd', ['language' => 'en']); 39 41 } 40 42 -
woo-order-on-whatsapp/trunk/README.txt
r3448782 r3460329 5 5 Requires at least: 5.5 6 6 Tested up to: 6.9 7 Stable tag: 2. 8.17 Stable tag: 2.9 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 71 71 == Changelog == 72 72 73 = 2.9 = 74 * Changed: code improvements. 75 * Added: new Dashboard admin screen. 76 * Changed: compatibility with Pro version. 77 73 78 = 2.8.1 = 74 79 * Added: Telemetry system to improve plugin support and understand usage patterns. -
woo-order-on-whatsapp/trunk/assets/css/admin/admin-style.min.css
r3216723 r3460329 1 .myd-tabs-content {display:none}.myd-tabs-content--active{display:block}.owm-pro-tag{background:red;border-radius:4px;color:#fff;font-size:12px;padding:2px 5px;text-decoration:none;transition:all .3s ease;white-space:nowrap}.owm-pro-tag:hover{background:red;color:#fff;opacity:.8}p.omw-description{color:#7d7d7d!important;font-size:13px!important}.owm-offer-banner__image{border-radius:16px;height:auto;max-width:900px;object-fit:contain;width:100%}.owm-offer-banner__link{display:block;margin-block-start:20px}1 .myd-tabs-content--active{display:block}.owm-pro-tag{background:red;border-radius:4px;color:#fff;font-size:12px;padding:2px 5px;text-decoration:none;transition:all .3s ease;white-space:nowrap}.owm-pro-tag:hover{background:red;color:#fff;opacity:.8}p.omw-description{color:#7d7d7d!important;font-size:13px!important}.owm-offer-banner__image{border-radius:16px;height:auto;max-width:900px;object-fit:contain;width:100%}.owm-offer-banner__link{display:block;margin-block-start:20px}.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}.woo-order-on-whatsapp-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_woo-order-on-whatsapp-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.toplevel_page_woo-order-on-whatsapp-dashoboard,body.woo-order-on-whatsapp_page_woo-order-on-whatsapp-settings{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} -
woo-order-on-whatsapp/trunk/includes/class-admin.php
r3448344 r3460329 175 175 */ 176 176 public function add_admin_page() { 177 178 add_menu_page( 177 \add_menu_page( 179 178 apply_filters( 'omw_admin_page_title', $this->page_title ), 180 179 apply_filters( 'omw_admin_page_name', $this->plugin_name ), 181 'manage_options', 180 'publish_posts', 181 'order-on-mobile-for-woocommerce-dashboard', 182 '', 183 OMW_PLUGN_URL . 'assets/img/whatsapp.webp', 184 56, 185 ); 186 187 \add_submenu_page( 188 'order-on-mobile-for-woocommerce-dashboard', 189 \esc_html__( 'Dashboard', 'woo-order-on-whatsapp' ), 190 \esc_html__( 'Dashboard', 'woo-order-on-whatsapp' ), 191 'publish_posts', 192 'order-on-mobile-for-woocommerce-dashboard', 193 [ $this, 'get_template_dashboard' ], 194 0 195 ); 196 197 \add_submenu_page( 198 'order-on-mobile-for-woocommerce-dashboard', 199 \esc_html__( 'Settings', 'woo-order-on-whatsapp' ), 200 \esc_html__( 'Settings', 'woo-order-on-whatsapp' ), 201 'publish_posts', 182 202 apply_filters( 'omw_admin_page_slug', $this->page_options_slug ), 183 203 [ $this, 'create_admin_page' ], 184 OMW_PLUGN_URL . 'assets/img/whatsapp.webp', 185 56 204 1 186 205 ); 206 } 207 208 public function get_template_dashboard() { 209 $template = apply_filters( 'omw_template_path_dashboard', OMW_PLUGIN_PATH . 'templates/admin/dashboard.php' ); 210 include_once $template; 187 211 } 188 212 -
woo-order-on-whatsapp/trunk/src/css/admin/admin-style.css
r3448344 r3460329 1 .myd-tabs-content {2 display: none;3 }4 5 1 .myd-tabs-content--active { 6 2 display: block; … … 8 4 9 5 .owm-pro-tag { 10 background: red;11 border-radius: 4px;12 padding: 2px 5px;13 color: #fff;14 font-size: 12px;6 background: red; 7 border-radius: 4px; 8 padding: 2px 5px; 9 color: #fff; 10 font-size: 12px; 15 11 text-decoration: none; 16 12 transition: all 0.3s ease; … … 33 29 height: auto; 34 30 max-width: 900px; 35 object-fit: contain;31 object-fit: contain; 36 32 border-radius: 16px; 37 33 } … … 41 37 margin-block-start: 20px; 42 38 } 39 40 .myd-tabs-content { 41 display: none; 42 } 43 44 .myd-tabs-content--active { 45 display: block !important; 46 } 47 48 .regular-text.myd-input-repeater { 49 width: 8em; 50 } 51 52 .myd-repeater__row { 53 margin: 0 0 5px 0; 54 } 55 56 .myd-repeater__remove { 57 cursor: pointer; 58 color: red; 59 } 60 61 .myd-license-status-tag { 62 font-size: 16px; 63 padding: 3px 5px; 64 color: #fff; 65 } 66 67 .myd-license-status--error { 68 background: #c22121; 69 } 70 71 .myd-license-status--success { 72 background: #3b9e64; 73 } 74 75 .myd-license-status--invalid { 76 background: #53727c; 77 } 78 79 .woo-order-on-whatsapp-type-content { 80 display: none; 81 } 82 83 .woo-order-on-whatsapp-type-content { 84 margin-bottom: 40px; 85 } 86 87 .myd-options-table { 88 max-width: 900px; 89 margin-bottom: 5px; 90 } 91 92 .myd-options-table__action { 93 width: 6%; 94 } 95 96 .myd-input-full { 97 width: 100% !important; 98 max-width: 100%; 99 } 100 101 .myd-admin-addons { 102 display: grid; 103 grid-template-columns: 1fr 1fr 1fr; 104 column-gap: 16px; 105 } 106 107 .myd-admin-addons__badge { 108 background: #1bba4b; 109 border-radius: 16px; 110 padding: 4px 8px; 111 color: #fff; 112 font-size: 12px; 113 } 114 115 .myd-badge-beta { 116 background: #2271b1; 117 padding: 2px 8px; 118 border-radius: 12px; 119 font-size: 12px; 120 } 121 122 .myd-custom-content-page { 123 margin-top: 20px; 124 max-width: 1200px; 125 } 126 127 .myd-admin-cards { 128 display: grid; 129 grid-gap: 16px; 130 margin-top: 16px; 131 } 132 133 .myd-card-4columns { 134 grid-template-columns: repeat(4, 1fr); 135 } 136 137 .myd-card-3columns { 138 grid-template-columns: repeat(3, 1fr); 139 } 140 141 .myd-card-2columns { 142 grid-template-columns: repeat(2, 1fr); 143 } 144 145 .myd-card-1columns { 146 grid-template-columns: 1fr; 147 } 148 149 .myd-card--20padding { 150 padding: 20px !important; 151 } 152 153 .myd-admin-cards__item { 154 background: #fff; 155 padding: 16px; 156 border-radius: 8px; 157 border: 1px solid oklch(92.8% 0.006 264.531); 158 } 159 160 .myd-cards--flex-centered { 161 display: flex; 162 flex-direction: column; 163 align-items: center; 164 justify-content: center; 165 gap: 6px; 166 } 167 168 .myd-cards--margin-top10 { 169 margin-top: 10px !important; 170 } 171 172 .myd-admin-cards__amount { 173 font-size: 2.4em; 174 line-height: 1.2em; 175 } 176 177 .myd-admin-cards__description { 178 margin: 0; 179 font-size: 1em; 180 } 181 182 .myd-admin-cards__title { 183 margin: 0; 184 font-size: 1.1em; 185 font-weight: 600; 186 } 187 188 .myd-cards--price { 189 border-left: 8px solid #5cc488; 190 } 191 192 .myd-cards--orders { 193 border-left: 8px solid #3498db; 194 } 195 196 .myd-cards--purchased { 197 border-left: 8px solid #b1d4ea; 198 } 199 200 .myd-cards--average { 201 border-left: 8px solid #b1ccd5; 202 } 203 204 .myd-admin-filter { 205 display: flex; 206 align-items: center; 207 } 208 209 .myd-admin-filter__item { 210 padding: 6px 16px; 211 background: #fff; 212 border: 1px solid #c3c4c7; 213 border-radius: 6px; 214 margin-right: 5px; 215 text-decoration: none; 216 } 217 218 .myd-admin-filter__item:hover, 219 .myd-admin-filter--active { 220 background: #2271b1; 221 color: #fff; 222 } 223 224 .myd-admin-license-erro { 225 padding: 5px; 226 background: #e3e3e3; 227 } 228 229 .myd-custom-field__image-preview { 230 max-width: 300px; 231 height: auto; 232 } 233 234 .myd-admin-hidden { 235 display: none; 236 } 237 238 /** REPEATER **/ 239 .myd-repeater-wrapper, 240 .myd-repeater-container { 241 display: flex; 242 flex-wrap: wrap; 243 row-gap: 18px; 244 column-gap: 10px; 245 width: 100%; 246 } 247 248 .myd-repeater-wrapper > .myd-repeater-container { 249 padding: 16px; 250 border-radius: 8px; 251 border: 1px solid #c3c4c7; 252 position: relative; 253 } 254 255 .myd-repeater-wrapper { 256 padding: 20px 0 12px 0; 257 } 258 259 .myd-repeater-row { 260 display: flex; 261 flex-wrap: wrap; 262 flex-basis: 100%; 263 row-gap: 6px; 264 } 265 266 .myd-repeater-row > label, 267 .myd-repeater-row > input:not([type="checkbox"]), 268 .myd-repeater-row > textarea { 269 flex-basis: 100%; 270 width: 100%; 271 } 272 273 .myd-repeater-row > input[type="checkbox"], 274 .myd-repeater-row > input[type="checkbox"]:before { 275 height: 30px; 276 align-self: center; 277 width: 30px; 278 } 279 280 .myd-repeater-row > input[type="checkbox"]:before { 281 margin: 0; 282 } 283 284 .myd-repeater-row > label { 285 line-height: 1.3; 286 font-weight: 600; 287 color: #1d2327; 288 } 289 290 .myd-repeater-container--internal { 291 background: #fbfbfb; 292 border: 1px solid #dfdfdf; 293 border-radius: 4px; 294 padding: 12px 12px 12px 12px !important; 295 } 296 297 .myd-input-size-75 { 298 flex-basis: 75% !important; 299 } 300 301 .myd-input-size-30 { 302 flex-basis: 30% !important; 303 } 304 305 .myd-input-size-20 { 306 flex-basis: 20% !important; 307 } 308 309 .myd-input-size-25 { 310 flex-basis: 25% !important; 311 } 312 313 .myd-input-size-10 { 314 flex-basis: 10% !important; 315 } 316 317 .myd-repeater-sub-row { 318 flex-basis: 100%; 319 } 320 321 details[open] .myd-repeater-summary { 322 padding-bottom: 16px; 323 } 324 325 .myd-repeater-summary { 326 display: flex; 327 justify-content: space-between; 328 cursor: pointer; 329 align-items: center; 330 } 331 332 .myd-repeater-summary__action--remove { 333 color: #c22121; 334 cursor: pointer; 335 padding: 5px; 336 } 337 338 .myd-repeater-summary__action--remove:hover { 339 opacity: 0.7; 340 } 341 342 .myd-repeater-summary__title { 343 display: list-item; 344 } 345 346 .myd-repeater-row > .myd-repeater-wrapper { 347 padding: 0; 348 row-gap: 6px; 349 } 350 351 .myd-repeater-container__remove { 352 position: absolute; 353 top: -10px; 354 right: -10px; 355 cursor: pointer; 356 background: red; 357 border-radius: 100%; 358 width: 24px; 359 height: 24px; 360 display: flex; 361 justify-content: center; 362 align-items: center; 363 color: #fff; 364 } 365 366 .myd-repeater-container__remove:hover { 367 opacity: 0.8; 368 } 369 370 .myd-chart-70 { 371 width: 60%; 372 flex-basis: 60%; 373 flex-grow: 1; 374 } 375 376 .myd-chart-30 { 377 width: 30%; 378 flex-basis: 30%; 379 } 380 381 /* Delivery Price by distance */ 382 #myd-map { 383 height: 400px; 384 background: #d5d5d5; 385 max-width: 900px; 386 } 387 388 #myd-search-address { 389 background: #fff; 390 margin-block-end: 1px; 391 max-width: 900px; 392 } 393 394 #myd-search-address-autocomplete-input { 395 background-color: #fff; 396 font-size: 16px; 397 padding: 8px 14px; 398 text-overflow: ellipsis; 399 width: 100%; 400 border: 0px; 401 } 402 403 #myd-search-address-autocomplete-input:focus { 404 border-color: #4d90fe; 405 } 406 407 .order-note { 408 display: flex; 409 flex-direction: column; 410 margin-block-end: 8px; 411 } 412 413 .order-note__text { 414 padding: 8px 12px; 415 background: #9a9a9a; 416 border-radius: 6px; 417 color: #fff; 418 font-weight: 300; 419 } 420 421 .order-note--success .order-note__text { 422 background: #0fa56e; 423 } 424 425 .order-note--fail .order-note__text { 426 background: #af3737; 427 } 428 429 .order-note__date { 430 font-size: 12px; 431 color: #727272; 432 } 433 434 .myd-addon-image { 435 max-width: 100%; 436 width: 100%; 437 height: 100%; 438 object-fit: cover; 439 } 440 441 .myd-addon-image-wrapper { 442 height: 120px; 443 } 444 445 .myd-addon-card { 446 border: 1px solid #d3d7d8; 447 border-radius: 12px; 448 background: #fff; 449 overflow: hidden; 450 } 451 452 .myd-addon-card__content { 453 padding: 24px; 454 display: flex; 455 flex-direction: column; 456 row-gap: 12px; 457 } 458 459 .myd-addon-card__content > h3, 460 .myd-addon-card__content > p { 461 margin: 0; 462 } 463 464 .myd-addon-card__content > .button-primary { 465 width: fit-content; 466 } 467 468 .toplevel_page_woo-order-on-whatsapp-dashoboard .notice:not(.mydd-notice) { 469 display: none; 470 } 471 472 .notice.mydd-notice { 473 background: oklch(93.6% 0.032 17.717); 474 border-radius: 8px; 475 color: oklch(39.6% 0.141 25.723); 476 font-weight: 300; 477 border: 1px solid oklch(88.5% 0.062 18.334); 478 } 479 480 body.toplevel_page_woo-order-on-whatsapp-dashoboard, 481 body.woo-order-on-whatsapp_page_woo-order-on-whatsapp-settings { 482 background-color: oklch(98.5% 0.002 247.839); 483 } 484 485 .mydd-admin-button { 486 background: oklch(54.6% 0.245 262.881); 487 transition: all 0.4s ease; 488 padding: 4px 12px; 489 border-radius: 8px; 490 color: #fff; 491 text-decoration: none; 492 } 493 494 .mydd-admin-button:hover { 495 background: oklch(48.8% 0.243 264.376); 496 color: oklch(93.2% 0.032 255.585); 497 } 498 499 .mydd-admin-card { 500 display: flex; 501 flex-direction: column; 502 gap: 12px; 503 background: #fff; 504 border: 1px solid oklch(92.8% 0.006 264.531); 505 border-radius: 8px; 506 padding: 24px; 507 } 508 509 .mydd-admin-card__title { 510 font-size: 1.5em; 511 margin: 0; 512 margin-bottom: 16px; 513 font-weight: 600; 514 color: oklch(13% 0.028 261.692); 515 } 516 517 .mydd-admin-card__content { 518 display: flex; 519 align-items: center; 520 gap: 12px; 521 } 522 523 .mydd-admin-card__content > svg, 524 .mydd-admin-card__content > .mydd-admin-button { 525 flex-shrink: 0; 526 } 527 528 .mydd-admin-card__content > .mydd-admin-card__text { 529 flex-grow: 1; 530 display: flex; 531 flex-direction: column; 532 gap: 2px; 533 } 534 535 #mydd-only-pro-tag { 536 font-size: 0.8em; 537 background: red; 538 padding: 4px 10px; 539 border-radius: 200px; 540 color: #fff; 541 text-decoration: none; 542 font-weight: 500; 543 display: inline-flex; 544 gap: 4px; 545 align-items: center; 546 transition: all 0.4s ease; 547 } 548 549 #mydd-only-pro-tag:hover { 550 background: rgb(222, 8, 8); 551 } 552 553 #mydd-admin-support-ilustration { 554 width: 100%; 555 max-width: 400px; 556 } 557 558 .mydd-admin-card__support-description { 559 margin: 0; 560 font-size: 1em; 561 } 562 563 .mydd-admin-card__body { 564 display: flex; 565 flex-direction: column; 566 gap: 12px; 567 align-items: center; 568 justify-content: center; 569 height: 100%; 570 } 571 572 .mydd-admin-card--full { 573 grid-column: 1/3; 574 } 575 576 #mydd-admin-card-pro { 577 background: linear-gradient(90deg, #e11e1e, #1458e1); 578 background-size: 200% 200%; 579 animation: gradientShift 6s ease-in-out infinite; 580 color: #fff; 581 border-radius: 8px; 582 padding: 24px; 583 display: flex; 584 align-items: center; 585 justify-content: space-between; 586 box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); 587 } 588 589 @keyframes gradientShift { 590 0% { 591 background-position: 0% 50%; 592 } 593 50% { 594 background-position: 100% 50%; 595 } 596 100% { 597 background-position: 0% 50%; 598 } 599 } 600 601 #mydd-admin-card-pro-title { 602 font-size: 2em; 603 margin: 0; 604 font-weight: 700; 605 line-height: 120%; 606 color: #fff; 607 } 608 609 .mydd-admin-card-pro__content { 610 display: flex; 611 flex-direction: column; 612 gap: 6px; 613 } 614 615 #mydd-admin-card-pro-description { 616 margin: 0; 617 font-size: 1em; 618 color: #f8f8f8; 619 } 620 621 #mydd-admin-card-pro-link { 622 flex-shrink: 0; 623 padding: 12px 24px; 624 background: #fff; 625 color: #000d4a; 626 border-radius: 8px; 627 font-weight: 600; 628 text-decoration: none; 629 } 630 631 .mydd-maps-promo-box { 632 background: #fff; 633 border: 1px solid oklch(92.8% 0.006 264.531); 634 border-radius: 16px; 635 display: flex; 636 gap: 32px; 637 max-width: 950px; 638 padding: 16px 24px; 639 width: 95%; 640 margin: 24px 0; 641 } 642 643 .mydd-maps-promo-box__content { 644 display: flex; 645 flex-direction: column; 646 justify-content: center; 647 } 648 649 .mydd-maps-promo-box__description, 650 .mydd-maps-promo-box__list-item { 651 margin: 0; 652 font-size: 1.1em; 653 } 654 655 .mydd-maps-promo-box__list-item { 656 display: inline-flex; 657 align-items: center; 658 gap: 4px; 659 } -
woo-order-on-whatsapp/trunk/woo-order-on-whatsapp.php
r3448767 r3460329 6 6 * Author: EduardoVillao.me 7 7 * Author URI: https://eduardovillao.me/ 8 * Version: 2. 8.18 * Version: 2.9 9 9 * Requires at least: 5.5 10 10 * Requires PHP: 7.4 … … 21 21 define( 'OMW_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); 22 22 define( 'OMW_PLUGN_URL', plugin_dir_url( __FILE__ ) ); 23 define( 'OMW_VERSION', '2. 8.1' );23 define( 'OMW_VERSION', '2.9' ); 24 24 define( 'OMW_PHP_MINIMUM_VERSION', '7.4' ); 25 25 define( 'OMW_WP_MINIMUM_VERSION', '5.5' ); … … 37 37 include_once OMW_PLUGIN_PATH . 'includes/class-omw-plugin.php'; 38 38 OMW_Plugin::instance(); 39 require_once __DIR__ . '/vendor/autoload.php'; 40 \WPFeatureLoop\Client::init('pk_live_783e198c8177013cc256635034cd22ba', 'cmljj016h000004l4i9gn0pkd', ['language' => 'en']); 39 41 } 40 42
Note: See TracChangeset
for help on using the changeset viewer.