Changeset 2075290
- Timestamp:
- 04/26/2019 10:55:08 AM (7 years ago)
- Location:
- dokan-lite/trunk
- Files:
-
- 12 edited
-
classes/template-products.php (modified) (2 diffs)
-
dokan.php (modified) (2 diffs)
-
includes/class-vendor.php (modified) (2 diffs)
-
includes/functions.php (modified) (2 diffs)
-
includes/product-functions.php (modified) (2 diffs)
-
includes/wc-functions.php (modified) (2 diffs)
-
includes/wc-template.php (modified) (1 diff)
-
languages/dokan-lite.pot (modified) (29 diffs)
-
readme.txt (modified) (2 diffs)
-
templates/settings/store-form.php (modified) (3 diffs)
-
templates/store-lists-loop.php (modified) (1 diff)
-
templates/widgets/store-open-close.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
dokan-lite/trunk/classes/template-products.php
r2073700 r2075290 298 298 299 299 if ( $date_to ) { 300 update_post_meta( $product_id, '_sale_price_dates_to', strtotime( $date_to) );300 update_post_meta( $product_id, '_sale_price_dates_to', strtotime( '+23 hours', strtotime( $date_to ) ) ); 301 301 } else { 302 302 update_post_meta( $product_id, '_sale_price_dates_to', '' ); … … 315 315 if ( '' !== $postdata['_sale_price'] && $date_from && strtotime( $date_from ) < strtotime( 'NOW', current_time( 'timestamp' ) ) ) { 316 316 update_post_meta( $product_id, '_price', wc_format_decimal( $postdata['_sale_price'] ) ); 317 }318 319 if ( $date_to && strtotime( $date_to ) < strtotime( 'NOW', current_time( 'timestamp' ) ) ) {320 update_post_meta( $product_id, '_price', ( $postdata['_regular_price'] === '' ) ? '' : wc_format_decimal( $postdata['_regular_price'] ) );321 update_post_meta( $product_id, '_sale_price_dates_from', '' );322 update_post_meta( $product_id, '_sale_price_dates_to', '' );323 317 } 324 318 } -
dokan-lite/trunk/dokan.php
r2073700 r2075290 4 4 Plugin URI: https://wordpress.org/plugins/dokan-lite/ 5 5 Description: An e-commerce marketplace plugin for WordPress. Powered by WooCommerce and weDevs. 6 Version: 2.9.1 36 Version: 2.9.14 7 7 Author: weDevs, LLC 8 8 Author URI: https://wedevs.com/ 9 9 Text Domain: dokan-lite 10 10 WC requires at least: 3.0 11 WC tested up to: 3.6. 111 WC tested up to: 3.6.2 12 12 Domain Path: /languages/ 13 13 License: GPL2 … … 79 79 * @var string 80 80 */ 81 public $version = '2.9.1 3';81 public $version = '2.9.14'; 82 82 83 83 /** -
dokan-lite/trunk/includes/class-vendor.php
r2073700 r2075290 406 406 407 407 if ( ! $banner_id ) { 408 return false; 408 $banner = $this->get_info_part( 'banner' ); 409 410 if ( $banner ) { 411 $banner_id = $banner; 412 } else { 413 return false; 414 } 409 415 } 410 416 … … 434 440 public function get_avatar() { 435 441 $avatar_id = $this->get_avatar_id(); 442 443 if ( ! $avatar_id ) { 444 $avatar_id = $this->get_info_part( 'gravatar' ); 445 } 436 446 437 447 if ( ! $avatar_id && ! empty( $this->data->user_email ) ) { -
dokan-lite/trunk/includes/functions.php
r2073700 r2075290 2011 2011 // see if there is a user_avatar meta field 2012 2012 $user_avatar = get_user_meta( $user->ID, 'dokan_profile_settings', true ); 2013 $gravatar_id = isset( $user_avatar['gravatar'] ) ? $user_avatar['gravatar'] : 0; 2013 $gravatar_id = isset( $user_avatar['gravatar_id'] ) ? $user_avatar['gravatar_id'] : 0; 2014 $gravatar_id = isset( $user_avatar['gravatar'] ) ? $user_avatar['gravatar'] : $gravatar_id; 2014 2015 2015 2016 if ( empty( $gravatar_id ) ) { … … 3154 3155 $today = strtolower( date( 'l' ) ); 3155 3156 3156 if ( ! is _array( $open_days ) && ! isset( $open_days[ $today ] ) ) {3157 if ( ! isset( $open_days[ $today ] ) ) { 3157 3158 return false; 3158 3159 } 3159 3160 3160 3161 $schedule = $open_days[ $today ]; 3161 3162 if ( 'open' === $schedule['status'] ) { 3162 $status = isset( $schedule['open'] ) ? $schedule['open'] : $schedule['status']; 3163 3164 if ( 'open' === $status ) { 3163 3165 if ( empty( $schedule['opening_time'] ) || empty( $schedule['closing_time'] ) ) { 3164 3166 return true; -
dokan-lite/trunk/includes/product-functions.php
r2073700 r2075290 129 129 130 130 if ( $date_to ) { 131 update_post_meta( $product_id, '_sale_price_dates_to', strtotime( $date_to) );131 update_post_meta( $product_id, '_sale_price_dates_to', strtotime( '+ 23 hours', strtotime( $date_to ) ) ); 132 132 } else { 133 133 update_post_meta( $product_id, '_sale_price_dates_to', '' ); … … 147 147 if ( '' !== $data['_sale_price'] && $date_from && strtotime( $date_from ) < strtotime( 'NOW', current_time( 'timestamp' ) ) ) { 148 148 update_post_meta( $product_id, '_price', wc_format_decimal( $data['_sale_price'] ) ); 149 }150 151 if ( $date_to && strtotime( $date_to ) < strtotime( 'NOW', current_time( 'timestamp' ) ) ) {152 update_post_meta( $product_id, '_price', ( $data['_regular_price'] === '' ) ? '' : wc_format_decimal( $data['_regular_price'] ) );153 update_post_meta( $product_id, '_sale_price_dates_from', '' );154 update_post_meta( $product_id, '_sale_price_dates_to', '' );155 149 } 156 150 -
dokan-lite/trunk/includes/wc-functions.php
r2073700 r2075290 247 247 // Dates 248 248 update_post_meta( $post_id, '_sale_price_dates_from', $date_from ? strtotime( $date_from ) : '' ); 249 update_post_meta( $post_id, '_sale_price_dates_to', $date_to ? strtotime( $date_to ) : '' ); 249 250 // error_log( var_export( date('y-m-d H:i:s'), true ) ); 251 update_post_meta( $post_id, '_sale_price_dates_to', $date_to ? strtotime( '+ 23 hours', strtotime( $date_to ) ): '' ); 250 252 251 253 if ( $date_to && ! $date_from ) { … … 261 263 } else { 262 264 update_post_meta( $post_id, '_price', '' === $regular_price ? '' : wc_format_decimal( $regular_price ) ); 263 }264 265 if ( $date_to && strtotime( $date_to ) < strtotime( 'NOW', current_time( 'timestamp' ) ) ) {266 update_post_meta( $post_id, '_price', '' === $regular_price ? '' : wc_format_decimal( $regular_price ) );267 update_post_meta( $post_id, '_sale_price', '' );268 update_post_meta( $post_id, '_sale_price_dates_from', '' );269 update_post_meta( $post_id, '_sale_price_dates_to', '' );270 265 } 271 266 } -
dokan-lite/trunk/includes/wc-template.php
r2044318 r2075290 324 324 325 325 add_action( 'dokan_contact_form', 'dokan_add_privacy_policy' ); 326 327 /** 328 * Unset unnecessary data 329 * 330 * @since 2.9.14 331 */ 332 add_action( 'dokan_store_profile_saved', function( $store_id, $settings ) { 333 $store_info = dokan_get_store_info( $store_id ); 334 $banner = isset( $store_info['banner'] ) ? true : false; 335 $gravatar = isset( $store_info['gravatar'] ) ? true : false; 336 $all_times = isset( $store_info['dokan_store_time'] ) ? $store_info['dokan_store_time'] : false; 337 $days = [ 'sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday' ]; 338 $is_status_unsated = false; 339 340 if ( $banner ) { 341 unset( $store_info['banner'] ); 342 } 343 344 if ( $gravatar ) { 345 unset( $store_info['gravatar'] ); 346 } 347 348 if ( $all_times ) { 349 foreach ( $days as $day => $value ) { 350 if ( isset( $all_times[$day]['open'] ) ) { 351 $is_status_unsated = true; 352 353 unset( $all_times[$day]['open'] ); 354 } 355 } 356 } 357 358 if ( $banner || $gravatar || $is_status_unsated ) { 359 update_user_meta( $store_id, 'dokan_profile_settings', $store_info ); 360 } 361 362 }, 99, 2 ); -
dokan-lite/trunk/languages/dokan-lite.pot
r2073700 r2075290 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Dokan 2.9.1 3\n"5 "Project-Id-Version: Dokan 2.9.14\n" 6 6 "Report-Msgid-Bugs-To: https://wedevs.com/contact/\n" 7 "POT-Creation-Date: 2019-04-2 4 05:04:30+00:00\n"7 "POT-Creation-Date: 2019-04-26 10:50:11+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=utf-8\n" … … 63 63 msgstr "" 64 64 65 #: classes/admin-user-profile.php:117 templates/settings/store-form.php:7 665 #: classes/admin-user-profile.php:117 templates/settings/store-form.php:78 66 66 msgid "Upload banner" 67 67 msgstr "" … … 380 380 msgstr "" 381 381 382 #: classes/seller-setup-wizard.php:179 templates/settings/store-form.php:1 28382 #: classes/seller-setup-wizard.php:179 templates/settings/store-form.php:130 383 383 msgid "Store Product Per Page" 384 384 msgstr "" … … 409 409 msgstr "" 410 410 411 #: classes/seller-setup-wizard.php:224 templates/settings/store-form.php:1 58411 #: classes/seller-setup-wizard.php:224 templates/settings/store-form.php:160 412 412 msgid "Email" 413 413 msgstr "" 414 414 415 #: classes/seller-setup-wizard.php:228 templates/settings/store-form.php:16 3415 #: classes/seller-setup-wizard.php:228 templates/settings/store-form.php:165 416 416 msgid "Show email address in store" 417 417 msgstr "" … … 488 488 msgstr "" 489 489 490 #: classes/template-products.php:180 includes/product-functions.php:49 6490 #: classes/template-products.php:180 includes/product-functions.php:490 491 491 msgid "Delete Permanently" 492 492 msgstr "" … … 496 496 msgstr "" 497 497 498 #: classes/template-products.php:222 classes/template-products.php:37 6498 #: classes/template-products.php:222 classes/template-products.php:370 499 499 #: includes/product-functions.php:33 500 500 msgid "Please enter product title" 501 501 msgstr "" 502 502 503 #: classes/template-products.php:229 classes/template-products.php:3 83503 #: classes/template-products.php:229 classes/template-products.php:377 504 504 #: includes/product-functions.php:39 505 505 msgid "Please select a category" 506 506 msgstr "" 507 507 508 #: classes/template-products.php:234 classes/template-products.php:38 8508 #: classes/template-products.php:234 classes/template-products.php:382 509 509 #: includes/product-functions.php:43 510 510 msgid "Please select AT LEAST ONE category" 511 511 msgstr "" 512 512 513 #: classes/template-products.php:3 95513 #: classes/template-products.php:389 514 514 msgid "No product found!" 515 515 msgstr "" 516 516 517 #: classes/template-products.php:39 9includes/product-functions.php:67517 #: classes/template-products.php:393 includes/product-functions.php:67 518 518 msgid "I swear this is not your product!" 519 519 msgstr "" … … 850 850 851 851 #: includes/admin/class-settings.php:279 includes/functions.php:1211 852 #: templates/settings/store-form.php:20 5852 #: templates/settings/store-form.php:207 853 853 msgid "Terms and Conditions" 854 854 msgstr "" … … 1027 1027 msgstr "" 1028 1028 1029 #: includes/admin/class-settings.php:460 includes/functions.php:34 581029 #: includes/admin/class-settings.php:460 includes/functions.php:3460 1030 1030 msgid "" 1031 1031 "Your personal data will be used to support your experience throughout this " … … 2936 2936 msgstr "" 2937 2937 2938 #: includes/class-dokan-privacy.php:174 templates/settings/store-form.php:1 182938 #: includes/class-dokan-privacy.php:174 templates/settings/store-form.php:120 2939 2939 msgid "Store Name" 2940 2940 msgstr "" … … 2964 2964 msgstr "" 2965 2965 2966 #: includes/class-dokan-privacy.php:195 includes/functions.php:232 52966 #: includes/class-dokan-privacy.php:195 includes/functions.php:2326 2967 2967 msgid "Facebook" 2968 2968 msgstr "" 2969 2969 2970 #: includes/class-dokan-privacy.php:196 includes/functions.php:23 292970 #: includes/class-dokan-privacy.php:196 includes/functions.php:2330 2971 2971 msgid "Google Plus" 2972 2972 msgstr "" 2973 2973 2974 #: includes/class-dokan-privacy.php:197 includes/functions.php:233 32974 #: includes/class-dokan-privacy.php:197 includes/functions.php:2334 2975 2975 msgid "Twitter" 2976 2976 msgstr "" 2977 2977 2978 #: includes/class-dokan-privacy.php:198 includes/functions.php:233 72978 #: includes/class-dokan-privacy.php:198 includes/functions.php:2338 2979 2979 msgid "Pinterest" 2980 2980 msgstr "" … … 2984 2984 msgstr "" 2985 2985 2986 #: includes/class-dokan-privacy.php:200 includes/functions.php:234 52986 #: includes/class-dokan-privacy.php:200 includes/functions.php:2346 2987 2987 msgid "Youtube" 2988 2988 msgstr "" 2989 2989 2990 #: includes/class-dokan-privacy.php:201 includes/functions.php:23 492990 #: includes/class-dokan-privacy.php:201 includes/functions.php:2350 2991 2991 msgid "Instagram" 2992 2992 msgstr "" 2993 2993 2994 #: includes/class-dokan-privacy.php:202 includes/functions.php:235 32994 #: includes/class-dokan-privacy.php:202 includes/functions.php:2354 2995 2995 msgid "Flickr" 2996 2996 msgstr "" … … 3125 3125 msgstr "" 3126 3126 3127 #: includes/class-vendor.php: 6983127 #: includes/class-vendor.php:708 3128 3128 msgid "No ratings found yet!" 3129 3129 msgstr "" 3130 3130 3131 #: includes/class-vendor.php:7 003131 #: includes/class-vendor.php:710 3132 3132 msgid "%s rating from %d review" 3133 3133 msgid_plural "%s rating from %d reviews" … … 3135 3135 msgstr[1] "" 3136 3136 3137 #: includes/class-vendor.php:7 013137 #: includes/class-vendor.php:711 3138 3138 msgid "Rated %s out of %d" 3139 3139 msgstr "" … … 3455 3455 msgstr "" 3456 3456 3457 #: includes/functions.php:206 13457 #: includes/functions.php:2062 3458 3458 msgid "- Select a location -" 3459 3459 msgstr "" 3460 3460 3461 #: includes/functions.php:206 5 includes/functions.php:20883461 #: includes/functions.php:2066 includes/functions.php:2089 3462 3462 msgid "Everywhere Else" 3463 3463 msgstr "" 3464 3464 3465 #: includes/functions.php:208 43465 #: includes/functions.php:2085 3466 3466 msgid "- Select a State -" 3467 3467 msgstr "" 3468 3468 3469 #: includes/functions.php:210 63469 #: includes/functions.php:2107 3470 3470 msgid "Ready to ship in..." 3471 3471 msgstr "" 3472 3472 3473 #: includes/functions.php:210 73473 #: includes/functions.php:2108 3474 3474 msgid "1 business day" 3475 3475 msgstr "" 3476 3476 3477 #: includes/functions.php:210 83477 #: includes/functions.php:2109 3478 3478 msgid "1-2 business day" 3479 3479 msgstr "" 3480 3480 3481 #: includes/functions.php:21 093481 #: includes/functions.php:2110 3482 3482 msgid "1-3 business day" 3483 3483 msgstr "" 3484 3484 3485 #: includes/functions.php:211 03485 #: includes/functions.php:2111 3486 3486 msgid "3-5 business day" 3487 3487 msgstr "" 3488 3488 3489 #: includes/functions.php:211 13489 #: includes/functions.php:2112 3490 3490 msgid "1-2 weeks" 3491 3491 msgstr "" 3492 3492 3493 #: includes/functions.php:211 23493 #: includes/functions.php:2113 3494 3494 msgid "2-3 weeks" 3495 3495 msgstr "" 3496 3496 3497 #: includes/functions.php:211 33497 #: includes/functions.php:2114 3498 3498 msgid "3-4 weeks" 3499 3499 msgstr "" 3500 3500 3501 #: includes/functions.php:211 43501 #: includes/functions.php:2115 3502 3502 msgid "4-6 weeks" 3503 3503 msgstr "" 3504 3504 3505 #: includes/functions.php:211 53505 #: includes/functions.php:2116 3506 3506 msgid "6-8 weeks" 3507 3507 msgstr "" 3508 3508 3509 #: includes/functions.php:223 43509 #: includes/functions.php:2235 3510 3510 msgid "All dates" 3511 3511 msgstr "" 3512 3512 3513 #: includes/functions.php:22 493513 #: includes/functions.php:2250 3514 3514 #. translators: 1: month name, 2: 4-digit year 3515 3515 msgid "%1$s %2$d" 3516 3516 msgstr "" 3517 3517 3518 #: includes/functions.php:234 13518 #: includes/functions.php:2342 3519 3519 msgid "LinkedIn" 3520 3520 msgstr "" 3521 3521 3522 #: includes/functions.php:26 193522 #: includes/functions.php:2620 3523 3523 msgid "Dokan Store Sidebar" 3524 3524 msgstr "" 3525 3525 3526 #: includes/functions.php:288 03526 #: includes/functions.php:2881 3527 3527 msgid "View sales overview" 3528 3528 msgstr "" 3529 3529 3530 #: includes/functions.php:288 13530 #: includes/functions.php:2882 3531 3531 msgid "View sales report chart" 3532 3532 msgstr "" 3533 3533 3534 #: includes/functions.php:288 23534 #: includes/functions.php:2883 3535 3535 msgid "View announcement" 3536 3536 msgstr "" 3537 3537 3538 #: includes/functions.php:288 33538 #: includes/functions.php:2884 3539 3539 msgid "View order report" 3540 3540 msgstr "" 3541 3541 3542 #: includes/functions.php:288 43542 #: includes/functions.php:2885 3543 3543 msgid "View review report" 3544 3544 msgstr "" 3545 3545 3546 #: includes/functions.php:288 53546 #: includes/functions.php:2886 3547 3547 msgid "View product status report" 3548 3548 msgstr "" 3549 3549 3550 #: includes/functions.php:288 83550 #: includes/functions.php:2889 3551 3551 msgid "View overview report" 3552 3552 msgstr "" 3553 3553 3554 #: includes/functions.php:28 893554 #: includes/functions.php:2890 3555 3555 msgid "View daily sales report" 3556 3556 msgstr "" 3557 3557 3558 #: includes/functions.php:289 03558 #: includes/functions.php:2891 3559 3559 msgid "View top selling report" 3560 3560 msgstr "" 3561 3561 3562 #: includes/functions.php:289 13562 #: includes/functions.php:2892 3563 3563 msgid "View top earning report" 3564 3564 msgstr "" 3565 3565 3566 #: includes/functions.php:289 23566 #: includes/functions.php:2893 3567 3567 msgid "View statement report" 3568 3568 msgstr "" 3569 3569 3570 #: includes/functions.php:289 53570 #: includes/functions.php:2896 3571 3571 msgid "View order" 3572 3572 msgstr "" 3573 3573 3574 #: includes/functions.php:289 63574 #: includes/functions.php:2897 3575 3575 msgid "Manage order" 3576 3576 msgstr "" 3577 3577 3578 #: includes/functions.php:289 73578 #: includes/functions.php:2898 3579 3579 msgid "Manage order note" 3580 3580 msgstr "" 3581 3581 3582 #: includes/functions.php:289 83582 #: includes/functions.php:2899 3583 3583 msgid "Manage refund" 3584 3584 msgstr "" 3585 3585 3586 #: includes/functions.php:290 23586 #: includes/functions.php:2903 3587 3587 msgid "Add coupon" 3588 3588 msgstr "" 3589 3589 3590 #: includes/functions.php:290 33590 #: includes/functions.php:2904 3591 3591 msgid "Edit coupon" 3592 3592 msgstr "" 3593 3593 3594 #: includes/functions.php:290 43594 #: includes/functions.php:2905 3595 3595 msgid "Delete coupon" 3596 3596 msgstr "" 3597 3597 3598 #: includes/functions.php:290 73598 #: includes/functions.php:2908 3599 3599 msgid "View reviews" 3600 3600 msgstr "" 3601 3601 3602 #: includes/functions.php:290 83602 #: includes/functions.php:2909 3603 3603 msgid "Manage reviews" 3604 3604 msgstr "" 3605 3605 3606 #: includes/functions.php:291 23606 #: includes/functions.php:2913 3607 3607 msgid "Manage withdraw" 3608 3608 msgstr "" 3609 3609 3610 #: includes/functions.php:291 53610 #: includes/functions.php:2916 3611 3611 msgid "Add product" 3612 3612 msgstr "" 3613 3613 3614 #: includes/functions.php:291 63614 #: includes/functions.php:2917 3615 3615 msgid "Edit product" 3616 3616 msgstr "" 3617 3617 3618 #: includes/functions.php:291 73618 #: includes/functions.php:2918 3619 3619 msgid "Delete product" 3620 3620 msgstr "" 3621 3621 3622 #: includes/functions.php:291 83622 #: includes/functions.php:2919 3623 3623 msgid "View product" 3624 3624 msgstr "" 3625 3625 3626 #: includes/functions.php:29 193626 #: includes/functions.php:2920 3627 3627 msgid "Duplicate product" 3628 3628 msgstr "" 3629 3629 3630 #: includes/functions.php:292 03630 #: includes/functions.php:2921 3631 3631 msgid "Import product" 3632 3632 msgstr "" 3633 3633 3634 #: includes/functions.php:292 13634 #: includes/functions.php:2922 3635 3635 msgid "Export product" 3636 3636 msgstr "" 3637 3637 3638 #: includes/functions.php:292 43638 #: includes/functions.php:2925 3639 3639 msgid "View overview menu" 3640 3640 msgstr "" 3641 3641 3642 #: includes/functions.php:292 53642 #: includes/functions.php:2926 3643 3643 msgid "View product menu" 3644 3644 msgstr "" 3645 3645 3646 #: includes/functions.php:292 63646 #: includes/functions.php:2927 3647 3647 msgid "View order menu" 3648 3648 msgstr "" 3649 3649 3650 #: includes/functions.php:292 73650 #: includes/functions.php:2928 3651 3651 msgid "View coupon menu" 3652 3652 msgstr "" 3653 3653 3654 #: includes/functions.php:292 83654 #: includes/functions.php:2929 3655 3655 msgid "View report menu" 3656 3656 msgstr "" 3657 3657 3658 #: includes/functions.php:29 293658 #: includes/functions.php:2930 3659 3659 msgid "Vuew review menu" 3660 3660 msgstr "" 3661 3661 3662 #: includes/functions.php:293 03662 #: includes/functions.php:2931 3663 3663 msgid "View withdraw menu" 3664 3664 msgstr "" 3665 3665 3666 #: includes/functions.php:293 13666 #: includes/functions.php:2932 3667 3667 msgid "View store settings menu" 3668 3668 msgstr "" 3669 3669 3670 #: includes/functions.php:293 23670 #: includes/functions.php:2933 3671 3671 msgid "View payment settings menu" 3672 3672 msgstr "" 3673 3673 3674 #: includes/functions.php:293 33674 #: includes/functions.php:2934 3675 3675 msgid "View shipping settings menu" 3676 3676 msgstr "" 3677 3677 3678 #: includes/functions.php:293 43678 #: includes/functions.php:2935 3679 3679 msgid "View social settings menu" 3680 3680 msgstr "" 3681 3681 3682 #: includes/functions.php:293 53682 #: includes/functions.php:2936 3683 3683 msgid "View seo settings menu" 3684 3684 msgstr "" 3685 3685 3686 #: includes/functions.php:311 23686 #: includes/functions.php:3113 3687 3687 msgid "Saturday" 3688 3688 msgstr "" 3689 3689 3690 #: includes/functions.php:311 53690 #: includes/functions.php:3116 3691 3691 msgid "Sunday" 3692 3692 msgstr "" 3693 3693 3694 #: includes/functions.php:311 83694 #: includes/functions.php:3119 3695 3695 msgid "Monday" 3696 3696 msgstr "" 3697 3697 3698 #: includes/functions.php:312 13698 #: includes/functions.php:3122 3699 3699 msgid "Tuesday" 3700 3700 msgstr "" 3701 3701 3702 #: includes/functions.php:312 43702 #: includes/functions.php:3125 3703 3703 msgid "Wednesday" 3704 3704 msgstr "" 3705 3705 3706 #: includes/functions.php:312 73706 #: includes/functions.php:3128 3707 3707 msgid "Thursday" 3708 3708 msgstr "" 3709 3709 3710 #: includes/functions.php:313 03710 #: includes/functions.php:3131 3711 3711 msgid "Friday" 3712 3712 msgstr "" 3713 3713 3714 #: includes/functions.php:313 33714 #: includes/functions.php:3134 3715 3715 msgid "Off Day" 3716 3716 msgstr "" 3717 3717 3718 #: includes/functions.php:34 393718 #: includes/functions.php:3441 3719 3719 msgid "privacy policy" 3720 3720 msgstr "" 3721 3721 3722 #: includes/functions.php:34 793722 #: includes/functions.php:3481 3723 3723 msgid "Please Login to Continue" 3724 3724 msgstr "" … … 3857 3857 msgstr "" 3858 3858 3859 #: includes/product-functions.php:2 153859 #: includes/product-functions.php:209 3860 3860 msgid "" 3861 3861 "Before you can add a variation you need to add some variation attributes on " … … 3863 3863 msgstr "" 3864 3864 3865 #: includes/product-functions.php:2 253865 #: includes/product-functions.php:219 3866 3866 msgid "Add variation" 3867 3867 msgstr "" 3868 3868 3869 #: includes/product-functions.php:22 63869 #: includes/product-functions.php:220 3870 3870 msgid "Create variations from all attributes" 3871 3871 msgstr "" 3872 3872 3873 #: includes/product-functions.php:22 73873 #: includes/product-functions.php:221 3874 3874 msgid "Delete all variations" 3875 3875 msgstr "" 3876 3876 3877 #: includes/product-functions.php:22 8templates/my-orders.php:293877 #: includes/product-functions.php:222 templates/my-orders.php:29 3878 3878 #: templates/orders/listing.php:49 templates/orders/listing.php:77 3879 3879 #: templates/products/products-listing-row.php:53 … … 3883 3883 msgstr "" 3884 3884 3885 #: includes/product-functions.php:223 3886 msgid "Toggle "Enabled"" 3887 msgstr "" 3888 3889 #: includes/product-functions.php:224 3890 msgid "Toggle "Downloadable"" 3891 msgstr "" 3892 3893 #: includes/product-functions.php:225 3894 msgid "Toggle "Virtual"" 3895 msgstr "" 3896 3897 #: includes/product-functions.php:227 3898 msgid "Pricing" 3899 msgstr "" 3900 3901 #: includes/product-functions.php:228 3902 msgid "Set regular prices" 3903 msgstr "" 3904 3885 3905 #: includes/product-functions.php:229 3886 msgid " Toggle "Enabled""3906 msgid "Increase regular prices (fixed amount or percentage)" 3887 3907 msgstr "" 3888 3908 3889 3909 #: includes/product-functions.php:230 3890 msgid " Toggle "Downloadable""3910 msgid "Decrease regular prices (fixed amount or percentage)" 3891 3911 msgstr "" 3892 3912 3893 3913 #: includes/product-functions.php:231 3894 msgid "Toggle "Virtual"" 3914 msgid "Set sale prices" 3915 msgstr "" 3916 3917 #: includes/product-functions.php:232 3918 msgid "Increase sale prices (fixed amount or percentage)" 3895 3919 msgstr "" 3896 3920 3897 3921 #: includes/product-functions.php:233 3898 msgid " Pricing"3922 msgid "Decrease sale prices (fixed amount or percentage)" 3899 3923 msgstr "" 3900 3924 3901 3925 #: includes/product-functions.php:234 3902 msgid "Set regular prices" 3903 msgstr "" 3904 3905 #: includes/product-functions.php:235 3906 msgid "Increase regular prices (fixed amount or percentage)" 3907 msgstr "" 3908 3909 #: includes/product-functions.php:236 3910 msgid "Decrease regular prices (fixed amount or percentage)" 3926 msgid "Set scheduled sale dates" 3927 msgstr "" 3928 3929 #: includes/product-functions.php:236 templates/products/inventory.php:3 3930 msgid "Inventory" 3911 3931 msgstr "" 3912 3932 3913 3933 #: includes/product-functions.php:237 3914 msgid " Set sale prices"3934 msgid "Toggle "Manage stock"" 3915 3935 msgstr "" 3916 3936 3917 3937 #: includes/product-functions.php:238 3918 msgid "Increase sale prices (fixed amount or percentage)"3919 msgstr ""3920 3921 #: includes/product-functions.php:2393922 msgid "Decrease sale prices (fixed amount or percentage)"3923 msgstr ""3924 3925 #: includes/product-functions.php:2403926 msgid "Set scheduled sale dates"3927 msgstr ""3928 3929 #: includes/product-functions.php:242 templates/products/inventory.php:33930 msgid "Inventory"3931 msgstr ""3932 3933 #: includes/product-functions.php:2433934 msgid "Toggle "Manage stock""3935 msgstr ""3936 3937 #: includes/product-functions.php:2443938 3938 #: templates/products/products-listing-row.php:68 3939 3939 #: templates/products/products-listing.php:94 … … 3941 3941 msgstr "" 3942 3942 3943 #: includes/product-functions.php:240 3944 msgid "Shipping" 3945 msgstr "" 3946 3947 #: includes/product-functions.php:241 3948 msgid "Length" 3949 msgstr "" 3950 3951 #: includes/product-functions.php:242 3952 msgid "Width" 3953 msgstr "" 3954 3955 #: includes/product-functions.php:243 3956 msgid "Height" 3957 msgstr "" 3958 3959 #: includes/product-functions.php:244 3960 msgid "Weight" 3961 msgstr "" 3962 3943 3963 #: includes/product-functions.php:246 3944 msgid " Shipping"3964 msgid "Downloadable products" 3945 3965 msgstr "" 3946 3966 3947 3967 #: includes/product-functions.php:247 3948 msgid " Length"3968 msgid "Download limit" 3949 3969 msgstr "" 3950 3970 3951 3971 #: includes/product-functions.php:248 3952 msgid "Width" 3953 msgstr "" 3954 3955 #: includes/product-functions.php:249 3956 msgid "Height" 3957 msgstr "" 3958 3959 #: includes/product-functions.php:250 3960 msgid "Weight" 3972 msgid "Download expiry" 3961 3973 msgstr "" 3962 3974 3963 3975 #: includes/product-functions.php:252 3964 msgid "Downloadable products"3965 msgstr ""3966 3967 #: includes/product-functions.php:2533968 msgid "Download limit"3969 msgstr ""3970 3971 #: includes/product-functions.php:2543972 msgid "Download expiry"3973 msgstr ""3974 3975 #: includes/product-functions.php:2583976 3976 msgid "Go" 3977 3977 msgstr "" 3978 3978 3979 #: includes/product-functions.php:2 653979 #: includes/product-functions.php:259 3980 3980 msgid "" 3981 3981 "Default Form Values: These are the attributes that will be pre-selected on " … … 3983 3983 msgstr "" 3984 3984 3985 #: includes/product-functions.php:2 833985 #: includes/product-functions.php:277 3986 3986 msgid "No default" 3987 3987 msgstr "" 3988 3988 3989 #: includes/product-functions.php:3 233989 #: includes/product-functions.php:317 3990 3990 msgid "Save Variations" 3991 3991 msgstr "" 3992 3992 3993 #: includes/product-functions.php:3 24lib/appsero/src/insights.php:7883993 #: includes/product-functions.php:318 lib/appsero/src/insights.php:788 3994 3994 #: templates/my-orders.php:83 templates/orders/details.php:200 3995 3995 #: templates/products/new-product-single.php:205 … … 4001 4001 msgstr "" 4002 4002 4003 #: includes/product-functions.php:32 94003 #: includes/product-functions.php:323 4004 4004 msgid "%s item" 4005 4005 msgid_plural "%s items" … … 4007 4007 msgstr[1] "" 4008 4008 4009 #: includes/product-functions.php:328 4010 msgid "Expand" 4011 msgstr "" 4012 4013 #: includes/product-functions.php:328 src/admin/components/ColorPicker.vue:31 4014 #: templates/orders/details.php:348 templates/settings/store-form.php:264 4015 msgid "Close" 4016 msgstr "" 4017 4018 #: includes/product-functions.php:331 4019 msgid "Go to the first page" 4020 msgstr "" 4021 4022 #: includes/product-functions.php:332 4023 msgid "Go to the previous page" 4024 msgstr "" 4025 4009 4026 #: includes/product-functions.php:334 4010 msgid "Expand"4011 msgstr ""4012 4013 #: includes/product-functions.php:334 src/admin/components/ColorPicker.vue:314014 #: templates/orders/details.php:348 templates/settings/store-form.php:2584015 msgid "Close"4016 msgstr ""4017 4018 #: includes/product-functions.php:3374019 msgid "Go to the first page"4020 msgstr ""4021 4022 #: includes/product-functions.php:3384023 msgid "Go to the previous page"4024 msgstr ""4025 4026 #: includes/product-functions.php:3404027 4027 msgid "Select Page" 4028 4028 msgstr "" 4029 4029 4030 #: includes/product-functions.php:3 414030 #: includes/product-functions.php:335 4031 4031 msgid "Current page" 4032 4032 msgstr "" 4033 4033 4034 #: includes/product-functions.php:34 84034 #: includes/product-functions.php:342 4035 4035 msgid "Go to the next page" 4036 4036 msgstr "" 4037 4037 4038 #: includes/product-functions.php:34 94038 #: includes/product-functions.php:343 4039 4039 msgid "Go to the last page" 4040 4040 msgstr "" 4041 4041 4042 #: includes/product-functions.php:3 724042 #: includes/product-functions.php:366 4043 4043 msgid "Visible" 4044 4044 msgstr "" 4045 4045 4046 #: includes/product-functions.php:3 734046 #: includes/product-functions.php:367 4047 4047 msgid "Catalog" 4048 4048 msgstr "" 4049 4049 4050 #: includes/product-functions.php:3 74templates/products/listing-filter.php:544050 #: includes/product-functions.php:368 templates/products/listing-filter.php:54 4051 4051 msgid "Search" 4052 4052 msgstr "" 4053 4053 4054 #: includes/product-functions.php:3 754054 #: includes/product-functions.php:369 4055 4055 #: templates/products/new-product-single.php:116 4056 4056 msgid "Hidden" 4057 4057 msgstr "" 4058 4058 4059 #: includes/product-functions.php:48 84059 #: includes/product-functions.php:482 4060 4060 msgid "Edit" 4061 4061 msgstr "" 4062 4062 4063 #: includes/product-functions.php: 505templates/my-orders.php:884063 #: includes/product-functions.php:499 templates/my-orders.php:88 4064 4064 #: templates/orders/listing.php:156 templates/sub-orders.php:59 4065 4065 msgid "View" … … 4075 4075 4076 4076 #: includes/template-tags.php:105 includes/template-tags.php:109 4077 #: templates/store-lists-loop.php:9 24077 #: templates/store-lists-loop.php:93 4078 4078 msgid "← Previous" 4079 4079 msgstr "" 4080 4080 4081 #: includes/template-tags.php:120 templates/store-lists-loop.php:9 34081 #: includes/template-tags.php:120 templates/store-lists-loop.php:94 4082 4082 msgid "Next →" 4083 4083 msgstr "" … … 4121 4121 4122 4122 #: includes/template-tags.php:465 templates/settings/header.php:13 4123 #: templates/store-lists-loop.php: 694123 #: templates/store-lists-loop.php:70 4124 4124 msgid "Visit Store" 4125 4125 msgstr "" … … 4137 4137 msgstr "" 4138 4138 4139 #: includes/wc-functions.php:7 634139 #: includes/wc-functions.php:758 4140 4140 msgid "Your {site_title} order receipt from {order_date}" 4141 4141 msgstr "" 4142 4142 4143 #: includes/wc-functions.php:7 644143 #: includes/wc-functions.php:759 4144 4144 msgid "Your {site_title} order from {order_date} is complete" 4145 4145 msgstr "" 4146 4146 4147 #: includes/wc-functions.php:86 5templates/account/vendor-registration.php:94147 #: includes/wc-functions.php:860 templates/account/vendor-registration.php:9 4148 4148 #: templates/global/seller-registration-form.php:15 4149 4149 msgid "First Name" 4150 4150 msgstr "" 4151 4151 4152 #: includes/wc-functions.php:86 6templates/account/vendor-registration.php:144152 #: includes/wc-functions.php:861 templates/account/vendor-registration.php:14 4153 4153 #: templates/global/seller-registration-form.php:20 4154 4154 msgid "Last Name" 4155 4155 msgstr "" 4156 4156 4157 #: includes/wc-functions.php:86 7templates/account/vendor-registration.php:274157 #: includes/wc-functions.php:862 templates/account/vendor-registration.php:27 4158 4158 #: templates/dashboard/edit-account.php:65 4159 4159 msgid "Email address" 4160 4160 msgstr "" 4161 4161 4162 #: includes/wc-functions.php:8 724162 #: includes/wc-functions.php:867 4163 4163 msgid "is a required field." 4164 4164 msgstr "" 4165 4165 4166 #: includes/wc-functions.php:87 84166 #: includes/wc-functions.php:873 4167 4167 msgid "Please provide a valid email address." 4168 4168 msgstr "" 4169 4169 4170 #: includes/wc-functions.php:8 804170 #: includes/wc-functions.php:875 4171 4171 msgid "This email address is already registered." 4172 4172 msgstr "" 4173 4173 4174 #: includes/wc-functions.php:881 4175 msgid "Your current password is incorrect." 4176 msgstr "" 4177 4174 4178 #: includes/wc-functions.php:886 4175 msgid "Your current password is incorrect."4176 msgstr ""4177 4178 #: includes/wc-functions.php:8914179 4179 msgid "Please fill out all password fields." 4180 4180 msgstr "" 4181 4181 4182 #: includes/wc-functions.php:8 944182 #: includes/wc-functions.php:889 4183 4183 msgid "Please enter your current password." 4184 4184 msgstr "" 4185 4185 4186 #: includes/wc-functions.php:89 74186 #: includes/wc-functions.php:892 4187 4187 msgid "Please re-enter your password." 4188 4188 msgstr "" 4189 4189 4190 #: includes/wc-functions.php: 9004190 #: includes/wc-functions.php:895 4191 4191 msgid "New passwords do not match." 4192 4192 msgstr "" 4193 4193 4194 #: includes/wc-functions.php:9 214194 #: includes/wc-functions.php:916 4195 4195 msgid "Account details changed successfully." 4196 4196 msgstr "" 4197 4197 4198 #: includes/wc-functions.php:100 94198 #: includes/wc-functions.php:1004 4199 4199 msgid "More Products" 4200 4200 msgstr "" 4201 4201 4202 #: includes/wc-functions.php:10 604202 #: includes/wc-functions.php:1055 4203 4203 msgid "No product has been found!" 4204 4204 msgstr "" … … 5217 5217 msgstr "" 5218 5218 5219 #: templates/orders/order-tax-html.php:8 templates/store-lists-loop.php: 95219 #: templates/orders/order-tax-html.php:8 templates/store-lists-loop.php:10 5220 5220 msgid "N/A" 5221 5221 msgstr "" … … 5714 5714 msgstr "" 5715 5715 5716 #: templates/settings/payment.php:39 templates/settings/store-form.php:30 35716 #: templates/settings/payment.php:39 templates/settings/store-form.php:309 5717 5717 msgid "Update Settings" 5718 5718 msgstr "" 5719 5719 5720 #: templates/settings/store-form.php: 895720 #: templates/settings/store-form.php:91 5721 5721 msgid "Upload a banner for your store. Banner size is (%sx%s) pixels." 5722 5722 msgstr "" 5723 5723 5724 #: templates/settings/store-form.php:10 25724 #: templates/settings/store-form.php:104 5725 5725 msgid "Profile Picture" 5726 5726 msgstr "" 5727 5727 5728 #: templates/settings/store-form.php:11 25728 #: templates/settings/store-form.php:114 5729 5729 msgid "Upload Photo" 5730 5730 msgstr "" 5731 5731 5732 #: templates/settings/store-form.php:12 15732 #: templates/settings/store-form.php:123 5733 5733 msgid "store name" 5734 5734 msgstr "" 5735 5735 5736 #: templates/settings/store-form.php:15 15736 #: templates/settings/store-form.php:153 5737 5737 msgid "Phone No" 5738 5738 msgstr "" 5739 5739 5740 #: templates/settings/store-form.php:15 35740 #: templates/settings/store-form.php:155 5741 5741 msgid "+123456.." 5742 5742 msgstr "" 5743 5743 5744 #: templates/settings/store-form.php:17 05744 #: templates/settings/store-form.php:172 5745 5745 msgid "More products" 5746 5746 msgstr "" 5747 5747 5748 #: templates/settings/store-form.php:17 55748 #: templates/settings/store-form.php:177 5749 5749 msgid "Enable tab on product single page view" 5750 5750 msgstr "" 5751 5751 5752 #: templates/settings/store-form.php:18 35752 #: templates/settings/store-form.php:185 5753 5753 msgid "Map" 5754 5754 msgstr "" 5755 5755 5756 #: templates/settings/store-form.php:19 05756 #: templates/settings/store-form.php:192 5757 5757 msgid "Type an address to find" 5758 5758 msgstr "" 5759 5759 5760 #: templates/settings/store-form.php:19 15760 #: templates/settings/store-form.php:193 5761 5761 msgid "Find Address" 5762 5762 msgstr "" 5763 5763 5764 #: templates/settings/store-form.php:2 095764 #: templates/settings/store-form.php:211 5765 5765 msgid "Show terms and conditions in store page" 5766 5766 msgstr "" 5767 5767 5768 #: templates/settings/store-form.php:21 55768 #: templates/settings/store-form.php:217 5769 5769 msgid "TOC Details" 5770 5770 msgstr "" 5771 5771 5772 #: templates/settings/store-form.php:23 45772 #: templates/settings/store-form.php:236 5773 5773 msgid "Store Opening Closing Time" 5774 5774 msgstr "" 5775 5775 5776 #: templates/settings/store-form.php:24 15776 #: templates/settings/store-form.php:243 5777 5777 msgid "Show store opening closing time widget in store page" 5778 5778 msgstr "" 5779 5779 5780 #: templates/settings/store-form.php:26 15780 #: templates/settings/store-form.php:267 5781 5781 msgid "Open" 5782 5782 msgstr "" 5783 5783 5784 #: templates/settings/store-form.php:2 785784 #: templates/settings/store-form.php:284 5785 5785 msgid "Store Open Notice" 5786 5786 msgstr "" 5787 5787 5788 #: templates/settings/store-form.php:28 25788 #: templates/settings/store-form.php:288 5789 5789 msgid "Store is open" 5790 5790 msgstr "" 5791 5791 5792 #: templates/settings/store-form.php:2 885792 #: templates/settings/store-form.php:294 5793 5793 msgid "Store Close Notice" 5794 5794 msgstr "" 5795 5795 5796 #: templates/settings/store-form.php:29 25796 #: templates/settings/store-form.php:298 5797 5797 msgid "Store is closed" 5798 5798 msgstr "" … … 5806 5806 msgstr "" 5807 5807 5808 #: templates/store-lists-loop.php:2 45808 #: templates/store-lists-loop.php:25 5809 5809 msgid "Featured" 5810 5810 msgstr "" 5811 5811 5812 #: templates/store-lists-loop.php:3 45812 #: templates/store-lists-loop.php:35 5813 5813 msgid "Rated %s out of 5" 5814 5814 msgstr "" 5815 5815 5816 #: templates/store-lists-loop.php:1 195816 #: templates/store-lists-loop.php:120 5817 5817 msgid "No vendor found!" 5818 5818 msgstr "" … … 5857 5857 msgstr "" 5858 5858 5859 #: templates/widgets/store-open-close.php:1 85859 #: templates/widgets/store-open-close.php:19 5860 5860 msgid "<span> %s %s %s </span>" 5861 5861 msgstr "" … … 5993 5993 msgstr "" 5994 5994 5995 #: includes/product-functions.php:34 65995 #: includes/product-functions.php:340 5996 5996 msgctxt "number of pages" 5997 5997 msgid "of" -
dokan-lite/trunk/readme.txt
r2073700 r2075290 6 6 Tested up to: 5.1.1 7 7 WC requires at least: 3.0 8 WC tested up to: 3.6. 18 WC tested up to: 3.6.2 9 9 Requires PHP: 5.6 10 10 Stable tag: trunk … … 275 275 == Changelog == 276 276 277 v2.9.14 -> Apr 26, 2019 278 ------------------------------------ 279 - **Fix*** Schedule product price not showing correctly 280 - **Fix*** Backward compatibility for banner and store time 281 277 282 v2.9.13 -> Apr 24, 2019 278 283 ------------------------------------ -
dokan-lite/trunk/templates/settings/store-form.php
r2073700 r2075290 7 7 ?> 8 8 <?php 9 $gravatar_id = isset( $profile_info['gravatar_id'] ) ? $profile_info['gravatar_id'] : 0; 10 $banner_id = isset( $profile_info['banner_id'] ) ? $profile_info['banner_id'] : 0; 9 $gravatar_id = ! empty( $profile_info['gravatar_id'] ) ? $profile_info['gravatar_id'] : 0; 10 $gravatar_id = ! empty( $profile_info['gravatar'] ) ? $profile_info['gravatar'] : $gravatar_id; 11 $banner_id = ! empty( $profile_info['banner_id'] ) ? $profile_info['banner_id'] : 0; 12 $banner_id = ! empty( $profile_info['banner'] ) ? $profile_info['banner'] : $banner_id; 11 13 $storename = isset( $profile_info['store_name'] ) ? $profile_info['store_name'] : ''; 12 14 $store_ppp = isset( $profile_info['store_ppp'] ) ? $profile_info['store_ppp'] : ''; … … 249 251 <div class="dokan-w6" style="width: auto"> 250 252 <?php foreach ( $dokan_days as $key => $day ) : ?> 253 <?php 254 $status = isset( $all_times[$day]['status'] ) ? $all_times[$day]['status'] : ''; 255 $status = isset( $all_times[$day]['open'] ) ? $all_times[$day]['open'] : $status; 256 ?> 251 257 <div class="dokan-form-group"> 252 258 <label class="day control-label" for="<?php echo esc_attr( $day ) ?>-opening-time"> … … 255 261 <label for=""> 256 262 <select name="<?php echo esc_attr( $day ) ?>_on_off" class="dokan-on-off dokan-form-control"> 257 <option value="close" <?php ! empty( $ all_times[$day]['status'] ) ? selected( $all_times[$day]['status'], 'close' ) : '' ?> >263 <option value="close" <?php ! empty( $status ) ? selected( $status, 'close' ) : '' ?> > 258 264 <?php esc_html_e( 'Close', 'dokan-lite' ); ?> 259 265 </option> 260 <option value="open" <?php ! empty( $ all_times[$day]['status'] ) ? selected( $all_times[$day]['status'], 'open' ) : '' ?> >266 <option value="open" <?php ! empty( $status ) ? selected( $status, 'open' ) : '' ?> > 261 267 <?php esc_html_e( 'Open', 'dokan-lite' ); ?> 262 268 </option> 263 269 </select> 264 270 </label> 265 <label for="opening-time" class="time" style="visibility: <?php echo isset( $ all_times[$day]['status'] ) && $all_times[$day]['status']== 'open' ? 'visible' : 'hidden' ?>" >271 <label for="opening-time" class="time" style="visibility: <?php echo isset( $status ) && $status == 'open' ? 'visible' : 'hidden' ?>" > 266 272 <input type="text" class="dokan-form-control" name="<?php echo esc_attr( strtolower( $day ) ); ?>_opening_time" id="<?php echo esc_attr( $day ) ?>-opening-time" placeholder="<?php echo date_i18n( get_option( 'time_format', 'g:i a' ), current_time( 'timestamp' ) ); ?>" value="<?php echo isset( $all_times[$day]['opening_time'] ) ? esc_attr( $all_times[$day]['opening_time'] ) : '' ?>" > 267 273 </label> 268 <label for="closing-time" class="time" style="visibility: <?php echo isset( $ all_times[$day]['status'] ) && $all_times[$day]['status']== 'open' ? 'visible' : 'hidden' ?>" >274 <label for="closing-time" class="time" style="visibility: <?php echo isset( $status ) && $status == 'open' ? 'visible' : 'hidden' ?>" > 269 275 <input type="text" class="dokan-form-control" name="<?php echo esc_attr( $day ) ?>_closing_time" id="<?php echo esc_attr( $day ) ?>-closing-time" placeholder="<?php echo date_i18n( get_option( 'time_format', 'g:i a' ), current_time( 'timestamp' ) ); ?>" value="<?php echo isset( $all_times[$day]['closing_time'] ) ? esc_attr( $all_times[$day]['closing_time'] ) : '' ?>"> 270 276 </label> -
dokan-lite/trunk/templates/store-lists-loop.php
r1995740 r2075290 6 6 foreach ( $sellers['users'] as $seller ) { 7 7 $store_info = dokan_get_store_info( $seller->ID ); 8 $banner_id = isset( $store_info['banner'] ) ? $store_info['banner'] : 0; 8 $banner_id = ! empty( $store_info['banner_id'] ) ? $store_info['banner_id'] : 0; 9 $banner_id = ! empty( $store_info['banner'] ) ? $store_info['banner'] : $banner_id; 9 10 $store_name = isset( $store_info['store_name'] ) ? esc_html( $store_info['store_name'] ) : __( 'N/A', 'dokan-lite' ); 10 11 $store_url = dokan_get_store_url( $seller->ID ); -
dokan-lite/trunk/templates/widgets/store-open-close.php
r2073700 r2075290 11 11 <?php foreach( $dokan_store_time as $day => $value ) : ?> 12 12 <?php 13 $to = ! empty( dokan_get_translated_days( $value['status'] ) ) ? dokan_get_translated_days( $value['status'] ) : '-'; 14 $is_open = $value['status'] == 'open' ? true : false; 13 $status = isset( $value['open'] ) ? $value['open'] : $value['status']; 14 $to = ! empty( dokan_get_translated_days( $status ) ) ? dokan_get_translated_days( $status ) : '-'; 15 $is_open = $status == 'open' ? true : false; 15 16 ?> 16 17 <div class="open-close-day <?php echo esc_attr( $day ) . '-time' ?>">
Note: See TracChangeset
for help on using the changeset viewer.