Plugin Directory

Changeset 3257926


Ignore:
Timestamp:
03/18/2025 03:21:16 PM (13 months ago)
Author:
bitsstech
Message:

fix in tracking css

Location:
shipment-tracker-for-woocommerce/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • shipment-tracker-for-woocommerce/trunk/admin/partials/bt-shipment-tracking-manual-metabox.php

    r3256359 r3257926  
    4141            z-index: 9999;
    4242        }
     43
    4344        .bt_sst_current_status_container_modal_content {
     45            width: 500px;
    4446            background: white;
    45             padding: 10px;
    46             border-radius: 8px;
     47            padding: 20px;
     48            border-radius: 15px;
    4749            position: relative;
    48             text-align: center;
     50            /* text-align: center; */
    4951            margin: auto;
    5052        }
     
    6365        /* Input fields */
    6466        .bt_sst_current_status_container_input {
    65             width: 50%;
     67            /* width: 50%; */
    6668            padding: 10px;
    6769            margin: 10px 0;
     
    7173
    7274        /* Footer buttons */
    73         .bt_sst_current_status_container_footer {
     75        /* .bt_sst_current_status_container_footer {
    7476            margin-top: 15px;
    75         }
    76 
    77         .bt_sst_current_status_container_footer button {
     77        } */
     78
     79        /* .bt_sst_current_status_container_footer button {
    7880            padding: 10px;
    7981            margin: 5px;
     
    8183            cursor: pointer;
    8284            border-radius: 5px;
    83         }
    84         .bt_sst_current_status_container_field{
     85        } */
     86        /* .bt_sst_field{
    8587            display: flex;
    8688            justify-content: center;
    8789            align-items: center;
    88         }
    89         .bt_sst_current_status_container_field label{
     90        } */
     91        /* .bt_sst_field label{
    9092            width: 30%;
     93        } */
     94        .bt_sst_field {
     95            margin-bottom: 15px;
     96        }
     97
     98        .bt_sst_field label {
     99            display: block;
     100            margin-bottom: 5px;
     101            font-weight: bold;
     102        }
     103
     104        .bt_sst_field input {
     105            width: 100%;
     106            padding: 10px;
     107            border: 1px solid #ccc;
     108            border-radius: 4px;
     109        }
     110
     111        .bt_sst_field select {
     112            width: 100%;
     113            padding: 10px;
     114            border: 1px solid #ccc;
     115            border-radius: 4px;
     116        }
     117
     118        .bt_sst_field button {
     119            background-color: #007BFF;
     120            color: #fff;
     121            padding: 10px 15px;
     122            border: none;
     123            border-radius: 4px;
     124            cursor: pointer;
     125        }
     126
     127        .bt_sst_field button:hover {
     128            background-color: #0056b3;
    91129        }
    92130    </style>
     
    94132        <div class="bt_sst_current_status_container_modal_content">
    95133            <button type="button" id="bt_sst_current_status_container_close">&times;</button>
    96             <h2>Set Current Location</h2>
     134            <h3>Set Current Location</h3>
     135            <input id="bt_ss_map_input_current_address" type="hidden" value="<?php echo isset($bt_shipment_tracking['current_address']) ? $bt_shipment_tracking['current_address'] : ''; ?>">
     136            <input id="bt_ss_map_input_current_country" type="hidden" value="<?php echo isset($bt_shipment_tracking['current_country']) ? $bt_shipment_tracking['current_country'] : ''; ?>">
     137            <input id="bt_ss_map_input_current_pincode" type="hidden" value="<?php echo isset($bt_shipment_tracking['current_pincode']) ? $bt_shipment_tracking['current_pincode'] : ''; ?>">
    97138           
    98 
    99             <div class="bt_sst_current_status_container_field">
     139            <!-- <div class="bt_sst_field">
     140                <label for="bt_sst_current_status_container_country">Country : </label>
     141                <input value="<?php echo isset($bt_shipment_tracking['current_country']) ? $bt_shipment_tracking['current_country'] : ''; ?>" id="bt_sst_current_status_container_country" class="bt_sst_current_status_container_input" type="text" placeholder="Enter country">
     142            </div> -->
     143            <div class="bt_sst_field">
     144                <label for="bt_sst_current_status_container_country">Country:</label>
     145                <select id="bt_sst_current_status_container_country" class="bt_sst_current_status_container_input" name="bt_sst_current_status_container_country">
     146                    <option value=""><?php _e('Select a Country', 'woocommerce'); ?></option>
     147                    <?php
     148                    $countries = WC()->countries->get_countries();
     149                    $selected_country = isset($bt_shipment_tracking['current_country']) ? $bt_shipment_tracking['current_country'] : '';
     150
     151                    foreach ($countries as $code => $name) {
     152                        echo '<option value="' . esc_attr($code) . '" ' . selected($selected_country, $code, false) . '>' . esc_html($name) . '</option>';
     153                    }
     154                    ?>
     155                </select>
     156            </div>
     157
     158
     159            <div class="bt_sst_field">
    100160                <label for="bt_sst_current_status_container_address">Location : </label>
    101161                <input value="<?php echo isset($bt_shipment_tracking['current_address']) ? $bt_shipment_tracking['current_address'] : ''; ?>" id="bt_sst_current_status_container_address" class="bt_sst_current_status_container_input" type="text" placeholder="Enter warehouse or location name">
    102162            </div>
    103163
    104             <div class="bt_sst_current_status_container_field">
    105                 <label for="bt_sst_current_status_container_country">Country : </label>
    106                 <input value="<?php echo isset($bt_shipment_tracking['current_country']) ? $bt_shipment_tracking['current_country'] : ''; ?>" id="bt_sst_current_status_container_country" class="bt_sst_current_status_container_input" type="text" placeholder="Enter country">
    107             </div>
    108 
    109             <div class="bt_sst_current_status_container_field">
    110                 <label for="bt_sst_current_status_container_pincode">Pincode : </label>
     164            <div class="bt_sst_field">
     165                <label for="bt_sst_current_status_container_pincode">Pincode* : </label>
    111166                <input value="<?php echo isset($bt_shipment_tracking['current_pincode']) ? $bt_shipment_tracking['current_pincode'] : ''; ?>" id="bt_sst_current_status_container_pincode" class="bt_sst_current_status_container_input" type="text" placeholder="Enter pincode">
    112167            </div>
    113             <div class="bt_sst_current_status_container_footer">
     168            <div class="bt_sst_current_status_container_footer bt_sst_field">
    114169                <button type="button" id="bt_sst_current_status_container_save" class="bt_sst_current_status_container_save">Ok</button>
    115170                <button type="button" id="bt_sst_current_status_container_cancel" class="bt_sst_current_status_container_cancel">Cancel</button>
     
    197252             return false;
    198253        }
     254
    199255        jQuery('#bt_manual_save').addClass("disabled");
    200256        jQuery('#bt_sync-box .spinner').addClass("is-active");
     
    207263                'courier_name': bt_manual_courier_name,
    208264                'awb_number':  jQuery('#bt_manual_awb_number').val(),
    209                 'current_address':  jQuery('#bt_sst_current_status_container_address').val(),
    210                 'current_country':  jQuery('#bt_sst_current_status_container_country').val(),
    211                 'current_pincode':  jQuery('#bt_sst_current_status_container_pincode').val(),
     265                'current_address':  jQuery('#bt_ss_map_input_current_address').val(),
     266                'current_country':  jQuery('#bt_ss_map_input_current_country').val(),
     267                'current_pincode':  jQuery('#bt_ss_map_input_current_pincode').val(),
    212268                'shipping_status': jQuery('#bt_manual_shipping_status').val(),
    213269                'etd': jQuery('#bt_manual_etd').val(),
     
    250306            var country_value = jQuery('#bt_sst_current_status_container_country').val();
    251307            var pincode_value = jQuery('#bt_sst_current_status_container_pincode').val();
     308            jQuery('#bt_ss_map_input_current_address').val(adress_value),
     309            jQuery('#bt_ss_map_input_current_country').val(country_value),
     310            jQuery('#bt_ss_map_input_current_pincode').val(pincode_value),
    252311            jQuery(".bt_sst_current_saved_data").html("<span>"+adress_value+"</span><span> "+country_value+"</span><span> "+pincode_value+"</span>")
    253312            $('#bt_sst_current_status_container_modal').fadeOut();
  • shipment-tracker-for-woocommerce/trunk/bt-sync-shipment-tracking.php

    r3256359 r3257926  
    1717 * Plugin URI:        https://shipment-tracker-for-woocommerce.bitss.tech/
    1818 * Description:       Most comprehensive shipment tracking plugin that extends your woocommerce store with shipment related features. Keeps you & your customers informed about shipment movement.
    19  * Version:           1.4.24.2
     19 * Version:           1.4.24.3
    2020 * Author:            Bitss Techniques
    2121 * Author URI:        https://shipment-tracker-for-woocommerce.bitss.tech
     
    5959
    6060define( 'Carbon_Fields\URL', trailingslashit( plugin_dir_url( __FILE__ ) ) . 'vendor/htmlburger/carbon-fields/' );//fix for Bitnami installations.
    61 define( 'BT_SYNC_SHIPMENT_TRACKING_VERSION', '1.4.24.2' );
     61define( 'BT_SYNC_SHIPMENT_TRACKING_VERSION', '1.4.24.3' );
    6262define( 'BT_SHIPPING_PROVIDERS', array('delhivery' =>'Delhivery','nimbuspost' => 'Nimbuspost (Deprecated)','nimbuspost_new' => 'Nimbuspost','shipmozo'=>'Shipmozo','shiprocket' => 'Shiprocket', 'xpressbees' => 'Xpressbees', 'manual' =>'Custom Shipping') );
    6363define( 'BT_SHIPPING_PROVIDERS_WITH_NONE', array('none' =>'none','delhivery' =>'Delhivery', 'nimbuspost' => 'Nimbuspost (OLD)','nimbuspost_new' => 'Nimbuspost(NEW)','shipmozo'=>'Shipmozo','shiprocket' => 'Shiprocket', 'xpressbees' => 'Xpressbees','manual' =>'Custom Shipping') );
  • shipment-tracker-for-woocommerce/trunk/public/css/bt-sync-shipment-tracking-primery-template-form-2.css

    r3256359 r3257926  
    3232    background: #3c3c3c2b;
    3333    height: unset;
     34    line-height: unset;
    3435}
    3536
     
    4445    line-height: unset;
    4546    text-transform: unset;
     47    height: unset;
    4648}
    4749
  • shipment-tracker-for-woocommerce/trunk/public/partials/bt_shipping_tracking_form_2.php

    r3256359 r3257926  
    1 <!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> -->
    2 <!-- <link rel="stylesheet" href="https://unpkg.com/leaflet/dist/leaflet.css" /> -->
    3 <!-- <script src="https://unpkg.com/leaflet/dist/leaflet.js"></script> -->
    4 
    51<?php
     2$pickup_pincode = '';
     3$currentPin = "";
     4$delivery_pincode = "";
     5
    66$public_dir_url = plugin_dir_url(dirname(__FILE__));
    77$last_four_digit = carbon_get_theme_option('bt_sst_valid_phone_no');
  • shipment-tracker-for-woocommerce/trunk/public/partials/bt_shipping_tracking_page_template_second.php

    r3256359 r3257926  
    11<?php
     2$pickup_pincode = '';
     3$currentPin = "";
     4$delivery_pincode = "";
     5
    26$public_dir_url = plugin_dir_url(dirname(__FILE__));
    37$last_four_digit = carbon_get_theme_option('bt_sst_valid_phone_no');
  • shipment-tracker-for-woocommerce/trunk/vendor/composer/ClassLoader.php

    r3256359 r3257926  
    4646    private static $includeFile;
    4747
    48     /** @var string|null */
     48    /** @var ?string */
    4949    private $vendorDir;
    5050
    5151    // PSR-4
    5252    /**
    53      * @var array<string, array<string, int>>
     53     * @var array[]
     54     * @psalm-var array<string, array<string, int>>
    5455     */
    5556    private $prefixLengthsPsr4 = array();
    5657    /**
    57      * @var array<string, list<string>>
     58     * @var array[]
     59     * @psalm-var array<string, array<int, string>>
    5860     */
    5961    private $prefixDirsPsr4 = array();
    6062    /**
    61      * @var list<string>
     63     * @var array[]
     64     * @psalm-var array<string, string>
    6265     */
    6366    private $fallbackDirsPsr4 = array();
     
    6568    // PSR-0
    6669    /**
    67      * List of PSR-0 prefixes
    68      *
    69      * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2')))
    70      *
    71      * @var array<string, array<string, list<string>>>
     70     * @var array[]
     71     * @psalm-var array<string, array<string, string[]>>
    7272     */
    7373    private $prefixesPsr0 = array();
    7474    /**
    75      * @var list<string>
     75     * @var array[]
     76     * @psalm-var array<string, string>
    7677     */
    7778    private $fallbackDirsPsr0 = array();
     
    8182
    8283    /**
    83      * @var array<string, string>
     84     * @var string[]
     85     * @psalm-var array<string, string>
    8486     */
    8587    private $classMap = array();
     
    8991
    9092    /**
    91      * @var array<string, bool>
     93     * @var bool[]
     94     * @psalm-var array<string, bool>
    9295     */
    9396    private $missingClasses = array();
    9497
    95     /** @var string|null */
     98    /** @var ?string */
    9699    private $apcuPrefix;
    97100
    98101    /**
    99      * @var array<string, self>
     102     * @var self[]
    100103     */
    101104    private static $registeredLoaders = array();
    102105
    103106    /**
    104      * @param string|null $vendorDir
     107     * @param ?string $vendorDir
    105108     */
    106109    public function __construct($vendorDir = null)
     
    111114
    112115    /**
    113      * @return array<string, list<string>>
     116     * @return string[]
    114117     */
    115118    public function getPrefixes()
     
    123126
    124127    /**
    125      * @return array<string, list<string>>
     128     * @return array[]
     129     * @psalm-return array<string, array<int, string>>
    126130     */
    127131    public function getPrefixesPsr4()
     
    131135
    132136    /**
    133      * @return list<string>
     137     * @return array[]
     138     * @psalm-return array<string, string>
    134139     */
    135140    public function getFallbackDirs()
     
    139144
    140145    /**
    141      * @return list<string>
     146     * @return array[]
     147     * @psalm-return array<string, string>
    142148     */
    143149    public function getFallbackDirsPsr4()
     
    147153
    148154    /**
    149      * @return array<string, string> Array of classname => path
     155     * @return string[] Array of classname => path
     156     * @psalm-return array<string, string>
    150157     */
    151158    public function getClassMap()
     
    155162
    156163    /**
    157      * @param array<string, string> $classMap Class to filename map
     164     * @param string[] $classMap Class to filename map
     165     * @psalm-param array<string, string> $classMap
    158166     *
    159167     * @return void
     
    172180     * appending or prepending to the ones previously set for this prefix.
    173181     *
    174      * @param string              $prefix  The prefix
    175      * @param list<string>|string $paths   The PSR-0 root directories
    176      * @param bool                $prepend Whether to prepend the directories
     182     * @param string          $prefix  The prefix
     183     * @param string[]|string $paths   The PSR-0 root directories
     184     * @param bool            $prepend Whether to prepend the directories
    177185     *
    178186     * @return void
     
    180188    public function add($prefix, $paths, $prepend = false)
    181189    {
    182         $paths = (array) $paths;
    183190        if (!$prefix) {
    184191            if ($prepend) {
    185192                $this->fallbackDirsPsr0 = array_merge(
    186                     $paths,
     193                    (array) $paths,
    187194                    $this->fallbackDirsPsr0
    188195                );
     
    190197                $this->fallbackDirsPsr0 = array_merge(
    191198                    $this->fallbackDirsPsr0,
    192                     $paths
     199                    (array) $paths
    193200                );
    194201            }
     
    199206        $first = $prefix[0];
    200207        if (!isset($this->prefixesPsr0[$first][$prefix])) {
    201             $this->prefixesPsr0[$first][$prefix] = $paths;
     208            $this->prefixesPsr0[$first][$prefix] = (array) $paths;
    202209
    203210            return;
     
    205212        if ($prepend) {
    206213            $this->prefixesPsr0[$first][$prefix] = array_merge(
    207                 $paths,
     214                (array) $paths,
    208215                $this->prefixesPsr0[$first][$prefix]
    209216            );
     
    211218            $this->prefixesPsr0[$first][$prefix] = array_merge(
    212219                $this->prefixesPsr0[$first][$prefix],
    213                 $paths
     220                (array) $paths
    214221            );
    215222        }
     
    220227     * appending or prepending to the ones previously set for this namespace.
    221228     *
    222      * @param string              $prefix  The prefix/namespace, with trailing '\\'
    223      * @param list<string>|string $paths   The PSR-4 base directories
    224      * @param bool                $prepend Whether to prepend the directories
     229     * @param string          $prefix  The prefix/namespace, with trailing '\\'
     230     * @param string[]|string $paths   The PSR-4 base directories
     231     * @param bool            $prepend Whether to prepend the directories
    225232     *
    226233     * @throws \InvalidArgumentException
     
    230237    public function addPsr4($prefix, $paths, $prepend = false)
    231238    {
    232         $paths = (array) $paths;
    233239        if (!$prefix) {
    234240            // Register directories for the root namespace.
    235241            if ($prepend) {
    236242                $this->fallbackDirsPsr4 = array_merge(
    237                     $paths,
     243                    (array) $paths,
    238244                    $this->fallbackDirsPsr4
    239245                );
     
    241247                $this->fallbackDirsPsr4 = array_merge(
    242248                    $this->fallbackDirsPsr4,
    243                     $paths
     249                    (array) $paths
    244250                );
    245251            }
     
    251257            }
    252258            $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
    253             $this->prefixDirsPsr4[$prefix] = $paths;
     259            $this->prefixDirsPsr4[$prefix] = (array) $paths;
    254260        } elseif ($prepend) {
    255261            // Prepend directories for an already registered namespace.
    256262            $this->prefixDirsPsr4[$prefix] = array_merge(
    257                 $paths,
     263                (array) $paths,
    258264                $this->prefixDirsPsr4[$prefix]
    259265            );
     
    262268            $this->prefixDirsPsr4[$prefix] = array_merge(
    263269                $this->prefixDirsPsr4[$prefix],
    264                 $paths
     270                (array) $paths
    265271            );
    266272        }
     
    271277     * replacing any others previously set for this prefix.
    272278     *
    273      * @param string              $prefix The prefix
    274      * @param list<string>|string $paths  The PSR-0 base directories
     279     * @param string          $prefix The prefix
     280     * @param string[]|string $paths  The PSR-0 base directories
    275281     *
    276282     * @return void
     
    289295     * replacing any others previously set for this namespace.
    290296     *
    291      * @param string              $prefix The prefix/namespace, with trailing '\\'
    292      * @param list<string>|string $paths  The PSR-4 base directories
     297     * @param string          $prefix The prefix/namespace, with trailing '\\'
     298     * @param string[]|string $paths  The PSR-4 base directories
    293299     *
    294300     * @throws \InvalidArgumentException
     
    424430    {
    425431        if ($file = $this->findFile($class)) {
    426             $includeFile = self::$includeFile;
    427             $includeFile($file);
     432            (self::$includeFile)($file);
    428433
    429434            return true;
     
    476481
    477482    /**
    478      * Returns the currently registered loaders keyed by their corresponding vendor directories.
    479      *
    480      * @return array<string, self>
     483     * Returns the currently registered loaders indexed by their corresponding vendor directories.
     484     *
     485     * @return self[]
    481486     */
    482487    public static function getRegisteredLoaders()
     
    556561    }
    557562
    558     /**
    559      * @return void
    560      */
    561     private static function initializeIncludeClosure()
     563    private static function initializeIncludeClosure(): void
    562564    {
    563565        if (self::$includeFile !== null) {
     
    573575         * @return void
    574576         */
    575         self::$includeFile = \Closure::bind(static function($file) {
     577        self::$includeFile = static function($file) {
    576578            include $file;
    577         }, null, null);
     579        };
    578580    }
    579581}
  • shipment-tracker-for-woocommerce/trunk/vendor/composer/InstalledVersions.php

    r3256359 r3257926  
    9999        foreach (self::getInstalled() as $installed) {
    100100            if (isset($installed['versions'][$packageName])) {
    101                 return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false;
     101                return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);
    102102            }
    103103        }
     
    120120    public static function satisfies(VersionParser $parser, $packageName, $constraint)
    121121    {
    122         $constraint = $parser->parseConstraints((string) $constraint);
     122        $constraint = $parser->parseConstraints($constraint);
    123123        $provided = $parser->parseConstraints(self::getVersionRanges($packageName));
    124124
     
    329329                    $installed[] = self::$installedByVendor[$vendorDir];
    330330                } elseif (is_file($vendorDir.'/composer/installed.php')) {
    331                     /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
    332                     $required = require $vendorDir.'/composer/installed.php';
    333                     $installed[] = self::$installedByVendor[$vendorDir] = $required;
     331                    $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php';
    334332                    if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
    335333                        self::$installed = $installed[count($installed) - 1];
     
    343341            // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
    344342            if (substr(__DIR__, -8, 1) !== 'C') {
    345                 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
    346                 $required = require __DIR__ . '/installed.php';
    347                 self::$installed = $required;
     343                self::$installed = require __DIR__ . '/installed.php';
    348344            } else {
    349345                self::$installed = array();
    350346            }
    351347        }
    352 
    353         if (self::$installed !== array()) {
    354             $installed[] = self::$installed;
    355         }
     348        $installed[] = self::$installed;
    356349
    357350        return $installed;
  • shipment-tracker-for-woocommerce/trunk/vendor/composer/installed.php

    r3256359 r3257926  
    44        'pretty_version' => '1.14.21.x-dev',
    55        'version' => '1.14.21.9999999-dev',
    6         'reference' => '1ee52284366ec449dcabb116f6da4e2c4f63ff4c',
     6        'reference' => '31484ef067f77376ae676c02b9243ca940c8d510',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => '1.14.21.x-dev',
    1515            'version' => '1.14.21.9999999-dev',
    16             'reference' => '1ee52284366ec449dcabb116f6da4e2c4f63ff4c',
     16            'reference' => '31484ef067f77376ae676c02b9243ca940c8d510',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.