Plugin Directory

Changeset 2848726

Timestamp:
01/15/2023 05:32:19 PM (19 months ago)
Author:
khorshidlab
Message:

Plugin Version 1.0.7

Location:
podro-wp
Files:
4 deleted
32 edited
1 copied

Legend:

Unmodified
Added
Removed
  • podro-wp/tags/1.0.7/README.txt

    r2846187 r2848726  
    55Tested up to: 6.1
    66Requires PHP: 7.2
    7 Stable tag: 1.0.6
     7Stable tag: 1.0.
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    2020
    21211. Navigate to the Add New in the plugins dashboard
    22 2. Search for WP Podro
     222. Search for Podro
    23233. Click Install Now
    24244. Activate the plugin on the Plugin dashboard
     
    28281. Navigate to the Add New in the plugins dashboard
    29292. Navigate to the Upload area
    30 3. Select wp-podro.zip from your computer
     303. Select .zip from your computer
    31314. Click Install Now
    32325. Activate the plugin in the Plugin dashboard
     
    3434= Using FTP =
    3535
    36 1. Download wp-podro.zip
    37 2. Extract the wp-podro.zip directory to your computer
    38 3. Upload the wp-podro.zip directory to the /wp-content/plugins/ directory
     361. Download .zip
     372. Extract the .zip directory to your computer
     383. Upload the .zip directory to the /wp-content/plugins/ directory
    39394. Activate the plugin in the Plugin dashboard
    4040
     
    5959== Changelog ==
    6060
     61
     62
     63
     64
     65
    6166= 1.0.6 - 2023-01-10 =
    6267* Integration with persian-woocommerce-shipping-pro plugin
  • podro-wp/tags/1.0.7/admin/Enqueue.php

    r2846187 r2848726  
    9393            );
    9494
    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          );
    104104        }
    105105
  • podro-wp/tags/1.0.7/admin/views/pages/api-key-settings.php

    r2846187 r2848726  
    2828                </div>
    2929                <div class="pdo-box">
    30                     <a class="get-api-key" href="https://podro.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>
    3131                </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>
    3333                <hr/>
    3434                <h3><?php  esc_html_e( 'تنظیمات فروشگاه', 'podro-wp' ) ?></h3>
  • podro-wp/tags/1.0.7/admin/views/pages/settings.php

    r2835533 r2848726  
    2121                </div>
    2222                <div class="pdo-box">
    23                     <a class="get-api-key" href="https://podro.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>
    2424                </div>
    2525                <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  
    99    const PROVINCES  = '/provinces';
    1010    const CITIES  = '/cities';
    11     const DELIVERY_OPTIONS  = '/delivery-options';
     11    const DELIVERY_OPTIONS  = '/delivery-options';
    1212
    1313    const ORDER_STATUS  = '/order/order_id/state';
  • podro-wp/tags/1.0.7/inc/Api_Key.php

    r2846187 r2848726  
    109109                add_action( 'admin_notices', function () {
    110110                    echo wp_kses_post('<div class="notice notice-success is-dismissible">
    111                         <p>'. esc_html__( "تنظیمات ذخیره شد.", 'wp-podro' ) .'</p>
     111                        <p>'. esc_html__( "تنظیمات ذخیره شد.", '' ) .'</p>
    112112                    </div>');
    113113                } );
     
    118118                add_action( 'admin_notices', function () {
    119119                    echo wp_kses_post('<div class="notice notice-error is-dismissible">
    120                         <p>'. esc_html__( "نام فروشگاه، شهرو آدرس نمی تواند خالی باشد", 'wp-podro' ) .'</p>
     120                        <p>'. esc_html__( "نام فروشگاه، شهرو آدرس نمی تواند خالی باشد", '' ) .'</p>
    121121                    </div>');
    122122                } );
  • podro-wp/tags/1.0.7/inc/MetaBox.php

    r2846187 r2848726  
    217217            <li>
    218218                <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) ){ ?>
    220220                <span style="color:red">این شهر پادرویی نیست</span>
    221221                <?php } ?>
     
    317317        ){
    318318
    319             wp_send_json_error( __('وزن یا ابعاد اشتباه است', 'wp-podro'), 200 );
     319            wp_send_json_error( __('وزن یا ابعاد اشتباه است', ''), 200 );
    320320            wp_die();
    321321
     
    327327
    328328        $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
    334330
    335331        $data = [
     
    379375        $order = \wc_get_order($order_id);
    380376
    381         $store_state = $this->get_store_state();
    382         //$source_city = Location::get_province_by_code($store_state);
    383377        $source_city = (WooSetting::get_instance())->get_store_city_code_from_options();
    384378
  • podro-wp/tags/1.0.7/inc/Setup.php

    r2846187 r2848726  
    267267                __( 'تنظیمات', 'podro-wp' ),
    268268                'manage_options',
    269                 PODRO_SLUG,
     269                PODRO_SLUG,
    270270                [$this, 'settings_page'],
    271271            );
  • podro-wp/tags/1.0.7/inc/WooSetting.php

    r2846187 r2848726  
    442442    }
    443443
     444
     445
     446
     447
    444448    public function get_city_by_name($name){
    445449        foreach ($this->get_cities() as $code => $city_name){
     
    450454    public function get_store_city(){
    451455        $current_city = $this->get_store_city_code_from_options();
     456
    452457        return $this->get_cities()[$current_city];
    453458    }
    454459
    455460    public function get_store_city_code_from_options(){
    456         return get_option('podro_store_city',0);
     461        return get_option('podro_store_city',);
    457462    }
    458463
  • podro-wp/tags/1.0.7/package-lock.json

    r2827875 r2848726  
    14481448        },
    14491449        "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-==",
    14531453            "dev": true,
    14541454            "funding": {
     
    33153315        },
    33163316        "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-==",
    33203320            "dev": true
    33213321        },
  • podro-wp/tags/1.0.7/vendor/autoload.php

    r2846187 r2848726  
    1010require_once __DIR__ . '/composer/autoload_real.php';
    1111
    12 return ComposerAutoloaderInita903ed6f874a1e7e0010191d3cdb30b2::getLoader();
     12return ComposerAutoloaderInit::getLoader();
  • podro-wp/tags/1.0.7/vendor/composer/autoload_classmap.php

    r2846187 r2848726  
    121121    'WP_PODRO\\Engine\\Helper' => $baseDir . '/inc/Helper.php',
    122122    'WP_PODRO\\Engine\\Loader' => $baseDir . '/inc/Loader.php',
    123     'WP_PODRO\\Engine\\Location' => $baseDir . '/inc/Location.php',
    124123    'WP_PODRO\\Engine\\MetaBox' => $baseDir . '/inc/MetaBox.php',
    125124    'WP_PODRO\\Engine\\Podro_Order_Table' => $baseDir . '/inc/Podro_Order_Table.php',
     
    127126    'WP_PODRO\\Engine\\Settings' => $baseDir . '/inc/Settings.php',
    128127    'WP_PODRO\\Engine\\Setup' => $baseDir . '/inc/Setup.php',
    129     'WP_PODRO\\Engine\\WC_City_Select' => $baseDir . '/inc/WC_City_Select.php',
    130128    'WP_PODRO\\Engine\\WooSetting' => $baseDir . '/inc/WooSetting.php',
    131129);
  • podro-wp/tags/1.0.7/vendor/composer/autoload_real.php

    r2846187 r2848726  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInita903ed6f874a1e7e0010191d3cdb30b2
     5class ComposerAutoloaderInit
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInita903ed6f874a1e7e0010191d3cdb30b2', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInita903ed6f874a1e7e0010191d3cdb30b2', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInita903ed6f874a1e7e0010191d3cdb30b2::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit::getInitializer($loader));
    3333
    3434        $loader->register(true);
  • podro-wp/tags/1.0.7/vendor/composer/autoload_static.php

    r2846187 r2848726  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInita903ed6f874a1e7e0010191d3cdb30b2
     7class ComposerStaticInit
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    154154        'WP_PODRO\\Engine\\Helper' => __DIR__ . '/../..' . '/inc/Helper.php',
    155155        'WP_PODRO\\Engine\\Loader' => __DIR__ . '/../..' . '/inc/Loader.php',
    156         'WP_PODRO\\Engine\\Location' => __DIR__ . '/../..' . '/inc/Location.php',
    157156        'WP_PODRO\\Engine\\MetaBox' => __DIR__ . '/../..' . '/inc/MetaBox.php',
    158157        'WP_PODRO\\Engine\\Podro_Order_Table' => __DIR__ . '/../..' . '/inc/Podro_Order_Table.php',
     
    160159        'WP_PODRO\\Engine\\Settings' => __DIR__ . '/../..' . '/inc/Settings.php',
    161160        'WP_PODRO\\Engine\\Setup' => __DIR__ . '/../..' . '/inc/Setup.php',
    162         'WP_PODRO\\Engine\\WC_City_Select' => __DIR__ . '/../..' . '/inc/WC_City_Select.php',
    163161        'WP_PODRO\\Engine\\WooSetting' => __DIR__ . '/../..' . '/inc/WooSetting.php',
    164162    );
     
    167165    {
    168166        return \Closure::bind(function () use ($loader) {
    169             $loader->prefixLengthsPsr4 = ComposerStaticInita903ed6f874a1e7e0010191d3cdb30b2::$prefixLengthsPsr4;
    170             $loader->prefixDirsPsr4 = ComposerStaticInita903ed6f874a1e7e0010191d3cdb30b2::$prefixDirsPsr4;
    171             $loader->classMap = ComposerStaticInita903ed6f874a1e7e0010191d3cdb30b2::$classMap;
     167            $loader->prefixLengthsPsr4 = ComposerStaticInit::$prefixLengthsPsr4;
     168            $loader->prefixDirsPsr4 = ComposerStaticInit::$prefixDirsPsr4;
     169            $loader->classMap = ComposerStaticInit::$classMap;
    172170
    173171        }, null, ClassLoader::class);
  • podro-wp/tags/1.0.7/vendor/composer/installed.php

    r2846187 r2848726  
    66        'install_path' => __DIR__ . '/../../',
    77        'aliases' => array(),
    8         'reference' => 'd7938fdc7d6ea4670f7e3bbf58cd86a9499d72df',
     8        'reference' => 'f',
    99        'name' => 'khorshid/wp_podro',
    1010        'dev' => true,
     
    3535            'install_path' => __DIR__ . '/../../',
    3636            'aliases' => array(),
    37             'reference' => 'd7938fdc7d6ea4670f7e3bbf58cd86a9499d72df',
     37            'reference' => 'f',
    3838            'dev_requirement' => false,
    3939        ),
  • podro-wp/tags/1.0.7/wp-podro.php

    r2846187 r2848726  
    1010 * Plugin URI:      https://khorshidlab.com/
    1111 * Description:     پادروپین؛ ‌مارکت‌پلیس خدمات پستی است و به فروشگاه‌های آنلاین کمک می‌کند تا فرآیند ارسال سفارش‌های اینترنتی را مدیریت کنند. در پادروپین، بدون مراجعه و یا ثبت قرارداد با شرکت‌های پستی، می‌توان سفارش‌های اینترنتی را با هر یک از شرکت‌های پستی ارسال کرد
    12  * Version:         1.0.6
     12 * Version:         1.0.
    1313 * Author:          Khorshid, Podro
    1414 * Author URI:      https://khorshidlab.com/fa/
     
    3737 */
    3838
    39 define( 'PODRO_VERSION', '1.0.6' );
     39define( 'PODRO_VERSION', '1.0.' );
    4040define( 'PODRO_SLUG', 'podro-wp' );
    4141define( 'PODRO_SETTINGS_PAGE_SLUG', 'podro-wp-settings' );
     
    6868                sprintf(
    6969                    '<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' )
    7171                )
    7272            );
     
    7979
    8080require_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
    8482$Setup = new WP_PODRO\Engine\Setup;
    8583add_action('admin_init', function(){
  • podro-wp/trunk/README.txt

    r2846187 r2848726  
    55Tested up to: 6.1
    66Requires PHP: 7.2
    7 Stable tag: 1.0.6
     7Stable tag: 1.0.
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    2020
    21211. Navigate to the Add New in the plugins dashboard
    22 2. Search for WP Podro
     222. Search for Podro
    23233. Click Install Now
    24244. Activate the plugin on the Plugin dashboard
     
    28281. Navigate to the Add New in the plugins dashboard
    29292. Navigate to the Upload area
    30 3. Select wp-podro.zip from your computer
     303. Select .zip from your computer
    31314. Click Install Now
    32325. Activate the plugin in the Plugin dashboard
     
    3434= Using FTP =
    3535
    36 1. Download wp-podro.zip
    37 2. Extract the wp-podro.zip directory to your computer
    38 3. Upload the wp-podro.zip directory to the /wp-content/plugins/ directory
     361. Download .zip
     372. Extract the .zip directory to your computer
     383. Upload the .zip directory to the /wp-content/plugins/ directory
    39394. Activate the plugin in the Plugin dashboard
    4040
     
    5959== Changelog ==
    6060
     61
     62
     63
     64
     65
    6166= 1.0.6 - 2023-01-10 =
    6267* Integration with persian-woocommerce-shipping-pro plugin
  • podro-wp/trunk/admin/Enqueue.php

    r2846187 r2848726  
    9393            );
    9494
    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&hellip;', '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&hellip;', 'woocommerce' )
     102              )
     103          );
    104104        }
    105105
  • podro-wp/trunk/admin/views/pages/api-key-settings.php

    r2846187 r2848726  
    2828                </div>
    2929                <div class="pdo-box">
    30                     <a class="get-api-key" href="https://podro.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>
    3131                </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>
    3333                <hr/>
    3434                <h3><?php  esc_html_e( 'تنظیمات فروشگاه', 'podro-wp' ) ?></h3>
  • podro-wp/trunk/admin/views/pages/settings.php

    r2835533 r2848726  
    2121                </div>
    2222                <div class="pdo-box">
    23                     <a class="get-api-key" href="https://podro.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>
    2424                </div>
    2525                <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  
    99    const PROVINCES  = '/provinces';
    1010    const CITIES  = '/cities';
    11     const DELIVERY_OPTIONS  = '/delivery-options';
     11    const DELIVERY_OPTIONS  = '/delivery-options';
    1212
    1313    const ORDER_STATUS  = '/order/order_id/state';
  • podro-wp/trunk/inc/Api_Key.php

    r2846187 r2848726  
    109109                add_action( 'admin_notices', function () {
    110110                    echo wp_kses_post('<div class="notice notice-success is-dismissible">
    111                         <p>'. esc_html__( "تنظیمات ذخیره شد.", 'wp-podro' ) .'</p>
     111                        <p>'. esc_html__( "تنظیمات ذخیره شد.", '' ) .'</p>
    112112                    </div>');
    113113                } );
     
    118118                add_action( 'admin_notices', function () {
    119119                    echo wp_kses_post('<div class="notice notice-error is-dismissible">
    120                         <p>'. esc_html__( "نام فروشگاه، شهرو آدرس نمی تواند خالی باشد", 'wp-podro' ) .'</p>
     120                        <p>'. esc_html__( "نام فروشگاه، شهرو آدرس نمی تواند خالی باشد", '' ) .'</p>
    121121                    </div>');
    122122                } );
  • podro-wp/trunk/inc/MetaBox.php

    r2846187 r2848726  
    217217            <li>
    218218                <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) ){ ?>
    220220                <span style="color:red">این شهر پادرویی نیست</span>
    221221                <?php } ?>
     
    317317        ){
    318318
    319             wp_send_json_error( __('وزن یا ابعاد اشتباه است', 'wp-podro'), 200 );
     319            wp_send_json_error( __('وزن یا ابعاد اشتباه است', ''), 200 );
    320320            wp_die();
    321321
     
    327327
    328328        $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
    334330
    335331        $data = [
     
    379375        $order = \wc_get_order($order_id);
    380376
    381         $store_state = $this->get_store_state();
    382         //$source_city = Location::get_province_by_code($store_state);
    383377        $source_city = (WooSetting::get_instance())->get_store_city_code_from_options();
    384378
  • podro-wp/trunk/inc/Setup.php

    r2846187 r2848726  
    267267                __( 'تنظیمات', 'podro-wp' ),
    268268                'manage_options',
    269                 PODRO_SLUG,
     269                PODRO_SLUG,
    270270                [$this, 'settings_page'],
    271271            );
  • podro-wp/trunk/inc/WooSetting.php

    r2846187 r2848726  
    442442    }
    443443
     444
     445
     446
     447
    444448    public function get_city_by_name($name){
    445449        foreach ($this->get_cities() as $code => $city_name){
     
    450454    public function get_store_city(){
    451455        $current_city = $this->get_store_city_code_from_options();
     456
    452457        return $this->get_cities()[$current_city];
    453458    }
    454459
    455460    public function get_store_city_code_from_options(){
    456         return get_option('podro_store_city',0);
     461        return get_option('podro_store_city',);
    457462    }
    458463
  • podro-wp/trunk/package-lock.json

    r2827875 r2848726  
    14481448        },
    14491449        "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-==",
    14531453            "dev": true,
    14541454            "funding": {
     
    33153315        },
    33163316        "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-==",
    33203320            "dev": true
    33213321        },
  • podro-wp/trunk/vendor/autoload.php

    r2846187 r2848726  
    1010require_once __DIR__ . '/composer/autoload_real.php';
    1111
    12 return ComposerAutoloaderInita903ed6f874a1e7e0010191d3cdb30b2::getLoader();
     12return ComposerAutoloaderInit::getLoader();
  • podro-wp/trunk/vendor/composer/autoload_classmap.php

    r2846187 r2848726  
    121121    'WP_PODRO\\Engine\\Helper' => $baseDir . '/inc/Helper.php',
    122122    'WP_PODRO\\Engine\\Loader' => $baseDir . '/inc/Loader.php',
    123     'WP_PODRO\\Engine\\Location' => $baseDir . '/inc/Location.php',
    124123    'WP_PODRO\\Engine\\MetaBox' => $baseDir . '/inc/MetaBox.php',
    125124    'WP_PODRO\\Engine\\Podro_Order_Table' => $baseDir . '/inc/Podro_Order_Table.php',
     
    127126    'WP_PODRO\\Engine\\Settings' => $baseDir . '/inc/Settings.php',
    128127    'WP_PODRO\\Engine\\Setup' => $baseDir . '/inc/Setup.php',
    129     'WP_PODRO\\Engine\\WC_City_Select' => $baseDir . '/inc/WC_City_Select.php',
    130128    'WP_PODRO\\Engine\\WooSetting' => $baseDir . '/inc/WooSetting.php',
    131129);
  • podro-wp/trunk/vendor/composer/autoload_real.php

    r2846187 r2848726  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInita903ed6f874a1e7e0010191d3cdb30b2
     5class ComposerAutoloaderInit
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInita903ed6f874a1e7e0010191d3cdb30b2', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInita903ed6f874a1e7e0010191d3cdb30b2', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInita903ed6f874a1e7e0010191d3cdb30b2::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit::getInitializer($loader));
    3333
    3434        $loader->register(true);
  • podro-wp/trunk/vendor/composer/autoload_static.php

    r2846187 r2848726  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInita903ed6f874a1e7e0010191d3cdb30b2
     7class ComposerStaticInit
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    154154        'WP_PODRO\\Engine\\Helper' => __DIR__ . '/../..' . '/inc/Helper.php',
    155155        'WP_PODRO\\Engine\\Loader' => __DIR__ . '/../..' . '/inc/Loader.php',
    156         'WP_PODRO\\Engine\\Location' => __DIR__ . '/../..' . '/inc/Location.php',
    157156        'WP_PODRO\\Engine\\MetaBox' => __DIR__ . '/../..' . '/inc/MetaBox.php',
    158157        'WP_PODRO\\Engine\\Podro_Order_Table' => __DIR__ . '/../..' . '/inc/Podro_Order_Table.php',
     
    160159        'WP_PODRO\\Engine\\Settings' => __DIR__ . '/../..' . '/inc/Settings.php',
    161160        'WP_PODRO\\Engine\\Setup' => __DIR__ . '/../..' . '/inc/Setup.php',
    162         'WP_PODRO\\Engine\\WC_City_Select' => __DIR__ . '/../..' . '/inc/WC_City_Select.php',
    163161        'WP_PODRO\\Engine\\WooSetting' => __DIR__ . '/../..' . '/inc/WooSetting.php',
    164162    );
     
    167165    {
    168166        return \Closure::bind(function () use ($loader) {
    169             $loader->prefixLengthsPsr4 = ComposerStaticInita903ed6f874a1e7e0010191d3cdb30b2::$prefixLengthsPsr4;
    170             $loader->prefixDirsPsr4 = ComposerStaticInita903ed6f874a1e7e0010191d3cdb30b2::$prefixDirsPsr4;
    171             $loader->classMap = ComposerStaticInita903ed6f874a1e7e0010191d3cdb30b2::$classMap;
     167            $loader->prefixLengthsPsr4 = ComposerStaticInit::$prefixLengthsPsr4;
     168            $loader->prefixDirsPsr4 = ComposerStaticInit::$prefixDirsPsr4;
     169            $loader->classMap = ComposerStaticInit::$classMap;
    172170
    173171        }, null, ClassLoader::class);
  • podro-wp/trunk/vendor/composer/installed.php

    r2846187 r2848726  
    66        'install_path' => __DIR__ . '/../../',
    77        'aliases' => array(),
    8         'reference' => 'd7938fdc7d6ea4670f7e3bbf58cd86a9499d72df',
     8        'reference' => 'f',
    99        'name' => 'khorshid/wp_podro',
    1010        'dev' => true,
     
    3535            'install_path' => __DIR__ . '/../../',
    3636            'aliases' => array(),
    37             'reference' => 'd7938fdc7d6ea4670f7e3bbf58cd86a9499d72df',
     37            'reference' => 'f',
    3838            'dev_requirement' => false,
    3939        ),
  • podro-wp/trunk/wp-podro.php

    r2846187 r2848726  
    1010 * Plugin URI:      https://khorshidlab.com/
    1111 * Description:     پادروپین؛ ‌مارکت‌پلیس خدمات پستی است و به فروشگاه‌های آنلاین کمک می‌کند تا فرآیند ارسال سفارش‌های اینترنتی را مدیریت کنند. در پادروپین، بدون مراجعه و یا ثبت قرارداد با شرکت‌های پستی، می‌توان سفارش‌های اینترنتی را با هر یک از شرکت‌های پستی ارسال کرد
    12  * Version:         1.0.6
     12 * Version:         1.0.
    1313 * Author:          Khorshid, Podro
    1414 * Author URI:      https://khorshidlab.com/fa/
     
    3737 */
    3838
    39 define( 'PODRO_VERSION', '1.0.6' );
     39define( 'PODRO_VERSION', '1.0.' );
    4040define( 'PODRO_SLUG', 'podro-wp' );
    4141define( 'PODRO_SETTINGS_PAGE_SLUG', 'podro-wp-settings' );
     
    6868                sprintf(
    6969                    '<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' )
    7171                )
    7272            );
     
    7979
    8080require_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
    8482$Setup = new WP_PODRO\Engine\Setup;
    8583add_action('admin_init', function(){
Note: See TracChangeset for help on using the changeset viewer.