Changeset 2848726
- Timestamp:
- 01/15/2023 05:32:19 PM (19 months ago)
- Location:
- podro-wp
- Files:
-
- 4 deleted
- 32 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
podro-wp/tags/1.0.7/README.txt
r2846187 r2848726 5 5 Tested up to: 6.1 6 6 Requires PHP: 7.2 7 Stable tag: 1.0. 67 Stable tag: 1.0. 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 20 20 21 21 1. Navigate to the Add New in the plugins dashboard 22 2. Search for WPPodro22 2. Search for Podro 23 23 3. Click Install Now 24 24 4. Activate the plugin on the Plugin dashboard … … 28 28 1. Navigate to the Add New in the plugins dashboard 29 29 2. Navigate to the Upload area 30 3. Select wp-podro.zip from your computer30 3. Select .zip from your computer 31 31 4. Click Install Now 32 32 5. Activate the plugin in the Plugin dashboard … … 34 34 = Using FTP = 35 35 36 1. Download wp-podro.zip37 2. Extract the wp-podro.zip directory to your computer38 3. Upload the wp-podro.zip directory to the /wp-content/plugins/ directory36 1. Download .zip 37 2. Extract the .zip directory to your computer 38 3. Upload the .zip directory to the /wp-content/plugins/ directory 39 39 4. Activate the plugin in the Plugin dashboard 40 40 … … 59 59 == Changelog == 60 60 61 62 63 64 65 61 66 = 1.0.6 - 2023-01-10 = 62 67 * Integration with persian-woocommerce-shipping-pro plugin -
podro-wp/tags/1.0.7/admin/Enqueue.php
r2846187 r2848726 93 93 ); 94 94 95 $cities = json_encode( (new WC_City_Select)->get_cities() );96 wp_localize_script(97 'wc-city-select',98 'wc_city_select_params',99 array(100 'cities' => $cities,101 'i18n_select_city_text' => esc_attr__( 'Select an option…', 'woocommerce' )102 )103 );95 $cities = json_encode( (new WC_City_Select)->get_cities() ); 96 wp_localize_script( 97 'wc-city-select', 98 'wc_city_select_params', 99 array( 100 'cities' => $cities, 101 'i18n_select_city_text' => esc_attr__( 'Select an option…', 'woocommerce' ) 102 ) 103 ); 104 104 } 105 105 -
podro-wp/tags/1.0.7/admin/views/pages/api-key-settings.php
r2846187 r2848726 28 28 </div> 29 29 <div class="pdo-box"> 30 <a class="get-api-key" href="https://p odro.com/plugin-pin/" target="_blank" rel="noopener noreferrer"><?php esc_html_e('دریافت کلید API', 'wp-podro'); ?></a>30 <a class="get-api-key" href="https://p'); ?></a> 31 31 </div> 32 <button type="submit" class="button button-primary" name="config_podro_api_key" value="1"><?php esc_html_e( "ذخیره", ' wp-podro' ) ?></button>32 <button type="submit" class="button button-primary" name="config_podro_api_key" value="1"><?php esc_html_e( "ذخیره", '' ) ?></button> 33 33 <hr/> 34 34 <h3><?php esc_html_e( 'تنظیمات فروشگاه', 'podro-wp' ) ?></h3> -
podro-wp/tags/1.0.7/admin/views/pages/settings.php
r2835533 r2848726 21 21 </div> 22 22 <div class="pdo-box"> 23 <a class="get-api-key" href="https://p odro.com/plugin-pin/" target="_blank" rel="noopener noreferrer"><?php esc_html_e('دریافت کلید API', 'podro-wp'); ?></a>23 <a class="get-api-key" href="https://p', 'podro-wp'); ?></a> 24 24 </div> 25 25 <button type="submit" class="button button-primary" name="config_podro_api_key" value="1"><?php esc_html_e( "ذخیره", 'podro-wp' ) ?></button> -
podro-wp/tags/1.0.7/inc/API/V1/Routes.php
r2835533 r2848726 9 9 const PROVINCES = '/provinces'; 10 10 const CITIES = '/cities'; 11 const DELIVERY_OPTIONS = '/delivery-options ';11 const DELIVERY_OPTIONS = '/delivery-options'; 12 12 13 13 const ORDER_STATUS = '/order/order_id/state'; -
podro-wp/tags/1.0.7/inc/Api_Key.php
r2846187 r2848726 109 109 add_action( 'admin_notices', function () { 110 110 echo wp_kses_post('<div class="notice notice-success is-dismissible"> 111 <p>'. esc_html__( "تنظیمات ذخیره شد.", ' wp-podro' ) .'</p>111 <p>'. esc_html__( "تنظیمات ذخیره شد.", '' ) .'</p> 112 112 </div>'); 113 113 } ); … … 118 118 add_action( 'admin_notices', function () { 119 119 echo wp_kses_post('<div class="notice notice-error is-dismissible"> 120 <p>'. esc_html__( "نام فروشگاه، شهرو آدرس نمی تواند خالی باشد", ' wp-podro' ) .'</p>120 <p>'. esc_html__( "نام فروشگاه، شهرو آدرس نمی تواند خالی باشد", '' ) .'</p> 121 121 </div>'); 122 122 } ); -
podro-wp/tags/1.0.7/inc/MetaBox.php
r2846187 r2848726 217 217 <li> 218 218 <label for="pod_destination_city">مقصد</label> 219 <?php if( ! Location::is_podro_city($destination_city_code) ){ ?>219 <?php if( !::is_podro_city($destination_city_code) ){ ?> 220 220 <span style="color:red">این شهر پادرویی نیست</span> 221 221 <?php } ?> … … 317 317 ){ 318 318 319 wp_send_json_error( __('وزن یا ابعاد اشتباه است', ' wp-podro'), 200 );319 wp_send_json_error( __('وزن یا ابعاد اشتباه است', ''), 200 ); 320 320 wp_die(); 321 321 … … 327 327 328 328 $store_state = $this->get_store_state(); 329 $source_city = Location::get_province_by_code($store_state); 330 $source_city = Location::get_city_by_name($source_city['name']); 331 332 $destination_city = $order->get_shipping_city(); 333 $destination_city = Location::get_city_by_name($destination_city); 329 334 330 335 331 $data = [ … … 379 375 $order = \wc_get_order($order_id); 380 376 381 $store_state = $this->get_store_state();382 //$source_city = Location::get_province_by_code($store_state);383 377 $source_city = (WooSetting::get_instance())->get_store_city_code_from_options(); 384 378 -
podro-wp/tags/1.0.7/inc/Setup.php
r2846187 r2848726 267 267 __( 'تنظیمات', 'podro-wp' ), 268 268 'manage_options', 269 PODRO_S LUG,269 PODRO_SLUG, 270 270 [$this, 'settings_page'], 271 271 ); -
podro-wp/tags/1.0.7/inc/WooSetting.php
r2846187 r2848726 442 442 } 443 443 444 445 446 447 444 448 public function get_city_by_name($name){ 445 449 foreach ($this->get_cities() as $code => $city_name){ … … 450 454 public function get_store_city(){ 451 455 $current_city = $this->get_store_city_code_from_options(); 456 452 457 return $this->get_cities()[$current_city]; 453 458 } 454 459 455 460 public function get_store_city_code_from_options(){ 456 return get_option('podro_store_city', 0);461 return get_option('podro_store_city',); 457 462 } 458 463 -
podro-wp/tags/1.0.7/package-lock.json
r2827875 r2848726 1448 1448 }, 1449 1449 "node_modules/object-inspect": { 1450 "version": "1.12. 2",1451 "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12. 2.tgz",1452 "integrity": "sha512- z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==",1450 "version": "1.12.", 1451 "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12..tgz", 1452 "integrity": "sha512-==", 1453 1453 "dev": true, 1454 1454 "funding": { … … 3315 3315 }, 3316 3316 "object-inspect": { 3317 "version": "1.12. 2",3318 "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12. 2.tgz",3319 "integrity": "sha512- z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==",3317 "version": "1.12.", 3318 "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12..tgz", 3319 "integrity": "sha512-==", 3320 3320 "dev": true 3321 3321 }, -
podro-wp/tags/1.0.7/vendor/autoload.php
r2846187 r2848726 10 10 require_once __DIR__ . '/composer/autoload_real.php'; 11 11 12 return ComposerAutoloaderInit a903ed6f874a1e7e0010191d3cdb30b2::getLoader();12 return ComposerAutoloaderInit::getLoader(); -
podro-wp/tags/1.0.7/vendor/composer/autoload_classmap.php
r2846187 r2848726 121 121 'WP_PODRO\\Engine\\Helper' => $baseDir . '/inc/Helper.php', 122 122 'WP_PODRO\\Engine\\Loader' => $baseDir . '/inc/Loader.php', 123 'WP_PODRO\\Engine\\Location' => $baseDir . '/inc/Location.php',124 123 'WP_PODRO\\Engine\\MetaBox' => $baseDir . '/inc/MetaBox.php', 125 124 'WP_PODRO\\Engine\\Podro_Order_Table' => $baseDir . '/inc/Podro_Order_Table.php', … … 127 126 'WP_PODRO\\Engine\\Settings' => $baseDir . '/inc/Settings.php', 128 127 'WP_PODRO\\Engine\\Setup' => $baseDir . '/inc/Setup.php', 129 'WP_PODRO\\Engine\\WC_City_Select' => $baseDir . '/inc/WC_City_Select.php',130 128 'WP_PODRO\\Engine\\WooSetting' => $baseDir . '/inc/WooSetting.php', 131 129 ); -
podro-wp/tags/1.0.7/vendor/composer/autoload_real.php
r2846187 r2848726 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit a903ed6f874a1e7e0010191d3cdb30b25 class ComposerAutoloaderInit 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit a903ed6f874a1e7e0010191d3cdb30b2', '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 a903ed6f874a1e7e0010191d3cdb30b2', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit a903ed6f874a1e7e0010191d3cdb30b2::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInit::getInitializer($loader)); 33 33 34 34 $loader->register(true); -
podro-wp/tags/1.0.7/vendor/composer/autoload_static.php
r2846187 r2848726 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit a903ed6f874a1e7e0010191d3cdb30b27 class ComposerStaticInit 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 154 154 'WP_PODRO\\Engine\\Helper' => __DIR__ . '/../..' . '/inc/Helper.php', 155 155 'WP_PODRO\\Engine\\Loader' => __DIR__ . '/../..' . '/inc/Loader.php', 156 'WP_PODRO\\Engine\\Location' => __DIR__ . '/../..' . '/inc/Location.php',157 156 'WP_PODRO\\Engine\\MetaBox' => __DIR__ . '/../..' . '/inc/MetaBox.php', 158 157 'WP_PODRO\\Engine\\Podro_Order_Table' => __DIR__ . '/../..' . '/inc/Podro_Order_Table.php', … … 160 159 'WP_PODRO\\Engine\\Settings' => __DIR__ . '/../..' . '/inc/Settings.php', 161 160 'WP_PODRO\\Engine\\Setup' => __DIR__ . '/../..' . '/inc/Setup.php', 162 'WP_PODRO\\Engine\\WC_City_Select' => __DIR__ . '/../..' . '/inc/WC_City_Select.php',163 161 'WP_PODRO\\Engine\\WooSetting' => __DIR__ . '/../..' . '/inc/WooSetting.php', 164 162 ); … … 167 165 { 168 166 return \Closure::bind(function () use ($loader) { 169 $loader->prefixLengthsPsr4 = ComposerStaticInit a903ed6f874a1e7e0010191d3cdb30b2::$prefixLengthsPsr4;170 $loader->prefixDirsPsr4 = ComposerStaticInit a903ed6f874a1e7e0010191d3cdb30b2::$prefixDirsPsr4;171 $loader->classMap = ComposerStaticInit a903ed6f874a1e7e0010191d3cdb30b2::$classMap;167 $loader->prefixLengthsPsr4 = ComposerStaticInit::$prefixLengthsPsr4; 168 $loader->prefixDirsPsr4 = ComposerStaticInit::$prefixDirsPsr4; 169 $loader->classMap = ComposerStaticInit::$classMap; 172 170 173 171 }, null, ClassLoader::class); -
podro-wp/tags/1.0.7/vendor/composer/installed.php
r2846187 r2848726 6 6 'install_path' => __DIR__ . '/../../', 7 7 'aliases' => array(), 8 'reference' => ' d7938fdc7d6ea4670f7e3bbf58cd86a9499d72df',8 'reference' => 'f', 9 9 'name' => 'khorshid/wp_podro', 10 10 'dev' => true, … … 35 35 'install_path' => __DIR__ . '/../../', 36 36 'aliases' => array(), 37 'reference' => ' d7938fdc7d6ea4670f7e3bbf58cd86a9499d72df',37 'reference' => 'f', 38 38 'dev_requirement' => false, 39 39 ), -
podro-wp/tags/1.0.7/wp-podro.php
r2846187 r2848726 10 10 * Plugin URI: https://khorshidlab.com/ 11 11 * Description: پادروپین؛ مارکتپلیس خدمات پستی است و به فروشگاههای آنلاین کمک میکند تا فرآیند ارسال سفارشهای اینترنتی را مدیریت کنند. در پادروپین، بدون مراجعه و یا ثبت قرارداد با شرکتهای پستی، میتوان سفارشهای اینترنتی را با هر یک از شرکتهای پستی ارسال کرد 12 * Version: 1.0. 612 * Version: 1.0. 13 13 * Author: Khorshid, Podro 14 14 * Author URI: https://khorshidlab.com/fa/ … … 37 37 */ 38 38 39 define( 'PODRO_VERSION', '1.0. 6' );39 define( 'PODRO_VERSION', '1.0.' ); 40 40 define( 'PODRO_SLUG', 'podro-wp' ); 41 41 define( 'PODRO_SETTINGS_PAGE_SLUG', 'podro-wp-settings' ); … … 68 68 sprintf( 69 69 '<div class="notice notice-error"><p>%s</p></div>', 70 esc_html__( ' WP-Podro requires PHP 7.2 or newer.', 'podro-wp' )70 esc_html__( 'Podro requires PHP 7.2 or newer.', 'podro-wp' ) 71 71 ) 72 72 ); … … 79 79 80 80 require_once(PODRO_PLUGIN_ROOT . 'vendor/autoload.php'); 81 if ( class_exists('WC_Payment_Gateway') ) { 82 $GLOBALS['wc_city_select'] = new WP_PODRO\Engine\WC_City_Select(); 83 } 81 84 82 $Setup = new WP_PODRO\Engine\Setup; 85 83 add_action('admin_init', function(){ -
podro-wp/trunk/README.txt
r2846187 r2848726 5 5 Tested up to: 6.1 6 6 Requires PHP: 7.2 7 Stable tag: 1.0. 67 Stable tag: 1.0. 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 20 20 21 21 1. Navigate to the Add New in the plugins dashboard 22 2. Search for WPPodro22 2. Search for Podro 23 23 3. Click Install Now 24 24 4. Activate the plugin on the Plugin dashboard … … 28 28 1. Navigate to the Add New in the plugins dashboard 29 29 2. Navigate to the Upload area 30 3. Select wp-podro.zip from your computer30 3. Select .zip from your computer 31 31 4. Click Install Now 32 32 5. Activate the plugin in the Plugin dashboard … … 34 34 = Using FTP = 35 35 36 1. Download wp-podro.zip37 2. Extract the wp-podro.zip directory to your computer38 3. Upload the wp-podro.zip directory to the /wp-content/plugins/ directory36 1. Download .zip 37 2. Extract the .zip directory to your computer 38 3. Upload the .zip directory to the /wp-content/plugins/ directory 39 39 4. Activate the plugin in the Plugin dashboard 40 40 … … 59 59 == Changelog == 60 60 61 62 63 64 65 61 66 = 1.0.6 - 2023-01-10 = 62 67 * Integration with persian-woocommerce-shipping-pro plugin -
podro-wp/trunk/admin/Enqueue.php
r2846187 r2848726 93 93 ); 94 94 95 $cities = json_encode( (new WC_City_Select)->get_cities() );96 wp_localize_script(97 'wc-city-select',98 'wc_city_select_params',99 array(100 'cities' => $cities,101 'i18n_select_city_text' => esc_attr__( 'Select an option…', 'woocommerce' )102 )103 );95 $cities = json_encode( (new WC_City_Select)->get_cities() ); 96 wp_localize_script( 97 'wc-city-select', 98 'wc_city_select_params', 99 array( 100 'cities' => $cities, 101 'i18n_select_city_text' => esc_attr__( 'Select an option…', 'woocommerce' ) 102 ) 103 ); 104 104 } 105 105 -
podro-wp/trunk/admin/views/pages/api-key-settings.php
r2846187 r2848726 28 28 </div> 29 29 <div class="pdo-box"> 30 <a class="get-api-key" href="https://p odro.com/plugin-pin/" target="_blank" rel="noopener noreferrer"><?php esc_html_e('دریافت کلید API', 'wp-podro'); ?></a>30 <a class="get-api-key" href="https://p'); ?></a> 31 31 </div> 32 <button type="submit" class="button button-primary" name="config_podro_api_key" value="1"><?php esc_html_e( "ذخیره", ' wp-podro' ) ?></button>32 <button type="submit" class="button button-primary" name="config_podro_api_key" value="1"><?php esc_html_e( "ذخیره", '' ) ?></button> 33 33 <hr/> 34 34 <h3><?php esc_html_e( 'تنظیمات فروشگاه', 'podro-wp' ) ?></h3> -
podro-wp/trunk/admin/views/pages/settings.php
r2835533 r2848726 21 21 </div> 22 22 <div class="pdo-box"> 23 <a class="get-api-key" href="https://p odro.com/plugin-pin/" target="_blank" rel="noopener noreferrer"><?php esc_html_e('دریافت کلید API', 'podro-wp'); ?></a>23 <a class="get-api-key" href="https://p', 'podro-wp'); ?></a> 24 24 </div> 25 25 <button type="submit" class="button button-primary" name="config_podro_api_key" value="1"><?php esc_html_e( "ذخیره", 'podro-wp' ) ?></button> -
podro-wp/trunk/inc/API/V1/Routes.php
r2835533 r2848726 9 9 const PROVINCES = '/provinces'; 10 10 const CITIES = '/cities'; 11 const DELIVERY_OPTIONS = '/delivery-options ';11 const DELIVERY_OPTIONS = '/delivery-options'; 12 12 13 13 const ORDER_STATUS = '/order/order_id/state'; -
podro-wp/trunk/inc/Api_Key.php
r2846187 r2848726 109 109 add_action( 'admin_notices', function () { 110 110 echo wp_kses_post('<div class="notice notice-success is-dismissible"> 111 <p>'. esc_html__( "تنظیمات ذخیره شد.", ' wp-podro' ) .'</p>111 <p>'. esc_html__( "تنظیمات ذخیره شد.", '' ) .'</p> 112 112 </div>'); 113 113 } ); … … 118 118 add_action( 'admin_notices', function () { 119 119 echo wp_kses_post('<div class="notice notice-error is-dismissible"> 120 <p>'. esc_html__( "نام فروشگاه، شهرو آدرس نمی تواند خالی باشد", ' wp-podro' ) .'</p>120 <p>'. esc_html__( "نام فروشگاه، شهرو آدرس نمی تواند خالی باشد", '' ) .'</p> 121 121 </div>'); 122 122 } ); -
podro-wp/trunk/inc/MetaBox.php
r2846187 r2848726 217 217 <li> 218 218 <label for="pod_destination_city">مقصد</label> 219 <?php if( ! Location::is_podro_city($destination_city_code) ){ ?>219 <?php if( !::is_podro_city($destination_city_code) ){ ?> 220 220 <span style="color:red">این شهر پادرویی نیست</span> 221 221 <?php } ?> … … 317 317 ){ 318 318 319 wp_send_json_error( __('وزن یا ابعاد اشتباه است', ' wp-podro'), 200 );319 wp_send_json_error( __('وزن یا ابعاد اشتباه است', ''), 200 ); 320 320 wp_die(); 321 321 … … 327 327 328 328 $store_state = $this->get_store_state(); 329 $source_city = Location::get_province_by_code($store_state); 330 $source_city = Location::get_city_by_name($source_city['name']); 331 332 $destination_city = $order->get_shipping_city(); 333 $destination_city = Location::get_city_by_name($destination_city); 329 334 330 335 331 $data = [ … … 379 375 $order = \wc_get_order($order_id); 380 376 381 $store_state = $this->get_store_state();382 //$source_city = Location::get_province_by_code($store_state);383 377 $source_city = (WooSetting::get_instance())->get_store_city_code_from_options(); 384 378 -
podro-wp/trunk/inc/Setup.php
r2846187 r2848726 267 267 __( 'تنظیمات', 'podro-wp' ), 268 268 'manage_options', 269 PODRO_S LUG,269 PODRO_SLUG, 270 270 [$this, 'settings_page'], 271 271 ); -
podro-wp/trunk/inc/WooSetting.php
r2846187 r2848726 442 442 } 443 443 444 445 446 447 444 448 public function get_city_by_name($name){ 445 449 foreach ($this->get_cities() as $code => $city_name){ … … 450 454 public function get_store_city(){ 451 455 $current_city = $this->get_store_city_code_from_options(); 456 452 457 return $this->get_cities()[$current_city]; 453 458 } 454 459 455 460 public function get_store_city_code_from_options(){ 456 return get_option('podro_store_city', 0);461 return get_option('podro_store_city',); 457 462 } 458 463 -
podro-wp/trunk/package-lock.json
r2827875 r2848726 1448 1448 }, 1449 1449 "node_modules/object-inspect": { 1450 "version": "1.12. 2",1451 "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12. 2.tgz",1452 "integrity": "sha512- z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==",1450 "version": "1.12.", 1451 "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12..tgz", 1452 "integrity": "sha512-==", 1453 1453 "dev": true, 1454 1454 "funding": { … … 3315 3315 }, 3316 3316 "object-inspect": { 3317 "version": "1.12. 2",3318 "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12. 2.tgz",3319 "integrity": "sha512- z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==",3317 "version": "1.12.", 3318 "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12..tgz", 3319 "integrity": "sha512-==", 3320 3320 "dev": true 3321 3321 }, -
podro-wp/trunk/vendor/autoload.php
r2846187 r2848726 10 10 require_once __DIR__ . '/composer/autoload_real.php'; 11 11 12 return ComposerAutoloaderInit a903ed6f874a1e7e0010191d3cdb30b2::getLoader();12 return ComposerAutoloaderInit::getLoader(); -
podro-wp/trunk/vendor/composer/autoload_classmap.php
r2846187 r2848726 121 121 'WP_PODRO\\Engine\\Helper' => $baseDir . '/inc/Helper.php', 122 122 'WP_PODRO\\Engine\\Loader' => $baseDir . '/inc/Loader.php', 123 'WP_PODRO\\Engine\\Location' => $baseDir . '/inc/Location.php',124 123 'WP_PODRO\\Engine\\MetaBox' => $baseDir . '/inc/MetaBox.php', 125 124 'WP_PODRO\\Engine\\Podro_Order_Table' => $baseDir . '/inc/Podro_Order_Table.php', … … 127 126 'WP_PODRO\\Engine\\Settings' => $baseDir . '/inc/Settings.php', 128 127 'WP_PODRO\\Engine\\Setup' => $baseDir . '/inc/Setup.php', 129 'WP_PODRO\\Engine\\WC_City_Select' => $baseDir . '/inc/WC_City_Select.php',130 128 'WP_PODRO\\Engine\\WooSetting' => $baseDir . '/inc/WooSetting.php', 131 129 ); -
podro-wp/trunk/vendor/composer/autoload_real.php
r2846187 r2848726 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit a903ed6f874a1e7e0010191d3cdb30b25 class ComposerAutoloaderInit 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit a903ed6f874a1e7e0010191d3cdb30b2', '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 a903ed6f874a1e7e0010191d3cdb30b2', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit a903ed6f874a1e7e0010191d3cdb30b2::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
r2846187 r2848726 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit a903ed6f874a1e7e0010191d3cdb30b27 class ComposerStaticInit 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 154 154 'WP_PODRO\\Engine\\Helper' => __DIR__ . '/../..' . '/inc/Helper.php', 155 155 'WP_PODRO\\Engine\\Loader' => __DIR__ . '/../..' . '/inc/Loader.php', 156 'WP_PODRO\\Engine\\Location' => __DIR__ . '/../..' . '/inc/Location.php',157 156 'WP_PODRO\\Engine\\MetaBox' => __DIR__ . '/../..' . '/inc/MetaBox.php', 158 157 'WP_PODRO\\Engine\\Podro_Order_Table' => __DIR__ . '/../..' . '/inc/Podro_Order_Table.php', … … 160 159 'WP_PODRO\\Engine\\Settings' => __DIR__ . '/../..' . '/inc/Settings.php', 161 160 'WP_PODRO\\Engine\\Setup' => __DIR__ . '/../..' . '/inc/Setup.php', 162 'WP_PODRO\\Engine\\WC_City_Select' => __DIR__ . '/../..' . '/inc/WC_City_Select.php',163 161 'WP_PODRO\\Engine\\WooSetting' => __DIR__ . '/../..' . '/inc/WooSetting.php', 164 162 ); … … 167 165 { 168 166 return \Closure::bind(function () use ($loader) { 169 $loader->prefixLengthsPsr4 = ComposerStaticInit a903ed6f874a1e7e0010191d3cdb30b2::$prefixLengthsPsr4;170 $loader->prefixDirsPsr4 = ComposerStaticInit a903ed6f874a1e7e0010191d3cdb30b2::$prefixDirsPsr4;171 $loader->classMap = ComposerStaticInit a903ed6f874a1e7e0010191d3cdb30b2::$classMap;167 $loader->prefixLengthsPsr4 = ComposerStaticInit::$prefixLengthsPsr4; 168 $loader->prefixDirsPsr4 = ComposerStaticInit::$prefixDirsPsr4; 169 $loader->classMap = ComposerStaticInit::$classMap; 172 170 173 171 }, null, ClassLoader::class); -
podro-wp/trunk/vendor/composer/installed.php
r2846187 r2848726 6 6 'install_path' => __DIR__ . '/../../', 7 7 'aliases' => array(), 8 'reference' => ' d7938fdc7d6ea4670f7e3bbf58cd86a9499d72df',8 'reference' => 'f', 9 9 'name' => 'khorshid/wp_podro', 10 10 'dev' => true, … … 35 35 'install_path' => __DIR__ . '/../../', 36 36 'aliases' => array(), 37 'reference' => ' d7938fdc7d6ea4670f7e3bbf58cd86a9499d72df',37 'reference' => 'f', 38 38 'dev_requirement' => false, 39 39 ), -
podro-wp/trunk/wp-podro.php
r2846187 r2848726 10 10 * Plugin URI: https://khorshidlab.com/ 11 11 * Description: پادروپین؛ مارکتپلیس خدمات پستی است و به فروشگاههای آنلاین کمک میکند تا فرآیند ارسال سفارشهای اینترنتی را مدیریت کنند. در پادروپین، بدون مراجعه و یا ثبت قرارداد با شرکتهای پستی، میتوان سفارشهای اینترنتی را با هر یک از شرکتهای پستی ارسال کرد 12 * Version: 1.0. 612 * Version: 1.0. 13 13 * Author: Khorshid, Podro 14 14 * Author URI: https://khorshidlab.com/fa/ … … 37 37 */ 38 38 39 define( 'PODRO_VERSION', '1.0. 6' );39 define( 'PODRO_VERSION', '1.0.' ); 40 40 define( 'PODRO_SLUG', 'podro-wp' ); 41 41 define( 'PODRO_SETTINGS_PAGE_SLUG', 'podro-wp-settings' ); … … 68 68 sprintf( 69 69 '<div class="notice notice-error"><p>%s</p></div>', 70 esc_html__( ' WP-Podro requires PHP 7.2 or newer.', 'podro-wp' )70 esc_html__( 'Podro requires PHP 7.2 or newer.', 'podro-wp' ) 71 71 ) 72 72 ); … … 79 79 80 80 require_once(PODRO_PLUGIN_ROOT . 'vendor/autoload.php'); 81 if ( class_exists('WC_Payment_Gateway') ) { 82 $GLOBALS['wc_city_select'] = new WP_PODRO\Engine\WC_City_Select(); 83 } 81 84 82 $Setup = new WP_PODRO\Engine\Setup; 85 83 add_action('admin_init', function(){
Note: See TracChangeset
for help on using the changeset viewer.