Changeset 2875990
- Timestamp:
- 03/07/2023 03:05:11 PM (17 months ago)
- Location:
- podro-wp
- Files:
-
- 8 added
- 30 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
podro-wp/tags/1.3.2/README.txt
r2870927 r2875990 5 5 Tested up to: 6.1 6 6 Requires PHP: 7.2 7 Stable tag: 1.3. 17 Stable tag: 1.3. 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 58 58 59 59 == Changelog == 60 61 62 60 63 61 64 = 1.3.1 - 2013-02-25 = -
podro-wp/tags/1.3.2/admin/views/pages/api-key-settings.php
r2870927 r2875990 94 94 <td> 95 95 <?php 96 $provinces = \WP_PODRO\Engine\WooSetting::get_provinces();97 echo "<select id='podro_store_city' name='podro_store_city' style='width: 25em;'required>";98 99 100 101 102 103 104 105 106 107 108 96 (); 97 required>"; 98 echo "<option value='' selected disabled hidden>لطفا شهر فروشگاه را انتخاب کنید.</option>"; 99 foreach ($provinces as $province) { 100 echo "<optgroup label='" . esc_attr($province['name']) . "'>"; 101 foreach ($province['cities'] as $key => $city) 102 if ($store_city == $key) 103 echo "<option selected value='" . esc_attr($key) . "'>" . esc_attr($city) . "</option>"; 104 else 105 echo "<option value='" . esc_attr($key) . "'>" . esc_attr($city) . "</option>"; 106 echo "</optgroup>"; 107 } 108 echo "</select>" 109 109 ?> 110 110 </td> -
podro-wp/tags/1.3.2/assets/js/only-podro-cities.js
r2852786 r2875990 5 5 function reload_for_cities(){ 6 6 7 8 9 10 11 12 13 14 15 16 17 18 19 7 20 if(jQuery('#billing_state option').length > 0){ 8 jQuery('#billing_state').trigger('change' );21 jQuery('#billing_state').trigger('change'); 9 22 return; 10 23 } -
podro-wp/tags/1.3.2/assets/js/only-podro-provinces.js
r2852786 r2875990 11 11 billing_element.find('option').remove(); 12 12 shipping_element.find('option').remove(); 13 for(let i=0; i< response.length; i++){14 13 15 billing_element.append(`<option value='${response[i].code}'>${response[i].name}</option>`); 16 shipping_element.append(`<option value='${response[i].code}'>${response[i].name}</option>`); 17 18 } 14 Object.keys(response).forEach(function(key) { 15 16 billing_element.append(`<option value='${key}'>${response[key].name}</option>`); 17 shipping_element.append(`<option value='${key}'>${response[key].name}</option>`); 18 }) 19 19 20 20 }); -
podro-wp/tags/1.3.2/inc/MetaBox.php
r2866639 r2875990 229 229 <label for="podro_store_city">شهر مبدا</label> 230 230 <?php 231 $provinces = \WP_PODRO\Engine\WooSetting::get_p rovinces();231 $provinces = \WP_PODRO\Engine\WooSetting::get_p(); 232 232 echo "<select id='podro_store_city' name='podro_store_city' required>"; 233 233 echo "<option value='' selected disabled hidden>لطفا شهر فروشگاه را انتخاب کنید.</option>"; … … 261 261 <?php } ?> 262 262 <?php 263 $provinces = \WP_PODRO\Engine\WooSetting::get_p rovinces();263 $provinces = \WP_PODRO\Engine\WooSetting::get_p(); 264 264 echo "<select id='pod_destination_city_code' name='pod_destination_city_code' required>"; 265 265 echo "<option value='' selected disabled hidden>لطفا شهر فروشگاه را انتخاب کنید.</option>"; … … 410 410 ]; 411 411 412 Helper::log($data); 412 413 413 $response = (new Providers)->get_providers($data); 414 414 … … 444 444 $destination_city_code = get_option('pod_destination_city_code'); 445 445 446 $pod_store_name = get_option('pod _store_name');446 $pod_store_name = get_option('pod; 447 447 $pod_user_billing_name = get_option('pod_user_billing_name') . ' ' . get_option('pod_user_billing_family'); 448 448 $pod_customer_note = get_option('pod_customer_note'); -
podro-wp/tags/1.3.2/inc/Setup.php
r2866639 r2875990 111 111 $woosetting = new WooSetting(); 112 112 $cities = $woosetting->get_cities(); 113 113 114 114 115 wp_send_json($cities); … … 150 151 add_action( 'wp_ajax_nopriv_get_podro_cities_by_province', function(){ 151 152 152 $provinces = WooSetting::get_p rovinces();153 $provinces = WooSetting::get_p(); 153 154 if(!isset($_POST['province']) || empty($_POST['province'])){ 154 155 wp_send_json( $provinces); … … 167 168 add_action( 'wp_ajax_get_podro_cities_by_province', function(){ 168 169 169 $provinces = WooSetting::get_p rovinces();170 $provinces = WooSetting::get_p(); 170 171 if(!isset($_POST['province']) || empty($_POST['province'])){ 171 172 wp_send_json( $provinces); -
podro-wp/tags/1.3.2/inc/WooSetting.php
r2852786 r2875990 2 2 3 3 namespace WP_PODRO\Engine; 4 5 4 6 5 7 class WooSetting … … 14 16 self::$instance = new WooSetting(); 15 17 } 18 19 16 20 return self::$instance; 21 17 22 } 18 23 public function change_default_city_filed($general_fields){ … … 349 354 ) 350 355 ); 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 351 468 } 352 469 … … 442 559 } 443 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 444 597 public static function get_city_by_code($code){ 445 $cities = (new self())->get_ cities();598 $cities = (new self())->get_cities(); 446 599 if( array_key_exists($code, $cities) ) 447 600 return $cities[$code]; … … 449 602 450 603 public static function is_podro_city($city_code){ 604 451 605 return array_key_exists($city_code, (new self())->get_cities()); 452 606 } -
podro-wp/tags/1.3.2/package-lock.json
r2866639 r2875990 1655 1655 }, 1656 1656 "node_modules/qs": { 1657 "version": "6.11. 0",1658 "resolved": "https://registry.npmjs.org/qs/-/qs-6.11. 0.tgz",1659 "integrity": "sha512- MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==",1657 "version": "6.11.", 1658 "resolved": "https://registry.npmjs.org/qs/-/qs-6.11..tgz", 1659 "integrity": "sha512-Q==", 1660 1660 "dev": true, 1661 1661 "dependencies": { … … 1880 1880 }, 1881 1881 "node_modules/spdx-correct": { 1882 "version": "3. 1.1",1883 "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3. 1.1.tgz",1884 "integrity": "sha512- cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==",1882 "version": "3.", 1883 "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3..tgz", 1884 "integrity": "sha512-==", 1885 1885 "dev": true, 1886 1886 "dependencies": { … … 3427 3427 }, 3428 3428 "qs": { 3429 "version": "6.11. 0",3430 "resolved": "https://registry.npmjs.org/qs/-/qs-6.11. 0.tgz",3431 "integrity": "sha512- MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==",3429 "version": "6.11.", 3430 "resolved": "https://registry.npmjs.org/qs/-/qs-6.11..tgz", 3431 "integrity": "sha512-Q==", 3432 3432 "dev": true, 3433 3433 "requires": { … … 3592 3592 }, 3593 3593 "spdx-correct": { 3594 "version": "3. 1.1",3595 "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3. 1.1.tgz",3596 "integrity": "sha512- cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==",3594 "version": "3.", 3595 "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3..tgz", 3596 "integrity": "sha512-==", 3597 3597 "dev": true, 3598 3598 "requires": { -
podro-wp/tags/1.3.2/vendor/autoload.php
r2870927 r2875990 4 4 5 5 if (PHP_VERSION_ID < 50600) { 6 echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; 7 exit(1); 6 if (!headers_sent()) { 7 header('HTTP/1.1 500 Internal Server Error'); 8 } 9 $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; 10 if (!ini_get('display_errors')) { 11 if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { 12 fwrite(STDERR, $err); 13 } elseif (!headers_sent()) { 14 echo $err; 15 } 16 } 17 trigger_error( 18 $err, 19 E_USER_ERROR 20 ); 8 21 } 9 22 10 23 require_once __DIR__ . '/composer/autoload_real.php'; 11 24 12 return ComposerAutoloaderInit 050c2b8caeeb3afda26dbceabc4405f7::getLoader();25 return ComposerAutoloaderInit::getLoader(); -
podro-wp/tags/1.3.2/vendor/composer/ClassLoader.php
r2827875 r2875990 43 43 class ClassLoader 44 44 { 45 46 47 45 48 /** @var ?string */ 46 49 private $vendorDir; … … 107 110 { 108 111 $this->vendorDir = $vendorDir; 112 109 113 } 110 114 … … 426 430 { 427 431 if ($file = $this->findFile($class)) { 428 includeFile($file); 432 $includeFile = self::$includeFile; 433 $includeFile($file); 429 434 430 435 return true; … … 556 561 return false; 557 562 } 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 558 585 } 559 560 /**561 * Scope isolated include.562 *563 * Prevents access to $this/self from included files.564 *565 * @param string $file566 * @return void567 * @private568 */569 function includeFile($file)570 {571 include $file;572 } -
podro-wp/tags/1.3.2/vendor/composer/InstalledVersions.php
r2827875 r2875990 29 29 /** 30 30 * @var mixed[]|null 31 * @psalm-var array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}|array{}|null31 * @psalm-var array{root: array{name: string, }>}|array{}|null 32 32 */ 33 33 private static $installed; … … 40 40 /** 41 41 * @var array[] 42 * @psalm-var array<string, array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>42 * @psalm-var array<string, array{root: array{name: string, }>}> 43 43 */ 44 44 private static $installedByVendor = array(); … … 244 244 /** 245 245 * @return array 246 * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}246 * @psalm-return array{name: string, } 247 247 */ 248 248 public static function getRootPackage() … … 258 258 * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect. 259 259 * @return array[] 260 * @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}260 * @psalm-return array{root: array{name: string, }>} 261 261 */ 262 262 public static function getRawData() … … 281 281 * 282 282 * @return array[] 283 * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>283 * @psalm-return list<array{root: array{name: string, }>}> 284 284 */ 285 285 public static function getAllRawData() … … 304 304 * @return void 305 305 * 306 * @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>} $data306 * @psalm-param array{root: array{name: string, }>} $data 307 307 */ 308 308 public static function reload($data) … … 314 314 /** 315 315 * @return array[] 316 * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>316 * @psalm-return list<array{root: array{name: string, }>}> 317 317 */ 318 318 private static function getInstalled() -
podro-wp/tags/1.3.2/vendor/composer/autoload_real.php
r2870927 r2875990 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 050c2b8caeeb3afda26dbceabc4405f75 class ComposerAutoloaderInit 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 050c2b8caeeb3afda26dbceabc4405f7', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 050c2b8caeeb3afda26dbceabc4405f7', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 050c2b8caeeb3afda26dbceabc4405f7::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInit::getInitializer($loader)); 33 33 34 34 $loader->register(true); -
podro-wp/tags/1.3.2/vendor/composer/autoload_static.php
r2870927 r2875990 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 050c2b8caeeb3afda26dbceabc4405f77 class ComposerStaticInit 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 166 166 { 167 167 return \Closure::bind(function () use ($loader) { 168 $loader->prefixLengthsPsr4 = ComposerStaticInit 050c2b8caeeb3afda26dbceabc4405f7::$prefixLengthsPsr4;169 $loader->prefixDirsPsr4 = ComposerStaticInit 050c2b8caeeb3afda26dbceabc4405f7::$prefixDirsPsr4;170 $loader->classMap = ComposerStaticInit 050c2b8caeeb3afda26dbceabc4405f7::$classMap;168 $loader->prefixLengthsPsr4 = ComposerStaticInit::$prefixLengthsPsr4; 169 $loader->prefixDirsPsr4 = ComposerStaticInit::$prefixDirsPsr4; 170 $loader->classMap = ComposerStaticInit::$classMap; 171 171 172 172 }, null, ClassLoader::class); -
podro-wp/tags/1.3.2/vendor/composer/installed.php
r2870927 r2875990 1 1 <?php return array( 2 2 'root' => array( 3 3 4 'pretty_version' => 'dev-master', 4 5 'version' => 'dev-master', 6 5 7 'type' => 'wordpress-plugin', 6 8 'install_path' => __DIR__ . '/../../', 7 9 'aliases' => array(), 8 'reference' => '04b01d50cd8ca86e30dcd1f30ce6e87e70f74e80',9 'name' => 'khorshid/wp_podro',10 10 'dev' => true, 11 11 ), … … 14 14 'pretty_version' => 'v1.12.0', 15 15 'version' => '1.12.0.0', 16 16 17 'type' => 'composer-plugin', 17 18 'install_path' => __DIR__ . '/./installers', 18 19 'aliases' => array(), 19 'reference' => 'd20a64ed3c94748397ff5973488761b22f6d3f19',20 20 'dev_requirement' => false, 21 21 ), … … 23 23 'pretty_version' => 'v1.0.1', 24 24 'version' => '1.0.1.0', 25 25 26 'type' => 'library', 26 27 'install_path' => __DIR__ . '/../khorshid/wp-encrypt', 27 28 'aliases' => array(), 28 'reference' => '67cc7ded5f0319845a917ff7dcaa36349512cac8',29 29 'dev_requirement' => false, 30 30 ), … … 32 32 'pretty_version' => 'dev-master', 33 33 'version' => 'dev-master', 34 34 35 'type' => 'wordpress-plugin', 35 36 'install_path' => __DIR__ . '/../../', 36 37 'aliases' => array(), 37 'reference' => '04b01d50cd8ca86e30dcd1f30ce6e87e70f74e80',38 38 'dev_requirement' => false, 39 39 ), -
podro-wp/tags/1.3.2/wp-podro.php
r2870927 r2875990 10 10 * Plugin URI: https://khorshidlab.com/ 11 11 * Description: پادروپین؛ مارکتپلیس خدمات پستی است و به فروشگاههای آنلاین کمک میکند تا فرآیند ارسال سفارشهای اینترنتی را مدیریت کنند. در پادروپین، بدون مراجعه و یا ثبت قرارداد با شرکتهای پستی، میتوان سفارشهای اینترنتی را با هر یک از شرکتهای پستی ارسال کرد 12 * Version: 1.3. 112 * Version: 1.3. 13 13 * Author: Khorshid, Podro 14 14 * Author URI: https://podro.com/shipping-wordpress-plugin/ … … 37 37 */ 38 38 39 define( 'PODRO_VERSION', '1.3. 1' );39 define( 'PODRO_VERSION', '1.3.' ); 40 40 define( 'PODRO_SLUG', 'podro-wp' ); 41 41 define( 'PODRO_SETTINGS_PAGE_SLUG', 'podro-wp-settings' ); -
podro-wp/trunk/README.txt
r2870927 r2875990 5 5 Tested up to: 6.1 6 6 Requires PHP: 7.2 7 Stable tag: 1.3. 17 Stable tag: 1.3. 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 58 58 59 59 == Changelog == 60 61 62 60 63 61 64 = 1.3.1 - 2013-02-25 = -
podro-wp/trunk/admin/views/pages/api-key-settings.php
r2870927 r2875990 94 94 <td> 95 95 <?php 96 $provinces = \WP_PODRO\Engine\WooSetting::get_provinces();97 echo "<select id='podro_store_city' name='podro_store_city' style='width: 25em;'required>";98 99 100 101 102 103 104 105 106 107 108 96 (); 97 required>"; 98 echo "<option value='' selected disabled hidden>لطفا شهر فروشگاه را انتخاب کنید.</option>"; 99 foreach ($provinces as $province) { 100 echo "<optgroup label='" . esc_attr($province['name']) . "'>"; 101 foreach ($province['cities'] as $key => $city) 102 if ($store_city == $key) 103 echo "<option selected value='" . esc_attr($key) . "'>" . esc_attr($city) . "</option>"; 104 else 105 echo "<option value='" . esc_attr($key) . "'>" . esc_attr($city) . "</option>"; 106 echo "</optgroup>"; 107 } 108 echo "</select>" 109 109 ?> 110 110 </td> -
podro-wp/trunk/assets/js/only-podro-cities.js
r2852786 r2875990 5 5 function reload_for_cities(){ 6 6 7 8 9 10 11 12 13 14 15 16 17 18 19 7 20 if(jQuery('#billing_state option').length > 0){ 8 jQuery('#billing_state').trigger('change' );21 jQuery('#billing_state').trigger('change'); 9 22 return; 10 23 } -
podro-wp/trunk/assets/js/only-podro-provinces.js
r2852786 r2875990 11 11 billing_element.find('option').remove(); 12 12 shipping_element.find('option').remove(); 13 for(let i=0; i< response.length; i++){14 13 15 billing_element.append(`<option value='${response[i].code}'>${response[i].name}</option>`); 16 shipping_element.append(`<option value='${response[i].code}'>${response[i].name}</option>`); 17 18 } 14 Object.keys(response).forEach(function(key) { 15 16 billing_element.append(`<option value='${key}'>${response[key].name}</option>`); 17 shipping_element.append(`<option value='${key}'>${response[key].name}</option>`); 18 }) 19 19 20 20 }); -
podro-wp/trunk/inc/MetaBox.php
r2866639 r2875990 229 229 <label for="podro_store_city">شهر مبدا</label> 230 230 <?php 231 $provinces = \WP_PODRO\Engine\WooSetting::get_p rovinces();231 $provinces = \WP_PODRO\Engine\WooSetting::get_p(); 232 232 echo "<select id='podro_store_city' name='podro_store_city' required>"; 233 233 echo "<option value='' selected disabled hidden>لطفا شهر فروشگاه را انتخاب کنید.</option>"; … … 261 261 <?php } ?> 262 262 <?php 263 $provinces = \WP_PODRO\Engine\WooSetting::get_p rovinces();263 $provinces = \WP_PODRO\Engine\WooSetting::get_p(); 264 264 echo "<select id='pod_destination_city_code' name='pod_destination_city_code' required>"; 265 265 echo "<option value='' selected disabled hidden>لطفا شهر فروشگاه را انتخاب کنید.</option>"; … … 410 410 ]; 411 411 412 Helper::log($data); 412 413 413 $response = (new Providers)->get_providers($data); 414 414 … … 444 444 $destination_city_code = get_option('pod_destination_city_code'); 445 445 446 $pod_store_name = get_option('pod _store_name');446 $pod_store_name = get_option('pod; 447 447 $pod_user_billing_name = get_option('pod_user_billing_name') . ' ' . get_option('pod_user_billing_family'); 448 448 $pod_customer_note = get_option('pod_customer_note'); -
podro-wp/trunk/inc/Setup.php
r2866639 r2875990 111 111 $woosetting = new WooSetting(); 112 112 $cities = $woosetting->get_cities(); 113 113 114 114 115 wp_send_json($cities); … … 150 151 add_action( 'wp_ajax_nopriv_get_podro_cities_by_province', function(){ 151 152 152 $provinces = WooSetting::get_p rovinces();153 $provinces = WooSetting::get_p(); 153 154 if(!isset($_POST['province']) || empty($_POST['province'])){ 154 155 wp_send_json( $provinces); … … 167 168 add_action( 'wp_ajax_get_podro_cities_by_province', function(){ 168 169 169 $provinces = WooSetting::get_p rovinces();170 $provinces = WooSetting::get_p(); 170 171 if(!isset($_POST['province']) || empty($_POST['province'])){ 171 172 wp_send_json( $provinces); -
podro-wp/trunk/inc/WooSetting.php
r2852786 r2875990 2 2 3 3 namespace WP_PODRO\Engine; 4 5 4 6 5 7 class WooSetting … … 14 16 self::$instance = new WooSetting(); 15 17 } 18 19 16 20 return self::$instance; 21 17 22 } 18 23 public function change_default_city_filed($general_fields){ … … 349 354 ) 350 355 ); 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 351 468 } 352 469 … … 442 559 } 443 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 444 597 public static function get_city_by_code($code){ 445 $cities = (new self())->get_ cities();598 $cities = (new self())->get_cities(); 446 599 if( array_key_exists($code, $cities) ) 447 600 return $cities[$code]; … … 449 602 450 603 public static function is_podro_city($city_code){ 604 451 605 return array_key_exists($city_code, (new self())->get_cities()); 452 606 } -
podro-wp/trunk/package-lock.json
r2866639 r2875990 1655 1655 }, 1656 1656 "node_modules/qs": { 1657 "version": "6.11. 0",1658 "resolved": "https://registry.npmjs.org/qs/-/qs-6.11. 0.tgz",1659 "integrity": "sha512- MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==",1657 "version": "6.11.", 1658 "resolved": "https://registry.npmjs.org/qs/-/qs-6.11..tgz", 1659 "integrity": "sha512-Q==", 1660 1660 "dev": true, 1661 1661 "dependencies": { … … 1880 1880 }, 1881 1881 "node_modules/spdx-correct": { 1882 "version": "3. 1.1",1883 "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3. 1.1.tgz",1884 "integrity": "sha512- cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==",1882 "version": "3.", 1883 "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3..tgz", 1884 "integrity": "sha512-==", 1885 1885 "dev": true, 1886 1886 "dependencies": { … … 3427 3427 }, 3428 3428 "qs": { 3429 "version": "6.11. 0",3430 "resolved": "https://registry.npmjs.org/qs/-/qs-6.11. 0.tgz",3431 "integrity": "sha512- MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==",3429 "version": "6.11.", 3430 "resolved": "https://registry.npmjs.org/qs/-/qs-6.11..tgz", 3431 "integrity": "sha512-Q==", 3432 3432 "dev": true, 3433 3433 "requires": { … … 3592 3592 }, 3593 3593 "spdx-correct": { 3594 "version": "3. 1.1",3595 "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3. 1.1.tgz",3596 "integrity": "sha512- cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==",3594 "version": "3.", 3595 "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3..tgz", 3596 "integrity": "sha512-==", 3597 3597 "dev": true, 3598 3598 "requires": { -
podro-wp/trunk/vendor/autoload.php
r2870927 r2875990 4 4 5 5 if (PHP_VERSION_ID < 50600) { 6 echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; 7 exit(1); 6 if (!headers_sent()) { 7 header('HTTP/1.1 500 Internal Server Error'); 8 } 9 $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; 10 if (!ini_get('display_errors')) { 11 if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { 12 fwrite(STDERR, $err); 13 } elseif (!headers_sent()) { 14 echo $err; 15 } 16 } 17 trigger_error( 18 $err, 19 E_USER_ERROR 20 ); 8 21 } 9 22 10 23 require_once __DIR__ . '/composer/autoload_real.php'; 11 24 12 return ComposerAutoloaderInit 050c2b8caeeb3afda26dbceabc4405f7::getLoader();25 return ComposerAutoloaderInit::getLoader(); -
podro-wp/trunk/vendor/composer/ClassLoader.php
r2827875 r2875990 43 43 class ClassLoader 44 44 { 45 46 47 45 48 /** @var ?string */ 46 49 private $vendorDir; … … 107 110 { 108 111 $this->vendorDir = $vendorDir; 112 109 113 } 110 114 … … 426 430 { 427 431 if ($file = $this->findFile($class)) { 428 includeFile($file); 432 $includeFile = self::$includeFile; 433 $includeFile($file); 429 434 430 435 return true; … … 556 561 return false; 557 562 } 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 558 585 } 559 560 /**561 * Scope isolated include.562 *563 * Prevents access to $this/self from included files.564 *565 * @param string $file566 * @return void567 * @private568 */569 function includeFile($file)570 {571 include $file;572 } -
podro-wp/trunk/vendor/composer/InstalledVersions.php
r2827875 r2875990 29 29 /** 30 30 * @var mixed[]|null 31 * @psalm-var array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}|array{}|null31 * @psalm-var array{root: array{name: string, }>}|array{}|null 32 32 */ 33 33 private static $installed; … … 40 40 /** 41 41 * @var array[] 42 * @psalm-var array<string, array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>42 * @psalm-var array<string, array{root: array{name: string, }>}> 43 43 */ 44 44 private static $installedByVendor = array(); … … 244 244 /** 245 245 * @return array 246 * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}246 * @psalm-return array{name: string, } 247 247 */ 248 248 public static function getRootPackage() … … 258 258 * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect. 259 259 * @return array[] 260 * @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}260 * @psalm-return array{root: array{name: string, }>} 261 261 */ 262 262 public static function getRawData() … … 281 281 * 282 282 * @return array[] 283 * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>283 * @psalm-return list<array{root: array{name: string, }>}> 284 284 */ 285 285 public static function getAllRawData() … … 304 304 * @return void 305 305 * 306 * @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>} $data306 * @psalm-param array{root: array{name: string, }>} $data 307 307 */ 308 308 public static function reload($data) … … 314 314 /** 315 315 * @return array[] 316 * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>316 * @psalm-return list<array{root: array{name: string, }>}> 317 317 */ 318 318 private static function getInstalled() -
podro-wp/trunk/vendor/composer/autoload_real.php
r2870927 r2875990 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 050c2b8caeeb3afda26dbceabc4405f75 class ComposerAutoloaderInit 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 050c2b8caeeb3afda26dbceabc4405f7', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 050c2b8caeeb3afda26dbceabc4405f7', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 050c2b8caeeb3afda26dbceabc4405f7::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInit::getInitializer($loader)); 33 33 34 34 $loader->register(true); -
podro-wp/trunk/vendor/composer/autoload_static.php
r2870927 r2875990 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 050c2b8caeeb3afda26dbceabc4405f77 class ComposerStaticInit 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 166 166 { 167 167 return \Closure::bind(function () use ($loader) { 168 $loader->prefixLengthsPsr4 = ComposerStaticInit 050c2b8caeeb3afda26dbceabc4405f7::$prefixLengthsPsr4;169 $loader->prefixDirsPsr4 = ComposerStaticInit 050c2b8caeeb3afda26dbceabc4405f7::$prefixDirsPsr4;170 $loader->classMap = ComposerStaticInit 050c2b8caeeb3afda26dbceabc4405f7::$classMap;168 $loader->prefixLengthsPsr4 = ComposerStaticInit::$prefixLengthsPsr4; 169 $loader->prefixDirsPsr4 = ComposerStaticInit::$prefixDirsPsr4; 170 $loader->classMap = ComposerStaticInit::$classMap; 171 171 172 172 }, null, ClassLoader::class); -
podro-wp/trunk/vendor/composer/installed.php
r2870927 r2875990 1 1 <?php return array( 2 2 'root' => array( 3 3 4 'pretty_version' => 'dev-master', 4 5 'version' => 'dev-master', 6 5 7 'type' => 'wordpress-plugin', 6 8 'install_path' => __DIR__ . '/../../', 7 9 'aliases' => array(), 8 'reference' => '04b01d50cd8ca86e30dcd1f30ce6e87e70f74e80',9 'name' => 'khorshid/wp_podro',10 10 'dev' => true, 11 11 ), … … 14 14 'pretty_version' => 'v1.12.0', 15 15 'version' => '1.12.0.0', 16 16 17 'type' => 'composer-plugin', 17 18 'install_path' => __DIR__ . '/./installers', 18 19 'aliases' => array(), 19 'reference' => 'd20a64ed3c94748397ff5973488761b22f6d3f19',20 20 'dev_requirement' => false, 21 21 ), … … 23 23 'pretty_version' => 'v1.0.1', 24 24 'version' => '1.0.1.0', 25 25 26 'type' => 'library', 26 27 'install_path' => __DIR__ . '/../khorshid/wp-encrypt', 27 28 'aliases' => array(), 28 'reference' => '67cc7ded5f0319845a917ff7dcaa36349512cac8',29 29 'dev_requirement' => false, 30 30 ), … … 32 32 'pretty_version' => 'dev-master', 33 33 'version' => 'dev-master', 34 34 35 'type' => 'wordpress-plugin', 35 36 'install_path' => __DIR__ . '/../../', 36 37 'aliases' => array(), 37 'reference' => '04b01d50cd8ca86e30dcd1f30ce6e87e70f74e80',38 38 'dev_requirement' => false, 39 39 ), -
podro-wp/trunk/wp-podro.php
r2870927 r2875990 10 10 * Plugin URI: https://khorshidlab.com/ 11 11 * Description: پادروپین؛ مارکتپلیس خدمات پستی است و به فروشگاههای آ��لاین کمک میکند تا فرآیند ارسال سفارشهای اینترنتی را مدیریت کنند. در پادروپین، بدون مراجعه و یا ثبت قرارداد با شرکتهای پستی، میتوان سفارشهای اینترنتی را با هر یک از شرکتهای پستی ارسال کرد 12 * Version: 1.3. 112 * Version: 1.3. 13 13 * Author: Khorshid, Podro 14 14 * Author URI: https://podro.com/shipping-wordpress-plugin/ … … 37 37 */ 38 38 39 define( 'PODRO_VERSION', '1.3. 1' );39 define( 'PODRO_VERSION', '1.3.' ); 40 40 define( 'PODRO_SLUG', 'podro-wp' ); 41 41 define( 'PODRO_SETTINGS_PAGE_SLUG', 'podro-wp-settings' );
Note: See TracChangeset
for help on using the changeset viewer.