update from master
15
.travis.yml
|
@ -13,6 +13,8 @@ php:
|
|||
- 5.6
|
||||
- 7.0
|
||||
- 7.1
|
||||
- 7.2
|
||||
- 7.3
|
||||
|
||||
env:
|
||||
- WP_VERSION=latest WP_MULTISITE=0
|
||||
|
@ -26,12 +28,15 @@ matrix:
|
|||
dist: precise
|
||||
- php: 5.2
|
||||
dist: precise
|
||||
- php: 7.2
|
||||
env: WP_VERSION=latest WP_MULTISITE=0 RUN_PHPCS=1 RUN_E2E=1
|
||||
- php: 7.1
|
||||
- name: "Coding standard check"
|
||||
php: 7.2
|
||||
env: WP_VERSION=latest WP_MULTISITE=0 RUN_PHPCS=1
|
||||
- name: "e2e tests"
|
||||
php: 7.2
|
||||
env: WP_VERSION=latest WP_MULTISITE=0 RUN_E2E=1
|
||||
- name: "Unit tests code coverage"
|
||||
php: 7.1
|
||||
env: WP_VERSION=latest WP_MULTISITE=0 RUN_CODE_COVERAGE=1
|
||||
- php: 7.3
|
||||
env: WP_VERSION=5.0-beta5 WP_MULTISITE=0
|
||||
allow_failures:
|
||||
- php: 7.1
|
||||
env: WP_VERSION=latest WP_MULTISITE=0 RUN_CODE_COVERAGE=1
|
||||
|
|
|
@ -1,5 +1,73 @@
|
|||
== Changelog ==
|
||||
|
||||
= 3.5.3 - 2018-12-20 =
|
||||
* Fix - Fix orders list in the admin after a change introduced in WordPress 5.0.2. #22273
|
||||
|
||||
= 3.5.2 - 2018-11-29 =
|
||||
* Enhancement - Added compatibility for Twenty Nineteen theme. #21970
|
||||
* Update - Prepare WooCommerce for PHP 7.3. #22009
|
||||
* Tweak - Updates the signature field type to "password" in PayPal settings for increased security. #21715
|
||||
* Tweak - Change the filter name in the /myaccount/lost-password-confirmation.php template to differentiate between other filter with same name and different message. #21829
|
||||
* Tweak - Reintroduce Preview button by popular demand with the understanding that the Preview will only work on some product fields. It was removed from pubished products in 3.5.0 to prevent confusion. #21838
|
||||
* Tweak - Add tool to systems status tools for running the DB update routine. #21923
|
||||
* Tweak - Revert default behavior for `woocommerce_formatted_address_force_country_display` filter to maintain backwards compatibility. #21865
|
||||
* Tweak - Update products block notice for WP 5.0. #21930
|
||||
* Tweak - Use wp_kses_post instead of esc_html for sanitizing product titles to allow minimal HTML in product titles. #21936
|
||||
* Tweak - Use dedicated woocommerce_add_order_again_cart_item to filter cart item data when ordering again. Prevents issues with applying woocommerce_add_cart_item out of context. #21947
|
||||
* Tweak - Remove postal code for Angola, São Tomé and Príncipe since they don't use postal codes and update locale info. #21984 #21985 #21987
|
||||
* Fix - Metadata with array key of 0 can save properly. #21641
|
||||
* Fix - Prevent deleting the default product category via REST API. #21696
|
||||
* Fix - Fix 'Table does not exist' messages on System Status Report in multisite. #21706
|
||||
* Fix - Add dynamic SSL check to dashboard SSL notice to prevent misdiagnosing that sites aren't set up with SSL. #21738
|
||||
* Fix - Don't show escaped HTML in admin order item details for fees. #21769
|
||||
* Fix - Don't include draft variable products in on sale product results. #21778
|
||||
* Fix - Add woocommerce_hold_stock_minutes check back to stock check in cart/checkout. #21797 #22050
|
||||
* Fix - Fix potential undefined index notice on checkout fields when comparing the sort order. #21801
|
||||
* Fix - Throw an error when trying to set a variation as the parent of a variation in the CSV importer. #21810
|
||||
* Fix - Make "account erasure request" text translatable. #21812
|
||||
* Fix - Display notices on Order Pay page. #21821
|
||||
* Fix - Fix tax rate uploading by file path. #21831
|
||||
* Fix - Make wc_download_log_permission_id constraint creation work better on multisites and multiple sites using the same DB. #21836 #21940
|
||||
* Fix - Don't render undecoded HTML entities in variations dimensions. #21844
|
||||
* Fix - Do not check for stock when not managing stock or have backorders enabled when paying through the order-pay page. #21849
|
||||
* Fix - Apply priority field sorting on additional filters to make it apply on the edit address pages as well. #21856
|
||||
* Fix - Fix export and edit of attribute labels with html encoded special characters in product CSV exporter. #21864
|
||||
* Fix - Prevent fatal error when rendering plaintext customer invoice email. #21879
|
||||
* Fix - Prevent fatal error when delivering webhooks using v3 API. #21921
|
||||
* Fix - Prevent undefined variable notice in wc_increase_stock_levels. #21928
|
||||
* Fix - Fix overescaping image output on product widget. #21929
|
||||
* Fix - Croatian Kuna symbol should be lowercase. #21934
|
||||
* Fix - Fixed an error when deleting logged entries when using the 'WC_Log_Handler_DB' handler. #21949
|
||||
* Fix - Update ShipStation plugin info so install works through setup wizard. #21953
|
||||
* Fix - Use dynamic DB table name in product list table shipping class query. #21954
|
||||
* Fix - Log file date/time should be in UTC and not site timezone as per the +00:00:00 string appended to it. #21981
|
||||
* Fix - Set customer's country to selling country when only selling to one country and default customer location is 'none'. #21995
|
||||
* Fix - Change new account email copy to be compatible with auto-generated accounts. #21999
|
||||
* Fix - Correct Aria-Labelledby attribute for quantity selectors. #22000
|
||||
* Fix - Show notices on lost password page. #22001
|
||||
* Fix - Fix authentication errors when using the REST API with 3rd-party authentication. #22013
|
||||
* Fix - Fix issues where potentially not all active plugins were included on the system status report. #22057
|
||||
* Fix - Make PDT validation use the same rounding as the IPN validation to prevent erroneous totals mismatch. #21729
|
||||
|
||||
= 3.5.1 - 2018-10-31 =
|
||||
* Fix - Use CRUD method to get product images to fix custom tables missing images. #21608
|
||||
* Fix - Use HTML entity for times sign when outputting dimensions to fix RTL support. #21633
|
||||
* Fix - Fix India address format to look nice in the shipping calculator. #21647
|
||||
* Fix - Don't default gallery variation images to gallery thumbnail size if flexslider is disabled. #21655
|
||||
* Fix - Revert show shipping behavior change to prevent missing shipping line on Cart page. #21658
|
||||
* Fix - Removed non-existing WC_Product_Simple->set_date_created_gmt method. #21675
|
||||
* Fix - Use correct comment_type when fetching recent reviews for widget. #21689
|
||||
* Fix - Do not include strong tags as part of translation string on subscriptions disconnect message. #21690
|
||||
* Fix - Make it possible to send webhooks with the v3 API. #21745
|
||||
* Fix - Fix get_cart_from_session infinite loop when filters used. #21749
|
||||
* Fix - Use array instead of string to define class for address line 2 input on checkout. #21757
|
||||
* Fix - Make checkout fields priority work correctly again. #21763
|
||||
* Tweak - Remove mentions of deprecated live shipping rates from setup wizard. #21645
|
||||
* Tweak- Update product block editor hook for WP 5.0. #21703
|
||||
* Tweak - Merged similar strings to reduce number of translateable strings. #21704
|
||||
* Tweak - Remove hated "Over to you" text from emails. #21709
|
||||
* Tweak - Revert problematiic customer as post author change. #21740
|
||||
|
||||
= 3.5.0 - 2018-10-17 =
|
||||
* Feature - REST API v3. #20111
|
||||
* Feature - Option has been added on the inventory tab of the edit product page to set a low stock threshold for individual products. #20260
|
||||
|
|
|
@ -866,7 +866,7 @@ $color_button_secondary: $woo_pink2;
|
|||
position: relative;
|
||||
}
|
||||
|
||||
.button-primary {
|
||||
.button-helper-connect {
|
||||
height: 37px;
|
||||
line-height: 37px;
|
||||
min-width: 124px;
|
||||
|
|
Before Width: | Height: | Size: 98 B After Width: | Height: | Size: 86 B |
Before Width: | Height: | Size: 97 B After Width: | Height: | Size: 74 B |
Before Width: | Height: | Size: 113 B After Width: | Height: | Size: 111 B |
Before Width: | Height: | Size: 115 B After Width: | Height: | Size: 89 B |
Before Width: | Height: | Size: 113 B After Width: | Height: | Size: 110 B |
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 3.7 KiB |
|
@ -1 +1 @@
|
|||
<svg width="264" height="88" viewBox="0 0 264 88" xmlns="http://www.w3.org/2000/svg"><title>default-skin 2</title><g fill="none" fill-rule="evenodd"><g><path d="M67.002 59.5v3.768c-6.307.84-9.184 5.75-10.002 9.732 2.22-2.83 5.564-5.098 10.002-5.098V71.5L73 65.585 67.002 59.5z" id="Shape" fill="#fff"/><g fill="#fff"><path d="M13 29v-5h2v3h3v2h-5zM13 15h5v2h-3v3h-2v-5zM31 15v5h-2v-3h-3v-2h5zM31 29h-5v-2h3v-3h2v5z" id="Shape"/></g><g fill="#fff"><path d="M62 24v5h-2v-3h-3v-2h5zM62 20h-5v-2h3v-3h2v5zM70 20v-5h2v3h3v2h-5zM70 24h5v2h-3v3h-2v-5z"/></g><path d="M20.586 66l-5.656-5.656 1.414-1.414L22 64.586l5.656-5.656 1.414 1.414L23.414 66l5.656 5.656-1.414 1.414L22 67.414l-5.656 5.656-1.414-1.414L20.586 66z" fill="#fff"/><path d="M111.785 65.03L110 63.5l3-3.5h-10v-2h10l-3-3.5 1.785-1.468L117 59l-5.215 6.03z" fill="#fff"/><path d="M152.215 65.03L154 63.5l-3-3.5h10v-2h-10l3-3.5-1.785-1.468L147 59l5.215 6.03z" fill="#fff"/><g><path id="Rectangle-11" fill="#fff" d="M160.957 28.543l-3.25-3.25-1.413 1.414 3.25 3.25z"/><path d="M152.5 27c3.038 0 5.5-2.462 5.5-5.5s-2.462-5.5-5.5-5.5-5.5 2.462-5.5 5.5 2.462 5.5 5.5 5.5z" id="Oval-1" stroke="#fff" stroke-width="1.5"/><path fill="#fff" d="M150 21h5v1h-5z"/></g><g><path d="M116.957 28.543l-1.414 1.414-3.25-3.25 1.414-1.414 3.25 3.25z" fill="#fff"/><path d="M108.5 27c3.038 0 5.5-2.462 5.5-5.5s-2.462-5.5-5.5-5.5-5.5 2.462-5.5 5.5 2.462 5.5 5.5 5.5z" stroke="#fff" stroke-width="1.5"/><path fill="#fff" d="M106 21h5v1h-5z"/><path fill="#fff" d="M109.043 19.008l-.085 5-1-.017.085-5z"/></g></g></g></svg>
|
||||
<svg width="264" height="88" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M67.002 59.5v3.768c-6.307.84-9.184 5.75-10.002 9.732 2.22-2.83 5.564-5.098 10.002-5.098V71.5L73 65.585 67.002 59.5zM13 29v-5h2v3h3v2h-5zm0-14h5v2h-3v3h-2v-5zm18 0v5h-2v-3h-3v-2h5zm0 14h-5v-2h3v-3h2v5zm31-5v5h-2v-3h-3v-2h5zm0-4h-5v-2h3v-3h2v5zm8 0v-5h2v3h3v2h-5zm0 4h5v2h-3v3h-2v-5zM20.586 66l-5.656-5.656 1.414-1.414L22 64.586l5.656-5.656 1.414 1.414L23.414 66l5.656 5.656-1.414 1.414L22 67.414l-5.656 5.656-1.414-1.414L20.586 66zm91.199-.97L110 63.5l3-3.5h-10v-2h10l-3-3.5 1.785-1.468L117 59l-5.215 6.03zm40.43 0L154 63.5l-3-3.5h10v-2h-10l3-3.5-1.785-1.468L147 59l5.215 6.03zm8.742-36.487l-3.25-3.25-1.413 1.414 3.25 3.25z" fill="#fff"/><path d="M152.5 27a5.5 5.5 0 1 0 0-11 5.5 5.5 0 1 0 0 11z" stroke="#fff" stroke-width="1.5"/><path fill="#fff" d="M150 21h5v1h-5zM116.957 28.543l-1.414 1.414-3.25-3.25 1.414-1.414 3.25 3.25z"/><path d="M108.5 27a5.5 5.5 0 1 0 0-11 5.5 5.5 0 1 0 0 11z" stroke="#fff" stroke-width="1.5"/><path fill="#fff" d="M106 21h5v1h-5z"/><path fill="#fff" d="M109.043 19.008l-.085 5-1-.017.085-5z"/></g></svg>
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.1 KiB |
|
@ -549,14 +549,17 @@ table.variations {
|
|||
margin-top: 0 !important;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2 {
|
||||
margin: 0 0 1rem;
|
||||
font-size: 1em;
|
||||
|
||||
&:before {
|
||||
content: none;
|
||||
}
|
||||
}
|
||||
|
||||
h2:first-of-type {
|
||||
font-size: 1em;
|
||||
margin: 0 0 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
#comments {
|
||||
|
|
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 46 KiB |
|
@ -1,19 +1 @@
|
|||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<metadata>
|
||||
This is a custom SVG font generated by IcoMoon.
|
||||
<iconset grid="16"></iconset>
|
||||
</metadata>
|
||||
<defs>
|
||||
<font id="icomoon" horiz-adv-x="512" >
|
||||
<font-face units-per-em="512" ascent="480" descent="-32" />
|
||||
<missing-glyph horiz-adv-x="512" />
|
||||
<glyph unicode="S" d="M 269.474,480.00L 352.509,311.757L 538.171,284.777L 403.822,153.824L 435.54-31.095L 269.474,56.21L 103.408-31.095L 135.119,153.824L 0.771,284.777L 186.438,311.757 z" horiz-adv-x="538.9473684210526" />
|
||||
<glyph unicode="s" d="M 269.474,406.94l 54.04-109.487l 7.524-15.247l 16.821-2.447l 120.827-17.559L 381.251,176.982l-12.18-11.868l 2.873-16.756l 20.647-120.336
|
||||
L 284.521,84.833L 269.474,92.745l-15.047-7.912L 146.351,28.017l 20.642,120.336l 2.873,16.756l-12.175,11.868L 70.263,262.201l 120.827,17.559
|
||||
l 16.826,2.447l 7.524,15.247L 269.474,406.94 M 269.474,480.00L 186.438,311.757l-185.667-26.98l 134.349-130.953l-31.717-184.918L 269.474,56.21l 166.066-87.304
|
||||
l-31.722,184.918l 134.354,130.953l-185.662,26.98L 269.474,480.00L 269.474,480.00z" horiz-adv-x="538.9473684210526" />
|
||||
<glyph unicode=" " horiz-adv-x="256" />
|
||||
<glyph class="hidden" unicode="" d="M0,480L 512 -32L0 -32 z" horiz-adv-x="0" />
|
||||
</font></defs></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg"><defs><font horiz-adv-x="512"><font-face ascent="480" descent="-32" units-per-em="512"/><glyph d="M269.474 480l83.035-168.243 185.662-26.98-134.349-130.953L435.54-31.095 269.474 56.21 103.408-31.095l31.711 184.919L.771 284.777l185.667 26.98z" horiz-adv-x="538.947" unicode="S"/><glyph d="M269.474 406.94l54.04-109.487 7.524-15.247 16.821-2.447L468.686 262.2l-87.435-85.218-12.18-11.868 2.873-16.756 20.647-120.336-108.07 56.811-15.047 7.912-15.047-7.912-108.076-56.816 20.642 120.336 2.873 16.756-12.175 11.868-87.428 85.224L191.09 279.76l16.826 2.447 7.524 15.247 54.034 109.486m0 73.06-83.036-168.243L.771 284.777 135.12 153.824 103.403-31.094 269.474 56.21 435.54-31.094l-31.722 184.918 134.354 130.953-185.662 26.98L269.474 480z" horiz-adv-x="538.947" unicode="s"/><glyph horiz-adv-x="256"/><glyph d="M0 480 512-32H0z" horiz-adv-x="0" unicode=""/></font></defs></svg>
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 929 B |
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.0 KiB |
|
@ -1,15 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg width="750px" height="471px" viewBox="0 0 750 471" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
|
||||
<!-- Generator: Sketch 3.3.2 (12043) - http://www.bohemiancoding.com/sketch -->
|
||||
<title>diners</title>
|
||||
<desc>Created with Sketch.</desc>
|
||||
<defs></defs>
|
||||
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
|
||||
<g id="diners" sketch:type="MSLayerGroup">
|
||||
<rect id="rectangle" fill="#0079BE" sketch:type="MSShapeGroup" x="0" y="0" width="750" height="471" rx="40"></rect>
|
||||
<path d="M584.933911,237.947339 C584.933911,138.53154 501.952976,69.8140806 411.038924,69.8471464 L332.79674,69.8471464 C240.793699,69.8140806 165.066089,138.552041 165.066089,237.947339 C165.066089,328.877778 240.793699,403.587432 332.79674,403.150963 L411.038924,403.150963 C501.952976,403.586771 584.933911,328.857939 584.933911,237.947339 L584.933911,237.947339 Z" id="Shape-path" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>
|
||||
<path d="M333.280302,83.9308394 C249.210378,83.9572921 181.085889,152.238282 181.066089,236.510581 C181.085889,320.768331 249.209719,389.042708 333.280302,389.069161 C417.370025,389.042708 485.508375,320.768331 485.520254,236.510581 C485.507715,152.238282 417.370025,83.9572921 333.280302,83.9308394 L333.280302,83.9308394 Z" id="Shape-path" fill="#0079BE" sketch:type="MSShapeGroup"></path>
|
||||
<path d="M237.066089,236.09774 C237.145288,194.917524 262.812421,159.801587 299.006443,145.847134 L299.006443,326.327183 C262.812421,312.380667 237.144628,277.283907 237.066089,236.09774 Z M368.066089,326.372814 L368.066089,145.847134 C404.273312,159.767859 429.980043,194.903637 430.046043,236.103692 C429.980043,277.316312 404.273312,312.425636 368.066089,326.372814 Z" id="Path" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
<svg width="750" height="471" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><rect fill="#0079BE" width="750" height="471" rx="40"/><path d="M584.934 237.947c0-99.415-82.981-168.133-173.895-168.1h-78.242c-92.003-.033-167.73 68.705-167.73 168.1 0 90.93 75.727 165.64 167.73 165.204h78.242c90.914.436 173.895-74.293 173.895-165.204z" fill="#FFF"/><path d="M333.28 83.93c-84.07.027-152.194 68.308-152.214 152.58.02 84.258 68.144 152.533 152.214 152.56 84.09-.027 152.228-68.302 152.24-152.56-.012-84.272-68.15-152.553-152.24-152.58z" fill="#0079BE"/><path d="M237.066 236.098c.08-41.18 25.746-76.296 61.94-90.25v180.48c-36.194-13.947-61.861-49.044-61.94-90.23zm131 90.275V145.847c36.207 13.92 61.914 49.057 61.98 90.257-.066 41.212-25.773 76.322-61.98 90.269z" fill="#FFF"/></g></svg>
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 804 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.3 KiB |
|
@ -1,14 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg width="780px" height="501px" viewBox="0 0 780 501" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
|
||||
<!-- Generator: Sketch 3.3.2 (12043) - http://www.bohemiancoding.com/sketch -->
|
||||
<title>discover</title>
|
||||
<desc>Created with Sketch.</desc>
|
||||
<defs></defs>
|
||||
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
|
||||
<g id="discover" sketch:type="MSLayerGroup">
|
||||
<path d="M54.992188,0 C24.626565,0 -4.7369516e-15,24.629374 0,55.003906 L0,445.99609 C0,476.37636 24.618673,501 54.992188,501 L725.00781,501 C755.37344,501 780,476.37062 780,445.99609 L780,268.55664 L780,55.003906 C780,24.623637 755.38133,-4.7369516e-15 725.00781,0 L54.992188,0 L54.992188,0 Z" id="rectangle" fill="#4D4D4D" sketch:type="MSShapeGroup"></path>
|
||||
<path d="M415.13086,161.21289 C446.07103,161.21289 471.15234,184.79287 471.15234,213.92188 L471.15234,213.95508 C471.15234,243.08408 446.07103,266.69727 415.13086,266.69727 C384.19069,266.69727 359.10938,243.08408 359.10938,213.95508 L359.10938,213.92188 C359.10938,184.79287 384.19069,161.21289 415.13086,161.21289 L415.13086,161.21289 Z M327.15234,161.89258 C335.9889,161.89258 343.40028,163.67723 352.41992,167.98242 L352.41992,190.73438 C343.87628,182.87089 336.46483,179.58008 326.66406,179.58008 C307.4002,179.58008 292.25,194.59455 292.25,213.63086 C292.25,233.70517 306.93133,247.82617 327.61914,247.82617 C336.93171,247.82617 344.20582,244.70584 352.41992,236.96875 L352.41992,259.73242 C343.07888,263.87291 335.50876,265.50781 326.66406,265.50781 C295.38621,265.50781 271.08203,242.91198 271.08203,213.77148 C271.08203,184.94507 296.03316,161.89258 327.15234,161.89258 L327.15234,161.89258 Z M230.03906,162.51953 C241.58477,162.51953 252.14952,166.24004 260.98242,173.51367 L250.23438,186.76172 C244.88362,181.11594 239.82337,178.73438 233.66992,178.73438 C224.81668,178.73437 218.36914,183.47936 218.36914,189.72266 C218.36914,195.07734 221.98883,197.91138 234.31445,202.20508 C257.67927,210.24859 264.60352,217.3809 264.60352,233.13086 C264.60352,252.32421 249.62806,265.68359 228.2832,265.68359 C212.65323,265.68359 201.29008,259.88895 191.82617,246.8125 L205.09375,234.78125 C209.82489,243.39164 217.71615,248.00391 227.51367,248.00391 C236.67693,248.00391 243.46094,242.05155 243.46094,234.01953 C243.46094,229.85606 241.40612,226.28585 237.30273,223.76172 C235.2368,222.56668 231.1447,220.78491 223.10352,218.11523 C203.81198,211.57701 197.19336,204.58834 197.19336,190.92969 C197.19336,174.70478 211.40702,162.51953 230.03906,162.51953 L230.03906,162.51953 Z M464.76172,164.24805 L487.19922,164.24805 L515.2832,230.83984 L543.72852,164.24805 L565.99609,164.24805 L520.50195,265.93359 L509.44922,265.93359 L464.76172,164.24805 L464.76172,164.24805 Z M67.414062,164.40039 L97.564453,164.40039 C130.87609,164.40039 154.09766,184.78179 154.09766,214.04102 C154.09766,228.63041 146.99364,242.73654 134.98047,252.09766 C124.87172,259.99945 113.35396,263.54297 97.40625,263.54297 L67.414062,263.54297 L67.414062,164.40039 L67.414062,164.40039 Z M163.54883,164.40039 L184.08984,164.40039 L184.08984,263.54297 L163.54883,263.54297 L163.54883,164.40039 L163.54883,164.40039 Z M575.2832,164.40039 L633.53516,164.40039 L633.53516,181.19922 L595.80859,181.19922 L595.80859,203.20508 L632.14453,203.20508 L632.14453,219.99609 L595.80859,219.99609 L595.80859,246.75781 L633.53516,246.75781 L633.53516,263.54297 L575.2832,263.54297 L575.2832,164.40039 L575.2832,164.40039 Z M647.14062,164.40039 L677.5957,164.40039 C701.28599,164.40039 714.86133,175.11052 714.86133,193.67188 C714.86133,208.85113 706.34712,218.81273 690.875,221.77734 L724.02344,263.54297 L698.76367,263.54297 L670.33398,223.71484 L667.65625,223.71484 L667.65625,263.54297 L647.14062,263.54297 L647.14062,164.40039 L647.14062,164.40039 Z M667.65625,180.01562 L667.65625,210.04102 L673.6582,210.04102 C686.77472,210.04102 693.72656,204.67918 693.72656,194.71289 C693.72656,185.06451 686.77347,180.01562 673.98242,180.01562 L667.65625,180.01562 L667.65625,180.01562 Z M87.939453,181.19922 L87.939453,246.75781 L93.451172,246.75781 C106.72432,246.75781 115.10685,244.36382 121.56055,238.87891 C128.66438,232.92288 132.9375,223.41276 132.9375,213.89844 C132.9375,204.39943 128.66438,195.17283 121.56055,189.2168 C114.77608,183.43696 106.72432,181.19922 93.451172,181.19922 L87.939453,181.19922 L87.939453,181.19922 Z" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>
|
||||
<path d="M779.981917,288.361069 C753.932037,306.691919 558.904907,437.700579 221.228007,500.98412 L724.989727,500.98412 C755.355357,500.98412 779.981917,476.35474 779.981917,445.980209 L779.981917,288.361069 L779.981917,288.361069 Z" id="Shape-9" fill="#F47216" sketch:type="MSShapeGroup"></path>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
<svg height="501" width="780" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M54.992 0C24.627 0 0 24.63 0 55.004v390.992C0 476.376 24.619 501 54.992 501h670.016C755.373 501 780 476.37 780 445.996V55.004C780 24.624 755.381 0 725.008 0z" fill="#4d4d4d"/><path d="M415.13 161.213c30.941 0 56.022 23.58 56.022 52.709v.033c0 29.13-25.081 52.742-56.021 52.742s-56.022-23.613-56.022-52.742v-.033c0-29.13 25.082-52.71 56.022-52.71zm-87.978.68c8.837 0 16.248 1.784 25.268 6.09v22.751c-8.544-7.863-15.955-11.154-25.756-11.154-19.264 0-34.414 15.015-34.414 34.05 0 20.075 14.681 34.196 35.37 34.196 9.312 0 16.586-3.12 24.8-10.857v22.763c-9.341 4.14-16.911 5.776-25.756 5.776-31.278 0-55.582-22.596-55.582-51.737 0-28.826 24.951-51.878 56.07-51.878zm-97.113.627c11.546 0 22.11 3.72 30.943 10.994l-10.748 13.248c-5.35-5.646-10.41-8.028-16.564-8.028-8.853 0-15.3 4.745-15.3 10.989 0 5.354 3.619 8.188 15.944 12.482 23.365 8.044 30.29 15.176 30.29 30.926 0 19.193-14.976 32.553-36.32 32.553-15.63 0-26.994-5.795-36.458-18.872l13.268-12.03c4.73 8.61 12.622 13.222 22.42 13.222 9.163 0 15.947-5.952 15.947-13.984 0-4.164-2.055-7.734-6.158-10.258-2.066-1.195-6.158-2.977-14.2-5.647-19.291-6.538-25.91-13.527-25.91-27.185 0-16.225 14.214-28.41 32.846-28.41zm234.723 1.728h22.437l28.084 66.592 28.446-66.592h22.267l-45.494 101.686h-11.053zm-397.348.152h30.15c33.312 0 56.534 20.382 56.534 49.641 0 14.59-7.104 28.696-19.118 38.057-10.108 7.901-21.626 11.445-37.574 11.445H67.414zm96.135 0h20.54v99.143h-20.54zm411.734 0h58.252v16.8H595.81v22.005h36.336v16.791H595.81v26.762h37.726v16.785h-58.252V164.4zm71.858 0h30.455c23.69 0 37.265 10.71 37.265 29.272 0 15.18-8.514 25.14-23.986 28.105l33.148 41.766h-25.26l-28.429-39.828h-2.678v39.828h-20.515zm20.515 15.616v30.025h6.002c13.117 0 20.069-5.362 20.069-15.328 0-9.648-6.954-14.697-19.745-14.697zM87.94 181.199v65.559h5.512c13.273 0 21.656-2.394 28.11-7.88 7.103-5.955 11.376-15.465 11.376-24.98 0-9.499-4.273-18.725-11.376-24.681-6.785-5.78-14.837-8.018-28.11-8.018z" fill="#fff"/><path d="M779.982 288.361c-26.05 18.33-221.077 149.34-558.754 212.623H724.99c30.365 0 54.992-24.63 54.992-55.004z" fill="#f47216"/></g></svg>
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.4 KiB |
|
@ -1,29 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg width="750px" height="471px" viewBox="0 0 750 471" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
|
||||
<!-- Generator: Sketch 3.3.1 (12005) - http://www.bohemiancoding.com/sketch -->
|
||||
<title>Slice 1</title>
|
||||
<desc>Created with Sketch.</desc>
|
||||
<defs>
|
||||
<linearGradient x1="0.031607858%" y1="49.9998574%" x2="99.9743153%" y2="49.9998574%" id="linearGradient-1">
|
||||
<stop stop-color="#007B40" offset="0%"></stop>
|
||||
<stop stop-color="#55B330" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="0.471693172%" y1="49.999826%" x2="99.9860086%" y2="49.999826%" id="linearGradient-2">
|
||||
<stop stop-color="#1D2970" offset="0%"></stop>
|
||||
<stop stop-color="#006DBA" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="0.113880772%" y1="50.0008964%" x2="99.9860003%" y2="50.0008964%" id="linearGradient-3">
|
||||
<stop stop-color="#6E2B2F" offset="0%"></stop>
|
||||
<stop stop-color="#E30138" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
|
||||
<g id="jcb" sketch:type="MSLayerGroup">
|
||||
<rect id="Rectangle-1" fill="#0E4C96" sketch:type="MSShapeGroup" x="0" y="0" width="750" height="471" rx="40"></rect>
|
||||
<path d="M617.243183,346.766281 C617.243183,388.380887 583.514892,422.125974 541.88349,422.125974 L132.756823,422.125974 L132.756823,124.244916 C132.756823,82.6186826 166.489851,48.8744567 208.121683,48.8744567 L617.242752,48.874026 L617.242752,346.766281 L617.243183,346.766281 L617.243183,346.766281 Z" id="path3494" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>
|
||||
<path d="M483.858874,242.044797 C495.542699,242.298285 507.296188,241.528806 518.936004,242.444883 C530.723244,244.645678 533.563915,262.487874 523.09234,268.332511 C515.950746,272.182115 507.459496,269.764696 499.713328,270.446208 L483.858874,270.446208 L483.858874,242.044797 L483.858874,242.044797 Z M525.691826,209.900487 C528.288491,219.064679 519.453903,227.292118 510.625917,226.030566 L483.858874,226.030566 C484.043758,217.388441 483.491345,208.008973 484.131053,199.821663 C494.854942,200.123386 505.679576,199.205849 516.340394,200.301853 C520.921799,201.451558 524.753935,205.217712 525.691826,209.900487 L525.691826,209.900487 Z M590.120412,73.9972254 C590.617872,91.498454 590.191471,109.92365 590.33359,127.780192 C590.299137,200.376358 590.405942,272.974174 590.278896,345.569303 C589.81042,372.776592 565.696524,396.413678 538.678749,396.956694 C511.63292,397.068451 484.584297,396.972628 457.537396,397.004497 L457.537396,287.253291 C487.007,287.099803 516.49604,287.561 545.953521,287.021594 C559.62072,286.162769 574.586027,277.145695 575.22328,262.107374 C576.833661,247.005483 562.592128,236.557185 549.071096,234.905684 C543.872773,234.770542 544.027132,233.390846 549.071096,232.788972 C561.96307,230.002483 572.090675,216.655787 568.296786,203.290229 C565.06052,189.232374 549.523839,183.79142 536.600366,183.817768 C510.248548,183.638612 483.891299,183.792359 457.537396,183.74111 C457.708585,163.252408 457.182916,142.740653 457.82271,122.267364 C459.910361,95.5513766 484.628603,73.5195319 511.269759,73.997656 C537.553166,73.9973692 563.837737,73.9982301 590.120412,73.9972254 L590.120412,73.9972254 Z" id="path3496" fill="url(#linearGradient-1)" sketch:type="MSShapeGroup"></path>
|
||||
<path d="M159.740429,125.040498 C160.413689,97.8766592 184.628619,74.4290299 211.614797,74.0325398 C238.559493,73.9499686 265.506204,74.0209119 292.451671,73.9972254 C292.37764,164.882488 292.599905,255.773672 292.340301,346.655222 C291.302298,373.488802 267.350548,396.488661 240.661356,396.962292 C213.665015,397.060957 186.666275,396.976074 159.669012,397.004497 L159.669012,283.550875 C185.891623,289.745491 213.391138,292.382518 240.142406,288.272242 C256.134509,285.697368 273.629935,277.848026 279.044261,261.257567 C283.030122,247.066267 280.785723,232.131602 281.378027,217.566465 L281.378027,183.741541 L235.081246,183.741541 C234.873106,206.112145 235.507258,228.522447 234.746146,250.867107 C233.49785,264.601214 219.900147,273.326996 206.946428,272.861801 C190.879747,273.030535 159.04755,261.221796 159.04755,261.221796 C158.967492,219.3048 159.514314,166.814385 159.740429,125.040498 L159.740429,125.040498 Z" id="path3498" fill="url(#linearGradient-2)" sketch:type="MSShapeGroup"></path>
|
||||
<path d="M309.719995,197.390136 C307.285788,197.90738 309.229141,189.089459 308.606298,185.743964 C308.772233,164.593637 308.260045,143.420951 308.889718,122.285827 C310.972541,95.4570827 335.881262,73.3701105 362.628748,73.997656 L441.39456,73.997656 C441.320658,164.882346 441.542493,255.77294 441.283406,346.653934 C440.244412,373.488027 416.291344,396.487102 389.602087,396.962292 C362.604605,397.061991 335.604707,396.976504 308.606298,397.004928 L308.606298,272.707624 C327.04641,287.835846 352.105738,290.192248 375.077953,290.233484 C392.39501,290.227455 409.611861,287.557865 426.428143,283.562934 L426.428143,260.790297 C407.474658,270.236609 385.194808,276.235815 364.184745,270.807966 C349.529051,267.157367 338.89089,252.996683 339.128513,237.872204 C337.43001,222.143684 346.652631,205.536885 362.110237,200.860855 C381.300923,194.852545 402.217787,199.448454 420.206344,207.258795 C424.060526,209.27695 427.97066,211.780342 426.428143,205.338044 L426.428143,187.438358 C396.343581,180.280951 364.326644,177.646405 334.099438,185.433619 C325.351193,187.901774 316.82819,191.644647 309.719995,197.390136 L309.719995,197.390136 Z" id="path3500" fill="url(#linearGradient-3)" sketch:type="MSShapeGroup"></path>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
<svg width="750" height="471" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient x1=".032%" y1="50%" x2="99.974%" y2="50%" id="a"><stop stop-color="#007B40" offset="0%"/><stop stop-color="#55B330" offset="100%"/></linearGradient><linearGradient x1=".472%" y1="50%" x2="99.986%" y2="50%" id="b"><stop stop-color="#1D2970" offset="0%"/><stop stop-color="#006DBA" offset="100%"/></linearGradient><linearGradient x1=".114%" y1="50.001%" x2="99.986%" y2="50.001%" id="c"><stop stop-color="#6E2B2F" offset="0%"/><stop stop-color="#E30138" offset="100%"/></linearGradient></defs><g fill="none" fill-rule="evenodd"><rect fill="#0E4C96" width="750" height="471" rx="40"/><path d="M617.243 346.766c0 41.615-33.728 75.36-75.36 75.36H132.757V124.245c0-41.626 33.733-75.37 75.365-75.37l409.12-.001v297.892h.001z" fill="#FFF"/><path d="M483.859 242.045c11.684.253 23.437-.516 35.077.4 11.787 2.2 14.628 20.043 4.156 25.888-7.141 3.85-15.633 1.432-23.379 2.113H483.86v-28.401zm41.833-32.145c2.596 9.165-6.238 17.392-15.066 16.13h-26.767c.185-8.642-.368-18.021.272-26.208 10.724.301 21.549-.616 32.21.48 4.58 1.15 8.413 4.916 9.35 9.598zM590.12 73.997c.498 17.501.071 35.927.214 53.783-.035 72.596.072 145.194-.055 217.79-.469 27.207-24.582 50.844-51.6 51.387-27.046.111-54.095.016-81.142.047v-109.75c29.47-.154 58.959.307 88.417-.232 13.667-.86 28.632-9.876 29.27-24.915 1.61-15.102-12.632-25.55-26.153-27.201-5.198-.135-5.044-1.515 0-2.117 12.892-2.787 23.02-16.133 19.226-29.499-3.236-14.058-18.773-19.499-31.697-19.472-26.351-.18-52.709-.026-79.063-.077.172-20.489-.354-41 .286-61.474 2.087-26.716 26.806-48.747 53.447-48.27h78.85z" fill="url(#a)"/><path d="M159.74 125.04c.674-27.163 24.889-50.611 51.875-51.007 26.944-.083 53.891-.012 80.837-.036-.074 90.885.148 181.777-.112 272.658-1.038 26.834-24.99 49.834-51.679 50.307-26.996.099-53.995.014-80.992.042V283.551c26.223 6.194 53.722 8.832 80.473 4.721 15.993-2.575 33.488-10.424 38.902-27.014 3.986-14.192 1.742-29.126 2.334-43.692v-33.824h-46.297c-.208 22.37.426 44.78-.335 67.125-1.248 13.734-14.846 22.46-27.8 21.995-16.066.169-47.898-11.64-47.898-11.64-.08-41.917.466-94.408.692-136.182z" fill="url(#b)"/><path d="M309.72 197.39c-2.434.517-.49-8.3-1.114-11.646.166-21.15-.346-42.323.284-63.458 2.083-26.829 26.991-48.916 53.739-48.288h78.766c-.074 90.884.147 181.775-.112 272.656-1.039 26.834-24.992 49.833-51.68 50.308-26.998.1-53.998.015-80.997.043V272.708c18.44 15.128 43.5 17.484 66.472 17.525 17.317-.006 34.534-2.675 51.35-6.67V260.79c-18.953 9.447-41.233 15.446-62.243 10.018-14.656-3.65-25.294-17.811-25.056-32.936-1.699-15.728 7.524-32.335 22.981-37.011 19.19-6.008 40.108-1.413 58.096 6.398 3.855 2.018 7.765 4.521 6.222-1.921v-17.9c-30.084-7.157-62.101-9.792-92.329-2.004-8.748 2.468-17.27 6.21-24.379 11.956z" fill="url(#c)"/></g></svg>
|
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 811 B After Width: | Height: | Size: 768 B |
|
@ -1,71 +1 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Layer_1" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns"
|
||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-45 62.3 750 471"
|
||||
style="enable-background:new -45 62.3 750 471;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#283A97;}
|
||||
.st1{fill:#EE4799;}
|
||||
.st2{fill:none;stroke:#EE4799;stroke-width:1.0006;stroke-miterlimit:2.6131;}
|
||||
.st3{fill:#FFFFFF;}
|
||||
</style>
|
||||
<title>Slice 1</title>
|
||||
<desc>Created with Sketch.</desc>
|
||||
<path id="Rectangle-1" sketch:type="MSShapeGroup" class="st0" d="M-5,62.3h670c22.1,0,40,17.9,40,40v391c0,22.1-17.9,40-40,40H-5
|
||||
c-22.1,0-40-17.9-40-40v-391C-45,80.2-27.1,62.3-5,62.3z"/>
|
||||
<g>
|
||||
<polygon class="st0" points="160.2,477.3 500.2,477.3 500.2,118.3 160.2,118.3 "/>
|
||||
<polygon class="st1" points="500.3,127.6 490.2,144.7 159.7,137.1 159.7,135.4 "/>
|
||||
<polygon class="st1" points="489.1,146.9 478.7,163.9 165.5,156 164.7,154.8 "/>
|
||||
<polygon class="st1" points="477.4,166.3 467.2,183.2 177,175.3 176.3,174.2 "/>
|
||||
<polygon class="st1" points="465.7,185.6 455.8,202.6 189.2,194.7 188.4,193.5 "/>
|
||||
<polygon class="st1" points="454.5,204.8 444.4,221.9 200.7,214 199.9,212.7 "/>
|
||||
<polygon class="st1" points="442.8,224.3 432.7,241.2 212.7,233.3 212,232.2 "/>
|
||||
<polygon class="st1" points="431.3,243.5 421.2,260.6 225.1,252.7 224.3,251.4 "/>
|
||||
<polygon class="st1" points="419.9,262.8 409.7,279.9 236.6,272 235.8,270.7 "/>
|
||||
<polygon class="st1" points="408.6,282.1 398.1,299.1 248.1,291.2 247.3,290.1 "/>
|
||||
<polygon class="st1" points="397,301.5 386.8,318.5 260.3,310.5 259.5,309.4 "/>
|
||||
<polygon class="st1" points="385.5,320.8 375.2,337.8 272.3,329.9 271.5,328.7 "/>
|
||||
<polygon class="st1" points="374,340 363.7,357.1 284.3,349.2 283.5,347.9 "/>
|
||||
<polygon class="st1" points="362.5,359.5 352.3,376.3 296,368.5 295.2,367.3 "/>
|
||||
<polygon class="st1" points="351.1,378.7 340.7,395.8 307.5,387.9 306.7,386.6 "/>
|
||||
<polygon class="st1" points="339.1,398.6 328.7,416.3 317.6,407.1 317.3,405.9 "/>
|
||||
<path class="st1" d="M159.7,406.5h340.6H159.7z"/>
|
||||
<line class="st2" x1="159.7" y1="406.5" x2="500.3" y2="406.5"/>
|
||||
<path class="st1" d="M159.7,387.2h340.6H159.7z"/>
|
||||
<line class="st2" x1="159.7" y1="387.2" x2="500.3" y2="387.2"/>
|
||||
<path class="st1" d="M159.7,368h340.6H159.7z"/>
|
||||
<line class="st2" x1="159.7" y1="368" x2="500.3" y2="368"/>
|
||||
<path class="st1" d="M159.7,348.6h340.6H159.7z"/>
|
||||
<line class="st2" x1="159.7" y1="348.6" x2="500.3" y2="348.6"/>
|
||||
<path class="st1" d="M159.7,329.3h340.6H159.7z"/>
|
||||
<line class="st2" x1="159.7" y1="329.3" x2="500.3" y2="329.3"/>
|
||||
<path class="st1" d="M159.7,310h340.6H159.7z"/>
|
||||
<line class="st2" x1="159.7" y1="310" x2="500.3" y2="310"/>
|
||||
<path class="st1" d="M159.7,290.8h340.6H159.7z"/>
|
||||
<line class="st2" x1="159.7" y1="290.8" x2="500.3" y2="290.8"/>
|
||||
<path class="st1" d="M159.7,271.3h340.6H159.7z"/>
|
||||
<line class="st2" x1="159.7" y1="271.3" x2="500.3" y2="271.3"/>
|
||||
<path class="st1" d="M159.7,252.1h340.6H159.7z"/>
|
||||
<line class="st2" x1="159.7" y1="252.1" x2="500.3" y2="252.1"/>
|
||||
<path class="st1" d="M159.7,232.8h340.6H159.7z"/>
|
||||
<line class="st2" x1="159.7" y1="232.8" x2="500.3" y2="232.8"/>
|
||||
<path class="st1" d="M159.7,213.5h340.6H159.7z"/>
|
||||
<line class="st2" x1="159.7" y1="213.5" x2="500.3" y2="213.5"/>
|
||||
<path class="st1" d="M159.7,194.1h340.6H159.7z"/>
|
||||
<line class="st2" x1="159.7" y1="194.1" x2="500.3" y2="194.1"/>
|
||||
<path class="st1" d="M159.7,174.8h340.6H159.7z"/>
|
||||
<line class="st2" x1="159.7" y1="174.8" x2="500.3" y2="174.8"/>
|
||||
<path class="st1" d="M159.7,155.6h340.6H159.7z"/>
|
||||
<line class="st2" x1="159.7" y1="155.6" x2="500.3" y2="155.6"/>
|
||||
<path class="st3" d="M364.5,427.4v37.4h25.4l3.2-7.1c-4.6,0.2-7.9,0.3-12.6,0.3c-1.4,0-2.7,0-5.4,0v-9.3h0.6c2.7,0,5.7,0.2,8.8,0.3
|
||||
l3.2-7.3c-1.6,0.2-1.9,0.2-4.1,0.2c-3.9,0.2-4.9,0.2-8.5,0.2v-7.7h1.3c3.2,0,7.3,0.2,12.8,0.3l3-7.3L364.5,427.4L364.5,427.4z
|
||||
M267.4,427.4l2.7,4l-14.4,33.5h10.4l2.4-5.7h14.8l2.4,5.7h10.9l-16.4-37.4L267.4,427.4L267.4,427.4z M280.3,452.3h-9l4.4-10.7
|
||||
L280.3,452.3L280.3,452.3z M221.4,425h-10.6v39.8h25.6l3-7.1c-3.3,0.2-7.6,0.3-12.2,0.3c-1.6,0-2.8,0-5.8,0L221.4,425L221.4,425z
|
||||
M339.9,429.3c-4.1-1.9-7.7-2.7-11.4-2.7c-8.1,0-13.6,4.4-13.6,10.7c0,4,1.7,6.6,6.3,9.6l5.4,3.6c2.5,1.7,3.5,3,3.5,4.9
|
||||
c0,2.4-2.2,3.8-5.5,3.8c-2.8,0-4.6-0.8-7.7-3.3l-2.8,6.6c4.7,2.5,7.1,3.2,11.2,3.2c9.3,0,15.2-4.6,15.2-11.7
|
||||
c0-4.1-1.9-6.8-6.6-10.1l-5.5-4c-2.4-1.6-3-2.4-3-3.6c0-2.1,1.6-3.3,4.3-3.3c2.4,0,4.4,0.8,7.6,2.8L339.9,429.3L339.9,429.3z
|
||||
M415.5,427.4v37.4h10.6v-30.5h2.1h0.2c4.7,0,7.3,1.9,7.3,5.4c0,3.6-3,6-7.7,6c-0.5,0-0.8,0-1.6-0.2l12.8,19.3h11.7l-10.6-15.5
|
||||
c4.6-2.7,6.5-5.7,6.5-10.3c0-7.9-5.5-11.7-16.7-11.7L415.5,427.4L415.5,427.4z"/>
|
||||
</g>
|
||||
</svg>
|
||||
<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="-45 62.3 750 471"><style>.st0{fill:#283a97}.st1{fill:#ee4799}.st2{fill:none;stroke:#ee4799;stroke-width:1.0006;stroke-miterlimit:2.6131}.st3{fill:#fff}</style><path id="Rectangle-1" class="st0" d="M-5 62.3h670c22.1 0 40 17.9 40 40v391c0 22.1-17.9 40-40 40H-5c-22.1 0-40-17.9-40-40v-391c0-22.1 17.9-40 40-40z"/><path class="st0" d="M160.2 477.3h340v-359h-340z"/><path class="st1" d="M500.3 127.6l-10.1 17.1-330.5-7.6v-1.7zm-11.2 19.3l-10.4 17-313.2-7.9-.8-1.2zm-11.7 19.4l-10.2 16.9-290.2-7.9-.7-1.1zm-11.7 19.3l-9.9 17-266.6-7.9-.8-1.2zm-11.2 19.2l-10.1 17.1-243.7-7.9-.8-1.3zm-11.7 19.5l-10.1 16.9-220-7.9-.7-1.1zm-11.5 19.2l-10.1 17.1-196.1-7.9-.8-1.3zm-11.4 19.3l-10.2 17.1-173.1-7.9-.8-1.3zm-11.3 19.3l-10.5 17-150-7.9-.8-1.1zM397 301.5l-10.2 17-126.5-8-.8-1.1zm-11.5 19.3l-10.3 17-102.9-7.9-.8-1.2zM374 340l-10.3 17.1-79.4-7.9-.8-1.3zm-11.5 19.5l-10.2 16.8-56.3-7.8-.8-1.2zm-11.4 19.2l-10.4 17.1-33.2-7.9-.8-1.3zm-12 19.9l-10.4 17.7-11.1-9.2-.3-1.2zm-179.4 7.9h340.6-340.6z"/><path class="st2" d="M159.7 406.5h340.6"/><path class="st1" d="M159.7 387.2h340.6-340.6z"/><path class="st2" d="M159.7 387.2h340.6"/><path class="st1" d="M159.7 368h340.6-340.6z"/><path class="st2" d="M159.7 368h340.6"/><path class="st1" d="M159.7 348.6h340.6-340.6z"/><path class="st2" d="M159.7 348.6h340.6"/><path class="st1" d="M159.7 329.3h340.6-340.6z"/><path class="st2" d="M159.7 329.3h340.6"/><path class="st1" d="M159.7 310h340.6-340.6z"/><path class="st2" d="M159.7 310h340.6"/><path class="st1" d="M159.7 290.8h340.6-340.6z"/><path class="st2" d="M159.7 290.8h340.6"/><path class="st1" d="M159.7 271.3h340.6-340.6z"/><path class="st2" d="M159.7 271.3h340.6"/><path class="st1" d="M159.7 252.1h340.6-340.6z"/><path class="st2" d="M159.7 252.1h340.6"/><path class="st1" d="M159.7 232.8h340.6-340.6z"/><path class="st2" d="M159.7 232.8h340.6"/><path class="st1" d="M159.7 213.5h340.6-340.6z"/><path class="st2" d="M159.7 213.5h340.6"/><path class="st1" d="M159.7 194.1h340.6-340.6z"/><path class="st2" d="M159.7 194.1h340.6"/><path class="st1" d="M159.7 174.8h340.6-340.6z"/><path class="st2" d="M159.7 174.8h340.6"/><path class="st1" d="M159.7 155.6h340.6-340.6z"/><path class="st2" d="M159.7 155.6h340.6"/><path class="st3" d="M364.5 427.4v37.4h25.4l3.2-7.1c-4.6.2-7.9.3-12.6.3h-5.4v-9.3h.6c2.7 0 5.7.2 8.8.3l3.2-7.3c-1.6.2-1.9.2-4.1.2-3.9.2-4.9.2-8.5.2v-7.7h1.3c3.2 0 7.3.2 12.8.3l3-7.3h-27.7zm-97.1 0l2.7 4-14.4 33.5h10.4l2.4-5.7h14.8l2.4 5.7h10.9l-16.4-37.4-12.8-.1zm12.9 24.9h-9l4.4-10.7 4.6 10.7zM221.4 425h-10.6v39.8h25.6l3-7.1c-3.3.2-7.6.3-12.2.3h-5.8v-33zm118.5 4.3c-4.1-1.9-7.7-2.7-11.4-2.7-8.1 0-13.6 4.4-13.6 10.7 0 4 1.7 6.6 6.3 9.6l5.4 3.6c2.5 1.7 3.5 3 3.5 4.9 0 2.4-2.2 3.8-5.5 3.8-2.8 0-4.6-.8-7.7-3.3l-2.8 6.6c4.7 2.5 7.1 3.2 11.2 3.2 9.3 0 15.2-4.6 15.2-11.7 0-4.1-1.9-6.8-6.6-10.1l-5.5-4c-2.4-1.6-3-2.4-3-3.6 0-2.1 1.6-3.3 4.3-3.3 2.4 0 4.4.8 7.6 2.8l2.6-6.5zm75.6-1.9v37.4h10.6v-30.5h2.3c4.7 0 7.3 1.9 7.3 5.4 0 3.6-3 6-7.7 6-.5 0-.8 0-1.6-.2l12.8 19.3h11.7l-10.6-15.5c4.6-2.7 6.5-5.7 6.5-10.3 0-7.9-5.5-11.7-16.7-11.7l-14.6.1z"/></svg>
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 885 B |
|
@ -1,31 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg width="750px" height="471px" viewBox="0 0 750 471" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<!-- Generator: Sketch 39.1 (31720) - http://www.bohemiancoding.com/sketch -->
|
||||
<title>Slice 1</title>
|
||||
<desc>Created with Sketch.</desc>
|
||||
<defs></defs>
|
||||
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<g id="mastercard">
|
||||
<rect id="Rectangle-1" fill="#F4F4F4" x="0" y="0" width="750" height="471" rx="40"></rect>
|
||||
<g id="mark" transform="translate(125.719997, 41.850862)">
|
||||
<g id="text" transform="translate(25.142679, 328.360022)" fill="#000000">
|
||||
<path d="M467.715561,51.9326899 C466.502604,51.9623585 465.503405,52.3648948 464.717962,53.1403001 C463.932516,53.9157321 463.526027,54.8861098 463.498494,56.0514362 C463.526027,57.2079497 463.932516,58.1758036 464.717963,58.9550005 C465.503406,59.7342125 466.502604,60.1392726 467.715561,60.1701825 C468.900764,60.1392726 469.887352,59.7342123 470.675326,58.9550002 C471.463285,58.175803 471.872297,57.2079493 471.902362,56.0514362 C471.872927,54.8861098 471.465177,53.915732 470.679109,53.1402998 C469.893026,52.3648943 468.905178,51.9623581 467.715561,51.9326899 L467.715561,51.9326899 L467.715561,51.9326899 Z M467.715561,59.2616355 C466.791392,59.2389292 466.029277,58.9259854 465.429214,58.3228033 C464.829145,57.7196374 464.518499,56.9625159 464.497273,56.0514362 C464.518499,55.1363804 464.829146,54.379679 465.429214,53.78133 C466.029277,53.1830062 466.791392,52.8730071 467.715561,52.8513318 C468.620383,52.8730076 469.370728,53.1830066 469.966597,53.7813302 C470.562452,54.379679 470.871417,55.1363804 470.893494,56.0514362 C470.871417,56.9625161 470.562452,57.7196378 469.966597,58.3228033 C469.370728,58.925985 468.620384,59.2389287 467.715561,59.2616355 L467.715561,59.2616355 L467.715561,59.2616355 Z M467.957689,54.1232975 L466.19217,54.1232975 L466.19217,57.9492899 L467.009353,57.9492899 L467.009353,56.5158046 L467.382634,56.5158046 L468.542832,57.9492899 L469.521434,57.9492899 L468.270438,56.5057097 C468.661158,56.4567169 468.961716,56.330109 469.172113,56.1258861 C469.382498,55.9216836 469.488849,55.6613181 469.491168,55.3447885 C469.488429,54.9670796 469.355174,54.6701195 469.091404,54.4539073 C468.827621,54.237719 468.449717,54.1275158 467.957689,54.1232975 L467.957689,54.1232975 L467.957689,54.1232975 Z M467.9476,54.8400402 C468.166813,54.840262 468.338741,54.8827453 468.463383,54.9674885 C468.588015,55.0522552 468.651489,55.1780218 468.653808,55.3447882 C468.651483,55.5164129 468.588015,55.6451235 468.463383,55.73092 C468.338741,55.8167385 468.166813,55.8596412 467.9476,55.859631 L467.009353,55.859631 L467.009353,54.8400393 L467.9476,54.8400402 L467.9476,54.8400402 Z" id="path3078"></path>
|
||||
<path d="M9.34331724,57.5428029 L0.588175916,57.5428029 L0.588175916,16.6600045 L9.17164757,16.6600045 L9.17164757,21.6415186 C9.17164757,21.6415186 16.7107355,15.5532485 21.1885083,15.6293508 C29.8949298,15.7773317 35.093729,23.1875098 35.093729,23.1875098 C35.093729,23.1875098 39.3109893,15.6293508 48.8272918,15.6293508 C62.8997988,15.6293508 64.9642149,28.5125858 64.9642149,28.5125858 L64.9642149,57.3710273 L56.5524108,57.3710273 L56.5524108,31.9481087 C56.5524108,31.9481087 56.5825922,24.2181741 47.4539323,24.2181741 C38.0139747,24.2181741 37.1537629,31.9481087 37.1537629,31.9481087 L37.1537629,57.3710273 L28.3986215,57.3710273 L28.3986215,31.7763331 C28.3986215,31.7763331 27.5575496,23.7028366 19.6434834,23.7028366 C9.3650113,23.7028366 9.17164757,31.9481087 9.17164757,31.9481087 L9.34331724,57.5428029 L9.34331724,57.5428029 Z" id="path3006"></path>
|
||||
<path d="M275.596898,15.623773 C271.119122,15.5476814 263.580741,21.6355967 263.580741,21.6355967 L263.580741,16.6649268 L254.988182,16.6649268 L254.988182,57.5386115 L263.748565,57.5386115 L263.580741,31.9463783 C263.580741,31.9463783 263.77445,23.7179044 274.052923,23.7179044 C275.961824,23.7179044 277.444363,24.180569 278.61772,24.8934007 L278.61772,24.8598688 L281.470718,16.9000798 C279.749092,16.1750176 277.791223,15.6610664 275.596898,15.623773 L275.596898,15.623773 L275.596898,15.623773 Z" id="path3008"></path>
|
||||
<path d="M398.92774,15.623773 C394.449964,15.5476814 386.911582,21.6355967 386.911582,21.6355967 L386.911582,16.6649268 L378.319023,16.6649268 L378.319023,57.5386115 L387.079406,57.5386115 L386.911582,31.9463783 C386.911582,31.9463783 387.105291,23.7179044 397.383764,23.7179044 C399.292666,23.7179044 400.775204,24.180569 401.948561,24.8934007 L401.948561,24.8598688 L404.801559,16.9000798 C403.079933,16.1750713 401.122064,15.6611201 398.92774,15.6238267 L398.92774,15.623773 L398.92774,15.623773 Z" id="path3013"></path>
|
||||
<path d="M93.2735295,15.4558449 C80.1708646,15.4558449 73.2368626,27.2396859 73.2018479,37.0849763 C73.1658666,47.1762746 81.0955959,58.8148646 93.6427411,58.8148646 C100.962678,58.8148646 106.976041,53.4075817 106.976041,53.4075817 L106.960145,57.5721971 L115.577998,57.5721971 L115.577998,16.6488272 L106.929792,16.6488272 L106.929792,21.8035248 C106.929792,21.8035248 101.282654,15.4558449 93.2735725,15.4558449 L93.2735295,15.4558449 L93.2735295,15.4558449 Z M94.9517638,23.7850756 C101.991433,23.7850756 107.706344,29.9122942 107.706344,37.454418 C107.706344,44.9965418 101.991433,51.0901748 94.9517638,51.0901748 C87.9120947,51.0901748 82.2307482,44.9965418 82.2307482,37.454418 C82.2307482,29.9122942 87.9120947,23.7850756 94.9517638,23.7850756 L94.9517638,23.7850756 L94.9517638,23.7850756 Z" id="path3015"></path>
|
||||
<path d="M344.597578,15.4558449 C331.494913,15.4558449 324.560911,27.2396859 324.525896,37.0849763 C324.489915,47.1762746 332.419644,58.8148646 344.966789,58.8148646 C352.286726,58.8148646 358.300089,53.4075817 358.300089,53.4075817 L358.284193,57.5721971 L366.902046,57.5721971 L366.902046,16.6488272 L358.25384,16.6488272 L358.25384,21.8035248 C358.25384,21.8035248 352.606702,15.4558449 344.59762,15.4558449 L344.597578,15.4558449 L344.597578,15.4558449 Z M346.275812,23.7850756 C353.315481,23.7850756 359.030392,29.9122942 359.030392,37.454418 C359.030392,44.9965418 353.315481,51.0901748 346.275812,51.0901748 C339.236143,51.0901748 333.554796,44.9965418 333.554796,37.454418 C333.554796,29.9122942 339.236143,23.7850756 346.275812,23.7850756 L346.275812,23.7850756 L346.275812,23.7850756 Z" id="path3020"></path>
|
||||
<path d="M427.342249,15.4558449 C414.239584,15.4558449 407.305582,27.2396859 407.270567,37.0849763 C407.234586,47.1762746 415.164315,58.8148646 427.71146,58.8148646 C435.031397,58.8148646 441.04476,53.4075817 441.04476,53.4075817 L441.028864,57.5721971 L449.646718,57.5721971 L449.646718,0.49407462 L440.998511,0.49407462 L440.998511,21.8035248 C440.998511,21.8035248 435.351373,15.4558449 427.342292,15.4558449 L427.342249,15.4558449 L427.342249,15.4558449 Z M429.020483,23.7850756 C436.060152,23.7850756 441.775063,29.9122942 441.775063,37.454418 C441.775063,44.9965418 436.060152,51.0901748 429.020483,51.0901748 C421.980814,51.0901748 416.299467,44.9965418 416.299467,37.454418 C416.299467,29.9122942 421.980814,23.7850756 429.020483,23.7850756 L429.020483,23.7850756 L429.020483,23.7850756 Z" id="path3022"></path>
|
||||
<path d="M141.872122,58.9170078 C132.94558,58.9170078 124.705176,53.4201669 124.705176,53.4201669 L128.481907,47.5797641 C128.481907,47.5797641 136.278978,51.1870733 141.872122,51.1870733 C145.50613,51.1870733 151.583937,50.0128667 151.657274,46.3773348 C151.734822,42.5349478 141.442945,41.39581 141.442945,41.39581 C141.442945,41.39581 126.078536,41.1860853 126.078536,28.5125858 C126.078536,20.5421246 133.751938,15.4575752 143.588818,15.4575752 C149.272667,15.4575752 159.89741,20.4390893 159.89741,20.4390893 L155.605674,27.1383702 C155.605674,27.1383702 147.402218,23.858921 143.073802,23.7028366 C139.418806,23.5710413 135.005346,25.3221465 135.005346,28.5125858 C135.005346,37.1806926 160.584084,27.837198 160.584084,45.3466704 C160.584084,56.8338188 150.166691,58.9170078 141.872122,58.9170078 L141.872122,58.9170078 L141.872122,58.9170078 Z" id="path3024"></path>
|
||||
<path d="M174.802149,4.80920724 L174.802149,16.6985124 L167.182966,16.6985124 L167.182966,25.296428 L174.802149,25.296428 L174.802149,45.85082 C174.802149,45.85082 174.127827,59.7552616 189.067141,59.7552616 C193.19753,59.7552616 201.284686,56.6989713 201.284686,56.6989713 L197.827523,47.7651996 C197.827523,47.7651996 194.611468,50.5102454 190.980328,50.4184626 C184.076195,50.2440217 184.267391,45.8172343 184.267391,45.8172343 L184.267391,25.296428 L198.498817,25.296428 L198.498817,16.6985124 L184.267391,16.6985124 L184.267391,4.80920724 L174.802149,4.80920724 L174.802149,4.80920724 L174.802149,4.80920724 Z" id="path3026"></path>
|
||||
<path d="M226.659588,15.959629 C212.610087,15.959629 205.590417,27.5389793 205.648095,37.5887604 C205.707384,47.9238419 212.040304,59.5537479 227.498705,59.5537479 C234.115072,59.5537479 243.408366,53.7434378 243.408366,53.7434378 L239.414168,46.791217 C239.414168,46.791217 233.072548,51.2916884 227.498705,51.2916884 C216.339172,51.2916884 215.616806,40.3763659 215.616806,40.3763659 L245.489376,40.3763659 C245.489376,40.3763659 247.717985,15.959629 226.659588,15.959629 L226.659588,15.959629 L226.659588,15.959629 Z M225.38413,23.9865893 C225.715416,23.9677813 226.070568,23.9865893 226.424635,23.9865893 C236.937954,23.9865893 236.863252,33.9279292 236.863252,33.9279292 L215.616806,33.9279292 C215.616806,33.9279292 215.114206,24.5707962 225.38413,23.9865893 L225.38413,23.9865893 L225.38413,23.9865893 Z" id="path3034"></path>
|
||||
<path d="M315.5162,46.686 L319.52203,54.7026427 C319.52203,54.7026427 313.17302,58.8324258 306.047898,58.8324258 C291.296557,58.8324258 283.105442,47.7234997 283.105442,37.2117848 C283.105442,20.6912339 296.140698,15.8340672 304.955397,15.8340672 C312.956369,15.8340672 319.886193,20.4497077 319.886193,20.4497077 L315.394819,28.4663505 C315.394819,28.4663505 312.671859,24.2151004 304.712614,24.2151004 C296.766655,24.2151004 292.573755,31.0702185 292.573755,37.5761752 C292.573755,44.8669927 297.454114,51.0587064 304.834005,51.0587064 C310.623393,51.0587064 315.5162,46.686 315.5162,46.686 L315.5162,46.686 L315.5162,46.686 Z" id="path3037"></path>
|
||||
</g>
|
||||
<path d="M498.787985,236.781279 L498.787985,231.260623 L497.347484,231.260623 L495.690436,235.057252 L494.033388,231.260623 L492.592886,231.260623 L492.592886,236.781279 L493.609711,236.781279 L493.609711,232.617235 L495.163193,236.206603 L496.217678,236.206603 L497.771161,232.607814 L497.771161,236.781279 L498.787985,236.781279 L498.787985,236.781279 Z M489.664807,236.781279 L489.664807,232.202715 L491.510156,232.202715 L491.510156,231.270044 L486.812049,231.270044 L486.812049,232.202715 L488.657397,232.202715 L488.657397,236.781279 L489.664807,236.781279 L489.664807,236.781279 Z" id="path3057" fill="#F79F1A"></path>
|
||||
<path d="M499.076678,154.709802 C499.076678,240.135159 429.999707,309.386105 344.788929,309.386105 C259.578151,309.386105 190.501159,240.135159 190.501159,154.709802 C190.501159,69.2844326 259.578151,0.0334920174 344.788929,0.0334920174 C429.999707,0.0334920174 499.076678,69.2844326 499.076678,154.709802 L499.076678,154.709802 L499.076678,154.709802 Z" id="path2997" fill="#F79F1A"></path>
|
||||
<path d="M308.73932,154.709802 C308.73932,240.135159 239.662349,309.386105 154.451571,309.386105 C69.2407931,309.386105 0.163801275,240.135159 0.163801275,154.709802 C0.163801275,69.2844326 69.2407931,0.0334920174 154.451571,0.0334920174 C239.662349,0.0334920174 308.73932,69.2844326 308.73932,154.709802 L308.73932,154.709802 L308.73932,154.709802 Z" id="path2995" fill="#EA001B"></path>
|
||||
<path d="M249.620562,32.9474812 C213.621326,61.2636823 190.513152,105.265345 190.513152,154.695309 C190.513152,204.125274 213.621326,248.16052 249.620562,276.476723 C285.619799,248.16052 308.727973,204.125274 308.727973,154.695309 C308.727973,105.265345 285.619799,61.2636823 249.620562,32.9474812 L249.620562,32.9474812 L249.620562,32.9474812 Z" id="path2999" fill="#FF5F01"></path>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
<svg height="471" width="750" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><rect fill="#f4f4f4" height="471" rx="40" width="750"/><path d="M618.579 422.143c-1.213.03-2.213.432-2.998 1.207-.785.776-1.192 1.746-1.22 2.911.028 1.157.435 2.125 1.22 2.904.785.78 1.785 1.184 2.998 1.215 1.185-.03 2.171-.436 2.96-1.215.787-.78 1.196-1.747 1.226-2.904-.03-1.165-.437-2.135-1.223-2.91-.786-.776-1.774-1.179-2.963-1.208zm0 7.329c-.925-.023-1.687-.336-2.287-.94-.6-.602-.91-1.36-.932-2.27.021-.916.332-1.672.932-2.27.6-.599 1.362-.909 2.287-.93.904.021 1.655.331 2.25.93.596.598.905 1.354.927 2.27-.022.91-.33 1.668-.926 2.27-.596.604-1.347.917-2.251.94zm.242-5.139h-1.766v3.826h.817v-1.433h.374l1.16 1.433h.978l-1.25-1.443c.39-.05.69-.176.901-.38.21-.204.317-.465.32-.781-.004-.378-.137-.675-.4-.891-.264-.216-.642-.326-1.134-.33zm-.01.717c.219 0 .39.043.515.127a.434.434 0 0 1 .19.378.446.446 0 0 1-.19.386c-.124.086-.296.129-.515.129h-.939v-1.02zm-458.605 2.703h-8.755V386.87h8.584v4.982s7.539-6.089 12.017-6.013c8.706.148 13.905 7.559 13.905 7.559s4.217-7.559 13.733-7.559c14.073 0 16.137 12.884 16.137 12.884v28.857h-8.412v-25.422s.03-7.73-9.098-7.73c-9.44 0-10.3 7.73-10.3 7.73v25.423h-8.755v-25.595s-.841-8.073-8.756-8.073c-10.278 0-10.471 8.245-10.471 8.245zm266.254-41.92c-4.478-.075-12.016 6.013-12.016 6.013v-4.971h-8.593v40.874h8.76l-.167-25.593s.193-8.228 10.472-8.228c1.909 0 3.391.463 4.565 1.175v-.033l2.853-7.96c-1.722-.725-3.68-1.239-5.874-1.276zm123.33 0c-4.477-.075-12.015 6.013-12.015 6.013v-4.971h-8.593v40.874h8.76l-.167-25.593s.193-8.228 10.472-8.228c1.909 0 3.391.463 4.565 1.175v-.033l2.853-7.96c-1.722-.725-3.68-1.239-5.874-1.276zm-305.653-.167c-13.103 0-20.037 11.784-20.072 21.629-.036 10.091 7.894 21.73 20.44 21.73 7.32 0 13.334-5.407 13.334-5.407l-.016 4.164h8.618V386.86h-8.648v5.155s-5.647-6.348-13.656-6.348zm1.678 8.33c7.04 0 12.754 6.126 12.754 13.668 0 7.543-5.715 13.636-12.754 13.636-7.04 0-12.721-6.093-12.721-13.636 0-7.542 5.681-13.669 12.72-13.669zm249.646-8.33c-13.103 0-20.037 11.784-20.072 21.629-.036 10.091 7.894 21.73 20.44 21.73 7.32 0 13.334-5.407 13.334-5.407l-.016 4.164h8.618V386.86h-8.648v5.155s-5.647-6.348-13.656-6.348zm1.678 8.33c7.04 0 12.754 6.126 12.754 13.668 0 7.543-5.715 13.636-12.754 13.636-7.04 0-12.721-6.093-12.721-13.636 0-7.542 5.681-13.669 12.72-13.669zm81.066-8.33c-13.102 0-20.036 11.784-20.071 21.629-.036 10.091 7.893 21.73 20.44 21.73 7.32 0 13.334-5.407 13.334-5.407l-.016 4.164h8.618v-57.078h-8.648v21.31s-5.648-6.348-13.657-6.348zm1.678 8.33c7.04 0 12.755 6.126 12.755 13.668 0 7.543-5.715 13.636-12.755 13.636s-12.72-6.093-12.72-13.636c0-7.542 5.68-13.669 12.72-13.669zm-287.148 35.13c-8.926 0-17.167-5.497-17.167-5.497l3.777-5.84s7.797 3.607 13.39 3.607c3.634 0 9.712-1.174 9.785-4.81.078-3.842-10.214-4.981-10.214-4.981s-15.364-.21-15.364-12.883c0-7.97 7.673-13.055 17.51-13.055 5.684 0 16.308 4.981 16.308 4.981l-4.291 6.7s-8.204-3.28-12.532-3.436c-3.655-.132-8.069 1.62-8.069 4.81 0 8.668 25.58-.676 25.58 16.834 0 11.487-10.418 13.57-18.713 13.57zm32.93-54.108v11.892h-7.619v8.597h7.62v20.555s-.675 13.904 14.264 13.904c4.13 0 12.218-3.056 12.218-3.056l-3.457-8.934s-3.217 2.745-6.848 2.653c-6.904-.174-6.713-4.6-6.713-4.6v-20.524h14.233v-8.595h-14.232v-11.891h-9.465zm51.858 11.15c-14.05 0-21.07 11.58-21.012 21.63.06 10.335 6.392 21.965 21.85 21.965 6.617 0 15.91-5.81 15.91-5.81L390.277 417s-6.341 4.5-11.915 4.5c-11.16 0-11.882-10.915-11.882-10.915h29.872s2.229-24.416-18.83-24.416zm-1.276 8.028c.331-.02.687 0 1.04 0 10.514 0 10.44 9.94 10.44 9.94H366.48s-.503-9.356 9.767-9.94zm90.132 22.699l4.006 8.017s-6.349 4.13-13.474 4.13c-14.751 0-22.943-11.11-22.943-21.621 0-16.52 13.036-21.378 21.85-21.378 8.001 0 14.931 4.616 14.931 4.616l-4.491 8.016s-2.723-4.25-10.682-4.25c-7.946 0-12.14 6.854-12.14 13.36 0 7.291 4.881 13.483 12.261 13.483 5.79 0 10.682-4.373 10.682-4.373z" fill="#000"/><path d="M624.508 278.631v-5.52h-1.44l-1.658 3.796-1.657-3.796h-1.44v5.52h1.017v-4.164l1.553 3.59h1.055l1.553-3.6v4.174zm-9.123 0v-4.578h1.845v-.933h-4.698v.933h1.845v4.578zm9.412-82.071c0 85.425-69.077 154.676-154.288 154.676-85.21 0-154.288-69.25-154.288-154.676S385.298 41.883 470.51 41.883c85.21 0 154.288 69.251 154.288 154.677z" fill="#f79f1a"/><path d="M434.46 196.56c0 85.425-69.078 154.676-154.288 154.676-85.212 0-154.288-69.25-154.288-154.676S194.96 41.883 280.172 41.883c85.21 0 154.287 69.251 154.287 154.677z" fill="#ea001b"/><path d="M375.34 74.797c-35.999 28.317-59.107 72.318-59.107 121.748s23.108 93.466 59.108 121.782c35.999-28.316 59.107-72.352 59.107-121.782s-23.108-93.431-59.107-121.748z" fill="#ff5f01"/></g></svg>
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.1 KiB |
|
@ -1,17 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg width="750px" height="471px" viewBox="0 0 750 471" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
|
||||
<!-- Generator: Sketch 3.3.1 (12005) - http://www.bohemiancoding.com/sketch -->
|
||||
<title>Slice 1</title>
|
||||
<desc>Created with Sketch.</desc>
|
||||
<defs></defs>
|
||||
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
|
||||
<g id="visa" sketch:type="MSLayerGroup">
|
||||
<rect id="Rectangle-1" fill="#0E4595" sketch:type="MSShapeGroup" x="0" y="0" width="750" height="471" rx="40"></rect>
|
||||
<path d="M278.1975,334.2275 L311.5585,138.4655 L364.9175,138.4655 L331.5335,334.2275 L278.1975,334.2275 L278.1975,334.2275 Z" id="Shape" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>
|
||||
<path d="M524.3075,142.6875 C513.7355,138.7215 497.1715,134.4655 476.4845,134.4655 C423.7605,134.4655 386.6205,161.0165 386.3045,199.0695 C386.0075,227.1985 412.8185,242.8905 433.0585,252.2545 C453.8275,261.8495 460.8105,267.9695 460.7115,276.5375 C460.5795,289.6595 444.1255,295.6545 428.7885,295.6545 C407.4315,295.6545 396.0855,292.6875 378.5625,285.3785 L371.6865,282.2665 L364.1975,326.0905 C376.6605,331.5545 399.7065,336.2895 423.6355,336.5345 C479.7245,336.5345 516.1365,310.2875 516.5505,269.6525 C516.7515,247.3835 502.5355,230.4355 471.7515,216.4645 C453.1005,207.4085 441.6785,201.3655 441.7995,192.1955 C441.7995,184.0585 451.4675,175.3575 472.3565,175.3575 C489.8055,175.0865 502.4445,178.8915 512.2925,182.8575 L517.0745,185.1165 L524.3075,142.6875" id="path13" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>
|
||||
<path d="M661.6145,138.4655 L620.3835,138.4655 C607.6105,138.4655 598.0525,141.9515 592.4425,154.6995 L513.1975,334.1025 L569.2285,334.1025 C569.2285,334.1025 578.3905,309.9805 580.4625,304.6845 C586.5855,304.6845 641.0165,304.7685 648.7985,304.7685 C650.3945,311.6215 655.2905,334.1025 655.2905,334.1025 L704.8025,334.1025 L661.6145,138.4655 L661.6145,138.4655 Z M596.1975,264.8725 C600.6105,253.5935 617.4565,210.1495 617.4565,210.1495 C617.1415,210.6705 621.8365,198.8155 624.5315,191.4655 L628.1385,208.3435 C628.1385,208.3435 638.3555,255.0725 640.4905,264.8715 L596.1975,264.8715 L596.1975,264.8725 L596.1975,264.8725 Z" id="Path" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>
|
||||
<path d="M232.9025,138.4655 L180.6625,271.9605 L175.0965,244.8315 C165.3715,213.5575 135.0715,179.6755 101.1975,162.7125 L148.9645,333.9155 L205.4195,333.8505 L289.4235,138.4655 L232.9025,138.4655" id="path16" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>
|
||||
<path d="M131.9195,138.4655 L45.8785,138.4655 L45.1975,142.5385 C112.1365,158.7425 156.4295,197.9015 174.8155,244.9525 L156.1065,154.9925 C152.8765,142.5965 143.5085,138.8975 131.9195,138.4655" id="path18" fill="#F2AE14" sketch:type="MSShapeGroup"></path>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
<svg height="471" width="750" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><rect fill="#0e4595" height="471" rx="40" width="750"/><path d="M278.197 334.228l33.361-195.763h53.36l-33.385 195.763zm246.11-191.54c-10.572-3.966-27.136-8.222-47.822-8.222-52.725 0-89.865 26.55-90.18 64.603-.298 28.13 26.513 43.822 46.753 53.186 20.77 9.594 27.752 15.714 27.654 24.283-.132 13.121-16.587 19.116-31.923 19.116-21.357 0-32.703-2.966-50.226-10.276l-6.876-3.111-7.49 43.824c12.464 5.464 35.51 10.198 59.438 10.443 56.09 0 92.501-26.246 92.916-66.882.2-22.268-14.016-39.216-44.8-53.188-18.65-9.055-30.072-15.099-29.951-24.268 0-8.137 9.667-16.839 30.556-16.839 17.45-.27 30.089 3.535 39.937 7.5l4.781 2.26 7.234-42.43m137.307-4.222h-41.231c-12.774 0-22.332 3.487-27.942 16.234l-79.245 179.404h56.032s9.161-24.123 11.233-29.418c6.124 0 60.554.084 68.337.084 1.596 6.853 6.491 29.334 6.491 29.334h49.513zm-65.418 126.407c4.413-11.279 21.26-54.723 21.26-54.723-.316.522 4.38-11.334 7.075-18.684l3.606 16.879s10.217 46.728 12.352 56.528zM232.904 138.466l-52.24 133.496-5.567-27.13c-9.725-31.273-40.025-65.155-73.898-82.118l47.766 171.203 56.456-.065 84.004-195.386z" fill="#fff"/><path d="M131.92 138.465H45.879l-.681 4.073c66.938 16.204 111.231 55.363 129.618 102.414l-18.71-89.96c-3.23-12.395-12.597-16.094-24.186-16.526" fill="#f2ae14"/></g></svg>
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 352 B After Width: | Height: | Size: 231 B |
|
@ -1,8 +1 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 17.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 91.3 91.1" enable-background="new 0 0 91.3 91.1" xml:space="preserve">
|
||||
<circle cx="45.7" cy="45.7" r="45.7"/>
|
||||
<circle fill="#FFFFFF" cx="45.7" cy="24.4" r="12.5"/>
|
||||
</svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 91.3 91.1"><circle cx="45.7" cy="45.7" r="45.7"/><circle fill="#FFF" cx="45.7" cy="24.4" r="12.5"/></svg>
|
Before Width: | Height: | Size: 553 B After Width: | Height: | Size: 158 B |
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 9.0 KiB |
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 3.7 KiB |
|
@ -1 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 367 300"><path fill="#FFF" d="M251 135.1c-6.4 4.9-14.4 7.8-23 7.8-8.9 0-17-3.1-23.5-8.1-6.5 5.1-14.6 8.1-23.5 8.1s-17.1-3.1-23.6-8.2c-6.5 5.1-14.7 8.2-23.6 8.2-8.9 0-17-3.1-23.5-8.1-6.5 5.1-14.6 8.1-23.5 8.1-2 0-4-.2-6-.5v73.4c0 6.3 5.7 12 12 12h54.8c6.3 0 10.9-5.7 10.9-12V185.1c6.9 2.2 14.1 3.5 22.8 3.5s17.1-1.3 22.8-3.5V215.8c0 6.3 5.7 12 12 12h54.8c6.3 0 10.9-5.7 10.9-12V142c-2.6.6-5.3.9-8 .9-8.4-.1-16.4-3-22.8-7.8zm-115.5 49.8c0 5-4.1 9.1-9.1 9.1h-14.1c-5 0-9.1-4.1-9.1-9.1v-14.1c0-5 4.1-9.1 9.1-9.1h14.1c5 0 9.1 4.1 9.1 9.1v14.1zm123.3 0c0 5-4.1 9.1-9.1 9.1h-14.1c-5 0-9.1-4.1-9.1-9.1v-14.1c0-5 4.1-9.1 9.1-9.1h14.1c5 0 9.1 4.1 9.1 9.1v14.1zM294.9 99.9l-30.1-30.1c-3.9-3.9-11.6-7.1-17.1-7.1H113.3c-5.5 0-13.2 3.2-17.1 7.1L66.1 99.9l-7 7c.9 12.5 10 22.7 21.9 25.3h.1c.4.1.9.2 1.3.3h.1c.4.1.8.1 1.3.2h.2c.4 0 .8.1 1.2.1H87c.7 0 1.4 0 2-.1.2 0 .4 0 .6-.1.5 0 .9-.1 1.4-.2.2 0 .5-.1.7-.1.4-.1.8-.1 1.2-.2.2-.1.5-.1.7-.2l1.2-.3c.2-.1.4-.1.6-.2.5-.2 1-.3 1.5-.5.1 0 .2-.1.4-.1.6-.2 1.2-.5 1.7-.8.2-.1.4-.2.5-.3.4-.2.8-.4 1.1-.6.2-.1.4-.3.7-.4l.9-.6c.1-.1.2-.1.3-.2 3.1-2.1 5.7-4.8 7.7-7.9 5 7.7 13.6 12.7 23.5 12.7s18.6-5.1 23.6-12.9c2 3.2 4.7 5.9 7.8 8.1.5.4 1.1.7 1.6 1 .1.1.2.1.3.2 1.1.6 2.2 1.2 3.4 1.6.1 0 .2.1.3.1l1.8.6c.6.2 1.2.3 1.8.5.1 0 .3.1.4.1.6.1 1.2.3 1.8.4.6.1 1.3.2 1.9.2h.5c.6 0 1.3.1 1.9.1s1.3 0 1.9-.1h.5c.6-.1 1.3-.1 1.9-.2.6-.1 1.2-.2 1.8-.4.1 0 .3-.1.4-.1.6-.1 1.2-.3 1.8-.5l1.8-.6c.1 0 .2-.1.3-.1 1.2-.5 2.3-1 3.4-1.6.1-.1.2-.1.3-.2.5-.3 1.1-.7 1.6-1 3.1-2.1 5.7-4.8 7.7-7.9 5 7.7 13.6 12.7 23.5 12.7 9.5 0 18-4.8 23-12.1 2 2.8 4.4 5.3 7.3 7.2.5.4 1.1.7 1.6 1 .1.1.2.1.3.2 1.1.6 2.2 1.2 3.4 1.6.1 0 .2.1.3.1l1.8.6c.6.2 1.2.3 1.8.5.1 0 .3.1.4.1.6.1 1.2.3 1.8.4.6.1 1.3.2 1.9.2h.5c.6 0 1.3.1 1.9.1.6 0 1.2 0 1.9-.1h.4c.6 0 1.2-.1 1.7-.2h.1c.6-.1 1.3-.2 1.9-.4h.1c11.9-2.7 20.9-12.8 21.8-25.3l-6.7-6.7zM150 107c-.1 8.8-7.3 15.9-16.1 15.9s-16-7.1-16.1-15.9l15-37h25l-7.8 37zm77.8 15.9c-8.8 0-16-7.1-16.1-15.9l-7.8-37h25l15 37c-.1 8.8-7.3 15.9-16.1 15.9z"/></svg>
|
||||
<svg viewBox="0 0 367 300" xmlns="http://www.w3.org/2000/svg"><path d="M251 135.1c-6.4 4.9-14.4 7.8-23 7.8-8.9 0-17-3.1-23.5-8.1-6.5 5.1-14.6 8.1-23.5 8.1s-17.1-3.1-23.6-8.2c-6.5 5.1-14.7 8.2-23.6 8.2s-17-3.1-23.5-8.1c-6.5 5.1-14.6 8.1-23.5 8.1-2 0-4-.2-6-.5v73.4c0 6.3 5.7 12 12 12h54.8c6.3 0 10.9-5.7 10.9-12v-30.7c6.9 2.2 14.1 3.5 22.8 3.5s17.1-1.3 22.8-3.5v30.7c0 6.3 5.7 12 12 12h54.8c6.3 0 10.9-5.7 10.9-12V142c-2.6.6-5.3.9-8 .9-8.4-.1-16.4-3-22.8-7.8zm-115.5 49.8c0 5-4.1 9.1-9.1 9.1h-14.1c-5 0-9.1-4.1-9.1-9.1v-14.1c0-5 4.1-9.1 9.1-9.1h14.1c5 0 9.1 4.1 9.1 9.1zm123.3 0c0 5-4.1 9.1-9.1 9.1h-14.1c-5 0-9.1-4.1-9.1-9.1v-14.1c0-5 4.1-9.1 9.1-9.1h14.1c5 0 9.1 4.1 9.1 9.1zm36.1-85l-30.1-30.1c-3.9-3.9-11.6-7.1-17.1-7.1H113.3c-5.5 0-13.2 3.2-17.1 7.1L66.1 99.9l-7 7c.9 12.5 10 22.7 21.9 25.3h.1c.4.1.9.2 1.3.3h.1c.4.1.8.1 1.3.2h.2c.4 0 .8.1 1.2.1H87c.7 0 1.4 0 2-.1.2 0 .4 0 .6-.1.5 0 .9-.1 1.4-.2.2 0 .5-.1.7-.1.4-.1.8-.1 1.2-.2.2-.1.5-.1.7-.2l1.2-.3c.2-.1.4-.1.6-.2.5-.2 1-.3 1.5-.5.1 0 .2-.1.4-.1.6-.2 1.2-.5 1.7-.8.2-.1.4-.2.5-.3.4-.2.8-.4 1.1-.6.2-.1.4-.3.7-.4l.9-.6c.1-.1.2-.1.3-.2 3.1-2.1 5.7-4.8 7.7-7.9 5 7.7 13.6 12.7 23.5 12.7s18.6-5.1 23.6-12.9c2 3.2 4.7 5.9 7.8 8.1.5.4 1.1.7 1.6 1 .1.1.2.1.3.2 1.1.6 2.2 1.2 3.4 1.6.1 0 .2.1.3.1l1.8.6c.6.2 1.2.3 1.8.5.1 0 .3.1.4.1.6.1 1.2.3 1.8.4s1.3.2 1.9.2h.5c.6 0 1.3.1 1.9.1s1.3 0 1.9-.1h.5c.6-.1 1.3-.1 1.9-.2s1.2-.2 1.8-.4c.1 0 .3-.1.4-.1.6-.1 1.2-.3 1.8-.5l1.8-.6c.1 0 .2-.1.3-.1 1.2-.5 2.3-1 3.4-1.6.1-.1.2-.1.3-.2.5-.3 1.1-.7 1.6-1 3.1-2.1 5.7-4.8 7.7-7.9 5 7.7 13.6 12.7 23.5 12.7 9.5 0 18-4.8 23-12.1 2 2.8 4.4 5.3 7.3 7.2.5.4 1.1.7 1.6 1 .1.1.2.1.3.2 1.1.6 2.2 1.2 3.4 1.6.1 0 .2.1.3.1l1.8.6c.6.2 1.2.3 1.8.5.1 0 .3.1.4.1.6.1 1.2.3 1.8.4s1.3.2 1.9.2h.5c.6 0 1.3.1 1.9.1s1.2 0 1.9-.1h.4c.6 0 1.2-.1 1.7-.2h.1c.6-.1 1.3-.2 1.9-.4h.1c11.9-2.7 20.9-12.8 21.8-25.3zM150 107c-.1 8.8-7.3 15.9-16.1 15.9s-16-7.1-16.1-15.9l15-37h25zm77.8 15.9c-8.8 0-16-7.1-16.1-15.9l-7.8-37h25l15 37c-.1 8.8-7.3 15.9-16.1 15.9z" fill="#fff"/></svg>
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.9 KiB |
|
@ -1 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="266 396.70001220703125 25.5 23.5999755859375"><path fill="#FFF" d="M266 402.5c0-3.5 2.2-5.8 5.5-5.8s5.5 2.3 5.5 5.8-2.2 5.8-5.5 5.8-5.5-2.3-5.5-5.8zm2.9 17.3l8.5-11.8 6.2-10.7h5.2l-8.6 11.9-6 10.7h-5.3zm4.1-17.3c0-1.6-.5-2.5-1.5-2.5s-1.5.9-1.5 2.5c0 1.5.6 2.5 1.5 2.5.9-.1 1.5-1 1.5-2.5zm7.5 12c0-3.5 2.2-5.8 5.5-5.8s5.5 2.3 5.5 5.8-2.2 5.8-5.5 5.8-5.5-2.3-5.5-5.8zm7 0c0-1.6-.6-2.5-1.5-2.5s-1.5.9-1.5 2.5c0 1.5.6 2.5 1.5 2.5.9-.1 1.5-1 1.5-2.5z"/></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="266 396.7 25.5 23.6"><path fill="#FFF" d="M266 402.5c0-3.5 2.2-5.8 5.5-5.8s5.5 2.3 5.5 5.8-2.2 5.8-5.5 5.8-5.5-2.3-5.5-5.8zm2.9 17.3l8.5-11.8 6.2-10.7h5.2l-8.6 11.9-6 10.7h-5.3zm4.1-17.3c0-1.6-.5-2.5-1.5-2.5s-1.5.9-1.5 2.5c0 1.5.6 2.5 1.5 2.5.9-.1 1.5-1 1.5-2.5zm7.5 12c0-3.5 2.2-5.8 5.5-5.8s5.5 2.3 5.5 5.8-2.2 5.8-5.5 5.8-5.5-2.3-5.5-5.8zm7 0c0-1.6-.6-2.5-1.5-2.5s-1.5.9-1.5 2.5c0 1.5.6 2.5 1.5 2.5.9-.1 1.5-1 1.5-2.5z"/></svg>
|
Before Width: | Height: | Size: 504 B After Width: | Height: | Size: 478 B |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 9.3 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 613 B After Width: | Height: | Size: 525 B |
Before Width: | Height: | Size: 845 B After Width: | Height: | Size: 755 B |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 9.0 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 374 KiB After Width: | Height: | Size: 346 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 7.8 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 135 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 3.2 KiB |
|
@ -1,47 +1 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 17.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 998 810" enable-background="new 0 0 998 810" xml:space="preserve">
|
||||
<g>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" fill="#9B5C8F" d="M160.7,331.2h199.1c12.6,0,22.8,10.2,22.8,22.8V430
|
||||
c0,12.6-10.2,22.8-22.8,22.8h-71.4l9.8,24l-43.1-24h-94.3c-12.6,0-22.8-10.2-22.8-22.8V354C137.9,341.5,148.1,331.2,160.7,331.2z"
|
||||
/>
|
||||
<path fill="#FFFFFF" d="M150.2,351.9c1.4-1.9,3.5-2.9,6.3-3.1c5.1-0.4,8,2,8.7,7.2c3.1,20.9,6.5,38.6,10.1,53.1l21.9-41.7
|
||||
c2-3.8,4.5-5.8,7.5-6c4.4-0.3,7.1,2.5,8.2,8.4c2.5,13.3,5.7,24.6,9.5,34.2c2.6-25.4,7-43.7,13.2-55c1.5-2.8,3.7-4.2,6.6-4.4
|
||||
c2.3-0.2,4.4,0.5,6.3,2c1.9,1.5,2.9,3.4,3.1,5.7c0.1,1.8-0.2,3.3-1,4.8c-3.9,7.2-7.1,19.3-9.7,36.1c-2.5,16.3-3.4,29-2.8,38.1
|
||||
c0.2,2.5-0.2,4.7-1.2,6.6c-1.2,2.2-3,3.4-5.3,3.6c-2.6,0.2-5.3-1-7.9-3.7c-9.3-9.5-16.7-23.7-22.1-42.6
|
||||
c-6.5,12.8-11.3,22.4-14.4,28.8c-5.9,11.3-10.9,17.1-15.1,17.4c-2.7,0.2-5-2.1-7-6.9c-5.1-13.1-10.6-38.4-16.5-75.9
|
||||
C148.3,356,148.8,353.7,150.2,351.9z"/>
|
||||
<path fill="#FFFFFF" d="M365.2,367.6c-3.6-6.3-8.9-10.1-16-11.6c-1.9-0.4-3.7-0.6-5.4-0.6c-9.6,0-17.4,5-23.5,15
|
||||
c-5.2,8.5-7.8,17.9-7.8,28.2c0,7.7,1.6,14.3,4.8,19.8c3.6,6.3,8.9,10.1,16,11.6c1.9,0.4,3.7,0.6,5.4,0.6c9.7,0,17.5-5,23.5-15
|
||||
c5.2-8.6,7.8-18,7.8-28.3C370,379.5,368.4,373,365.2,367.6L365.2,367.6z M352.6,395.3c-1.4,6.6-3.9,11.5-7.6,14.8
|
||||
c-2.9,2.6-5.6,3.7-8.1,3.2c-2.4-0.5-4.4-2.6-5.9-6.5c-1.2-3.1-1.8-6.2-1.8-9.1c0-2.5,0.2-5,0.7-7.3c0.9-4.1,2.6-8.1,5.3-11.9
|
||||
c3.3-4.9,6.8-6.9,10.4-6.2c2.4,0.5,4.4,2.6,5.9,6.5c1.2,3.1,1.8,6.2,1.8,9.1C353.3,390.5,353,393,352.6,395.3L352.6,395.3z"/>
|
||||
<path fill="#FFFFFF" d="M302.5,367.6c-3.6-6.3-9-10.1-16-11.6c-1.9-0.4-3.7-0.6-5.4-0.6c-9.6,0-17.4,5-23.5,15
|
||||
c-5.2,8.5-7.8,17.9-7.8,28.2c0,7.7,1.6,14.3,4.8,19.8c3.6,6.3,8.9,10.1,16,11.6c1.9,0.4,3.7,0.6,5.4,0.6c9.7,0,17.5-5,23.5-15
|
||||
c5.2-8.6,7.8-18,7.8-28.3C307.3,379.5,305.7,373,302.5,367.6L302.5,367.6z M289.9,395.3c-1.4,6.6-3.9,11.5-7.6,14.8
|
||||
c-2.9,2.6-5.6,3.7-8.1,3.2c-2.4-0.5-4.4-2.6-5.9-6.5c-1.2-3.1-1.8-6.2-1.8-9.1c0-2.5,0.2-5,0.7-7.3c0.9-4.1,2.6-8.1,5.3-11.9
|
||||
c3.3-4.9,6.8-6.9,10.4-6.2c2.4,0.5,4.4,2.6,5.9,6.5c1.2,3.1,1.8,6.2,1.8,9.1C290.6,390.5,290.4,393,289.9,395.3L289.9,395.3z"/>
|
||||
<g>
|
||||
<g>
|
||||
<path d="M407.9,366.7c-6.7,6.6-10,15-10,25.2c0,10.9,3.3,19.8,9.9,26.5c6.6,6.7,15.2,10.1,25.9,10.1c3.1,0,6.6-0.5,10.4-1.6
|
||||
v-16.2c-3.5,1-6.5,1.5-9.1,1.5c-5.3,0-9.5-1.8-12.7-5.3c-3.2-3.6-4.8-8.4-4.8-14.5c0-5.7,1.6-10.4,4.7-14
|
||||
c3.2-3.7,7.1-5.5,11.9-5.5c3.1,0,6.4,0.5,10,1.5v-16.2c-3.3-0.9-7-1.3-10.9-1.3C423,356.8,414.6,360.1,407.9,366.7z M477.3,356.8
|
||||
c-9.2,0-16.4,3.1-21.6,9.2c-5.2,6.1-7.7,14.7-7.7,25.7c0,11.9,2.6,21,7.7,27.3c5.1,6.3,12.6,9.5,22.4,9.5
|
||||
c9.5,0,16.8-3.2,21.9-9.5c5.1-6.3,7.7-15.2,7.7-26.6c0-11.4-2.6-20.2-7.8-26.4C494.6,359.9,487.1,356.8,477.3,356.8z
|
||||
M485.2,408.8c-1.8,2.8-4.5,4.2-7.9,4.2c-3.2,0-5.6-1.4-7.3-4.2c-1.7-2.8-2.5-8.4-2.5-16.9c0-13.1,3.3-19.6,10-19.6
|
||||
c7,0,10.6,6.6,10.6,19.9C488,400.4,487,406,485.2,408.8z M557.1,358.7l-3.6,15.3c-0.9,3.9-1.8,7.9-2.6,12l-2,10.6
|
||||
c-1.9-10.6-4.5-23.2-7.8-37.9h-23.2l-8.7,68.1h17.4l4.7-46.9l11.9,46.9h12.4L567,380l4.9,46.8h18.2l-9.2-68.1H557.1z
|
||||
M640.4,358.7l-3.6,15.3c-0.9,3.9-1.8,7.9-2.6,12l-2,10.6c-1.9-10.6-4.5-23.2-7.8-37.9h-23.2l-8.7,68.1h17.4l4.7-46.9l11.9,46.9
|
||||
h12.4l11.3-46.8l4.9,46.8h18.2l-9.2-68.1H640.4z M697,399.9h16.3v-14.1H697v-12.5h18.8v-14.5h-37.2v68.1h37.3v-14.5H697V399.9z
|
||||
M767.7,389.1c1.9-3.1,2.9-6.3,2.9-9.6c0-6.4-2.5-11.5-7.5-15.2c-5-3.7-11.9-5.6-20.5-5.6h-21.4v68.1h18.4v-31h0.3l14.9,31h19.4
|
||||
l-14.7-30.7C763,394.5,765.8,392.2,767.7,389.1z M739.5,388v-16.2c4.4,0.1,7.5,0.8,9.4,2.2c1.9,1.4,2.8,3.6,2.8,6.8
|
||||
C751.7,385.5,747.6,387.9,739.5,388z M781.4,366.7c-6.7,6.6-10,15-10,25.2c0,10.9,3.3,19.8,9.9,26.5c6.6,6.7,15.2,10.1,25.9,10.1
|
||||
c3.1,0,6.6-0.5,10.4-1.6v-16.2c-3.5,1-6.5,1.5-9.1,1.5c-5.3,0-9.5-1.8-12.7-5.3c-3.2-3.6-4.8-8.4-4.8-14.5c0-5.7,1.6-10.4,4.7-14
|
||||
c3.2-3.7,7.1-5.5,11.9-5.5c3.1,0,6.4,0.5,10,1.5v-16.2c-3.3-0.9-7-1.3-10.9-1.3C796.6,356.8,788.1,360.1,781.4,366.7z
|
||||
M841.1,412.2v-12.4h16.3v-14.1h-16.3v-12.5H860v-14.5h-37.2v68.1h37.3v-14.5H841.1z"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
<svg viewBox="0 0 998 810" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M160.7 331.2h199.1c12.6 0 22.8 10.2 22.8 22.8v76c0 12.6-10.2 22.8-22.8 22.8h-71.4l9.8 24-43.1-24h-94.3c-12.6 0-22.8-10.2-22.8-22.8v-76c-.1-12.5 10.1-22.8 22.7-22.8z" fill="#9b5c8f" fill-rule="evenodd"/><path d="M150.2 351.9c1.4-1.9 3.5-2.9 6.3-3.1 5.1-.4 8 2 8.7 7.2 3.1 20.9 6.5 38.6 10.1 53.1l21.9-41.7c2-3.8 4.5-5.8 7.5-6 4.4-.3 7.1 2.5 8.2 8.4 2.5 13.3 5.7 24.6 9.5 34.2 2.6-25.4 7-43.7 13.2-55 1.5-2.8 3.7-4.2 6.6-4.4 2.3-.2 4.4.5 6.3 2s2.9 3.4 3.1 5.7c.1 1.8-.2 3.3-1 4.8-3.9 7.2-7.1 19.3-9.7 36.1-2.5 16.3-3.4 29-2.8 38.1.2 2.5-.2 4.7-1.2 6.6-1.2 2.2-3 3.4-5.3 3.6-2.6.2-5.3-1-7.9-3.7-9.3-9.5-16.7-23.7-22.1-42.6-6.5 12.8-11.3 22.4-14.4 28.8-5.9 11.3-10.9 17.1-15.1 17.4-2.7.2-5-2.1-7-6.9-5.1-13.1-10.6-38.4-16.5-75.9-.3-2.6.2-4.9 1.6-6.7zm215 15.7c-3.6-6.3-8.9-10.1-16-11.6-1.9-.4-3.7-.6-5.4-.6-9.6 0-17.4 5-23.5 15-5.2 8.5-7.8 17.9-7.8 28.2 0 7.7 1.6 14.3 4.8 19.8 3.6 6.3 8.9 10.1 16 11.6 1.9.4 3.7.6 5.4.6 9.7 0 17.5-5 23.5-15 5.2-8.6 7.8-18 7.8-28.3 0-7.8-1.6-14.3-4.8-19.7zm-12.6 27.7c-1.4 6.6-3.9 11.5-7.6 14.8-2.9 2.6-5.6 3.7-8.1 3.2-2.4-.5-4.4-2.6-5.9-6.5-1.2-3.1-1.8-6.2-1.8-9.1 0-2.5.2-5 .7-7.3.9-4.1 2.6-8.1 5.3-11.9 3.3-4.9 6.8-6.9 10.4-6.2 2.4.5 4.4 2.6 5.9 6.5 1.2 3.1 1.8 6.2 1.8 9.1 0 2.6-.3 5.1-.7 7.4zm-50.1-27.7c-3.6-6.3-9-10.1-16-11.6-1.9-.4-3.7-.6-5.4-.6-9.6 0-17.4 5-23.5 15-5.2 8.5-7.8 17.9-7.8 28.2 0 7.7 1.6 14.3 4.8 19.8 3.6 6.3 8.9 10.1 16 11.6 1.9.4 3.7.6 5.4.6 9.7 0 17.5-5 23.5-15 5.2-8.6 7.8-18 7.8-28.3 0-7.8-1.6-14.3-4.8-19.7zm-12.6 27.7c-1.4 6.6-3.9 11.5-7.6 14.8-2.9 2.6-5.6 3.7-8.1 3.2-2.4-.5-4.4-2.6-5.9-6.5-1.2-3.1-1.8-6.2-1.8-9.1 0-2.5.2-5 .7-7.3.9-4.1 2.6-8.1 5.3-11.9 3.3-4.9 6.8-6.9 10.4-6.2 2.4.5 4.4 2.6 5.9 6.5 1.2 3.1 1.8 6.2 1.8 9.1 0 2.6-.2 5.1-.7 7.4z" fill="#fff"/><path d="M407.9 366.7c-6.7 6.6-10 15-10 25.2 0 10.9 3.3 19.8 9.9 26.5s15.2 10.1 25.9 10.1c3.1 0 6.6-.5 10.4-1.6v-16.2c-3.5 1-6.5 1.5-9.1 1.5-5.3 0-9.5-1.8-12.7-5.3-3.2-3.6-4.8-8.4-4.8-14.5 0-5.7 1.6-10.4 4.7-14 3.2-3.7 7.1-5.5 11.9-5.5 3.1 0 6.4.5 10 1.5v-16.2c-3.3-.9-7-1.3-10.9-1.3-10.2-.1-18.6 3.2-25.3 9.8zm69.4-9.9c-9.2 0-16.4 3.1-21.6 9.2s-7.7 14.7-7.7 25.7c0 11.9 2.6 21 7.7 27.3s12.6 9.5 22.4 9.5c9.5 0 16.8-3.2 21.9-9.5s7.7-15.2 7.7-26.6-2.6-20.2-7.8-26.4c-5.3-6.1-12.8-9.2-22.6-9.2zm7.9 52c-1.8 2.8-4.5 4.2-7.9 4.2-3.2 0-5.6-1.4-7.3-4.2s-2.5-8.4-2.5-16.9c0-13.1 3.3-19.6 10-19.6 7 0 10.6 6.6 10.6 19.9-.1 8.2-1.1 13.8-2.9 16.6zm71.9-50.1l-3.6 15.3c-.9 3.9-1.8 7.9-2.6 12l-2 10.6c-1.9-10.6-4.5-23.2-7.8-37.9h-23.2l-8.7 68.1h17.4l4.7-46.9 11.9 46.9h12.4L567 380l4.9 46.8h18.2l-9.2-68.1zm83.3 0l-3.6 15.3c-.9 3.9-1.8 7.9-2.6 12l-2 10.6c-1.9-10.6-4.5-23.2-7.8-37.9h-23.2l-8.7 68.1h17.4l4.7-46.9 11.9 46.9h12.4l11.3-46.8 4.9 46.8h18.2l-9.2-68.1zm56.6 41.2h16.3v-14.1H697v-12.5h18.8v-14.5h-37.2v68.1h37.3v-14.5H697zm70.7-10.8c1.9-3.1 2.9-6.3 2.9-9.6 0-6.4-2.5-11.5-7.5-15.2s-11.9-5.6-20.5-5.6h-21.4v68.1h18.4v-31h.3l14.9 31h19.4l-14.7-30.7c3.5-1.6 6.3-3.9 8.2-7zm-28.2-1.1v-16.2c4.4.1 7.5.8 9.4 2.2s2.8 3.6 2.8 6.8c0 4.7-4.1 7.1-12.2 7.2zm41.9-21.3c-6.7 6.6-10 15-10 25.2 0 10.9 3.3 19.8 9.9 26.5s15.2 10.1 25.9 10.1c3.1 0 6.6-.5 10.4-1.6v-16.2c-3.5 1-6.5 1.5-9.1 1.5-5.3 0-9.5-1.8-12.7-5.3-3.2-3.6-4.8-8.4-4.8-14.5 0-5.7 1.6-10.4 4.7-14 3.2-3.7 7.1-5.5 11.9-5.5 3.1 0 6.4.5 10 1.5v-16.2c-3.3-.9-7-1.3-10.9-1.3-10.1-.1-18.6 3.2-25.3 9.8zm59.7 45.5v-12.4h16.3v-14.1h-16.3v-12.5H860v-14.5h-37.2v68.1h37.3v-14.5h-19z"/></svg>
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 8.9 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.0 KiB |
|
@ -71,7 +71,7 @@ jQuery( function( $ ) {
|
|||
|
||||
// No form, cannot do this.
|
||||
if ( $( '.woocommerce-cart-form' ).length === 0 ) {
|
||||
window.location.href = window.location.href;
|
||||
window.location.reload();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -83,7 +83,7 @@ jQuery( function( $ ) {
|
|||
if ( $new_form.length === 0 ) {
|
||||
// If the checkout is also displayed on this page, trigger reload instead.
|
||||
if ( $( '.woocommerce-checkout' ).length ) {
|
||||
window.location.href = window.location.href;
|
||||
window.location.reload();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -2,15 +2,7 @@
|
|||
$(function() {
|
||||
|
||||
// Lightbox
|
||||
$("a.zoom").prettyPhoto({
|
||||
hook: 'data-rel',
|
||||
social_tools: false,
|
||||
theme: 'pp_woocommerce',
|
||||
horizontal_padding: 20,
|
||||
opacity: 0.8,
|
||||
deeplinking: false
|
||||
});
|
||||
$("a[data-rel^='prettyPhoto']").prettyPhoto({
|
||||
$("a.zoom, a[data-rel^='prettyPhoto']").prettyPhoto({
|
||||
hook: 'data-rel',
|
||||
social_tools: false,
|
||||
theme: 'pp_woocommerce',
|
||||
|
|
|
@ -7,14 +7,14 @@
|
|||
"prefer-stable": true,
|
||||
"minimum-stability": "dev",
|
||||
"require": {
|
||||
"composer/installers": "~1.2"
|
||||
"composer/installers": "~1.6"
|
||||
},
|
||||
"require-dev": {
|
||||
"apigen/apigen": "^4",
|
||||
"nette/utils": "~2.3.0",
|
||||
"phpunit/phpunit": "6.*",
|
||||
"apigen/apigen": "4.1.2",
|
||||
"nette/utils": "2.3.11",
|
||||
"phpunit/phpunit": "6.5.13",
|
||||
"woocommerce/woocommerce-git-hooks": "*",
|
||||
"woocommerce/woocommerce-sniffs": "^0.0.5"
|
||||
"woocommerce/woocommerce-sniffs": "0.0.5"
|
||||
},
|
||||
"scripts": {
|
||||
"pre-update-cmd": [
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "cb53f81a493f453b55e37363f7dc51a2",
|
||||
"content-hash": "328576a4b89a433502bd3366ca4f7326",
|
||||
"packages": [
|
||||
{
|
||||
"name": "composer/installers",
|
||||
|
@ -247,7 +247,7 @@
|
|||
"homepage": "https://github.com/kukulich"
|
||||
},
|
||||
{
|
||||
"name": "Tomáš Votruba",
|
||||
"name": "Tomas Votruba",
|
||||
"email": "tomas.vot@gmail.com"
|
||||
},
|
||||
{
|
||||
|
|
|
@ -11,17 +11,17 @@ global $states;
|
|||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
$states['GR'] = array(
|
||||
'I' => __( 'Αττική', 'woocommerce' ),
|
||||
'A' => __( 'Ανατολική Μακεδονία και Θράκη', 'woocommerce' ),
|
||||
'B' => __( 'Κεντρική Μακεδονία', 'woocommerce' ),
|
||||
'C' => __( 'Δυτική Μακεδονία', 'woocommerce' ),
|
||||
'D' => __( 'Ήπειρος', 'woocommerce' ),
|
||||
'E' => __( 'Θεσσαλία', 'woocommerce' ),
|
||||
'F' => __( 'Ιόνιοι Νήσοι', 'woocommerce' ),
|
||||
'G' => __( 'Δυτική Ελλάδα', 'woocommerce' ),
|
||||
'H' => __( 'Στερεά Ελλάδα', 'woocommerce' ),
|
||||
'J' => __( 'Πελοπόννησος', 'woocommerce' ),
|
||||
'K' => __( 'Βόρειο Αιγαίο', 'woocommerce' ),
|
||||
'L' => __( 'Νότιο Αιγαίο', 'woocommerce' ),
|
||||
'M' => __( 'Κρήτη', 'woocommerce' ),
|
||||
'I' => __( 'Attiki', 'woocommerce' ),
|
||||
'A' => __( 'Anatoliki Makedonia kai Thraki', 'woocommerce' ),
|
||||
'B' => __( 'Kentriki Makedonia', 'woocommerce' ),
|
||||
'C' => __( 'Dytiki Makedonia', 'woocommerce' ),
|
||||
'D' => __( 'Ipeiros', 'woocommerce' ),
|
||||
'E' => __( 'Thessalia', 'woocommerce' ),
|
||||
'F' => __( 'Ionia Nisia', 'woocommerce' ),
|
||||
'G' => __( 'Dytiki Ellada', 'woocommerce' ),
|
||||
'H' => __( 'Sterea Ellada', 'woocommerce' ),
|
||||
'J' => __( 'Peloponnisos', 'woocommerce' ),
|
||||
'K' => __( 'Voreio Aigaio', 'woocommerce' ),
|
||||
'L' => __( 'Notio Aigaio', 'woocommerce' ),
|
||||
'M' => __( 'Kriti', 'woocommerce' ),
|
||||
);
|
||||
|
|
|
@ -1731,7 +1731,7 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
|
|||
$shipping = __( 'Free!', 'woocommerce' );
|
||||
}
|
||||
|
||||
return apply_filters( 'woocommerce_order_shipping_to_display', $shipping, $this );
|
||||
return apply_filters( 'woocommerce_order_shipping_to_display', $shipping, $this, $tax_display );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -20,8 +20,8 @@ require_once WC_ABSPATH . 'includes/legacy/abstract-wc-legacy-product.php';
|
|||
*
|
||||
* The WooCommerce product class handles individual product data.
|
||||
*
|
||||
* @version 3.0.0
|
||||
* @package WooCommerce/Abstracts
|
||||
* @version 3.0.0
|
||||
* @package WooCommerce/Abstracts
|
||||
*/
|
||||
class WC_Product extends WC_Abstract_Legacy_Product {
|
||||
|
||||
|
@ -140,25 +140,17 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
*
|
||||
* The product_type property is deprecated but is used here for BW compatibility with child classes which may be defining product_type and not have a get_type method.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @return string
|
||||
*/
|
||||
public function get_type() {
|
||||
return isset( $this->product_type ) ? $this->product_type : 'simple';
|
||||
}
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Getters
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Methods for getting data from the product object.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Get product name.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @return string
|
||||
*/
|
||||
|
@ -169,7 +161,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Get product slug.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @return string
|
||||
*/
|
||||
|
@ -180,7 +172,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Get product created date.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @return WC_DateTime|NULL object if the date is set or null if there is no date.
|
||||
*/
|
||||
|
@ -191,7 +183,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Get product modified date.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @return WC_DateTime|NULL object if the date is set or null if there is no date.
|
||||
*/
|
||||
|
@ -202,7 +194,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Get product status.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @return string
|
||||
*/
|
||||
|
@ -213,7 +205,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* If the product is featured.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @return boolean
|
||||
*/
|
||||
|
@ -224,7 +216,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Get catalog visibility.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @return string
|
||||
*/
|
||||
|
@ -235,7 +227,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Get product description.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @return string
|
||||
*/
|
||||
|
@ -246,7 +238,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Get product short description.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @return string
|
||||
*/
|
||||
|
@ -297,7 +289,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Get date on sale from.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @return WC_DateTime|NULL object if the date is set or null if there is no date.
|
||||
*/
|
||||
|
@ -308,7 +300,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Get date on sale to.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @return WC_DateTime|NULL object if the date is set or null if there is no date.
|
||||
*/
|
||||
|
@ -319,7 +311,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Get number total of sales.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @return int
|
||||
*/
|
||||
|
@ -350,7 +342,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Return if product manage stock.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @return boolean
|
||||
*/
|
||||
|
@ -372,7 +364,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
* Return the stock status.
|
||||
*
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @return string
|
||||
*/
|
||||
public function get_stock_status( $context = 'view' ) {
|
||||
|
@ -383,7 +375,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
* Get backorders.
|
||||
*
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @return string yes no or notify
|
||||
*/
|
||||
public function get_backorders( $context = 'view' ) {
|
||||
|
@ -405,7 +397,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
* Return if should be sold individually.
|
||||
*
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @return boolean
|
||||
*/
|
||||
public function get_sold_individually( $context = 'view' ) {
|
||||
|
@ -473,7 +465,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Get upsell IDs.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @return array
|
||||
*/
|
||||
|
@ -484,7 +476,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Get cross sell IDs.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @return array
|
||||
*/
|
||||
|
@ -495,7 +487,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Get parent ID.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @return int
|
||||
*/
|
||||
|
@ -506,7 +498,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Return if reviews is allowed.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @return bool
|
||||
*/
|
||||
|
@ -517,7 +509,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Get purchase note.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @return string
|
||||
*/
|
||||
|
@ -538,7 +530,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Get default attributes.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @return array
|
||||
*/
|
||||
|
@ -549,7 +541,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Get menu order.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @return int
|
||||
*/
|
||||
|
@ -560,7 +552,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Get category ids.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @return array
|
||||
*/
|
||||
|
@ -571,7 +563,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Get tag ids.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @return array
|
||||
*/
|
||||
|
@ -582,7 +574,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Get virtual.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @return bool
|
||||
*/
|
||||
|
@ -603,7 +595,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Get shipping class ID.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @return int
|
||||
*/
|
||||
|
@ -614,7 +606,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Get downloads.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @return array
|
||||
*/
|
||||
|
@ -625,7 +617,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Get download expiry.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @return int
|
||||
*/
|
||||
|
@ -636,7 +628,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Get downloadable.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @return bool
|
||||
*/
|
||||
|
@ -647,7 +639,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Get download limit.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @return int
|
||||
*/
|
||||
|
@ -658,7 +650,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Get main image ID.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @return string
|
||||
*/
|
||||
|
@ -769,9 +761,9 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Set catalog visibility.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @throws WC_Data_Exception Throws exception when invalid data is found.
|
||||
* @param string $visibility Options: 'hidden', 'visible', 'search' and 'catalog'.
|
||||
* @param string $visibility Options: 'hidden', 'visible', 'search' and 'catalog'.
|
||||
*/
|
||||
public function set_catalog_visibility( $visibility ) {
|
||||
$options = array_keys( wc_get_product_visibility_options() );
|
||||
|
@ -804,9 +796,9 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Set SKU.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @throws WC_Data_Exception Throws exception when invalid data is found.
|
||||
* @param string $sku Product SKU.
|
||||
* @param string $sku Product SKU.
|
||||
*/
|
||||
public function set_sku( $sku ) {
|
||||
$sku = (string) $sku;
|
||||
|
@ -880,9 +872,9 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Set the tax status.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @throws WC_Data_Exception Throws exception when invalid data is found.
|
||||
* @param string $status Tax status.
|
||||
* @param string $status Tax status.
|
||||
*/
|
||||
public function set_tax_status( $status ) {
|
||||
$options = array(
|
||||
|
@ -1344,7 +1336,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Save data (either create or update depending on if we are working on an existing product).
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @return int
|
||||
*/
|
||||
public function save() {
|
||||
|
@ -1377,12 +1369,12 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
*
|
||||
* Product classes should override this to declare support (or lack of support) for a feature.
|
||||
*
|
||||
* @param string $feature string The name of a feature to test support for.
|
||||
* @param string $feature string The name of a feature to test support for.
|
||||
* @return bool True if the product supports the feature, false otherwise.
|
||||
* @since 2.5.0
|
||||
* @since 2.5.0
|
||||
*/
|
||||
public function supports( $feature ) {
|
||||
return apply_filters( 'woocommerce_product_supports', in_array( $feature, $this->supports ), $feature, $this );
|
||||
return apply_filters( 'woocommerce_product_supports', in_array( $feature, $this->supports, true ), $feature, $this );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1399,11 +1391,11 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
*
|
||||
* Backwards compatibility with downloadable/virtual.
|
||||
*
|
||||
* @param string|array $type Array or string of types.
|
||||
* @param string|array $type Array or string of types.
|
||||
* @return bool
|
||||
*/
|
||||
public function is_type( $type ) {
|
||||
return ( $this->get_type() === $type || ( is_array( $type ) && in_array( $this->get_type(), $type ) ) );
|
||||
return ( $this->get_type() === $type || ( is_array( $type ) && in_array( $this->get_type(), $type, true ) ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1494,7 +1486,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
$on_sale = false;
|
||||
}
|
||||
|
||||
if ( $this->get_date_on_sale_to( $context ) && $this->get_date_on_sale_to( $context )->getTimestamp() < current_time( 'timestamp', true ) ) {
|
||||
if ( $this->get_date_on_sale_to( $context ) && $this->get_date_on_sale_to( $context )->getTimestamp() + DAY_IN_SECONDS < current_time( 'timestamp', true ) ) {
|
||||
$on_sale = false;
|
||||
}
|
||||
} else {
|
||||
|
@ -1591,7 +1583,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Check if a product is on backorder.
|
||||
*
|
||||
* @param int $qty_in_cart (default: 0).
|
||||
* @param int $qty_in_cart (default: 0).
|
||||
* @return bool
|
||||
*/
|
||||
public function is_on_backorder( $qty_in_cart = 0 ) {
|
||||
|
@ -1605,7 +1597,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Returns whether or not the product has enough stock for the order.
|
||||
*
|
||||
* @param mixed $quantity Quantity of a product added to an order.
|
||||
* @param mixed $quantity Quantity of a product added to an order.
|
||||
* @return bool
|
||||
*/
|
||||
public function has_enough_stock( $quantity ) {
|
||||
|
@ -1638,7 +1630,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Does a child have dimensions?
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @return bool
|
||||
*/
|
||||
public function child_has_dimensions() {
|
||||
|
@ -1648,7 +1640,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Does a child have a weight?
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
* @return boolean
|
||||
*/
|
||||
public function child_has_weight() {
|
||||
|
@ -1660,7 +1652,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
*
|
||||
* @since 1.6.2
|
||||
*
|
||||
* @param string $download_id file identifier.
|
||||
* @param string $download_id file identifier.
|
||||
* @return bool Whether downloadable product has a file attached.
|
||||
*/
|
||||
public function has_file( $download_id = '' ) {
|
||||
|
@ -1804,7 +1796,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Get the add to cart button text description - used in aria tags.
|
||||
*
|
||||
* @since 3.3.0
|
||||
* @since 3.3.0
|
||||
* @return string
|
||||
*/
|
||||
public function add_to_cart_description() {
|
||||
|
@ -1815,21 +1807,24 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Returns the main product image.
|
||||
*
|
||||
* @param string $size (default: 'woocommerce_thumbnail').
|
||||
* @param array $attr Image attributes.
|
||||
* @param bool $placeholder True to return $placeholder if no image is found, or false to return an empty string.
|
||||
* @param string $size (default: 'woocommerce_thumbnail').
|
||||
* @param array $attr Image attributes.
|
||||
* @param bool $placeholder True to return $placeholder if no image is found, or false to return an empty string.
|
||||
* @return string
|
||||
*/
|
||||
public function get_image( $size = 'woocommerce_thumbnail', $attr = array(), $placeholder = true ) {
|
||||
$image = '';
|
||||
if ( $this->get_image_id() ) {
|
||||
$image = wp_get_attachment_image( $this->get_image_id(), $size, false, $attr );
|
||||
} elseif ( $this->get_parent_id() ) {
|
||||
$parent_product = wc_get_product( $this->get_parent_id() );
|
||||
$image = $parent_product->get_image( $size, $attr, $placeholder );
|
||||
} elseif ( $placeholder ) {
|
||||
if ( $parent_product ) {
|
||||
$image = $parent_product->get_image( $size, $attr, $placeholder );
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! $image && $placeholder ) {
|
||||
$image = wc_placeholder_img( $size );
|
||||
} else {
|
||||
$image = '';
|
||||
}
|
||||
|
||||
return apply_filters( 'woocommerce_product_get_image', $image, $this, $size, $attr, $placeholder, $image );
|
||||
|
@ -1841,7 +1836,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
* @return string
|
||||
*/
|
||||
public function get_shipping_class() {
|
||||
if ( $class_id = $this->get_shipping_class_id() ) { // @phpcs:ignore Squiz.PHP.DisallowMultipleAssignments.Found
|
||||
if ( $class_id = $this->get_shipping_class_id() ) { // @phpcs:ignore Squiz.PHP.DisallowMultipleAssignments.Found, WordPress.CodeAnalysis.AssignmentInCondition.Found
|
||||
$term = get_term_by( 'id', $class_id, 'product_shipping_class' );
|
||||
|
||||
if ( $term && ! is_wp_error( $term ) ) {
|
||||
|
@ -1892,7 +1887,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Get a file by $download_id.
|
||||
*
|
||||
* @param string $download_id file identifier.
|
||||
* @param string $download_id file identifier.
|
||||
* @return array|false if not found
|
||||
*/
|
||||
public function get_file( $download_id = '' ) {
|
||||
|
@ -1912,7 +1907,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
/**
|
||||
* Get file download path identified by $download_id.
|
||||
*
|
||||
* @param string $download_id file identifier.
|
||||
* @param string $download_id file identifier.
|
||||
* @return string
|
||||
*/
|
||||
public function get_file_download_path( $download_id ) {
|
||||
|
@ -1933,7 +1928,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
public function get_price_suffix( $price = '', $qty = 1 ) {
|
||||
$html = '';
|
||||
|
||||
if ( ( $suffix = get_option( 'woocommerce_price_display_suffix' ) ) && wc_tax_enabled() && 'taxable' === $this->get_tax_status() ) { // @phpcs:ignore Squiz.PHP.DisallowMultipleAssignments.Found
|
||||
if ( ( $suffix = get_option( 'woocommerce_price_display_suffix' ) ) && wc_tax_enabled() && 'taxable' === $this->get_tax_status() ) { // @phpcs:ignore Squiz.PHP.DisallowMultipleAssignments.Found, WordPress.CodeAnalysis.AssignmentInCondition.Found
|
||||
if ( '' === $price ) {
|
||||
$price = $this->get_price();
|
||||
}
|
||||
|
@ -1941,7 +1936,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
'{price_including_tax}' => wc_price( wc_get_price_including_tax( $this, array( 'qty' => $qty, 'price' => $price ) ) ), // @phpcs:ignore WordPress.Arrays.ArrayDeclarationSpacing.ArrayItemNoNewLine, WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound
|
||||
'{price_excluding_tax}' => wc_price( wc_get_price_excluding_tax( $this, array( 'qty' => $qty, 'price' => $price ) ) ), // @phpcs:ignore WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound
|
||||
);
|
||||
$html = str_replace( array_keys( $replacements ), array_values( $replacements ), ' <small class="woocommerce-price-suffix">' . wp_kses_post( $suffix ) . '</small>' );
|
||||
$html = str_replace( array_keys( $replacements ), array_values( $replacements ), ' <small class="woocommerce-price-suffix">' . wp_kses_post( $suffix ) . '</small>' );
|
||||
}
|
||||
return apply_filters( 'woocommerce_get_price_suffix', $html, $this, $price, $qty );
|
||||
}
|
||||
|
@ -1952,10 +1947,14 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
* @return string[]
|
||||
*/
|
||||
public function get_availability() {
|
||||
return apply_filters( 'woocommerce_get_availability', array(
|
||||
'availability' => $this->get_availability_text(),
|
||||
'class' => $this->get_availability_class(),
|
||||
), $this );
|
||||
return apply_filters(
|
||||
'woocommerce_get_availability',
|
||||
array(
|
||||
'availability' => $this->get_availability_text(),
|
||||
'class' => $this->get_availability_class(),
|
||||
),
|
||||
$this
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -203,10 +203,12 @@ abstract class WC_REST_Controller extends WP_REST_Controller {
|
|||
}
|
||||
|
||||
$_item = new WP_REST_Request( 'DELETE' );
|
||||
$_item->set_query_params( array(
|
||||
'id' => $id,
|
||||
'force' => true,
|
||||
) );
|
||||
$_item->set_query_params(
|
||||
array(
|
||||
'id' => $id,
|
||||
'force' => true,
|
||||
)
|
||||
);
|
||||
$_response = $this->delete_item( $_item );
|
||||
|
||||
if ( is_wp_error( $_response ) ) {
|
||||
|
@ -350,7 +352,8 @@ abstract class WC_REST_Controller extends WP_REST_Controller {
|
|||
*/
|
||||
public function validate_setting_textarea_field( $value, $setting ) {
|
||||
$value = is_null( $value ) ? '' : $value;
|
||||
return wp_kses( trim( stripslashes( $value ) ),
|
||||
return wp_kses(
|
||||
trim( stripslashes( $value ) ),
|
||||
array_merge(
|
||||
array(
|
||||
'iframe' => array(
|
||||
|
@ -436,6 +439,16 @@ abstract class WC_REST_Controller extends WP_REST_Controller {
|
|||
public function get_fields_for_response( $request ) {
|
||||
$schema = $this->get_item_schema();
|
||||
$fields = isset( $schema['properties'] ) ? array_keys( $schema['properties'] ) : array();
|
||||
|
||||
$additional_fields = $this->get_additional_fields();
|
||||
foreach ( $additional_fields as $field_name => $field_options ) {
|
||||
// For back-compat, include any field with an empty schema
|
||||
// because it won't be present in $this->get_item_schema().
|
||||
if ( is_null( $field_options['schema'] ) ) {
|
||||
$fields[] = $field_name;
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! isset( $request['_fields'] ) ) {
|
||||
return $fields;
|
||||
}
|
||||
|
|
|
@ -530,6 +530,8 @@ abstract class WC_REST_Posts_Controller extends WC_REST_Controller {
|
|||
$query_args['orderby'] = 'post__in';
|
||||
} elseif ( 'id' === $query_args['orderby'] ) {
|
||||
$query_args['orderby'] = 'ID'; // ID must be capitalized.
|
||||
} elseif ( 'slug' === $query_args['orderby'] ) {
|
||||
$query_args['orderby'] = 'name';
|
||||
}
|
||||
|
||||
return $query_args;
|
||||
|
|
|
@ -224,7 +224,7 @@ abstract class WC_Shipping_Method extends WC_Settings_API {
|
|||
* Return calculated rates for a package.
|
||||
*
|
||||
* @since 2.6.0
|
||||
* @param object $package Package array.
|
||||
* @param array $package Package array.
|
||||
* @return array
|
||||
*/
|
||||
public function get_rates_for_package( $package ) {
|
||||
|
|
|
@ -347,7 +347,7 @@ abstract class WC_Widget extends WP_Widget {
|
|||
}
|
||||
}
|
||||
|
||||
return $link;
|
||||
return apply_filters( 'woocommerce_widget_get_current_page_url', $link, $this );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -29,7 +29,7 @@ class WC_Admin_Reports {
|
|||
public static function output() {
|
||||
$reports = self::get_reports();
|
||||
$first_tab = array_keys( $reports );
|
||||
$current_tab = ! empty( $_GET['tab'] ) ? sanitize_title( $_GET['tab'] ) : $first_tab[0];
|
||||
$current_tab = ! empty( $_GET['tab'] ) && array_key_exists( $_GET['tab'], $reports ) ? sanitize_title( $_GET['tab'] ) : $first_tab[0];
|
||||
$current_report = isset( $_GET['report'] ) ? sanitize_title( $_GET['report'] ) : current( array_keys( $reports[ $current_tab ]['reports'] ) );
|
||||
|
||||
include_once dirname( __FILE__ ) . '/reports/class-wc-admin-report.php';
|
||||
|
|
|
@ -24,7 +24,7 @@ defined( 'ABSPATH' ) || exit();
|
|||
|
||||
<h2><?php esc_html_e( 'Manage your subscriptions, get important product notifications, and updates, all from the convenience of your WooCommerce dashboard', 'woocommerce' ); ?></h2>
|
||||
<p><?php esc_html_e( 'Once connected, your WooCommerce.com purchases will be listed here.', 'woocommerce' ); ?></p>
|
||||
<p><a class="button button-primary" href="<?php echo esc_url( $connect_url ); ?>"><?php esc_html_e( 'Connect', 'woocommerce' ); ?></a></p>
|
||||
<p><a class="button button-primary button-helper-connect" href="<?php echo esc_url( $connect_url ); ?>"><?php esc_html_e( 'Connect', 'woocommerce' ); ?></a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -135,10 +135,13 @@ class WC_Admin_List_Table_Orders extends WC_Admin_List_Table {
|
|||
unset( $actions['edit'] );
|
||||
}
|
||||
|
||||
$actions['mark_processing'] = __( 'Change status to processing', 'woocommerce' );
|
||||
$actions['mark_on-hold'] = __( 'Change status to on-hold', 'woocommerce' );
|
||||
$actions['mark_completed'] = __( 'Change status to completed', 'woocommerce' );
|
||||
$actions['remove_personal_data'] = __( 'Remove personal data', 'woocommerce' );
|
||||
$actions['mark_processing'] = __( 'Change status to processing', 'woocommerce' );
|
||||
$actions['mark_on-hold'] = __( 'Change status to on-hold', 'woocommerce' );
|
||||
$actions['mark_completed'] = __( 'Change status to completed', 'woocommerce' );
|
||||
|
||||
if ( wc_string_to_bool( get_option( 'woocommerce_allow_bulk_remove_personal_data', 'no' ) ) ) {
|
||||
$actions['remove_personal_data'] = __( 'Remove personal data', 'woocommerce' );
|
||||
}
|
||||
|
||||
return $actions;
|
||||
}
|
||||
|
@ -422,7 +425,8 @@ class WC_Admin_List_Table_Orders extends WC_Admin_List_Table {
|
|||
*/
|
||||
public static function get_order_preview_item_html( $order ) {
|
||||
$hidden_order_itemmeta = apply_filters(
|
||||
'woocommerce_hidden_order_itemmeta', array(
|
||||
'woocommerce_hidden_order_itemmeta',
|
||||
array(
|
||||
'_qty',
|
||||
'_tax_class',
|
||||
'_product_id',
|
||||
|
@ -439,12 +443,14 @@ class WC_Admin_List_Table_Orders extends WC_Admin_List_Table {
|
|||
|
||||
$line_items = apply_filters( 'woocommerce_admin_order_preview_line_items', $order->get_items(), $order );
|
||||
$columns = apply_filters(
|
||||
'woocommerce_admin_order_preview_line_item_columns', array(
|
||||
'woocommerce_admin_order_preview_line_item_columns',
|
||||
array(
|
||||
'product' => __( 'Product', 'woocommerce' ),
|
||||
'quantity' => __( 'Quantity', 'woocommerce' ),
|
||||
'tax' => __( 'Tax', 'woocommerce' ),
|
||||
'total' => __( 'Total', 'woocommerce' ),
|
||||
), $order
|
||||
),
|
||||
$order
|
||||
);
|
||||
|
||||
if ( ! wc_tax_enabled() ) {
|
||||
|
@ -602,11 +608,12 @@ class WC_Admin_List_Table_Orders extends WC_Admin_List_Table {
|
|||
$shipping_address = $order->get_formatted_shipping_address();
|
||||
|
||||
return apply_filters(
|
||||
'woocommerce_admin_order_preview_get_order_details', array(
|
||||
'woocommerce_admin_order_preview_get_order_details',
|
||||
array(
|
||||
'data' => $order->get_data(),
|
||||
'order_number' => $order->get_order_number(),
|
||||
'item_html' => WC_Admin_List_Table_Orders::get_order_preview_item_html( $order ),
|
||||
'actions_html' => WC_Admin_List_Table_Orders::get_order_preview_actions_html( $order ),
|
||||
'item_html' => self::get_order_preview_item_html( $order ),
|
||||
'actions_html' => self::get_order_preview_actions_html( $order ),
|
||||
'ship_to_billing' => wc_ship_to_billing_address_only(),
|
||||
'needs_shipping' => $order->needs_shipping_address(),
|
||||
'formatted_billing_address' => $billing_address ? $billing_address : __( 'N/A', 'woocommerce' ),
|
||||
|
@ -616,7 +623,8 @@ class WC_Admin_List_Table_Orders extends WC_Admin_List_Table {
|
|||
'shipping_via' => $order->get_shipping_method(),
|
||||
'status' => $order->get_status(),
|
||||
'status_name' => wc_get_order_status_name( $order->get_status() ),
|
||||
), $order
|
||||
),
|
||||
$order
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -651,7 +659,7 @@ class WC_Admin_List_Table_Orders extends WC_Admin_List_Table {
|
|||
// Sanity check: bail out if this is actually not a status, or is not a registered status.
|
||||
if ( isset( $order_statuses[ 'wc-' . $new_status ] ) ) {
|
||||
// Initialize payment gateways in case order has hooked status transition actions.
|
||||
wc()->payment_gateways();
|
||||
WC()->payment_gateways();
|
||||
|
||||
foreach ( $ids as $id ) {
|
||||
$order = wc_get_order( $id );
|
||||
|
@ -669,7 +677,8 @@ class WC_Admin_List_Table_Orders extends WC_Admin_List_Table {
|
|||
'bulk_action' => $report_action,
|
||||
'changed' => $changed,
|
||||
'ids' => join( ',', $ids ),
|
||||
), $redirect_to
|
||||
),
|
||||
$redirect_to
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -726,7 +735,7 @@ class WC_Admin_List_Table_Orders extends WC_Admin_List_Table {
|
|||
$user_string = '';
|
||||
$user_id = '';
|
||||
|
||||
if ( ! empty( $_GET['_customer_user'] ) ) { // WPCS: input var ok.
|
||||
if ( ! empty( $_GET['_customer_user'] ) ) { // phpcs:disable WordPress.Security.NonceVerification.NoNonceVerification
|
||||
$user_id = absint( $_GET['_customer_user'] ); // WPCS: input var ok, sanitization ok.
|
||||
$user = get_user_by( 'id', $user_id );
|
||||
|
||||
|
@ -772,11 +781,11 @@ class WC_Admin_List_Table_Orders extends WC_Admin_List_Table {
|
|||
|
||||
// Filter the orders by the posted customer.
|
||||
if ( ! empty( $_GET['_customer_user'] ) ) { // WPCS: input var ok.
|
||||
// @codingStandardsIgnoreStart
|
||||
// @codingStandardsIgnoreStart.
|
||||
$query_vars['meta_query'] = array(
|
||||
array(
|
||||
'key' => '_customer_user',
|
||||
'value' => (int) $_GET['_customer_user'], // WPCS: input var ok, sanitization ok.
|
||||
'key' => '_customer_user',
|
||||
'value' => (int) $_GET['_customer_user'], // WPCS: input var ok, sanitization ok.
|
||||
'compare' => '=',
|
||||
),
|
||||
);
|
||||
|
@ -796,7 +805,7 @@ class WC_Admin_List_Table_Orders extends WC_Admin_List_Table {
|
|||
}
|
||||
|
||||
// Status.
|
||||
if ( ! isset( $query_vars['post_status'] ) ) {
|
||||
if ( empty( $query_vars['post_status'] ) ) {
|
||||
$post_statuses = wc_get_order_statuses();
|
||||
|
||||
foreach ( $post_statuses as $status => $value ) {
|
||||
|
@ -819,7 +828,7 @@ class WC_Admin_List_Table_Orders extends WC_Admin_List_Table {
|
|||
public function search_label( $query ) {
|
||||
global $pagenow, $typenow;
|
||||
|
||||
if ( 'edit.php' !== $pagenow || 'shop_order' !== $typenow || ! get_query_var( 'shop_order_search' ) || ! isset( $_GET['s'] ) ) { // WPCS: input var ok.
|
||||
if ( 'edit.php' !== $pagenow || 'shop_order' !== $typenow || ! get_query_var( 'shop_order_search' ) || ! isset( $_GET['s'] ) ) { // phpcs:disable WordPress.Security.NonceVerification.NoNonceVerification
|
||||
return $query;
|
||||
}
|
||||
|
||||
|
@ -845,7 +854,7 @@ class WC_Admin_List_Table_Orders extends WC_Admin_List_Table {
|
|||
public function search_custom_fields( $wp ) {
|
||||
global $pagenow;
|
||||
|
||||
if ( 'edit.php' !== $pagenow || empty( $wp->query_vars['s'] ) || 'shop_order' !== $wp->query_vars['post_type'] || ! isset( $_GET['s'] ) ) { // WPCS: input var ok.
|
||||
if ( 'edit.php' !== $pagenow || empty( $wp->query_vars['s'] ) || 'shop_order' !== $wp->query_vars['post_type'] || ! isset( $_GET['s'] ) ) { // phpcs:disable WordPress.Security.NonceVerification.NoNonceVerification
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ if ( wc_tax_enabled() ) {
|
|||
</tbody>
|
||||
<tbody id="order_shipping_line_items">
|
||||
<?php
|
||||
$shipping_methods = WC()->shipping() ? WC()->shipping->load_shipping_methods() : array();
|
||||
$shipping_methods = WC()->shipping() ? WC()->shipping()->load_shipping_methods() : array();
|
||||
foreach ( $line_items_shipping as $item_id => $item ) {
|
||||
include 'html-order-shipping.php';
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
'id' => '_product_url',
|
||||
'value' => is_callable( array( $product_object, 'get_product_url' ) ) ? $product_object->get_product_url( 'edit' ) : '',
|
||||
'label' => __( 'Product URL', 'woocommerce' ),
|
||||
'placeholder' => 'http://',
|
||||
'placeholder' => 'https://',
|
||||
'description' => __( 'Enter the external URL to the product.', 'woocommerce' ),
|
||||
)
|
||||
);
|
||||
|
|
|
@ -71,19 +71,20 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
)
|
||||
);
|
||||
|
||||
woocommerce_wp_text_input( array(
|
||||
'id' => '_low_stock_amount',
|
||||
'value' => $product_object->get_low_stock_amount( 'edit' ),
|
||||
'placeholder' => get_option( 'woocommerce_notify_low_stock_amount' ),
|
||||
'label' => __( 'Low stock threshold', 'woocommerce' ),
|
||||
'desc_tip' => true,
|
||||
'description' => __( 'When product stock reaches this amount you will be notified by email', 'woocommerce' ),
|
||||
'type' => 'number',
|
||||
'custom_attributes' => array(
|
||||
'step' => 'any',
|
||||
),
|
||||
'data_type' => 'stock',
|
||||
) );
|
||||
woocommerce_wp_text_input(
|
||||
array(
|
||||
'id' => '_low_stock_amount',
|
||||
'value' => $product_object->get_low_stock_amount( 'edit' ),
|
||||
'placeholder' => get_option( 'woocommerce_notify_low_stock_amount' ),
|
||||
'label' => __( 'Low stock threshold', 'woocommerce' ),
|
||||
'desc_tip' => true,
|
||||
'description' => __( 'When product stock reaches this amount you will be notified by email', 'woocommerce' ),
|
||||
'type' => 'number',
|
||||
'custom_attributes' => array(
|
||||
'step' => 'any',
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
do_action( 'woocommerce_product_options_stock_fields' );
|
||||
|
||||
|
|
|
@ -37,7 +37,8 @@ class WC_Settings_Accounts extends WC_Settings_Page {
|
|||
}
|
||||
|
||||
$settings = apply_filters(
|
||||
'woocommerce_' . $this->id . '_settings', array(
|
||||
'woocommerce_' . $this->id . '_settings',
|
||||
array(
|
||||
array(
|
||||
'title' => '',
|
||||
'type' => 'title',
|
||||
|
@ -96,7 +97,7 @@ class WC_Settings_Accounts extends WC_Settings_Page {
|
|||
),
|
||||
array(
|
||||
'title' => __( 'Account erasure requests', 'woocommerce' ),
|
||||
'desc' => __( 'Remove personal data from orders', 'woocommerce' ),
|
||||
'desc' => __( 'Remove personal data from orders on request', 'woocommerce' ),
|
||||
/* Translators: %s URL to erasure request screen. */
|
||||
'desc_tip' => sprintf( esc_html__( 'When handling an %s, should personal data within orders be retained or removed?', 'woocommerce' ), $erasure_text ),
|
||||
'id' => 'woocommerce_erasure_request_removes_order_data',
|
||||
|
@ -106,7 +107,7 @@ class WC_Settings_Accounts extends WC_Settings_Page {
|
|||
'autoload' => false,
|
||||
),
|
||||
array(
|
||||
'desc' => __( 'Remove access to downloads', 'woocommerce' ),
|
||||
'desc' => __( 'Remove access to downloads on request', 'woocommerce' ),
|
||||
/* Translators: %s URL to erasure request screen. */
|
||||
'desc_tip' => sprintf( esc_html__( 'When handling an %s, should access to downloadable files be revoked and download logs cleared?', 'woocommerce' ), $erasure_text ),
|
||||
'id' => 'woocommerce_erasure_request_removes_download_data',
|
||||
|
@ -115,6 +116,16 @@ class WC_Settings_Accounts extends WC_Settings_Page {
|
|||
'checkboxgroup' => 'end',
|
||||
'autoload' => false,
|
||||
),
|
||||
array(
|
||||
'title' => __( 'Personal data removal', 'woocommerce' ),
|
||||
'desc' => __( 'Allow personal data to be removed in bulk from orders', 'woocommerce' ),
|
||||
'desc_tip' => __( 'Adds an option to the orders screen for removing personal in bulk. Note that removing personal data cannot be undone.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_allow_bulk_remove_personal_data',
|
||||
'type' => 'checkbox',
|
||||
'checkboxgroup' => 'start',
|
||||
'default' => 'no',
|
||||
'autoload' => false,
|
||||
),
|
||||
array(
|
||||
'type' => 'sectionend',
|
||||
'id' => 'account_registration_options',
|
||||
|
|
|
@ -51,7 +51,7 @@ class WC_Settings_Shipping extends WC_Settings_Page {
|
|||
|
||||
if ( ! defined( 'WC_INSTALLING' ) ) {
|
||||
// Load shipping methods so we can show any global options they may have.
|
||||
$shipping_methods = WC()->shipping->load_shipping_methods();
|
||||
$shipping_methods = WC()->shipping()->load_shipping_methods();
|
||||
|
||||
foreach ( $shipping_methods as $method ) {
|
||||
if ( ! $method->has_settings() ) {
|
||||
|
@ -146,7 +146,7 @@ class WC_Settings_Shipping extends WC_Settings_Page {
|
|||
global $current_section, $hide_save_button;
|
||||
|
||||
// Load shipping methods so we can show any global options they may have.
|
||||
$shipping_methods = WC()->shipping->load_shipping_methods();
|
||||
$shipping_methods = WC()->shipping()->load_shipping_methods();
|
||||
|
||||
if ( '' === $current_section ) {
|
||||
$this->output_zones_screen();
|
||||
|
|
|
@ -183,7 +183,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
|
||||
<select name="add_method_id">
|
||||
<?php
|
||||
foreach ( WC()->shipping->load_shipping_methods() as $method ) {
|
||||
foreach ( WC()->shipping()->load_shipping_methods() as $method ) {
|
||||
if ( ! $method->supports( 'shipping-zones' ) ) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -104,7 +104,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
|
||||
<select name="add_method_id">
|
||||
<?php
|
||||
foreach ( WC()->shipping->load_shipping_methods() as $method ) {
|
||||
foreach ( WC()->shipping()->load_shipping_methods() as $method ) {
|
||||
if ( ! $method->supports( 'shipping-zones' ) ) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -58,7 +58,8 @@ class WC_REST_Products_V2_Controller extends WC_REST_Legacy_Products_Controller
|
|||
*/
|
||||
public function register_routes() {
|
||||
register_rest_route(
|
||||
$this->namespace, '/' . $this->rest_base, array(
|
||||
$this->namespace, '/' . $this->rest_base, // @codingStandardsIgnoreLine.
|
||||
array(
|
||||
array(
|
||||
'methods' => WP_REST_Server::READABLE,
|
||||
'callback' => array( $this, 'get_items' ),
|
||||
|
@ -76,7 +77,8 @@ class WC_REST_Products_V2_Controller extends WC_REST_Legacy_Products_Controller
|
|||
);
|
||||
|
||||
register_rest_route(
|
||||
$this->namespace, '/' . $this->rest_base . '/(?P<id>[\d]+)', array(
|
||||
$this->namespace, '/' . $this->rest_base . '/(?P<id>[\d]+)', // @codingStandardsIgnoreLine.
|
||||
array(
|
||||
'args' => array(
|
||||
'id' => array(
|
||||
'description' => __( 'Unique identifier for the resource.', 'woocommerce' ),
|
||||
|
@ -118,7 +120,8 @@ class WC_REST_Products_V2_Controller extends WC_REST_Legacy_Products_Controller
|
|||
);
|
||||
|
||||
register_rest_route(
|
||||
$this->namespace, '/' . $this->rest_base . '/batch', array(
|
||||
$this->namespace, '/' . $this->rest_base . '/batch', // @codingStandardsIgnoreLine.
|
||||
array(
|
||||
array(
|
||||
'methods' => WP_REST_Server::EDITABLE,
|
||||
'callback' => array( $this, 'batch_items' ),
|
||||
|
@ -133,8 +136,9 @@ class WC_REST_Products_V2_Controller extends WC_REST_Legacy_Products_Controller
|
|||
/**
|
||||
* Get object.
|
||||
*
|
||||
* @param int $id Object ID.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @param int $id Object ID.
|
||||
* @return WC_Data
|
||||
*/
|
||||
protected function get_object( $id ) {
|
||||
|
@ -144,9 +148,10 @@ class WC_REST_Products_V2_Controller extends WC_REST_Legacy_Products_Controller
|
|||
/**
|
||||
* Prepare a single product output for response.
|
||||
*
|
||||
* @param WC_Data $object Object data.
|
||||
* @param WP_REST_Request $request Request object.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @param WC_Data $object Object data.
|
||||
* @param WP_REST_Request $request Request object.
|
||||
* @return WP_REST_Response
|
||||
*/
|
||||
public function prepare_object_for_response( $object, $request ) {
|
||||
|
@ -184,8 +189,9 @@ class WC_REST_Products_V2_Controller extends WC_REST_Legacy_Products_Controller
|
|||
/**
|
||||
* Prepare objects query.
|
||||
*
|
||||
* @param WP_REST_Request $request Full details about the request.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @param WP_REST_Request $request Full details about the request.
|
||||
* @return array
|
||||
*/
|
||||
protected function prepare_objects_query( $request ) {
|
||||
|
@ -317,6 +323,7 @@ class WC_REST_Products_V2_Controller extends WC_REST_Legacy_Products_Controller
|
|||
* Get the downloads for a product or product variation.
|
||||
*
|
||||
* @param WC_Product|WC_Product_Variation $product Product instance.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
protected function get_downloads( $product ) {
|
||||
|
@ -340,6 +347,7 @@ class WC_REST_Products_V2_Controller extends WC_REST_Legacy_Products_Controller
|
|||
*
|
||||
* @param WC_Product $product Product instance.
|
||||
* @param string $taxonomy Taxonomy slug.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
protected function get_taxonomy_terms( $product, $taxonomy = 'cat' ) {
|
||||
|
@ -360,6 +368,7 @@ class WC_REST_Products_V2_Controller extends WC_REST_Legacy_Products_Controller
|
|||
* Get the images for a product or product variation.
|
||||
*
|
||||
* @param WC_Product|WC_Product_Variation $product Product instance.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
protected function get_images( $product ) {
|
||||
|
@ -420,10 +429,10 @@ class WC_REST_Products_V2_Controller extends WC_REST_Legacy_Products_Controller
|
|||
/**
|
||||
* Get attribute taxonomy label.
|
||||
*
|
||||
* @deprecated 3.0.0
|
||||
* @param string $name Taxonomy name.
|
||||
*
|
||||
* @param string $name Taxonomy name.
|
||||
* @return string
|
||||
* @deprecated 3.0.0
|
||||
* @return string
|
||||
*/
|
||||
protected function get_attribute_taxonomy_label( $name ) {
|
||||
$tax = get_taxonomy( $name );
|
||||
|
@ -435,9 +444,10 @@ class WC_REST_Products_V2_Controller extends WC_REST_Legacy_Products_Controller
|
|||
/**
|
||||
* Get product attribute taxonomy name.
|
||||
*
|
||||
* @param string $slug Taxonomy name.
|
||||
* @param WC_Product $product Product data.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @param string $slug Taxonomy name.
|
||||
* @param WC_Product $product Product data.
|
||||
* @return string
|
||||
*/
|
||||
protected function get_attribute_taxonomy_name( $slug, $product ) {
|
||||
|
@ -463,6 +473,7 @@ class WC_REST_Products_V2_Controller extends WC_REST_Legacy_Products_Controller
|
|||
* Get default attributes.
|
||||
*
|
||||
* @param WC_Product $product Product instance.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
protected function get_default_attributes( $product ) {
|
||||
|
@ -494,6 +505,7 @@ class WC_REST_Products_V2_Controller extends WC_REST_Legacy_Products_Controller
|
|||
*
|
||||
* @param int $product_id Product ID.
|
||||
* @param array $attribute Attribute data.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
protected function get_attribute_options( $product_id, $attribute ) {
|
||||
|
@ -514,6 +526,7 @@ class WC_REST_Products_V2_Controller extends WC_REST_Legacy_Products_Controller
|
|||
* Get the attributes for a product or product variation.
|
||||
*
|
||||
* @param WC_Product|WC_Product_Variation $product Product instance.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
protected function get_attributes( $product ) {
|
||||
|
@ -524,7 +537,7 @@ class WC_REST_Products_V2_Controller extends WC_REST_Legacy_Products_Controller
|
|||
foreach ( $product->get_variation_attributes() as $attribute_name => $attribute ) {
|
||||
$name = str_replace( 'attribute_', '', $attribute_name );
|
||||
|
||||
if ( ! $attribute ) {
|
||||
if ( empty( $attribute ) && '0' !== $attribute ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -566,6 +579,7 @@ class WC_REST_Products_V2_Controller extends WC_REST_Legacy_Products_Controller
|
|||
* @param WC_Product $product Product instance.
|
||||
* @param string $context Request context.
|
||||
* Options: 'view' and 'edit'.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
protected function get_product_data( $product, $context = 'view' ) {
|
||||
|
@ -649,21 +663,22 @@ class WC_REST_Products_V2_Controller extends WC_REST_Legacy_Products_Controller
|
|||
*
|
||||
* @param WC_Data $object Object data.
|
||||
* @param WP_REST_Request $request Request object.
|
||||
*
|
||||
* @return array Links for the given post.
|
||||
*/
|
||||
protected function prepare_links( $object, $request ) {
|
||||
$links = array(
|
||||
'self' => array(
|
||||
'href' => rest_url( sprintf( '/%s/%s/%d', $this->namespace, $this->rest_base, $object->get_id() ) ),
|
||||
'href' => rest_url( sprintf( '/%s/%s/%d', $this->namespace, $this->rest_base, $object->get_id() ) ), // @codingStandardsIgnoreLine.
|
||||
),
|
||||
'collection' => array(
|
||||
'href' => rest_url( sprintf( '/%s/%s', $this->namespace, $this->rest_base ) ),
|
||||
'href' => rest_url( sprintf( '/%s/%s', $this->namespace, $this->rest_base ) ), // @codingStandardsIgnoreLine.
|
||||
),
|
||||
);
|
||||
|
||||
if ( $object->get_parent_id() ) {
|
||||
$links['up'] = array(
|
||||
'href' => rest_url( sprintf( '/%s/products/%d', $this->namespace, $object->get_parent_id() ) ),
|
||||
'href' => rest_url( sprintf( '/%s/products/%d', $this->namespace, $object->get_parent_id() ) ), // @codingStandardsIgnoreLine.
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -673,8 +688,9 @@ class WC_REST_Products_V2_Controller extends WC_REST_Legacy_Products_Controller
|
|||
/**
|
||||
* Prepare a single product for create or update.
|
||||
*
|
||||
* @param WP_REST_Request $request Request object.
|
||||
* @param bool $creating If is creating a new object.
|
||||
* @param WP_REST_Request $request Request object.
|
||||
* @param bool $creating If is creating a new object.
|
||||
*
|
||||
* @return WP_Error|WC_Data
|
||||
*/
|
||||
protected function prepare_object_for_database( $request, $creating = false ) {
|
||||
|
@ -1055,9 +1071,10 @@ class WC_REST_Products_V2_Controller extends WC_REST_Legacy_Products_Controller
|
|||
/**
|
||||
* Set product images.
|
||||
*
|
||||
* @throws WC_REST_Exception REST API exceptions.
|
||||
* @param WC_Product $product Product instance.
|
||||
* @param array $images Images data.
|
||||
*
|
||||
* @throws WC_REST_Exception REST API exceptions.
|
||||
* @return WC_Product
|
||||
*/
|
||||
protected function set_product_images( $product, $images ) {
|
||||
|
@ -1136,6 +1153,7 @@ class WC_REST_Products_V2_Controller extends WC_REST_Legacy_Products_Controller
|
|||
*
|
||||
* @param WC_Product $product Product instance.
|
||||
* @param array $data Shipping data.
|
||||
*
|
||||
* @return WC_Product
|
||||
*/
|
||||
protected function save_product_shipping_data( $product, $data ) {
|
||||
|
@ -1181,7 +1199,8 @@ class WC_REST_Products_V2_Controller extends WC_REST_Legacy_Products_Controller
|
|||
*
|
||||
* @param WC_Product $product Product instance.
|
||||
* @param array $downloads Downloads data.
|
||||
* @param int $deprecated Deprecated since 3.0.
|
||||
* @param int $deprecated Deprecated since 3.0
|
||||
*
|
||||
* @return WC_Product
|
||||
*/
|
||||
protected function save_downloadable_files( $product, $downloads, $deprecated = 0 ) {
|
||||
|
@ -1212,6 +1231,7 @@ class WC_REST_Products_V2_Controller extends WC_REST_Legacy_Products_Controller
|
|||
* @param WC_Product $product Product instance.
|
||||
* @param array $terms Terms data.
|
||||
* @param string $taxonomy Taxonomy name.
|
||||
*
|
||||
* @return WC_Product
|
||||
*/
|
||||
protected function save_taxonomy_terms( $product, $terms, $taxonomy = 'cat' ) {
|
||||
|
@ -1229,10 +1249,10 @@ class WC_REST_Products_V2_Controller extends WC_REST_Legacy_Products_Controller
|
|||
/**
|
||||
* Save default attributes.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param WC_Product $product Product instance.
|
||||
* @param WP_REST_Request $request Request data.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @return WC_Product
|
||||
*/
|
||||
protected function save_default_attributes( $product, $request ) {
|
||||
|
@ -1301,6 +1321,7 @@ class WC_REST_Products_V2_Controller extends WC_REST_Legacy_Products_Controller
|
|||
* Delete a single item.
|
||||
*
|
||||
* @param WP_REST_Request $request Full details about the request.
|
||||
*
|
||||
* @return WP_REST_Response|WP_Error
|
||||
*/
|
||||
public function delete_item( $request ) {
|
||||
|
|
|
@ -486,7 +486,7 @@ class WC_AJAX {
|
|||
|
||||
if ( wc_is_order_status( 'wc-' . $status ) && $order ) {
|
||||
// Initialize payment gateways in case order has hooked status transition actions.
|
||||
wc()->payment_gateways();
|
||||
WC()->payment_gateways();
|
||||
|
||||
$order->update_status( $status, '', true );
|
||||
do_action( 'woocommerce_order_edit_status', $order->get_id(), $status );
|
||||
|
@ -612,6 +612,8 @@ class WC_AJAX {
|
|||
wp_die( -1 );
|
||||
}
|
||||
|
||||
$response = array();
|
||||
|
||||
try {
|
||||
parse_str( $_POST['data'], $data );
|
||||
|
||||
|
@ -624,8 +626,6 @@ class WC_AJAX {
|
|||
$product->set_attributes( $attributes );
|
||||
$product->save();
|
||||
|
||||
$response = array();
|
||||
|
||||
ob_start();
|
||||
$attributes = $product->get_attributes( 'edit' );
|
||||
$i = -1;
|
||||
|
@ -647,12 +647,12 @@ class WC_AJAX {
|
|||
}
|
||||
|
||||
$response['html'] = ob_get_clean();
|
||||
|
||||
wp_send_json_success( $response );
|
||||
} catch ( Exception $e ) {
|
||||
wp_send_json_error( array( 'error' => $e->getMessage() ) );
|
||||
}
|
||||
wp_die();
|
||||
|
||||
// wp_send_json_success must be outside the try block not to break phpunit tests.
|
||||
wp_send_json_success( $response );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -847,6 +847,8 @@ class WC_AJAX {
|
|||
wp_die( -1 );
|
||||
}
|
||||
|
||||
$response = array();
|
||||
|
||||
try {
|
||||
if ( ! isset( $_POST['order_id'] ) ) {
|
||||
throw new Exception( __( 'Invalid order', 'woocommerce' ) );
|
||||
|
@ -897,14 +899,13 @@ class WC_AJAX {
|
|||
|
||||
ob_start();
|
||||
include 'admin/meta-boxes/views/html-order-items.php';
|
||||
wp_send_json_success(
|
||||
array(
|
||||
'html' => ob_get_clean(),
|
||||
)
|
||||
);
|
||||
$response['html'] = ob_get_clean();
|
||||
} catch ( Exception $e ) {
|
||||
wp_send_json_error( array( 'error' => $e->getMessage() ) );
|
||||
}
|
||||
|
||||
// wp_send_json_success must be outside the try block not to break phpunit tests.
|
||||
wp_send_json_success( $response );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -917,6 +918,8 @@ class WC_AJAX {
|
|||
wp_die( -1 );
|
||||
}
|
||||
|
||||
$response = array();
|
||||
|
||||
try {
|
||||
$order_id = absint( $_POST['order_id'] );
|
||||
$amount = wc_clean( $_POST['amount'] );
|
||||
|
@ -953,15 +956,13 @@ class WC_AJAX {
|
|||
|
||||
ob_start();
|
||||
include 'admin/meta-boxes/views/html-order-items.php';
|
||||
|
||||
wp_send_json_success(
|
||||
array(
|
||||
'html' => ob_get_clean(),
|
||||
)
|
||||
);
|
||||
$response['html'] = ob_get_clean();
|
||||
} catch ( Exception $e ) {
|
||||
wp_send_json_error( array( 'error' => $e->getMessage() ) );
|
||||
}
|
||||
|
||||
// wp_send_json_success must be outside the try block not to break phpunit tests.
|
||||
wp_send_json_success( $response );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -974,11 +975,13 @@ class WC_AJAX {
|
|||
wp_die( -1 );
|
||||
}
|
||||
|
||||
$response = array();
|
||||
|
||||
try {
|
||||
$order_id = absint( $_POST['order_id'] );
|
||||
$order = wc_get_order( $order_id );
|
||||
$order_taxes = $order->get_taxes();
|
||||
$shipping_methods = WC()->shipping() ? WC()->shipping->load_shipping_methods() : array();
|
||||
$shipping_methods = WC()->shipping() ? WC()->shipping()->load_shipping_methods() : array();
|
||||
|
||||
// Add new shipping
|
||||
$item = new WC_Order_Item_Shipping();
|
||||
|
@ -988,15 +991,13 @@ class WC_AJAX {
|
|||
|
||||
ob_start();
|
||||
include 'admin/meta-boxes/views/html-order-shipping.php';
|
||||
|
||||
wp_send_json_success(
|
||||
array(
|
||||
'html' => ob_get_clean(),
|
||||
)
|
||||
);
|
||||
$response['html'] = ob_get_clean();
|
||||
} catch ( Exception $e ) {
|
||||
wp_send_json_error( array( 'error' => $e->getMessage() ) );
|
||||
}
|
||||
|
||||
// wp_send_json_success must be outside the try block not to break phpunit tests.
|
||||
wp_send_json_success( $response );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1009,6 +1010,8 @@ class WC_AJAX {
|
|||
wp_die( -1 );
|
||||
}
|
||||
|
||||
$response = array();
|
||||
|
||||
try {
|
||||
$order_id = absint( $_POST['order_id'] );
|
||||
$rate_id = absint( $_POST['rate_id'] );
|
||||
|
@ -1023,15 +1026,13 @@ class WC_AJAX {
|
|||
|
||||
ob_start();
|
||||
include 'admin/meta-boxes/views/html-order-items.php';
|
||||
|
||||
wp_send_json_success(
|
||||
array(
|
||||
'html' => ob_get_clean(),
|
||||
)
|
||||
);
|
||||
$response['html'] = ob_get_clean();
|
||||
} catch ( Exception $e ) {
|
||||
wp_send_json_error( array( 'error' => $e->getMessage() ) );
|
||||
}
|
||||
|
||||
// wp_send_json_success must be outside the try block not to break phpunit tests.
|
||||
wp_send_json_success( $response );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1044,6 +1045,8 @@ class WC_AJAX {
|
|||
wp_die( -1 );
|
||||
}
|
||||
|
||||
$response = array();
|
||||
|
||||
try {
|
||||
$order_id = absint( $_POST['order_id'] );
|
||||
$order = wc_get_order( $order_id );
|
||||
|
@ -1055,15 +1058,13 @@ class WC_AJAX {
|
|||
|
||||
ob_start();
|
||||
include 'admin/meta-boxes/views/html-order-items.php';
|
||||
|
||||
wp_send_json_success(
|
||||
array(
|
||||
'html' => ob_get_clean(),
|
||||
)
|
||||
);
|
||||
$response['html'] = ob_get_clean();
|
||||
} catch ( Exception $e ) {
|
||||
wp_send_json_error( array( 'error' => $e->getMessage() ) );
|
||||
}
|
||||
|
||||
// wp_send_json_success must be outside the try block not to break phpunit tests.
|
||||
wp_send_json_success( $response );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1076,6 +1077,8 @@ class WC_AJAX {
|
|||
wp_die( -1 );
|
||||
}
|
||||
|
||||
$response = array();
|
||||
|
||||
try {
|
||||
$order_id = absint( $_POST['order_id'] );
|
||||
$order = wc_get_order( $order_id );
|
||||
|
@ -1084,15 +1087,13 @@ class WC_AJAX {
|
|||
|
||||
ob_start();
|
||||
include 'admin/meta-boxes/views/html-order-items.php';
|
||||
|
||||
wp_send_json_success(
|
||||
array(
|
||||
'html' => ob_get_clean(),
|
||||
)
|
||||
);
|
||||
$response['html'] = ob_get_clean();
|
||||
} catch ( Exception $e ) {
|
||||
wp_send_json_error( array( 'error' => $e->getMessage() ) );
|
||||
}
|
||||
|
||||
// wp_send_json_success must be outside the try block not to break phpunit tests.
|
||||
wp_send_json_success( $response );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1105,6 +1106,8 @@ class WC_AJAX {
|
|||
wp_die( -1 );
|
||||
}
|
||||
|
||||
$response = array();
|
||||
|
||||
try {
|
||||
$order_id = absint( $_POST['order_id'] );
|
||||
$order_item_ids = $_POST['order_item_ids'];
|
||||
|
@ -1140,15 +1143,13 @@ class WC_AJAX {
|
|||
|
||||
ob_start();
|
||||
include 'admin/meta-boxes/views/html-order-items.php';
|
||||
|
||||
wp_send_json_success(
|
||||
array(
|
||||
'html' => ob_get_clean(),
|
||||
)
|
||||
);
|
||||
$response['html'] = ob_get_clean();
|
||||
} catch ( Exception $e ) {
|
||||
wp_send_json_error( array( 'error' => $e->getMessage() ) );
|
||||
}
|
||||
|
||||
// wp_send_json_success must be outside the try block not to break phpunit tests.
|
||||
wp_send_json_success( $response );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1161,6 +1162,8 @@ class WC_AJAX {
|
|||
wp_die( -1 );
|
||||
}
|
||||
|
||||
$response = array();
|
||||
|
||||
try {
|
||||
$order_id = absint( $_POST['order_id'] );
|
||||
$rate_id = absint( $_POST['rate_id'] );
|
||||
|
@ -1172,15 +1175,13 @@ class WC_AJAX {
|
|||
|
||||
ob_start();
|
||||
include 'admin/meta-boxes/views/html-order-items.php';
|
||||
|
||||
wp_send_json_success(
|
||||
array(
|
||||
'html' => ob_get_clean(),
|
||||
)
|
||||
);
|
||||
$response['html'] = ob_get_clean();
|
||||
} catch ( Exception $e ) {
|
||||
wp_send_json_error( array( 'error' => $e->getMessage() ) );
|
||||
}
|
||||
|
||||
// wp_send_json_success must be outside the try block not to break phpunit tests.
|
||||
wp_send_json_success( $response );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1429,9 +1430,8 @@ class WC_AJAX {
|
|||
wp_die( -1 );
|
||||
}
|
||||
|
||||
$term = wc_clean( wp_unslash( $_GET['term'] ) );
|
||||
$exclude = array();
|
||||
$limit = '';
|
||||
$term = wc_clean( wp_unslash( $_GET['term'] ) );
|
||||
$limit = 0;
|
||||
|
||||
if ( empty( $term ) ) {
|
||||
wp_die();
|
||||
|
@ -1633,7 +1633,7 @@ class WC_AJAX {
|
|||
$api_refund = 'true' === $_POST['api_refund'];
|
||||
$restock_refunded_items = 'true' === $_POST['restock_refunded_items'];
|
||||
$refund = false;
|
||||
$response_data = array();
|
||||
$response = array();
|
||||
|
||||
try {
|
||||
$order = wc_get_order( $order_id );
|
||||
|
@ -1686,14 +1686,14 @@ class WC_AJAX {
|
|||
}
|
||||
|
||||
if ( did_action( 'woocommerce_order_fully_refunded' ) ) {
|
||||
$response_data['status'] = 'fully_refunded';
|
||||
$response['status'] = 'fully_refunded';
|
||||
}
|
||||
|
||||
wp_send_json_success( $response_data );
|
||||
|
||||
} catch ( Exception $e ) {
|
||||
wp_send_json_error( array( 'error' => $e->getMessage() ) );
|
||||
}
|
||||
|
||||
// wp_send_json_success must be outside the try block not to break phpunit tests.
|
||||
wp_send_json_success( $response );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1743,6 +1743,8 @@ class WC_AJAX {
|
|||
wp_die( -1 );
|
||||
}
|
||||
|
||||
$response = array();
|
||||
|
||||
try {
|
||||
if ( empty( $_POST['description'] ) ) {
|
||||
throw new Exception( __( 'Description is missing.', 'woocommerce' ) );
|
||||
|
@ -1785,9 +1787,10 @@ class WC_AJAX {
|
|||
array( '%d' )
|
||||
);
|
||||
|
||||
$data['consumer_key'] = '';
|
||||
$data['consumer_secret'] = '';
|
||||
$data['message'] = __( 'API Key updated successfully.', 'woocommerce' );
|
||||
$response = $data;
|
||||
$response['consumer_key'] = '';
|
||||
$response['consumer_secret'] = '';
|
||||
$response['message'] = __( 'API Key updated successfully.', 'woocommerce' );
|
||||
} else {
|
||||
$consumer_key = 'ck_' . wc_rand_hash();
|
||||
$consumer_secret = 'cs_' . wc_rand_hash();
|
||||
|
@ -1814,17 +1817,19 @@ class WC_AJAX {
|
|||
)
|
||||
);
|
||||
|
||||
$key_id = $wpdb->insert_id;
|
||||
$data['consumer_key'] = $consumer_key;
|
||||
$data['consumer_secret'] = $consumer_secret;
|
||||
$data['message'] = __( 'API Key generated successfully. Make sure to copy your new keys now as the secret key will be hidden once you leave this page.', 'woocommerce' );
|
||||
$data['revoke_url'] = '<a style="color: #a00; text-decoration: none;" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'revoke-key' => $key_id ), admin_url( 'admin.php?page=wc-settings&tab=advanced§ion=keys' ) ), 'revoke' ) ) . '">' . __( 'Revoke key', 'woocommerce' ) . '</a>';
|
||||
$key_id = $wpdb->insert_id;
|
||||
$response = $data;
|
||||
$response['consumer_key'] = $consumer_key;
|
||||
$response['consumer_secret'] = $consumer_secret;
|
||||
$response['message'] = __( 'API Key generated successfully. Make sure to copy your new keys now as the secret key will be hidden once you leave this page.', 'woocommerce' );
|
||||
$response['revoke_url'] = '<a style="color: #a00; text-decoration: none;" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'revoke-key' => $key_id ), admin_url( 'admin.php?page=wc-settings&tab=advanced§ion=keys' ) ), 'revoke' ) ) . '">' . __( 'Revoke key', 'woocommerce' ) . '</a>';
|
||||
}
|
||||
|
||||
wp_send_json_success( $data );
|
||||
} catch ( Exception $e ) {
|
||||
wp_send_json_error( array( 'message' => $e->getMessage() ) );
|
||||
}
|
||||
|
||||
// wp_send_json_success must be outside the try block not to break phpunit tests.
|
||||
wp_send_json_success( $response );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2360,7 +2365,7 @@ class WC_AJAX {
|
|||
wp_die();
|
||||
}
|
||||
|
||||
$changes = $_POST['changes'];
|
||||
$changes = stripslashes_deep( $_POST['changes'] );
|
||||
foreach ( $changes as $tax_rate_id => $data ) {
|
||||
if ( isset( $data['deleted'] ) ) {
|
||||
if ( isset( $data['newRow'] ) ) {
|
||||
|
|
|
@ -70,7 +70,6 @@ final class WC_Cart_Session {
|
|||
|
||||
$update_cart_session = false; // Flag to indicate the stored cart should be updated.
|
||||
$order_again = false; // Flag to indicate whether this is a re-order.
|
||||
|
||||
$cart = WC()->session->get( 'cart', null );
|
||||
$merge_saved_cart = (bool) get_user_meta( get_current_user_id(), '_woocommerce_load_saved_cart_after_login', true );
|
||||
|
||||
|
@ -121,7 +120,8 @@ final class WC_Cart_Session {
|
|||
} else {
|
||||
// Put session data into array. Run through filter so other plugins can load their own session data.
|
||||
$session_data = array_merge(
|
||||
$values, array(
|
||||
$values,
|
||||
array(
|
||||
'data' => $product,
|
||||
)
|
||||
);
|
||||
|
@ -148,7 +148,7 @@ final class WC_Cart_Session {
|
|||
|
||||
// If this is a re-order, redirect to the cart page to get rid of the `order_again` query string.
|
||||
if ( $order_again ) {
|
||||
wp_redirect( wc_get_page_permalink( 'cart' ) );
|
||||
wp_safe_redirect( wc_get_page_permalink( 'cart' ) );
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
@ -219,7 +219,9 @@ final class WC_Cart_Session {
|
|||
public function persistent_cart_update() {
|
||||
if ( get_current_user_id() && apply_filters( 'woocommerce_persistent_cart_enabled', true ) ) {
|
||||
update_user_meta(
|
||||
get_current_user_id(), '_woocommerce_persistent_cart_' . get_current_blog_id(), array(
|
||||
get_current_user_id(),
|
||||
'_woocommerce_persistent_cart_' . get_current_blog_id(),
|
||||
array(
|
||||
'cart' => $this->get_cart_for_session(),
|
||||
)
|
||||
);
|
||||
|
@ -310,6 +312,11 @@ final class WC_Cart_Session {
|
|||
continue;
|
||||
}
|
||||
|
||||
// Prevent reordering items specifically out of stock.
|
||||
if ( ! $product->is_in_stock() ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
foreach ( $item->get_meta_data() as $meta ) {
|
||||
if ( taxonomy_is_product_attribute( $meta->key ) ) {
|
||||
$term = get_term_by( 'slug', $meta->value, $meta->key );
|
||||
|
@ -327,8 +334,10 @@ final class WC_Cart_Session {
|
|||
$cart_id = WC()->cart->generate_cart_id( $product_id, $variation_id, $variations, $cart_item_data );
|
||||
$product_data = wc_get_product( $variation_id ? $variation_id : $product_id );
|
||||
$cart[ $cart_id ] = apply_filters(
|
||||
'woocommerce_add_order_again_cart_item', array_merge(
|
||||
$cart_item_data, array(
|
||||
'woocommerce_add_order_again_cart_item',
|
||||
array_merge(
|
||||
$cart_item_data,
|
||||
array(
|
||||
'key' => $cart_id,
|
||||
'product_id' => $product_id,
|
||||
'variation_id' => $variation_id,
|
||||
|
@ -337,7 +346,8 @@ final class WC_Cart_Session {
|
|||
'data' => $product_data,
|
||||
'data_hash' => wc_get_cart_item_data_hash( $product_data ),
|
||||
)
|
||||
), $cart_id
|
||||
),
|
||||
$cart_id
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -354,10 +364,10 @@ final class WC_Cart_Session {
|
|||
_n(
|
||||
'%d item from your previous order is currently unavailable and could not be added to your cart.',
|
||||
'%d items from your previous order are currently unavailable and could not be added to your cart.',
|
||||
$num_items_added,
|
||||
$num_items_in_original_order - $num_items_added,
|
||||
'woocommerce'
|
||||
),
|
||||
$num_items_added
|
||||
$num_items_in_original_order - $num_items_added
|
||||
),
|
||||
'error'
|
||||
);
|
||||
|
|
|
@ -1079,8 +1079,10 @@ class WC_Cart extends WC_Legacy_Cart {
|
|||
|
||||
// Add item after merging with $cart_item_data - hook to allow plugins to modify cart item.
|
||||
$this->cart_contents[ $cart_item_key ] = apply_filters(
|
||||
'woocommerce_add_cart_item', array_merge(
|
||||
$cart_item_data, array(
|
||||
'woocommerce_add_cart_item',
|
||||
array_merge(
|
||||
$cart_item_data,
|
||||
array(
|
||||
'key' => $cart_item_key,
|
||||
'product_id' => $product_id,
|
||||
'variation_id' => $variation_id,
|
||||
|
@ -1089,7 +1091,8 @@ class WC_Cart extends WC_Legacy_Cart {
|
|||
'data' => $product_data,
|
||||
'data_hash' => wc_get_cart_item_data_hash( $product_data ),
|
||||
)
|
||||
), $cart_item_key
|
||||
),
|
||||
$cart_item_key
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -1226,7 +1229,7 @@ class WC_Cart extends WC_Legacy_Cart {
|
|||
* Uses the shipping class to calculate shipping then gets the totals when its finished.
|
||||
*/
|
||||
public function calculate_shipping() {
|
||||
$this->shipping_methods = $this->needs_shipping() ? $this->get_chosen_shipping_methods( WC()->shipping->calculate_shipping( $this->get_shipping_packages() ) ) : array();
|
||||
$this->shipping_methods = $this->needs_shipping() ? $this->get_chosen_shipping_methods( WC()->shipping()->calculate_shipping( $this->get_shipping_packages() ) ) : array();
|
||||
|
||||
$shipping_taxes = wp_list_pluck( $this->shipping_methods, 'taxes' );
|
||||
$merged_taxes = array();
|
||||
|
@ -1427,8 +1430,10 @@ class WC_Cart extends WC_Legacy_Cart {
|
|||
$check_emails = array_unique(
|
||||
array_filter(
|
||||
array_map(
|
||||
'strtolower', array_map(
|
||||
'sanitize_email', array(
|
||||
'strtolower',
|
||||
array_map(
|
||||
'sanitize_email',
|
||||
array(
|
||||
$billing_email,
|
||||
$current_user->user_email,
|
||||
)
|
||||
|
@ -1507,7 +1512,7 @@ class WC_Cart extends WC_Legacy_Cart {
|
|||
// Go through the allowed emails and return true if the email matches a wildcard.
|
||||
foreach ( $restrictions as $restriction ) {
|
||||
// Convert to PHP-regex syntax.
|
||||
$regex = '/' . str_replace( '*', '(.+)?', $restriction ) . '/';
|
||||
$regex = '/^' . str_replace( '*', '(.+)?', $restriction ) . '$/';
|
||||
preg_match( $regex, $check_email, $match );
|
||||
if ( ! empty( $match ) ) {
|
||||
return true;
|
||||
|
@ -1604,7 +1609,7 @@ class WC_Cart extends WC_Legacy_Cart {
|
|||
|
||||
// Choose free shipping.
|
||||
if ( $the_coupon->get_free_shipping() ) {
|
||||
$packages = WC()->shipping->get_packages();
|
||||
$packages = WC()->shipping()->get_packages();
|
||||
$chosen_shipping_methods = WC()->session->get( 'chosen_shipping_methods' );
|
||||
|
||||
foreach ( $packages as $i => $package ) {
|
||||
|
|
|
@ -350,7 +350,7 @@ class WC_Checkout {
|
|||
$order->set_total( WC()->cart->get_total( 'edit' ) );
|
||||
$this->create_order_line_items( $order, WC()->cart );
|
||||
$this->create_order_fee_lines( $order, WC()->cart );
|
||||
$this->create_order_shipping_lines( $order, WC()->session->get( 'chosen_shipping_methods' ), WC()->shipping->get_packages() );
|
||||
$this->create_order_shipping_lines( $order, WC()->session->get( 'chosen_shipping_methods' ), WC()->shipping()->get_packages() );
|
||||
$this->create_order_tax_lines( $order, WC()->cart );
|
||||
$this->create_order_coupon_lines( $order, WC()->cart );
|
||||
|
||||
|
@ -774,7 +774,7 @@ class WC_Checkout {
|
|||
} else {
|
||||
$chosen_shipping_methods = WC()->session->get( 'chosen_shipping_methods' );
|
||||
|
||||
foreach ( WC()->shipping->get_packages() as $i => $package ) {
|
||||
foreach ( WC()->shipping()->get_packages() as $i => $package ) {
|
||||
if ( ! isset( $chosen_shipping_methods[ $i ], $package['rates'][ $chosen_shipping_methods[ $i ] ] ) ) {
|
||||
$errors->add( 'shipping', __( 'No shipping method has been selected. Please double check your address, or contact us if you need any help.', 'woocommerce' ) );
|
||||
}
|
||||
|
|
|
@ -572,17 +572,17 @@ class WC_Countries {
|
|||
'{state}' => $full_state,
|
||||
'{postcode}' => $args['postcode'],
|
||||
'{country}' => $full_country,
|
||||
'{first_name_upper}' => strtoupper( $args['first_name'] ),
|
||||
'{last_name_upper}' => strtoupper( $args['last_name'] ),
|
||||
'{name_upper}' => strtoupper( $args['first_name'] . ' ' . $args['last_name'] ),
|
||||
'{company_upper}' => strtoupper( $args['company'] ),
|
||||
'{address_1_upper}' => strtoupper( $args['address_1'] ),
|
||||
'{address_2_upper}' => strtoupper( $args['address_2'] ),
|
||||
'{city_upper}' => strtoupper( $args['city'] ),
|
||||
'{state_upper}' => strtoupper( $full_state ),
|
||||
'{state_code}' => strtoupper( $state ),
|
||||
'{postcode_upper}' => strtoupper( $args['postcode'] ),
|
||||
'{country_upper}' => strtoupper( $full_country ),
|
||||
'{first_name_upper}' => wc_strtoupper( $args['first_name'] ),
|
||||
'{last_name_upper}' => wc_strtoupper( $args['last_name'] ),
|
||||
'{name_upper}' => wc_strtoupper( $args['first_name'] . ' ' . $args['last_name'] ),
|
||||
'{company_upper}' => wc_strtoupper( $args['company'] ),
|
||||
'{address_1_upper}' => wc_strtoupper( $args['address_1'] ),
|
||||
'{address_2_upper}' => wc_strtoupper( $args['address_2'] ),
|
||||
'{city_upper}' => wc_strtoupper( $args['city'] ),
|
||||
'{state_upper}' => wc_strtoupper( $full_state ),
|
||||
'{state_code}' => wc_strtoupper( $state ),
|
||||
'{postcode_upper}' => wc_strtoupper( $args['postcode'] ),
|
||||
'{country_upper}' => wc_strtoupper( $full_country ),
|
||||
),
|
||||
$args
|
||||
)
|
||||
|
|
|
@ -91,7 +91,7 @@ class WC_Coupon extends WC_Legacy_Coupon {
|
|||
}
|
||||
|
||||
// This filter allows custom coupon objects to be created on the fly.
|
||||
$coupon = apply_filters( 'woocommerce_get_shop_coupon_data', false, $data );
|
||||
$coupon = apply_filters( 'woocommerce_get_shop_coupon_data', false, $data, $this );
|
||||
|
||||
if ( $coupon ) {
|
||||
$this->read_manual_coupon( $data, $coupon );
|
||||
|
|
|
@ -18,7 +18,7 @@ class WC_Emails {
|
|||
/**
|
||||
* Array of email notification classes
|
||||
*
|
||||
* @var array
|
||||
* @var WC_Email[]
|
||||
*/
|
||||
public $emails = array();
|
||||
|
||||
|
@ -231,7 +231,7 @@ class WC_Emails {
|
|||
/**
|
||||
* Return the email classes - used in admin to load settings.
|
||||
*
|
||||
* @return array
|
||||
* @return WC_Email[]
|
||||
*/
|
||||
public function get_emails() {
|
||||
return $this->emails;
|
||||
|
|
|
@ -124,7 +124,8 @@ class WC_Product_Attribute implements ArrayAccess {
|
|||
*/
|
||||
public function get_data() {
|
||||
return array_merge(
|
||||
$this->data, array(
|
||||
$this->data,
|
||||
array(
|
||||
'is_visible' => $this->get_visible() ? 1 : 0,
|
||||
'is_variation' => $this->get_variation() ? 1 : 0,
|
||||
'is_taxonomy' => $this->is_taxonomy() ? 1 : 0,
|
||||
|
@ -211,7 +212,7 @@ class WC_Product_Attribute implements ArrayAccess {
|
|||
/**
|
||||
* Get name.
|
||||
*
|
||||
* @return int
|
||||
* @return string
|
||||
*/
|
||||
public function get_name() {
|
||||
return $this->data['name'];
|
||||
|
|
|
@ -167,7 +167,7 @@ class WC_Product_Variation extends WC_Product_Simple {
|
|||
$data = $this->get_variation_attributes();
|
||||
}
|
||||
|
||||
$data = array_filter( $data );
|
||||
$data = array_filter( $data, 'wc_array_filter_default_attributes' );
|
||||
|
||||
if ( empty( $data ) ) {
|
||||
return $url;
|
||||
|
|