Changeset 3257926
- Timestamp:
- 03/18/2025 03:21:16 PM (13 months ago)
- Location:
- shipment-tracker-for-woocommerce/trunk
- Files:
-
- 8 edited
-
admin/partials/bt-shipment-tracking-manual-metabox.php (modified) (8 diffs)
-
bt-sync-shipment-tracking.php (modified) (2 diffs)
-
public/css/bt-sync-shipment-tracking-primery-template-form-2.css (modified) (2 diffs)
-
public/partials/bt_shipping_tracking_form_2.php (modified) (1 diff)
-
public/partials/bt_shipping_tracking_page_template_second.php (modified) (1 diff)
-
vendor/composer/ClassLoader.php (modified) (27 diffs)
-
vendor/composer/InstalledVersions.php (modified) (4 diffs)
-
vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shipment-tracker-for-woocommerce/trunk/admin/partials/bt-shipment-tracking-manual-metabox.php
r3256359 r3257926 41 41 z-index: 9999; 42 42 } 43 43 44 .bt_sst_current_status_container_modal_content { 45 width: 500px; 44 46 background: white; 45 padding: 10px;46 border-radius: 8px;47 padding: 20px; 48 border-radius: 15px; 47 49 position: relative; 48 text-align: center;50 /* text-align: center; */ 49 51 margin: auto; 50 52 } … … 63 65 /* Input fields */ 64 66 .bt_sst_current_status_container_input { 65 width: 50%;67 /* width: 50%; */ 66 68 padding: 10px; 67 69 margin: 10px 0; … … 71 73 72 74 /* Footer buttons */ 73 .bt_sst_current_status_container_footer {75 /* .bt_sst_current_status_container_footer { 74 76 margin-top: 15px; 75 } 76 77 .bt_sst_current_status_container_footer button {77 } */ 78 79 /* .bt_sst_current_status_container_footer button { 78 80 padding: 10px; 79 81 margin: 5px; … … 81 83 cursor: pointer; 82 84 border-radius: 5px; 83 } 84 .bt_sst_current_status_container_field{85 } */ 86 /* .bt_sst_field{ 85 87 display: flex; 86 88 justify-content: center; 87 89 align-items: center; 88 } 89 .bt_sst_current_status_container_field label{90 } */ 91 /* .bt_sst_field label{ 90 92 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; 91 129 } 92 130 </style> … … 94 132 <div class="bt_sst_current_status_container_modal_content"> 95 133 <button type="button" id="bt_sst_current_status_container_close">×</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'] : ''; ?>"> 97 138 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"> 100 160 <label for="bt_sst_current_status_container_address">Location : </label> 101 161 <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"> 102 162 </div> 103 163 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> 111 166 <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"> 112 167 </div> 113 <div class="bt_sst_current_status_container_footer ">168 <div class="bt_sst_current_status_container_footer bt_sst_field"> 114 169 <button type="button" id="bt_sst_current_status_container_save" class="bt_sst_current_status_container_save">Ok</button> 115 170 <button type="button" id="bt_sst_current_status_container_cancel" class="bt_sst_current_status_container_cancel">Cancel</button> … … 197 252 return false; 198 253 } 254 199 255 jQuery('#bt_manual_save').addClass("disabled"); 200 256 jQuery('#bt_sync-box .spinner').addClass("is-active"); … … 207 263 'courier_name': bt_manual_courier_name, 208 264 'awb_number': jQuery('#bt_manual_awb_number').val(), 209 'current_address': jQuery('#bt_ss t_current_status_container_address').val(),210 'current_country': jQuery('#bt_ss t_current_status_container_country').val(),211 'current_pincode': jQuery('#bt_ss t_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(), 212 268 'shipping_status': jQuery('#bt_manual_shipping_status').val(), 213 269 'etd': jQuery('#bt_manual_etd').val(), … … 250 306 var country_value = jQuery('#bt_sst_current_status_container_country').val(); 251 307 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), 252 311 jQuery(".bt_sst_current_saved_data").html("<span>"+adress_value+"</span><span> "+country_value+"</span><span> "+pincode_value+"</span>") 253 312 $('#bt_sst_current_status_container_modal').fadeOut(); -
shipment-tracker-for-woocommerce/trunk/bt-sync-shipment-tracking.php
r3256359 r3257926 17 17 * Plugin URI: https://shipment-tracker-for-woocommerce.bitss.tech/ 18 18 * 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. 219 * Version: 1.4.24.3 20 20 * Author: Bitss Techniques 21 21 * Author URI: https://shipment-tracker-for-woocommerce.bitss.tech … … 59 59 60 60 define( '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' );61 define( 'BT_SYNC_SHIPMENT_TRACKING_VERSION', '1.4.24.3' ); 62 62 define( 'BT_SHIPPING_PROVIDERS', array('delhivery' =>'Delhivery','nimbuspost' => 'Nimbuspost (Deprecated)','nimbuspost_new' => 'Nimbuspost','shipmozo'=>'Shipmozo','shiprocket' => 'Shiprocket', 'xpressbees' => 'Xpressbees', 'manual' =>'Custom Shipping') ); 63 63 define( '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 32 32 background: #3c3c3c2b; 33 33 height: unset; 34 line-height: unset; 34 35 } 35 36 … … 44 45 line-height: unset; 45 46 text-transform: unset; 47 height: unset; 46 48 } 47 49 -
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 5 1 <?php 2 $pickup_pincode = ''; 3 $currentPin = ""; 4 $delivery_pincode = ""; 5 6 6 $public_dir_url = plugin_dir_url(dirname(__FILE__)); 7 7 $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 1 1 <?php 2 $pickup_pincode = ''; 3 $currentPin = ""; 4 $delivery_pincode = ""; 5 2 6 $public_dir_url = plugin_dir_url(dirname(__FILE__)); 3 7 $last_four_digit = carbon_get_theme_option('bt_sst_valid_phone_no'); -
shipment-tracker-for-woocommerce/trunk/vendor/composer/ClassLoader.php
r3256359 r3257926 46 46 private static $includeFile; 47 47 48 /** @var string|null*/48 /** @var ?string */ 49 49 private $vendorDir; 50 50 51 51 // PSR-4 52 52 /** 53 * @var array<string, array<string, int>> 53 * @var array[] 54 * @psalm-var array<string, array<string, int>> 54 55 */ 55 56 private $prefixLengthsPsr4 = array(); 56 57 /** 57 * @var array<string, list<string>> 58 * @var array[] 59 * @psalm-var array<string, array<int, string>> 58 60 */ 59 61 private $prefixDirsPsr4 = array(); 60 62 /** 61 * @var list<string> 63 * @var array[] 64 * @psalm-var array<string, string> 62 65 */ 63 66 private $fallbackDirsPsr4 = array(); … … 65 68 // PSR-0 66 69 /** 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[]>> 72 72 */ 73 73 private $prefixesPsr0 = array(); 74 74 /** 75 * @var list<string> 75 * @var array[] 76 * @psalm-var array<string, string> 76 77 */ 77 78 private $fallbackDirsPsr0 = array(); … … 81 82 82 83 /** 83 * @var array<string, string> 84 * @var string[] 85 * @psalm-var array<string, string> 84 86 */ 85 87 private $classMap = array(); … … 89 91 90 92 /** 91 * @var array<string, bool> 93 * @var bool[] 94 * @psalm-var array<string, bool> 92 95 */ 93 96 private $missingClasses = array(); 94 97 95 /** @var string|null*/98 /** @var ?string */ 96 99 private $apcuPrefix; 97 100 98 101 /** 99 * @var array<string, self>102 * @var self[] 100 103 */ 101 104 private static $registeredLoaders = array(); 102 105 103 106 /** 104 * @param string|null$vendorDir107 * @param ?string $vendorDir 105 108 */ 106 109 public function __construct($vendorDir = null) … … 111 114 112 115 /** 113 * @return array<string, list<string>>116 * @return string[] 114 117 */ 115 118 public function getPrefixes() … … 123 126 124 127 /** 125 * @return array<string, list<string>> 128 * @return array[] 129 * @psalm-return array<string, array<int, string>> 126 130 */ 127 131 public function getPrefixesPsr4() … … 131 135 132 136 /** 133 * @return list<string> 137 * @return array[] 138 * @psalm-return array<string, string> 134 139 */ 135 140 public function getFallbackDirs() … … 139 144 140 145 /** 141 * @return list<string> 146 * @return array[] 147 * @psalm-return array<string, string> 142 148 */ 143 149 public function getFallbackDirsPsr4() … … 147 153 148 154 /** 149 * @return array<string, string> Array of classname => path 155 * @return string[] Array of classname => path 156 * @psalm-return array<string, string> 150 157 */ 151 158 public function getClassMap() … … 155 162 156 163 /** 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 158 166 * 159 167 * @return void … … 172 180 * appending or prepending to the ones previously set for this prefix. 173 181 * 174 * @param string $prefix The prefix175 * @param list<string>|string $paths The PSR-0 root directories176 * @param bool $prepend Whether to prepend the directories182 * @param string $prefix The prefix 183 * @param string[]|string $paths The PSR-0 root directories 184 * @param bool $prepend Whether to prepend the directories 177 185 * 178 186 * @return void … … 180 188 public function add($prefix, $paths, $prepend = false) 181 189 { 182 $paths = (array) $paths;183 190 if (!$prefix) { 184 191 if ($prepend) { 185 192 $this->fallbackDirsPsr0 = array_merge( 186 $paths,193 (array) $paths, 187 194 $this->fallbackDirsPsr0 188 195 ); … … 190 197 $this->fallbackDirsPsr0 = array_merge( 191 198 $this->fallbackDirsPsr0, 192 $paths199 (array) $paths 193 200 ); 194 201 } … … 199 206 $first = $prefix[0]; 200 207 if (!isset($this->prefixesPsr0[$first][$prefix])) { 201 $this->prefixesPsr0[$first][$prefix] = $paths;208 $this->prefixesPsr0[$first][$prefix] = (array) $paths; 202 209 203 210 return; … … 205 212 if ($prepend) { 206 213 $this->prefixesPsr0[$first][$prefix] = array_merge( 207 $paths,214 (array) $paths, 208 215 $this->prefixesPsr0[$first][$prefix] 209 216 ); … … 211 218 $this->prefixesPsr0[$first][$prefix] = array_merge( 212 219 $this->prefixesPsr0[$first][$prefix], 213 $paths220 (array) $paths 214 221 ); 215 222 } … … 220 227 * appending or prepending to the ones previously set for this namespace. 221 228 * 222 * @param string $prefix The prefix/namespace, with trailing '\\'223 * @param list<string>|string $paths The PSR-4 base directories224 * @param bool $prepend Whether to prepend the directories229 * @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 225 232 * 226 233 * @throws \InvalidArgumentException … … 230 237 public function addPsr4($prefix, $paths, $prepend = false) 231 238 { 232 $paths = (array) $paths;233 239 if (!$prefix) { 234 240 // Register directories for the root namespace. 235 241 if ($prepend) { 236 242 $this->fallbackDirsPsr4 = array_merge( 237 $paths,243 (array) $paths, 238 244 $this->fallbackDirsPsr4 239 245 ); … … 241 247 $this->fallbackDirsPsr4 = array_merge( 242 248 $this->fallbackDirsPsr4, 243 $paths249 (array) $paths 244 250 ); 245 251 } … … 251 257 } 252 258 $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; 253 $this->prefixDirsPsr4[$prefix] = $paths;259 $this->prefixDirsPsr4[$prefix] = (array) $paths; 254 260 } elseif ($prepend) { 255 261 // Prepend directories for an already registered namespace. 256 262 $this->prefixDirsPsr4[$prefix] = array_merge( 257 $paths,263 (array) $paths, 258 264 $this->prefixDirsPsr4[$prefix] 259 265 ); … … 262 268 $this->prefixDirsPsr4[$prefix] = array_merge( 263 269 $this->prefixDirsPsr4[$prefix], 264 $paths270 (array) $paths 265 271 ); 266 272 } … … 271 277 * replacing any others previously set for this prefix. 272 278 * 273 * @param string $prefix The prefix274 * @param list<string>|string $paths The PSR-0 base directories279 * @param string $prefix The prefix 280 * @param string[]|string $paths The PSR-0 base directories 275 281 * 276 282 * @return void … … 289 295 * replacing any others previously set for this namespace. 290 296 * 291 * @param string $prefix The prefix/namespace, with trailing '\\'292 * @param list<string>|string $paths The PSR-4 base directories297 * @param string $prefix The prefix/namespace, with trailing '\\' 298 * @param string[]|string $paths The PSR-4 base directories 293 299 * 294 300 * @throws \InvalidArgumentException … … 424 430 { 425 431 if ($file = $this->findFile($class)) { 426 $includeFile = self::$includeFile; 427 $includeFile($file); 432 (self::$includeFile)($file); 428 433 429 434 return true; … … 476 481 477 482 /** 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[] 481 486 */ 482 487 public static function getRegisteredLoaders() … … 556 561 } 557 562 558 /** 559 * @return void 560 */ 561 private static function initializeIncludeClosure() 563 private static function initializeIncludeClosure(): void 562 564 { 563 565 if (self::$includeFile !== null) { … … 573 575 * @return void 574 576 */ 575 self::$includeFile = \Closure::bind(static function($file) {577 self::$includeFile = static function($file) { 576 578 include $file; 577 } , null, null);579 }; 578 580 } 579 581 } -
shipment-tracker-for-woocommerce/trunk/vendor/composer/InstalledVersions.php
r3256359 r3257926 99 99 foreach (self::getInstalled() as $installed) { 100 100 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']); 102 102 } 103 103 } … … 120 120 public static function satisfies(VersionParser $parser, $packageName, $constraint) 121 121 { 122 $constraint = $parser->parseConstraints( (string)$constraint);122 $constraint = $parser->parseConstraints($constraint); 123 123 $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); 124 124 … … 329 329 $installed[] = self::$installedByVendor[$vendorDir]; 330 330 } 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'; 334 332 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 335 333 self::$installed = $installed[count($installed) - 1]; … … 343 341 // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 344 342 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'; 348 344 } else { 349 345 self::$installed = array(); 350 346 } 351 347 } 352 353 if (self::$installed !== array()) { 354 $installed[] = self::$installed; 355 } 348 $installed[] = self::$installed; 356 349 357 350 return $installed; -
shipment-tracker-for-woocommerce/trunk/vendor/composer/installed.php
r3256359 r3257926 4 4 'pretty_version' => '1.14.21.x-dev', 5 5 'version' => '1.14.21.9999999-dev', 6 'reference' => ' 1ee52284366ec449dcabb116f6da4e2c4f63ff4c',6 'reference' => '31484ef067f77376ae676c02b9243ca940c8d510', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => '1.14.21.x-dev', 15 15 'version' => '1.14.21.9999999-dev', 16 'reference' => ' 1ee52284366ec449dcabb116f6da4e2c4f63ff4c',16 'reference' => '31484ef067f77376ae676c02b9243ca940c8d510', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.