Version Description
Download this release
Release Info
Developer | garyc40 |
Plugin | WP eCommerce |
Version | 3.8.10-beta |
Comparing to | |
See all releases |
Code changes from version 3.8.9.5 to 3.8.10-beta
- .gitignore +1 -0
- images/cc.gif +0 -0
- images/google_checkout.gif +0 -0
- images/paypal.gif +0 -0
- readme.md +39 -0
- readme.txt +32 -111
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- screenshot-3.png +0 -0
- screenshot-4.png +0 -0
- wp-shopping-cart.php +85 -3
- wpsc-admin/admin-form-functions.php +3 -3
- wpsc-admin/admin.php +299 -50
- wpsc-admin/ajax-and-init.php +27 -1
- wpsc-admin/ajax.php +141 -13
- wpsc-admin/css/admin.css +30 -217
- wpsc-admin/css/arrows.png +0 -0
- wpsc-admin/css/jquery.ui.datepicker-classic.css +579 -0
- wpsc-admin/css/jquery.ui.datepicker-fresh.css +579 -0
- wpsc-admin/css/loading-small.gif +0 -0
- wpsc-admin/css/plus-minus.png +0 -0
- wpsc-admin/css/settingspage.css +3 -42
- wpsc-admin/css/ui-images/ui-icons_21759b_256x240.png +0 -0
- wpsc-admin/css/ui-images/ui-icons_333333_256x240.png +0 -0
- wpsc-admin/css/ui-images/ui-icons_999999_256x240.png +0 -0
- wpsc-admin/css/ui-images/ui-icons_cc0000_256x240.png +0 -0
- wpsc-admin/db-upgrades/routines/1.php +0 -0
- wpsc-admin/db-upgrades/routines/2.php +0 -0
- wpsc-admin/db-upgrades/routines/3.php +0 -0
- wpsc-admin/db-upgrades/upgrade.php +0 -0
- wpsc-admin/db-upgrades/views/main.php +0 -0
- wpsc-admin/display-coupon-add.php +126 -0
- wpsc-admin/display-coupon-edit.php +166 -0
- wpsc-admin/display-coupons.php +85 -397
- wpsc-admin/display-debug.page.php +9 -4
- wpsc-admin/display-items.page.php +92 -8
- wpsc-admin/display-sales-logs.php +4 -5
- wpsc-admin/display-update.page.php +0 -0
- wpsc-admin/includes/coupon-list-table-class.php +484 -0
- wpsc-admin/includes/display-items-functions.php +26 -14
- wpsc-admin/includes/product-functions.php +25 -6
- wpsc-admin/includes/product-variation-list-table.class.php +8 -8
- wpsc-admin/includes/product-variations-manage.page.php +0 -0
- wpsc-admin/includes/product-variations-page.class.php +7 -6
- wpsc-admin/includes/product-variations-setup.page.php +0 -0
- wpsc-admin/includes/product-variations.page.php +0 -0
- wpsc-admin/includes/products.php +0 -0
- wpsc-admin/includes/purchase-log-list-table-class.php +25 -11
- wpsc-admin/includes/purchase-logs-page/bulk-delete-confirm.php +0 -0
- wpsc-admin/includes/purchase-logs-page/item-details.php +2 -1
- wpsc-admin/includes/purchase-logs-page/list-table.php +0 -0
- wpsc-admin/includes/purchase-logs-page/packing-slip.php +0 -0
- wpsc-admin/includes/settings-tabs/admin.php +1 -2
- wpsc-admin/includes/settings-tabs/checkout.php +8 -9
- wpsc-admin/includes/settings-tabs/gateway.php +42 -99
- wpsc-admin/includes/settings-tabs/general.php +1 -2
- wpsc-admin/includes/settings-tabs/import.php +1 -2
- wpsc-admin/includes/settings-tabs/marketing.php +1 -1
- wpsc-admin/includes/settings-tabs/presentation.php +1 -2
- wpsc-admin/includes/settings-tabs/shipping.php +1 -2
- wpsc-admin/includes/settings-tabs/taxes.php +1 -2
- wpsc-admin/includes/updating-functions.php +2 -4
- wpsc-admin/includes/walker-variation-checklist.php +1 -1
- wpsc-admin/init.php +3 -42
- wpsc-admin/js/admin.js +40 -0
- wpsc-admin/js/product-variations.js +0 -0
- wpsc-admin/js/purchase-logs.js +0 -0
- wpsc-admin/js/set-post-thumbnail.js +0 -0
- wpsc-admin/js/settings-page.js +6 -6
- wpsc-admin/js/sortable-table.js +0 -0
- wpsc-admin/js/variations.js +5 -3
- wpsc-admin/settings-page.php +6 -9
- wpsc-components/merchant-core-v2/classes/wpsc-gateways.php +68 -0
- wpsc-components/merchant-core-v2/helpers/admin.php +118 -0
- wpsc-components/merchant-core-v2/helpers/checkout.php +101 -0
- wpsc-components/merchant-core-v2/helpers/gateways.php +179 -0
- wpsc-components/merchant-core-v2/merchant-core-v2.php +14 -0
- wpsc-core/images/border.png +0 -0
- wpsc-core/images/controls.png +0 -0
- wpsc-core/images/credit_cards.png +0 -0
- wpsc-core/images/drag.png +0 -0
- wpsc-core/images/icon32.png +0 -0
- wpsc-core/images/loading_background.png +0 -0
- wpsc-core/images/menu-bits.gif +0 -0
- wpsc-core/images/mobile.png +0 -0
- wpsc-core/images/overlay.png +0 -0
- wpsc-core/images/social_networking/facebook.png +0 -0
- wpsc-core/images/toolbar.png +0 -0
- wpsc-core/js/jquery.infieldlabel.min.js +0 -0
- wpsc-core/js/tinymce3/credit_cards.png +0 -0
- wpsc-core/js/tinymce3/productspage.jpg +0 -0
- wpsc-core/js/wpsc_colorbox.css +0 -0
- wpsc-core/wpsc-constants.php +4 -4
- wpsc-core/wpsc-deprecated.php +236 -59
- wpsc-core/wpsc-functions.php +96 -6
- wpsc-core/wpsc-includes.php +1 -0
- wpsc-core/wpsc-installer.php +3 -3
- wpsc-includes/ajax.functions.php +27 -44
- wpsc-includes/breadcrumbs.class.php +1 -1
- wpsc-includes/cart.class.php +63 -2
- wpsc-includes/checkout-form-data.class.php +2 -3
- wpsc-includes/checkout-form.class.php +160 -0
- wpsc-includes/checkout.class.php +23 -235
- wpsc-includes/country.class.php +0 -0
- wpsc-includes/coupons.class.php +3 -6
- wpsc-includes/cron.php +0 -0
- wpsc-includes/currency.helpers.php +31 -1
- wpsc-includes/display.functions.php +42 -74
- wpsc-includes/fpdf/font/courier.php +0 -7
- wpsc-includes/fpdf/font/desktop.ini +0 -4
- wpsc-includes/fpdf/font/helvetica.php +0 -15
- wpsc-includes/fpdf/font/helveticab.php +0 -15
- wpsc-includes/fpdf/font/helveticabi.php +0 -15
- wpsc-includes/fpdf/font/helveticai.php +0 -15
- wpsc-includes/fpdf/font/makefont/cp1250.map +0 -251
- wpsc-includes/fpdf/font/makefont/cp1251.map +0 -255
- wpsc-includes/fpdf/font/makefont/cp1252.map +0 -251
- wpsc-includes/fpdf/font/makefont/cp1253.map +0 -239
- wpsc-includes/fpdf/font/makefont/cp1254.map +0 -249
- wpsc-includes/fpdf/font/makefont/cp1255.map +0 -233
- wpsc-includes/fpdf/font/makefont/cp1257.map +0 -244
- wpsc-includes/fpdf/font/makefont/cp1258.map +0 -247
- wpsc-includes/fpdf/font/makefont/cp874.map +0 -225
- wpsc-includes/fpdf/font/makefont/iso-8859-1.map +0 -256
- wpsc-includes/fpdf/font/makefont/iso-8859-11.map +0 -248
- wpsc-includes/fpdf/font/makefont/iso-8859-15.map +0 -256
- wpsc-includes/fpdf/font/makefont/iso-8859-16.map +0 -256
- wpsc-includes/fpdf/font/makefont/iso-8859-2.map +0 -256
- wpsc-includes/fpdf/font/makefont/iso-8859-4.map +0 -256
- wpsc-includes/fpdf/font/makefont/iso-8859-5.map +0 -256
- wpsc-includes/fpdf/font/makefont/iso-8859-7.map +0 -250
- wpsc-includes/fpdf/font/makefont/iso-8859-9.map +0 -256
- wpsc-includes/fpdf/font/makefont/koi8-r.map +0 -256
- wpsc-includes/fpdf/font/makefont/koi8-u.map +0 -256
- wpsc-includes/fpdf/font/makefont/makefont.php +0 -419
- wpsc-includes/fpdf/font/symbol.php +0 -15
- wpsc-includes/fpdf/font/times.php +0 -15
- wpsc-includes/fpdf/font/timesb.php +0 -15
- wpsc-includes/fpdf/font/timesbi.php +0 -15
- wpsc-includes/fpdf/font/timesi.php +0 -15
- wpsc-includes/fpdf/font/zapfdingbats.php +0 -15
- wpsc-includes/fpdf/fpdf.php +0 -1732
- wpsc-includes/fpdf/license.txt +0 -6
- wpsc-includes/fpdf/mc_table.php +0 -115
- wpsc-includes/google-analytics.class.php +13 -6
- wpsc-includes/merchant.class.php +2 -2
- wpsc-includes/misc.functions.php +210 -21
- wpsc-includes/processing.functions.php +1 -21
- wpsc-includes/product-template.php +5 -73
- wpsc-includes/productfeed.php +10 -5
- wpsc-includes/purchase-log-notification.class.php +4 -8
- wpsc-includes/purchase-log.class.php +1 -2
- wpsc-includes/purchase-log.helpers.php +13 -1
- wpsc-includes/purchaselogs.class.php +11 -14
- wpsc-includes/shortcode.functions.php +17 -3
- wpsc-includes/theme.functions.php +25 -25
- wpsc-includes/theming.class.php +0 -0
- wpsc-includes/variations.class.php +1 -1
- wpsc-languages/EN_en.php +0 -0
- wpsc-languages/wpsc-cs_CS.mo +0 -0
- wpsc-languages/wpsc-cs_CS.po +0 -0
- wpsc-languages/wpsc-cs_CZ.mo +0 -0
- wpsc-languages/wpsc-cs_CZ.po +0 -0
- wpsc-languages/wpsc-da_DK.mo +0 -0
- wpsc-languages/wpsc-da_DK.po +0 -0
- wpsc-languages/wpsc-de_DE.mo +0 -0
- wpsc-languages/wpsc-de_DE.po +0 -0
- wpsc-languages/wpsc-es_ES.mo +0 -0
- wpsc-languages/wpsc-es_ES.po +0 -0
- wpsc-languages/wpsc-et.mo +0 -0
- wpsc-languages/wpsc-et.po +0 -0
- wpsc-languages/wpsc-fi.mo +0 -0
- wpsc-languages/wpsc-fi.po +0 -0
- wpsc-languages/wpsc-fr_FR.mo +0 -0
- wpsc-languages/wpsc-fr_FR.po +0 -0
- wpsc-languages/wpsc-hr_HR.mo +0 -0
- wpsc-languages/wpsc-hr_HR.po +0 -0
- wpsc-languages/wpsc-hu_HU.mo +0 -0
- wpsc-languages/wpsc-hu_HU.po +0 -0
- wpsc-languages/wpsc-id_ID.mo +0 -0
- wpsc-languages/wpsc-id_ID.po +0 -0
- wpsc-languages/wpsc-it_IT.mo +0 -0
- wpsc-languages/wpsc-it_IT.po +0 -0
- wpsc-languages/wpsc-ja.mo +0 -0
- wpsc-languages/wpsc-ja.po +0 -0
- wpsc-languages/wpsc-lt_LT.mo +0 -0
- wpsc-languages/wpsc-lt_LT.po +0 -0
- wpsc-languages/wpsc-nb_NO.mo +0 -0
- wpsc-languages/wpsc-nb_NO.po +0 -0
- wpsc-languages/wpsc-nl_NL.mo +0 -0
- wpsc-languages/wpsc-nl_NL.po +0 -0
- wpsc-languages/wpsc-nn_NO.mo +0 -0
- wpsc-languages/wpsc-nn_NO.po +0 -0
- wpsc-languages/wpsc-pt_BR.mo +0 -0
- wpsc-languages/wpsc-pt_BR.po +0 -0
- wpsc-languages/wpsc-ru_RU.mo +0 -0
- wpsc-languages/wpsc-ru_RU.po +0 -0
- wpsc-languages/wpsc-sv_SE.mo +0 -0
- wpsc-languages/wpsc-sv_SE.po +0 -0
- wpsc-languages/wpsc-tr.mo +0 -0
- wpsc-languages/wpsc-tr.po +0 -0
- wpsc-languages/wpsc-zh_ZH.mo +0 -0
- wpsc-languages/wpsc-zh_ZH.po +0 -0
- wpsc-languages/wpsc.pot +0 -0
- wpsc-merchants/GoogleCheckout-XML.php +1 -1
- wpsc-merchants/chronopay.php +1 -1
- wpsc-merchants/paypal-express.merchant.php +3 -2
- wpsc-merchants/paypal-standard.merchant.php +1 -1
- wpsc-merchants/testmode.merchant.php +23 -13
- wpsc-shipping/australiapost.php +0 -0
- wpsc-shipping/library/shipwire_functions.php +23 -39
- wpsc-shipping/shipwire.php +0 -0
- wpsc-shipping/tablerate.php +2 -2
- wpsc-shipping/weightrate.php +2 -2
- wpsc-taxes/controllers/taxes_controller.class.php +0 -0
- wpsc-taxes/models/taxes.class.php +0 -0
- wpsc-taxes/taxes_module.php +0 -0
- wpsc-theme/functions/wpsc-transaction_results_functions.php +0 -0
- wpsc-theme/functions/wpsc-user_log_functions.php +144 -39
- wpsc-theme/wpsc-account-downloads.php +40 -0
- wpsc-theme/wpsc-account-edit-profile.php +28 -0
- wpsc-theme/wpsc-account-purchase-history.php +55 -0
- wpsc-theme/wpsc-cart_widget.php +0 -0
- wpsc-theme/wpsc-category-list.php +0 -0
- wpsc-theme/wpsc-category_widget.php +0 -0
- wpsc-theme/wpsc-default.css +0 -0
- wpsc-theme/wpsc-featured_product.php +0 -0
- wpsc-theme/wpsc-grid_view.php +0 -0
- wpsc-theme/wpsc-images/bulletpoint.gif +0 -0
- wpsc-theme/wpsc-images/yes_stock.png +0 -0
- wpsc-theme/wpsc-list_view.php +0 -0
- wpsc-theme/wpsc-products_page.php +0 -0
- wpsc-theme/wpsc-shopping_cart_page.php +14 -35
- wpsc-theme/wpsc-single_product.php +0 -0
- wpsc-theme/wpsc-transaction_results.php +0 -0
- wpsc-theme/wpsc-user-log.php +28 -146
- wpsc-updates/database_template.php +1 -1
- wpsc-widgets/price_range_widget.php +21 -26
- wpsc-widgets/shopping_cart_widget.php +1 -1
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.idea
|
images/cc.gif
CHANGED
File without changes
|
images/google_checkout.gif
CHANGED
File without changes
|
images/paypal.gif
CHANGED
File without changes
|
readme.md
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
WP e-Commerce
|
2 |
+
============
|
3 |
+
|
4 |
+
About
|
5 |
+
-----
|
6 |
+
|
7 |
+
WP e-Commerce is a free open-source WordPress Shopping Cart Plugin that lets customers buy your products, services and digital downloads online.
|
8 |
+
|
9 |
+
More details about this plugin features can be found on our website at [getshopped.org](http://getshopped.org/features/).
|
10 |
+
|
11 |
+
User documentation can be found at [docs.getshopped.org](http://docs.getshopped.org).
|
12 |
+
|
13 |
+
If you're looking for general user support, please submit your support request on [our community support forums](http://getshopped.org/forums/).
|
14 |
+
|
15 |
+
Development status
|
16 |
+
-------------------------
|
17 |
+
|
18 |
+
* The latest stable version is [3.8.9.5](http://wordpress.org/extend/plugins/wp-e-commerce).
|
19 |
+
* Active development version: 3.8.10-beta (branch [master](https://github.com/wp-e-commerce/WP-e-Commerce))
|
20 |
+
* [Roadmap for 3.8.10](https://github.com/wp-e-commerce/wp-e-commerce/wiki/Roadmap)
|
21 |
+
* [3.8.10 tickets](https://github.com/wp-e-commerce/wp-e-commerce/issues?labels=&milestone=4&page=1&sort=updated&state=open)
|
22 |
+
|
23 |
+
How to contribute code
|
24 |
+
-----------------------------
|
25 |
+
* [Coding standards and code quality](https://github.com/wp-e-commerce/wp-e-commerce/wiki/Coding-Standards-and-Code-Quality)
|
26 |
+
* [Submitting code](https://github.com/wp-e-commerce/wp-e-commerce/wiki/Submitting-Code)
|
27 |
+
* [Code review](https://github.com/wp-e-commerce/wp-e-commerce/wiki/Code-Review)
|
28 |
+
* [Merging pull requests](https://github.com/wp-e-commerce/wp-e-commerce/wiki/Merging-Pull-Requests)
|
29 |
+
|
30 |
+
How to report issues
|
31 |
+
--------------------
|
32 |
+
* [Reporting a security issue](wiki/Reporting-a-security-issue)
|
33 |
+
* [What makes a perfect issue ticket?](https://github.com/wp-e-commerce/wp-e-commerce/wiki/Creating-issue-tickets)
|
34 |
+
* [Issue labels and workflow](https://github.com/wp-e-commerce/wp-e-commerce/wiki/Issue-Labels-and-Workflow)
|
35 |
+
|
36 |
+
Translating WPEC
|
37 |
+
----------------
|
38 |
+
* [How to get involved](https://github.com/wp-e-commerce/wp-e-commerce/wiki/Getting-involved-with-translation)
|
39 |
+
* [Current status](https://github.com/wp-e-commerce/wp-e-commerce/wiki/i18n-Status)
|
readme.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Contributors: mufasa, mychelle, garyc40, JustinSainton
|
3 |
Donate link: http://getshopped.org
|
4 |
Tags: e-commerce, wp-e-commerce, shop, cart, paypal, authorize, stock control, ecommerce, shipping, tax
|
5 |
-
Requires at least: 3.
|
6 |
Tested up to: 3.5
|
7 |
Stable tag: 3.8.9.5
|
8 |
|
@@ -155,6 +155,37 @@ Before updating please make a backup of your existing files and database. Just i
|
|
155 |
After upgrading from earlier versions look for link "Update Store". This will update your database structure to work with new version.
|
156 |
|
157 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
= 3.8.9.5 =
|
159 |
* New: Polish translation.
|
160 |
* Fix: Attempt to regenerate customer ID if it's invalid to avoid fatal errors.
|
@@ -617,116 +648,6 @@ After upgrading from earlier versions look for link "Update Store". This will up
|
|
617 |
* Fix: Faulty php tag in template (issue 589).
|
618 |
* Fix: PHP Notices when checking out with shipping disabled.
|
619 |
|
620 |
-
= 3.8.4 =
|
621 |
-
* Add: User can duplicate a product in admin panel
|
622 |
-
* Add: WooThemes integration support
|
623 |
-
* Change: Total in Cart widget now excludes shipping and tax
|
624 |
-
* Fix: Invalid country code in paypal-standard.merchant.php
|
625 |
-
* Fix: Tax is not passed properly to Paypal Pro
|
626 |
-
* Fix: Currency code preference not correctly selected in Paypal gateways
|
627 |
-
* Fix: Paypal gateways doesn't check whether the currency being sent to Paypal is accepted or not, resulting in wrong currency
|
628 |
-
* Fix: Checkout form selecting the wrong field when a previous field with the same uniquename was deleted
|
629 |
-
* Fix: Various issues with Google Checkout
|
630 |
-
* Fix: State data outside of US is not passed to payment gateways
|
631 |
-
* Fix: State is not displaying correctly in the users purchase history
|
632 |
-
* Fix: Wrong generated product permalink when a product is assigned multiple cats, and a product category is being viewed
|
633 |
-
* Fix: Submitting a checkout form with mandatory billing state only refreshes the form although everything is filled out correctly
|
634 |
-
* Fix: Billing Country is trimmed, and Billing State is not properly decoded
|
635 |
-
* Fix: Billing and shipping state no longer stored correctly
|
636 |
-
* Fix: Checkout form validation skips mandatory custom checkout fields on default form set
|
637 |
-
* Fix: Paystation does not properly update purchase logs
|
638 |
-
* Fix: When there's no product, and Sort Product By is set to 'dragndrop', viewing the admin product list would produce a Division by zero warning
|
639 |
-
* Fix: Store sub-pages return 404 error
|
640 |
-
* Fix: Only Purchase History in Your Account show the login option
|
641 |
-
* Fix: Weight on Variations contain too many decimals
|
642 |
-
* Fix: Add to Cart in grid view bypasses Variations selection
|
643 |
-
* Fix: get_queried_object() requires WP 3.1
|
644 |
-
* Fix: Invalid version number in display-update.page.php
|
645 |
-
* Fix: Correct HTML, to stop Free Shipping Discount getting blanked
|
646 |
-
* Fix: Support taxonomy archives for product_tag taxonomy
|
647 |
-
|
648 |
-
= 3.8.3 =
|
649 |
-
* New: Individual item details are sent to Paypal Express Checkout
|
650 |
-
* Change: Automatically reload database update page when PHP maximum execution time is detected
|
651 |
-
* Change: Add progress bar and estimated time remaining for database update tasks
|
652 |
-
* Change: Themes can now use taxonomy-wpsc_product_category-{$term}.php and taxonomy-wpsc_product_category.php templates, which take precedence over page.php when viewing a product category
|
653 |
-
* Change: Paypal Express Checkout API is updated to ver 71.0
|
654 |
-
* Fix: Tax is calculated incorrectly when a coupon is used
|
655 |
-
* Fix: Update a large database of products and variations take ages
|
656 |
-
* Fix: Reloading database update page makes wpec scan the records from the beginning instead of continuing where it left off
|
657 |
-
* Fix: Reactivating the plugin causes Fatal Error (PHP Timeout) if there are a lot of attached images (not just post products, but all image attachments)
|
658 |
-
* Fix: Purchase logs' statuses are not properly updated when upgrading from 3.7.x
|
659 |
-
* Fix: Billing state is not sent to checkout
|
660 |
-
* Fix: Country name is truncated when sending to payment gateway
|
661 |
-
* Fix: Billing state code is not properly converted before sending to payment gateway
|
662 |
-
* Fix: Wrong USA country code is sent to Paypal Standard Payment
|
663 |
-
* Fix: Wrong sandbox gateway URL for Paypal Pro
|
664 |
-
* Fix: SSLVERIFY error when connecting to Paypal Pro Gateway
|
665 |
-
* Fix: Template hierarchy error with child themes
|
666 |
-
* Fix: Total amount is not visible when checking out with Paypal Express Checkout
|
667 |
-
* Fix: Transaction result page is inaccurate after checking out with Paypal Express Checkout
|
668 |
-
* Fix: Incompatibility with Thesis theme's loop when viewing product category, or paginated product listing
|
669 |
-
|
670 |
-
= 3.8.2 =
|
671 |
-
* Add: Currency display for Google RSS feed
|
672 |
-
* Add: Third-party plugins can now filter 'wpsc-tax_rate' to provide their own tax solution
|
673 |
-
* Change: Merchant subclasses now have access to $this->address_keys
|
674 |
-
* Change: Grid Settings are now always visible
|
675 |
-
* Change: Total Shipping is no longer included in notification email when shipping is disabled
|
676 |
-
* Change: Thumbnail size for single product view now defaults to Single Product Page thumbnail size option
|
677 |
-
* Change: wpsc_the_product_thumbnail() defaults to 'medium-single-product' size when in single product view
|
678 |
-
* Fix: Update notice being displayed when it has already been completed
|
679 |
-
* Fix: Broken image in latest products widget
|
680 |
-
* Fix: Custom checkout field not always saved
|
681 |
-
* Fix: Downloadable file list not updated after existing files are selected
|
682 |
-
* Fix: Already attached downloadable files are duplicated each time you select an existing downloadable file
|
683 |
-
* Fix: Inconsistent behavior when adding a new field to a checkout form set
|
684 |
-
* Fix: Custom product slug not editable
|
685 |
-
* Fix: Incompatibility issues with shipping helper and modules
|
686 |
-
* Fix: Product meta are not included in Google product feed
|
687 |
-
* Fix: Incorrect variation "from" price
|
688 |
-
* Fix: Shortcode not working in single product description
|
689 |
-
* Fix: Item cost not correctly calculated in paypal-standard-merchant
|
690 |
-
* Fix: Invalid SSL URL for some images
|
691 |
-
* Fix: Select from wrong table in WPSC_Merchant::get_authcode()
|
692 |
-
* Fix: Wrong use of get_query_var() in wpsc_category_id()
|
693 |
-
* Fix: Table `wordpress.wp_wpsc_product_list` doesn't exist
|
694 |
-
* Fix: ?items_per_page=all is ignored
|
695 |
-
* Fix: Duplicate transaction result emails
|
696 |
-
* Fix: Wrong filter in wpsc_item_add_preview_file()
|
697 |
-
* Fix: Wrong display type when using advanced search view mode and viewing a category
|
698 |
-
* Fix: Category list is displayed in tag archive
|
699 |
-
* Fix: wpsc_display_products_page() outputs "Fail" when the product shortcode is used 10 times (no kidding)
|
700 |
-
* Fix: Single product view's thumbnail size is incorrect
|
701 |
-
* Fix: Wrong featured thumbnail is displayed in Single Product View when there are multiple attached product images
|
702 |
-
* Fix: Incorrect condition statements in WPSC_Coupons::compare_logic()
|
703 |
-
* Fix: Can't add new field to checkout form set in IE
|
704 |
-
* Fix: Missing trash icon when adding custom options to dropdowns in checkout form
|
705 |
-
* Fix: Custom select, checkbox and radio fields are displayed as textbox on [userlog] page
|
706 |
-
* Fix: Custom checkboxes, radios and select fields are not properly populated in Checkout form
|
707 |
-
* Fix: Attachment metadata are not properly generated when converting product thumbnails from 3.7.x to 3.8
|
708 |
-
|
709 |
-
= 3.8.1 =
|
710 |
-
* Fix: Special price mix-up when ugprade to 3.8
|
711 |
-
* Fix: Missing database update notice
|
712 |
-
* Fix: Breadcrumb markup and style fixes
|
713 |
-
* Fix: Deprecate WPSC_Query()
|
714 |
-
* Fix: Deprecate wpsc_total_product_count()
|
715 |
-
* Fix: Deprecate wpsc_print_product_list()
|
716 |
-
* Change: Warning message for PHP 4 users. GoldCart requires PHP 5 or above.
|
717 |
-
* Change: Don't display categories when there's a search
|
718 |
-
|
719 |
-
= 3.8 =
|
720 |
-
* Utilize custom post types for products
|
721 |
-
* Utilize custom taxonomy for categories and variations
|
722 |
-
* Database optimization
|
723 |
-
* Redesigned taxes and shipping systems
|
724 |
-
* New user interface
|
725 |
-
* Integrates with WordPress Media Manager
|
726 |
-
* Better template integration for designers
|
727 |
-
* Optimized for ticketing (Tikipress)
|
728 |
-
|
729 |
-
|
730 |
== Frequently Asked Questions ==
|
731 |
|
732 |
= How do I customize WP e-Commerce =
|
2 |
Contributors: mufasa, mychelle, garyc40, JustinSainton
|
3 |
Donate link: http://getshopped.org
|
4 |
Tags: e-commerce, wp-e-commerce, shop, cart, paypal, authorize, stock control, ecommerce, shipping, tax
|
5 |
+
Requires at least: 3.3
|
6 |
Tested up to: 3.5
|
7 |
Stable tag: 3.8.9.5
|
8 |
|
155 |
After upgrading from earlier versions look for link "Update Store". This will update your database structure to work with new version.
|
156 |
|
157 |
== Changelog ==
|
158 |
+
= 3.8.10 =
|
159 |
+
* New: Coupon UI is revamped.
|
160 |
+
* New: [Shipwire] Addition of Shipping Services, Economy, Plus & Premium.
|
161 |
+
* Change: After filling out a registration form, the user is logged in.
|
162 |
+
* Change: Limit quantity of individual products that can be added to the cart. Default value is filterable.
|
163 |
+
* Change: Remove FPDF which is not used any more.
|
164 |
+
* Change: Return cart item messages as key => value array rather than HTML.
|
165 |
+
* Change: Variation table class orderby to 'menu_order title'
|
166 |
+
* Change: When displaying packing slip, form data should be output in the same order as that of checkout page.
|
167 |
+
* Fix: "you save" prices are not correct on variations with a value over 1000
|
168 |
+
* Fix: Cart widget missing closing </div> tag.
|
169 |
+
* Fix: Display the "You save" price as a currency, not just a raw unformatted number
|
170 |
+
* Fix: Ensure all variations are deleted when deleting a product.
|
171 |
+
* Fix: Foreign characters are not displayed correctly in packing slip.
|
172 |
+
* Fix: Improved performance with variations.
|
173 |
+
* Fix: JavaScript error when no variations exist in admin.
|
174 |
+
* Fix: Make sure Add / Edit Product page respects decimal and thousands separators set in Settings->Store->General.
|
175 |
+
* Fix: Manual / Test Payment instructions don't appear on transaction results page and email.
|
176 |
+
* Fix: Only print Google Analytics scripts on transaction results footer
|
177 |
+
* Fix: PHP Warnings when bulk editing variations.
|
178 |
+
* Fix: Prevent old paypal express from hijacking new paypal express callback.
|
179 |
+
* Fix: Product category pages don't respect pagination and sort order settings.
|
180 |
+
* Fix: Re-generate products pages' IDs after plugin reactivation.
|
181 |
+
* Fix: Refactor user account page
|
182 |
+
* Fix: SQL IN error in wpsc_populate_also_bought_list().
|
183 |
+
* Fix: Switching a purchase log status to "Closed Order" doesn't reduce stocks.
|
184 |
+
* Fix: WPML compatibility
|
185 |
+
* Fix: Wrong cache set for checkout form data.
|
186 |
+
* Fix: split() deprecation notice in PHP 5.3+
|
187 |
+
* Fix: stripslashes issues when duplicating products.
|
188 |
+
|
189 |
= 3.8.9.5 =
|
190 |
* New: Polish translation.
|
191 |
* Fix: Attempt to regenerate customer ID if it's invalid to avoid fatal errors.
|
648 |
* Fix: Faulty php tag in template (issue 589).
|
649 |
* Fix: PHP Notices when checking out with shipping disabled.
|
650 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
651 |
== Frequently Asked Questions ==
|
652 |
|
653 |
= How do I customize WP e-Commerce =
|
screenshot-1.png
CHANGED
File without changes
|
screenshot-2.png
CHANGED
File without changes
|
screenshot-3.png
CHANGED
File without changes
|
screenshot-4.png
CHANGED
File without changes
|
wp-shopping-cart.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: WP e-Commerce
|
4 |
* Plugin URI: http://getshopped.org/
|
5 |
* Description: A plugin that provides a WordPress Shopping Cart. See also: <a href="http://getshopped.org" target="_blank">GetShopped.org</a> | <a href="http://getshopped.org/forums/" target="_blank">Support Forum</a> | <a href="http://docs.getshopped.org/" target="_blank">Documentation</a>
|
6 |
-
* Version: 3.8.
|
7 |
* Author: Instinct Entertainment
|
8 |
* Author URI: http://getshopped.org/
|
9 |
**/
|
@@ -16,16 +16,30 @@
|
|
16 |
* @package wp-e-commerce
|
17 |
*/
|
18 |
class WP_eCommerce {
|
|
|
|
|
|
|
19 |
|
20 |
/**
|
21 |
* Start WPEC on plugins loaded
|
|
|
|
|
|
|
22 |
*/
|
23 |
function WP_eCommerce() {
|
24 |
add_action( 'plugins_loaded', array( $this, 'init' ), 8 );
|
|
|
25 |
}
|
26 |
|
27 |
/**
|
28 |
* Takes care of loading up WPEC
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
*/
|
30 |
function init() {
|
31 |
// Previous to initializing
|
@@ -41,8 +55,30 @@ class WP_eCommerce {
|
|
41 |
do_action( 'wpsc_init' );
|
42 |
}
|
43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
/**
|
45 |
* Initialize the basic WPEC constants
|
|
|
|
|
|
|
|
|
|
|
46 |
*/
|
47 |
function start() {
|
48 |
// Set the core file path
|
@@ -65,6 +101,14 @@ class WP_eCommerce {
|
|
65 |
|
66 |
/**
|
67 |
* Setup the WPEC core constants
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
*/
|
69 |
function constants() {
|
70 |
// Define globals and constants used by wp-e-commerce
|
@@ -94,18 +138,46 @@ class WP_eCommerce {
|
|
94 |
|
95 |
/**
|
96 |
* Include the rest of WPEC's files
|
|
|
|
|
|
|
97 |
*/
|
98 |
function includes() {
|
99 |
require_once( WPSC_FILE_PATH . '/wpsc-core/wpsc-functions.php' );
|
100 |
require_once( WPSC_FILE_PATH . '/wpsc-core/wpsc-installer.php' );
|
101 |
require_once( WPSC_FILE_PATH . '/wpsc-core/wpsc-includes.php' );
|
102 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
// Any additional file includes can hook in here
|
104 |
do_action( 'wpsc_includes' );
|
105 |
}
|
106 |
|
107 |
/**
|
108 |
* Setup the WPEC core
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
*/
|
110 |
function load() {
|
111 |
// Before setup
|
@@ -147,6 +219,10 @@ class WP_eCommerce {
|
|
147 |
|
148 |
/**
|
149 |
* WPEC Activation Hook
|
|
|
|
|
|
|
|
|
150 |
*/
|
151 |
function install() {
|
152 |
global $wp_version;
|
@@ -162,6 +238,13 @@ class WP_eCommerce {
|
|
162 |
|
163 |
}
|
164 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
public function deactivate() {
|
166 |
foreach ( wp_get_schedules() as $cron => $schedule ) {
|
167 |
wp_clear_scheduled_hook( "wpsc_{$cron}_cron_task" );
|
@@ -174,5 +257,4 @@ $wpec = new WP_eCommerce();
|
|
174 |
|
175 |
// Activation
|
176 |
register_activation_hook( __FILE__, array( $wpec, 'install' ) );
|
177 |
-
register_deactivation_hook( __FILE__, array( $wpec, 'deactivate' ) );
|
178 |
-
?>
|
3 |
* Plugin Name: WP e-Commerce
|
4 |
* Plugin URI: http://getshopped.org/
|
5 |
* Description: A plugin that provides a WordPress Shopping Cart. See also: <a href="http://getshopped.org" target="_blank">GetShopped.org</a> | <a href="http://getshopped.org/forums/" target="_blank">Support Forum</a> | <a href="http://docs.getshopped.org/" target="_blank">Documentation</a>
|
6 |
+
* Version: 3.8.10-beta
|
7 |
* Author: Instinct Entertainment
|
8 |
* Author URI: http://getshopped.org/
|
9 |
**/
|
16 |
* @package wp-e-commerce
|
17 |
*/
|
18 |
class WP_eCommerce {
|
19 |
+
private $components = array(
|
20 |
+
'merchant' => array(),
|
21 |
+
);
|
22 |
|
23 |
/**
|
24 |
* Start WPEC on plugins loaded
|
25 |
+
*
|
26 |
+
* @uses add_action() Attaches to 'plugins_loaded' hook
|
27 |
+
* @uses add_action() Attaches to 'wpsc_components' hook
|
28 |
*/
|
29 |
function WP_eCommerce() {
|
30 |
add_action( 'plugins_loaded', array( $this, 'init' ), 8 );
|
31 |
+
add_action( 'wpsc_components', array( $this, '_register_core_components' ) );
|
32 |
}
|
33 |
|
34 |
/**
|
35 |
* Takes care of loading up WPEC
|
36 |
+
*
|
37 |
+
* @uses WP_eCommerce::start() Initializes basic WPEC constants
|
38 |
+
* @uses WP_eCommerce::constants() Setup WPEC core constants
|
39 |
+
* @uses WP_eCommerce::includes() Includes the WPEC files
|
40 |
+
* @uses WP_eCommerce::load() Setup WPEC Core
|
41 |
+
* @uses do_action() Calls 'wpsc_pre_init' which runs before WPEC initializes
|
42 |
+
* @uses do_action() Calls 'wpsc_init' runs just after WPEC initializes
|
43 |
*/
|
44 |
function init() {
|
45 |
// Previous to initializing
|
55 |
do_action( 'wpsc_init' );
|
56 |
}
|
57 |
|
58 |
+
/**
|
59 |
+
* @todo we need documentation finished here
|
60 |
+
*
|
61 |
+
* @param array $components
|
62 |
+
*
|
63 |
+
* @return array
|
64 |
+
*/
|
65 |
+
public function _register_core_components( $components ) {
|
66 |
+
$components['merchant']['core-v2'] = array(
|
67 |
+
'title' => __( 'WP e-Commerce Merchant API v2', 'wpsc' ),
|
68 |
+
'includes' =>
|
69 |
+
WPSC_FILE_PATH . '/wpsc-components/merchant-core-v2/merchant-core-v2.php'
|
70 |
+
);
|
71 |
+
|
72 |
+
return $components;
|
73 |
+
}
|
74 |
+
|
75 |
/**
|
76 |
* Initialize the basic WPEC constants
|
77 |
+
*
|
78 |
+
* @uses plugins_url() Retrieves url to plugins directory
|
79 |
+
* @uses load_plugin_textdomain() Loads plugin transations strings
|
80 |
+
* @uses plugin_basename() Gets the basename of a plugin (extracts the name of a plugin from its filename)
|
81 |
+
* @uses do_action() Calls 'wpsc_started' which runs after WPEC has started
|
82 |
*/
|
83 |
function start() {
|
84 |
// Set the core file path
|
101 |
|
102 |
/**
|
103 |
* Setup the WPEC core constants
|
104 |
+
*
|
105 |
+
* @uses wpsc_core_constants() Loads the WPEC Core constants
|
106 |
+
* @uses wpsc_core_is_multisite() Checks if this is a multisite install. True if is multisite
|
107 |
+
* @uses wpsc_core_load_session() Loads the WPEC core session
|
108 |
+
* @uses wpsc_core_constants_version_processing() Checks and sets a constant for WordPress version
|
109 |
+
* @uses wpsc_core_constants_table_names() Sets constants for WPEC table names
|
110 |
+
* @uses wpsc_core_constants_uploads() Set the upload related constants
|
111 |
+
* @uses do_action() Calls 'wpsc_constants' which runs after the WPEC constants are defined
|
112 |
*/
|
113 |
function constants() {
|
114 |
// Define globals and constants used by wp-e-commerce
|
138 |
|
139 |
/**
|
140 |
* Include the rest of WPEC's files
|
141 |
+
*
|
142 |
+
* @uses apply_filters() Calls 'wpsc_components' private merchant components
|
143 |
+
* @uses do_action() Calls 'wpsc_includes' which runs after WPEC files have been included
|
144 |
*/
|
145 |
function includes() {
|
146 |
require_once( WPSC_FILE_PATH . '/wpsc-core/wpsc-functions.php' );
|
147 |
require_once( WPSC_FILE_PATH . '/wpsc-core/wpsc-installer.php' );
|
148 |
require_once( WPSC_FILE_PATH . '/wpsc-core/wpsc-includes.php' );
|
149 |
|
150 |
+
$this->components = apply_filters( 'wpsc_components', $this->components );
|
151 |
+
|
152 |
+
foreach ( $this->components as $type => $registered ) {
|
153 |
+
foreach ( $registered as $component ) {
|
154 |
+
if ( ! is_array( $component['includes'] ) )
|
155 |
+
$component['includes'] = array( $component['includes' ] );
|
156 |
+
foreach ( $component['includes'] as $include ) {
|
157 |
+
require_once( $include );
|
158 |
+
}
|
159 |
+
}
|
160 |
+
}
|
161 |
+
|
162 |
// Any additional file includes can hook in here
|
163 |
do_action( 'wpsc_includes' );
|
164 |
}
|
165 |
|
166 |
/**
|
167 |
* Setup the WPEC core
|
168 |
+
*
|
169 |
+
* @uses do_action() Calls 'wpsc_pre_load' which runs before WPEC setup
|
170 |
+
* @uses do_action() Calls 'wpsc_before_init' which is a legacy action
|
171 |
+
* @uses _wpsc_action_create_customer_id() Sets up a customer id just in case we don't have it
|
172 |
+
* @uses wpsc_core_setup_globals() Sets up the WPEC core globals
|
173 |
+
* @uses wpsc_core_setup_cart() Sets up the WPEC core cart
|
174 |
+
* @uses wpsc_core_load_thumbnail_sizes() Sets up the core WPEC thumbnail sizes
|
175 |
+
* @uses wpsc_core_load_purchase_log_statuses() Loads the statuses for the purchase logs
|
176 |
+
* @uses wpsc_core_load_checkout_data() Sets up the core WPEC form checkout data
|
177 |
+
* @uses wpsc_core_load_gateways() Loads the merchants from the directory
|
178 |
+
* @uses wpsc_core_load_shipping_modules() Gets shipping modules from the shipping directory
|
179 |
+
* @uses wpsc_core_load_page_titles() Loads the core WPEC pagetitles
|
180 |
+
* @uses do_action() Calls 'wpsc_loaded' which runs after WPEC is fully loaded
|
181 |
*/
|
182 |
function load() {
|
183 |
// Before setup
|
219 |
|
220 |
/**
|
221 |
* WPEC Activation Hook
|
222 |
+
*
|
223 |
+
* @uses deactivate_plugins() Deactivates plugins by string
|
224 |
+
* @uses wp_die() Kills loading and returns the HTML
|
225 |
+
* @uses wpsc_install() Performs checks to see if this is a clean install or not
|
226 |
*/
|
227 |
function install() {
|
228 |
global $wp_version;
|
238 |
|
239 |
}
|
240 |
|
241 |
+
/**
|
242 |
+
* Runs the WPEC deactivation routines which basically just removes the cron
|
243 |
+
* jobs that WPEC has set.
|
244 |
+
*
|
245 |
+
* @uses wp_get_schedules() Retrieves all filtered Cron recurrences
|
246 |
+
* @uses wp_clear_scheduled_hook() Removes any hooks on cron
|
247 |
+
*/
|
248 |
public function deactivate() {
|
249 |
foreach ( wp_get_schedules() as $cron => $schedule ) {
|
250 |
wp_clear_scheduled_hook( "wpsc_{$cron}_cron_task" );
|
257 |
|
258 |
// Activation
|
259 |
register_activation_hook( __FILE__, array( $wpec, 'install' ) );
|
260 |
+
register_deactivation_hook( __FILE__, array( $wpec, 'deactivate' ) );
|
|
wpsc-admin/admin-form-functions.php
CHANGED
@@ -256,7 +256,7 @@ function wpsc_right_now() {
|
|
256 |
|
257 |
|
258 |
function wpsc_packing_slip( $purchase_id ) {
|
259 |
-
echo "<!DOCTYPE html><html><head><title>" . __( 'Packing Slip', 'wpsc' ) . "</title></head><body id='wpsc-packing-slip'>";
|
260 |
global $wpdb;
|
261 |
$purch_sql = $wpdb->prepare( "SELECT * FROM `".WPSC_TABLE_PURCHASE_LOGS."` WHERE `id`=%d", $purchase_id );
|
262 |
$purch_data = $wpdb->get_row( $purch_sql, ARRAY_A ) ;
|
@@ -272,7 +272,7 @@ function wpsc_packing_slip( $purchase_id ) {
|
|
272 |
|
273 |
echo "<table>\n\r";
|
274 |
|
275 |
-
$form_sql = $wpdb->prepare( "SELECT * FROM `".
|
276 |
$input_data = $wpdb->get_results($form_sql,ARRAY_A);
|
277 |
|
278 |
foreach($input_data as $input_row) {
|
@@ -281,7 +281,7 @@ function wpsc_packing_slip( $purchase_id ) {
|
|
281 |
|
282 |
|
283 |
if($input_data != null) {
|
284 |
-
$form_data = $wpdb->get_results("SELECT * FROM `".WPSC_TABLE_CHECKOUT_FORMS."` WHERE `active` = '1'",ARRAY_A);
|
285 |
|
286 |
foreach($form_data as $form_field) {
|
287 |
|
256 |
|
257 |
|
258 |
function wpsc_packing_slip( $purchase_id ) {
|
259 |
+
echo "<!DOCTYPE html><html><meta http-equiv=\"content-type\" content=\"text-html; charset=utf-8\"><head><title>" . __( 'Packing Slip', 'wpsc' ) . "</title></head><body id='wpsc-packing-slip'>";
|
260 |
global $wpdb;
|
261 |
$purch_sql = $wpdb->prepare( "SELECT * FROM `".WPSC_TABLE_PURCHASE_LOGS."` WHERE `id`=%d", $purchase_id );
|
262 |
$purch_data = $wpdb->get_row( $purch_sql, ARRAY_A ) ;
|
272 |
|
273 |
echo "<table>\n\r";
|
274 |
|
275 |
+
$form_sql = $wpdb->prepare( "SELECT * FROM `".WPSC_TABLE_SUBMITTED_FORM_DATA."` WHERE `log_id` = %d", $purchase_id );
|
276 |
$input_data = $wpdb->get_results($form_sql,ARRAY_A);
|
277 |
|
278 |
foreach($input_data as $input_row) {
|
281 |
|
282 |
|
283 |
if($input_data != null) {
|
284 |
+
$form_data = $wpdb->get_results( "SELECT * FROM `".WPSC_TABLE_CHECKOUT_FORMS."` WHERE `active` = '1' ORDER BY `checkout_order`" , ARRAY_A );
|
285 |
|
286 |
foreach($form_data as $form_field) {
|
287 |
|
wpsc-admin/admin.php
CHANGED
@@ -34,11 +34,14 @@ if ( ! get_option( 'wpsc_checkout_form_sets' ) ) {
|
|
34 |
}
|
35 |
/**
|
36 |
* wpsc_query_vars_product_list sets the ordering for the edit-products page list
|
37 |
-
* @access public
|
38 |
*
|
39 |
* @since 3.8
|
40 |
-
* @
|
41 |
-
*
|
|
|
|
|
|
|
|
|
42 |
*/
|
43 |
function wpsc_query_vars_product_list( $vars ){
|
44 |
|
@@ -58,12 +61,15 @@ function wpsc_query_vars_product_list( $vars ){
|
|
58 |
|
59 |
/**
|
60 |
* setting the screen option to between 1 and 999
|
61 |
-
* @access public
|
62 |
*
|
63 |
* @since 3.8
|
64 |
-
* @
|
65 |
-
*
|
66 |
-
* @
|
|
|
|
|
|
|
|
|
67 |
* @return $value after changes...
|
68 |
*/
|
69 |
function wpsc_set_screen_option($status, $option, $value){
|
@@ -82,8 +88,12 @@ add_filter('set-screen-option', 'wpsc_set_screen_option', 99, 3);
|
|
82 |
* @access public
|
83 |
*
|
84 |
* @since 3.8
|
85 |
-
* @
|
86 |
-
*
|
|
|
|
|
|
|
|
|
87 |
* @return $per_page after changes...
|
88 |
*/
|
89 |
function wpsc_drag_and_drop_ordering($per_page, $post_type){
|
@@ -94,12 +104,15 @@ function wpsc_drag_and_drop_ordering($per_page, $post_type){
|
|
94 |
}
|
95 |
add_filter( 'request', 'wpsc_query_vars_product_list' );
|
96 |
add_filter('edit_posts_per_page' , 'wpsc_drag_and_drop_ordering', 10, 2 );
|
|
|
97 |
/**
|
98 |
* Checks whether to display or hide the update wp-e-commerce link
|
99 |
*
|
|
|
100 |
* @access public
|
101 |
*
|
102 |
-
* @
|
|
|
103 |
* @return boolean true - show link, false- hide link
|
104 |
*/
|
105 |
function wpsc_show_update_link() {
|
@@ -123,6 +136,18 @@ function wpsc_show_update_link() {
|
|
123 |
*
|
124 |
* If the permissions are changed here, they will likewise need to be changed for the other sections of the admin that either use ajax
|
125 |
* or bypass the normal download system.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
*/
|
127 |
function wpsc_admin_pages() {
|
128 |
|
@@ -216,6 +241,11 @@ function wpsc_admin_pages() {
|
|
216 |
* add_contextual_help() is supported as well as $screen->add_help_tab().
|
217 |
*
|
218 |
* @since 3.8.8
|
|
|
|
|
|
|
|
|
|
|
219 |
*/
|
220 |
function wpsc_add_help_tabs() {
|
221 |
$tabs = array(
|
@@ -298,18 +328,23 @@ function wpsc_add_help_tabs() {
|
|
298 |
}
|
299 |
$content .= '<p>' . implode( '<br />', $links ) . '</p>';
|
300 |
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
$
|
305 |
-
|
306 |
-
|
307 |
-
'content' => $content,
|
308 |
-
) );
|
309 |
-
}
|
310 |
}
|
311 |
}
|
312 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
313 |
function wpsc_admin_include_purchase_logs_css_and_js() {
|
314 |
wp_enqueue_script( 'wp-e-commerce-purchase-logs', WPSC_URL . '/wpsc-admin/js/purchase-logs.js', array( 'jquery' ), WPSC_VERSION . '.' . WPSC_MINOR_VERSION );
|
315 |
wp_localize_script( 'wp-e-commerce-purchase-logs', 'WPSC_Purchase_Logs_Admin', array(
|
@@ -325,24 +360,54 @@ function wpsc_admin_include_purchase_logs_css_and_js() {
|
|
325 |
) );
|
326 |
}
|
327 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
328 |
function wpsc_load_settings_page() {
|
329 |
require_once('settings-page.php');
|
330 |
WPSC_Settings_Page::get_instance();
|
331 |
}
|
332 |
|
|
|
|
|
|
|
|
|
|
|
333 |
function wpsc_load_purchase_logs_page() {
|
334 |
require_once( WPSC_FILE_PATH . '/wpsc-admin/includes/purchase-log-list-table-class.php' );
|
335 |
require_once( WPSC_FILE_PATH . '/wpsc-admin/display-sales-logs.php' );
|
336 |
$page = new WPSC_Purchase_Log_Page();
|
337 |
}
|
338 |
|
|
|
|
|
|
|
|
|
|
|
339 |
function wpsc_display_purchase_logs_page() {
|
340 |
do_action( 'wpsc_display_purchase_logs_page' );
|
341 |
}
|
342 |
|
|
|
|
|
|
|
|
|
|
|
|
|
343 |
function wpsc_product_log_rss_feed() {
|
344 |
echo "<link type='application/rss+xml' href='" . add_query_arg( array( 'rss' => 'true', 'rss_key' => 'key', 'action' => 'purchase_log', 'type' => 'rss' ), admin_url( 'index.php' ) ) . "' title='" . esc_attr( 'WP e-Commerce Purchase Log RSS', 'wpsc' ) . "' rel='alternate' />";
|
345 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
346 |
function wpsc_admin_include_coupon_js() {
|
347 |
|
348 |
// Variables
|
@@ -355,13 +420,20 @@ function wpsc_admin_include_coupon_js() {
|
|
355 |
// Coupon JS
|
356 |
wp_enqueue_script( 'wp-e-commerce-admin-parameters', admin_url( '/wp-admin/admin.php?wpsc_admin_dynamic_js=true' ), false, $version_identifier );
|
357 |
wp_enqueue_script( 'livequery', WPSC_URL . '/wpsc-admin/js/jquery.livequery.js', array( 'jquery' ), '1.0.3' );
|
358 |
-
wp_enqueue_script( '
|
359 |
-
wp_enqueue_script( 'wp-e-commerce-admin_legacy', WPSC_URL . '/wpsc-admin/js/admin-legacy.js', array( 'jquery', 'jquery-ui-core', 'jquery-ui-sortable', '
|
|
|
|
|
360 |
}
|
361 |
|
362 |
/**
|
363 |
-
*
|
364 |
-
*
|
|
|
|
|
|
|
|
|
|
|
365 |
*/
|
366 |
function wpsc_admin_include_optionspage_css_and_js() {
|
367 |
$version_identifier = WPSC_VERSION . "." . WPSC_MINOR_VERSION;
|
@@ -387,6 +459,12 @@ function wpsc_admin_include_optionspage_css_and_js() {
|
|
387 |
wp_enqueue_style( 'wp-e-commerce-ui-tabs', WPSC_URL . '/wpsc-admin/css/jquery.ui.tabs.css', false, $version_identifier, 'all' );
|
388 |
}
|
389 |
|
|
|
|
|
|
|
|
|
|
|
|
|
390 |
function wpsc_meta_boxes() {
|
391 |
global $post;
|
392 |
$pagename = 'wpsc-product';
|
@@ -412,11 +490,25 @@ function wpsc_meta_boxes() {
|
|
412 |
add_meta_box( 'wpsc_product_shipping_forms', __('Shipping', 'wpsc'), 'wpsc_product_shipping_forms_metabox', $pagename, 'normal', 'high' );
|
413 |
add_meta_box( 'wpsc_product_advanced_forms', __('Advanced Settings', 'wpsc'), 'wpsc_product_advanced_forms', $pagename, 'normal', 'high' );
|
414 |
}
|
415 |
-
|
416 |
add_action( 'admin_footer', 'wpsc_meta_boxes' );
|
417 |
add_action( 'admin_enqueue_scripts', 'wpsc_admin_include_css_and_js_refac' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
418 |
function wpsc_admin_include_css_and_js_refac( $pagehook ) {
|
419 |
-
global $post_type, $
|
|
|
|
|
420 |
|
421 |
if ( version_compare( get_bloginfo( 'version' ), '3.3', '<' ) )
|
422 |
wp_admin_css( 'dashboard' );
|
@@ -498,6 +590,11 @@ function wpsc_admin_include_css_and_js_refac( $pagehook ) {
|
|
498 |
wp_enqueue_style( 'wp-e-commerce-admin', WPSC_URL . '/wpsc-admin/css/admin.css', false, $version_identifier, 'all' );
|
499 |
}
|
500 |
|
|
|
|
|
|
|
|
|
|
|
501 |
function wpsc_admin_dynamic_js() {
|
502 |
header( 'Content-Type: text/javascript' );
|
503 |
header( 'Expires: ' . gmdate( 'r', mktime( 0, 0, 0, date( 'm' ), ( date( 'd' ) + 12 ), date( 'Y' ) ) ) . '' );
|
@@ -567,6 +664,11 @@ if ( isset( $_GET['wpsc_admin_dynamic_js'] ) && ( $_GET['wpsc_admin_dynamic_js']
|
|
567 |
add_action( "admin_init", 'wpsc_admin_dynamic_js' );
|
568 |
}
|
569 |
|
|
|
|
|
|
|
|
|
|
|
570 |
function wpsc_admin_dynamic_css() {
|
571 |
header( 'Content-Type: text/css' );
|
572 |
header( 'Expires: ' . gmdate( 'r', mktime( 0, 0, 0, date( 'm' ), ( date( 'd' ) + 12 ), date( 'Y' ) ) ) . '' );
|
@@ -605,7 +707,17 @@ if ( isset( $_GET['wpsc_admin_dynamic_css'] ) && ( $_GET['wpsc_admin_dynamic_css
|
|
605 |
|
606 |
add_action( 'admin_menu', 'wpsc_admin_pages' );
|
607 |
|
608 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
609 |
function wpsc_admin_latest_activity() {
|
610 |
global $wpdb;
|
611 |
$totalOrders = $wpdb->get_var( "SELECT COUNT(*) FROM `" . WPSC_TABLE_PURCHASE_LOGS . "`" );
|
@@ -676,16 +788,19 @@ function wpsc_admin_latest_activity() {
|
|
676 |
echo "</div>";
|
677 |
echo "<div style='clear:both'></div>";
|
678 |
}
|
679 |
-
|
680 |
add_action( 'wpsc_admin_pre_activity', 'wpsc_admin_latest_activity' );
|
681 |
|
682 |
-
|
683 |
/*
|
684 |
* Dashboard Widget Setup
|
685 |
* Adds the dashboard widgets if the user is an admin
|
|
|
686 |
* Since 3.6
|
|
|
|
|
|
|
|
|
|
|
687 |
*/
|
688 |
-
|
689 |
function wpsc_dashboard_widget_setup() {
|
690 |
$version_identifier = WPSC_VERSION . "." . WPSC_MINOR_VERSION;
|
691 |
// Enqueue the styles and scripts necessary
|
@@ -744,6 +859,12 @@ function wpsc_dashboard_widget_setup() {
|
|
744 |
|
745 |
add_action( 'wp_dashboard_setup', 'wpsc_dashboard_widget_setup' );
|
746 |
|
|
|
|
|
|
|
|
|
|
|
|
|
747 |
function wpsc_dashboard_news() {
|
748 |
$rss = fetch_feed( 'http://getshopped.org/category/wp-e-commerce-plugin/' );
|
749 |
$args = array( 'show_author' => 1, 'show_date' => 1, 'show_summary' => 1, 'items'=>3 );
|
@@ -751,6 +872,14 @@ function wpsc_dashboard_news() {
|
|
751 |
|
752 |
}
|
753 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
754 |
function wpsc_get_quarterly_summary() {
|
755 |
(int)$firstquarter = get_option( 'wpsc_first_quart' );
|
756 |
(int)$secondquarter = get_option( 'wpsc_second_quart' );
|
@@ -765,6 +894,12 @@ function wpsc_get_quarterly_summary() {
|
|
765 |
return $results;
|
766 |
}
|
767 |
|
|
|
|
|
|
|
|
|
|
|
|
|
768 |
function wpsc_quarterly_dashboard_widget() {
|
769 |
if ( get_option( 'wpsc_business_year_start' ) == false ) {
|
770 |
?>
|
@@ -850,7 +985,12 @@ function wpsc_quarterly_dashboard_widget() {
|
|
850 |
}
|
851 |
}
|
852 |
|
853 |
-
|
|
|
|
|
|
|
|
|
|
|
854 |
function wpsc_dashboard_widget() {
|
855 |
do_action( 'wpsc_admin_pre_activity' );
|
856 |
do_action( 'wpsc_admin_post_activity' );
|
@@ -863,8 +1003,12 @@ function wpsc_dashboard_widget() {
|
|
863 |
|
864 |
/*
|
865 |
* Dashboard Widget Last Four Month Sales.
|
|
|
|
|
|
|
|
|
|
|
866 |
*/
|
867 |
-
|
868 |
function wpsc_dashboard_4months_widget() {
|
869 |
global $wpdb;
|
870 |
|
@@ -948,6 +1092,12 @@ function wpsc_dashboard_4months_widget() {
|
|
948 |
|
949 |
//Modification to allow for multiple column layout
|
950 |
|
|
|
|
|
|
|
|
|
|
|
|
|
951 |
function wpec_two_columns( $columns, $screen ) {
|
952 |
if ( $screen == 'toplevel_page_wpsc-edit-products' )
|
953 |
$columns['toplevel_page_wpsc-edit-products'] = 2;
|
@@ -956,12 +1106,24 @@ function wpec_two_columns( $columns, $screen ) {
|
|
956 |
}
|
957 |
add_filter( 'screen_layout_columns', 'wpec_two_columns', 10, 2 );
|
958 |
|
|
|
|
|
|
|
|
|
|
|
959 |
function wpsc_fav_action( $actions ) {
|
960 |
$actions['post-new.php?post_type=wpsc-product'] = array( 'New Product', 'manage_options' );
|
961 |
return $actions;
|
962 |
}
|
963 |
add_filter( 'favorite_actions', 'wpsc_fav_action' );
|
964 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
965 |
function wpsc_print_admin_scripts() {
|
966 |
$scheme = is_ssl() ? 'https' : 'http';
|
967 |
wp_enqueue_script( 'wp-e-commerce-dynamic', home_url( "/index.php?wpsc_user_dynamic_js=true", $scheme ) );
|
@@ -972,6 +1134,11 @@ function wpsc_print_admin_scripts() {
|
|
972 |
*
|
973 |
* @since 3.8.9
|
974 |
* @access private
|
|
|
|
|
|
|
|
|
|
|
975 |
*/
|
976 |
function _wpsc_action_permalink_structure_changed() {
|
977 |
$wp_version = get_bloginfo( 'version' );
|
@@ -990,8 +1157,8 @@ function _wpsc_action_permalink_structure_changed() {
|
|
990 |
* Display warning if the user is using WordPress prior to 3.3 because there is a bug with custom
|
991 |
* post type and taxonomy permalink generation.
|
992 |
*
|
993 |
-
* @access private
|
994 |
* @since 3.8.9
|
|
|
995 |
*/
|
996 |
function _wpsc_display_permalink_refresh_notice(){
|
997 |
?>
|
@@ -1007,9 +1174,20 @@ function _wpsc_display_permalink_refresh_notice(){
|
|
1007 |
/**
|
1008 |
* wpsc_ajax_ie_save save changes made using inline edit
|
1009 |
*
|
1010 |
-
* @
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1011 |
*
|
1012 |
-
* @3.8
|
1013 |
* @returns nothing
|
1014 |
*/
|
1015 |
function wpsc_ajax_ie_save() {
|
@@ -1024,7 +1202,7 @@ function wpsc_ajax_ie_save() {
|
|
1024 |
$id = absint( $_POST['id'] );
|
1025 |
$post = get_post( $_POST['id'] );
|
1026 |
$parent = get_post( $post->post_parent );
|
1027 |
-
$terms =
|
1028 |
|
1029 |
$product = array(
|
1030 |
'ID' => $_POST['id'],
|
@@ -1066,6 +1244,11 @@ function wpsc_ajax_ie_save() {
|
|
1066 |
die();
|
1067 |
}
|
1068 |
|
|
|
|
|
|
|
|
|
|
|
1069 |
function wpsc_add_meta_boxes(){
|
1070 |
add_meta_box( 'dashboard_right_now', __( 'Current Month', 'wpsc' ), 'wpsc_right_now', 'dashboard_page_wpsc-sales-logs', 'top' );
|
1071 |
}
|
@@ -1074,9 +1257,15 @@ function wpsc_add_meta_boxes(){
|
|
1074 |
* Displays notice if user has Great Britain selected as their base country
|
1075 |
* Since 3.8.9, we have deprecated Great Britain in favor of the UK
|
1076 |
*
|
1077 |
-
* @link http://code.google.com/p/wp-e-commerce/issues/detail?id=1079
|
1078 |
* @since 3.8.9
|
1079 |
-
* @
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1080 |
*/
|
1081 |
function _wpsc_action_admin_notices_deprecated_countries_notice() {
|
1082 |
$base_country = get_option( 'base_country' );
|
@@ -1114,6 +1303,21 @@ add_action( 'wp_ajax_variation_sort_order', 'wpsc_ajax_set_variation_order' );
|
|
1114 |
add_action( 'wp_ajax_wpsc_ie_save', 'wpsc_ajax_ie_save' );
|
1115 |
add_action('in_admin_header', 'wpsc_add_meta_boxes');
|
1116 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1117 |
function _wpsc_delete_file( $product_id, $file_name ) {
|
1118 |
global $wpdb;
|
1119 |
|
@@ -1122,18 +1326,31 @@ function _wpsc_delete_file( $product_id, $file_name ) {
|
|
1122 |
return wp_delete_post( $product_id_to_delete, true );
|
1123 |
}
|
1124 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1125 |
function wpsc_duplicate_product_process( $post, $new_parent_id = false ) {
|
1126 |
-
$new_post_date
|
1127 |
$new_post_date_gmt = get_gmt_from_date( $new_post_date );
|
1128 |
|
1129 |
-
$new_post_type
|
1130 |
-
$post_content
|
1131 |
-
$post_content_filtered =
|
1132 |
-
$post_excerpt
|
1133 |
-
$post_title
|
1134 |
-
$post_name
|
1135 |
-
$comment_status
|
1136 |
-
$ping_status
|
1137 |
|
1138 |
$defaults = array(
|
1139 |
'post_status' => $post->post_status,
|
@@ -1141,7 +1358,7 @@ function wpsc_duplicate_product_process( $post, $new_parent_id = false ) {
|
|
1141 |
'ping_status' => $ping_status,
|
1142 |
'post_parent' => $new_parent_id ? $new_parent_id : $post->post_parent,
|
1143 |
'menu_order' => $post->menu_order,
|
1144 |
-
'to_ping' =>
|
1145 |
'pinged' => $post->pinged,
|
1146 |
'post_excerpt' => $post_excerpt,
|
1147 |
'post_title' => $post_title,
|
@@ -1154,6 +1371,8 @@ function wpsc_duplicate_product_process( $post, $new_parent_id = false ) {
|
|
1154 |
if ( 'attachment' == $post->post_type )
|
1155 |
$defaults['guid'] = $post->guid;
|
1156 |
|
|
|
|
|
1157 |
// Insert the new template in the post table
|
1158 |
$new_post_id = wp_insert_post($defaults);
|
1159 |
|
@@ -1171,19 +1390,35 @@ function wpsc_duplicate_product_process( $post, $new_parent_id = false ) {
|
|
1171 |
|
1172 |
/**
|
1173 |
* Copy the taxonomies of a post to another post
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1174 |
*/
|
1175 |
function wpsc_duplicate_taxonomies( $id, $new_id, $post_type ) {
|
1176 |
$taxonomies = get_object_taxonomies( $post_type ); //array("category", "post_tag");
|
1177 |
foreach ( $taxonomies as $taxonomy ) {
|
1178 |
-
$post_terms =
|
1179 |
-
|
1180 |
-
wp_set_object_terms( $new_id, $
|
1181 |
}
|
1182 |
}
|
1183 |
}
|
1184 |
|
1185 |
/**
|
1186 |
* Copy the meta information of a post to another post
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1187 |
*/
|
1188 |
function wpsc_duplicate_product_meta( $id, $new_id ) {
|
1189 |
global $wpdb;
|
@@ -1211,6 +1446,12 @@ function wpsc_duplicate_product_meta( $id, $new_id ) {
|
|
1211 |
|
1212 |
/**
|
1213 |
* Duplicates children product and children meta
|
|
|
|
|
|
|
|
|
|
|
|
|
1214 |
*/
|
1215 |
function wpsc_duplicate_children( $old_parent_id, $new_parent_id ) {
|
1216 |
|
@@ -1228,6 +1469,14 @@ function wpsc_duplicate_children( $old_parent_id, $new_parent_id ) {
|
|
1228 |
|
1229 |
}
|
1230 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1231 |
function _wpsc_admin_notices_3dot8dot9() {
|
1232 |
$message = '<p>' . __( 'You are currently using WP e-Commerce 3.8.9. There have been major changes in WP e-Commerce 3.8.9, so backward-compatibility with existing plugins might not always be guaranteed. If you are unsure, please roll back to 3.8.8.5, and set up a test site with 3.8.9 to make sure WP e-Commerce 3.8.9 is compatible with your existing themes and plugins.<br />If you find any incompatibility issues, please <a href="%1$s">report them to us</a> as well as the other plugins or themes\' developers.' , 'wpsc' ) . '</p>';
|
1233 |
$message .= "\n<p>" . __( '<a href="%2$s">Hide this warning</a>', 'wpsc' ) . '</p>';
|
34 |
}
|
35 |
/**
|
36 |
* wpsc_query_vars_product_list sets the ordering for the edit-products page list
|
|
|
37 |
*
|
38 |
* @since 3.8
|
39 |
+
* @access public
|
40 |
+
*
|
41 |
+
* @uses get_option() Gets option from the DB given key
|
42 |
+
*
|
43 |
+
* @param array $vars req Default query arguments
|
44 |
+
* @return array $vars Modified query arguments
|
45 |
*/
|
46 |
function wpsc_query_vars_product_list( $vars ){
|
47 |
|
61 |
|
62 |
/**
|
63 |
* setting the screen option to between 1 and 999
|
|
|
64 |
*
|
65 |
* @since 3.8
|
66 |
+
* @access public
|
67 |
+
*
|
68 |
+
* @uses update_user_option() Updates user option given userid, key, value
|
69 |
+
*
|
70 |
+
* @param $status
|
71 |
+
* @param string $option req Name of option being saved
|
72 |
+
* @param string $value req Value of option being saved
|
73 |
* @return $value after changes...
|
74 |
*/
|
75 |
function wpsc_set_screen_option($status, $option, $value){
|
88 |
* @access public
|
89 |
*
|
90 |
* @since 3.8
|
91 |
+
* @access public
|
92 |
+
*
|
93 |
+
* @uses get_option() Gets option from the database given key
|
94 |
+
*
|
95 |
+
* @param int $per_page req number of products per page
|
96 |
+
* @param string $post_type req name of current post type
|
97 |
* @return $per_page after changes...
|
98 |
*/
|
99 |
function wpsc_drag_and_drop_ordering($per_page, $post_type){
|
104 |
}
|
105 |
add_filter( 'request', 'wpsc_query_vars_product_list' );
|
106 |
add_filter('edit_posts_per_page' , 'wpsc_drag_and_drop_ordering', 10, 2 );
|
107 |
+
|
108 |
/**
|
109 |
* Checks whether to display or hide the update wp-e-commerce link
|
110 |
*
|
111 |
+
* @since 3.8
|
112 |
* @access public
|
113 |
*
|
114 |
+
* @uses get_option() Gets option from DB given key
|
115 |
+
*
|
116 |
* @return boolean true - show link, false- hide link
|
117 |
*/
|
118 |
function wpsc_show_update_link() {
|
136 |
*
|
137 |
* If the permissions are changed here, they will likewise need to be changed for the other sections of the admin that either use ajax
|
138 |
* or bypass the normal download system.
|
139 |
+
*
|
140 |
+
* @access public
|
141 |
+
*
|
142 |
+
* @uses wpsc_show_update_link() Decides whether or not to show the update link
|
143 |
+
* @uses add_submenu_page() Adds a WordPress submenu page
|
144 |
+
* @uses apply_filters() Calls wpsc_upgrades_cap allows hooking caps for adiministrator
|
145 |
+
* @uses apply_filters() Calls wpsc_coupon_cap allows filtering for the coupon caps
|
146 |
+
* @uses add_options_page() Adds a submenu to the settings page
|
147 |
+
* @uses add_action() Calls 'admin_print_scripts.$edit_options_page prints out WPEC admin scripts
|
148 |
+
* @uses apply_filters() Calls 'wpsc_additional_pages' Passes the page_hooks and product_page URL
|
149 |
+
* @uses do_action() Calls 'wpsc_add_submenu' Allows you to hook in to the WPEC menu
|
150 |
+
* @uses update_option() Updates option given key and value
|
151 |
*/
|
152 |
function wpsc_admin_pages() {
|
153 |
|
241 |
* add_contextual_help() is supported as well as $screen->add_help_tab().
|
242 |
*
|
243 |
* @since 3.8.8
|
244 |
+
* @access public
|
245 |
+
*
|
246 |
+
* @uses get_current_screen() Returns WordPress admin screen object
|
247 |
+
* @uses get_bloginfo() Returns information about the WordPress site
|
248 |
+
* @uses add_help_tab() Used to add a tab to the contextual help menu
|
249 |
*/
|
250 |
function wpsc_add_help_tabs() {
|
251 |
$tabs = array(
|
328 |
}
|
329 |
$content .= '<p>' . implode( '<br />', $links ) . '</p>';
|
330 |
|
331 |
+
$screen->add_help_tab( array(
|
332 |
+
'id' => $screen->id . '_help',
|
333 |
+
'title' => $tab['title'],
|
334 |
+
'content' => $content,
|
335 |
+
) );
|
336 |
+
|
|
|
|
|
|
|
337 |
}
|
338 |
}
|
339 |
|
340 |
+
/**
|
341 |
+
* Includes purchase logs CSS and JS
|
342 |
+
*
|
343 |
+
* @acces public
|
344 |
+
*
|
345 |
+
* @uses wp_enqueue_script() Recommended way of adding scripts in WordPress
|
346 |
+
* @uses wp_localize_script() Adds noncing and other data to the logs script
|
347 |
+
*/
|
348 |
function wpsc_admin_include_purchase_logs_css_and_js() {
|
349 |
wp_enqueue_script( 'wp-e-commerce-purchase-logs', WPSC_URL . '/wpsc-admin/js/purchase-logs.js', array( 'jquery' ), WPSC_VERSION . '.' . WPSC_MINOR_VERSION );
|
350 |
wp_localize_script( 'wp-e-commerce-purchase-logs', 'WPSC_Purchase_Logs_Admin', array(
|
360 |
) );
|
361 |
}
|
362 |
|
363 |
+
/**
|
364 |
+
* Loads the WPEC settings page
|
365 |
+
*
|
366 |
+
* @access public
|
367 |
+
*
|
368 |
+
* @uses WPSC_Settings_Page::get_instance() Gets instance of WPEC settings page
|
369 |
+
*/
|
370 |
function wpsc_load_settings_page() {
|
371 |
require_once('settings-page.php');
|
372 |
WPSC_Settings_Page::get_instance();
|
373 |
}
|
374 |
|
375 |
+
/**
|
376 |
+
* Leads the purchase logs page
|
377 |
+
*
|
378 |
+
* @uses WPSC_Purchase_Log_Page() Loads the edit and view sales page
|
379 |
+
*/
|
380 |
function wpsc_load_purchase_logs_page() {
|
381 |
require_once( WPSC_FILE_PATH . '/wpsc-admin/includes/purchase-log-list-table-class.php' );
|
382 |
require_once( WPSC_FILE_PATH . '/wpsc-admin/display-sales-logs.php' );
|
383 |
$page = new WPSC_Purchase_Log_Page();
|
384 |
}
|
385 |
|
386 |
+
/**
|
387 |
+
* Displays the WPEC purchase logs
|
388 |
+
*
|
389 |
+
* @uses do_action() Calls 'wpsc_display_purchase_logs_page' allows hooking of the sales log page
|
390 |
+
*/
|
391 |
function wpsc_display_purchase_logs_page() {
|
392 |
do_action( 'wpsc_display_purchase_logs_page' );
|
393 |
}
|
394 |
|
395 |
+
/**
|
396 |
+
* Produces an RSS feed for the product log
|
397 |
+
*
|
398 |
+
* @uses add_query_arg() Allows you to add arguments to the end of a URL
|
399 |
+
* @uses admin_url() Retrieves URL to the WordPress admin
|
400 |
+
*/
|
401 |
function wpsc_product_log_rss_feed() {
|
402 |
echo "<link type='application/rss+xml' href='" . add_query_arg( array( 'rss' => 'true', 'rss_key' => 'key', 'action' => 'purchase_log', 'type' => 'rss' ), admin_url( 'index.php' ) ) . "' title='" . esc_attr( 'WP e-Commerce Purchase Log RSS', 'wpsc' ) . "' rel='alternate' />";
|
403 |
}
|
404 |
+
|
405 |
+
/**
|
406 |
+
* Includes and enqueues scripts and styles for coupons
|
407 |
+
*
|
408 |
+
* @uses wp_enqueue_style() Includes and prints styles for WPEC in the WordPress admin
|
409 |
+
* @uses wp_enqueue_script() Includes and prints scripts for WPEC in the WordPress admin
|
410 |
+
*/
|
411 |
function wpsc_admin_include_coupon_js() {
|
412 |
|
413 |
// Variables
|
420 |
// Coupon JS
|
421 |
wp_enqueue_script( 'wp-e-commerce-admin-parameters', admin_url( '/wp-admin/admin.php?wpsc_admin_dynamic_js=true' ), false, $version_identifier );
|
422 |
wp_enqueue_script( 'livequery', WPSC_URL . '/wpsc-admin/js/jquery.livequery.js', array( 'jquery' ), '1.0.3' );
|
423 |
+
wp_enqueue_script( 'jquery-ui-datepicker' );
|
424 |
+
wp_enqueue_script( 'wp-e-commerce-admin_legacy', WPSC_URL . '/wpsc-admin/js/admin-legacy.js', array( 'jquery', 'jquery-ui-core', 'jquery-ui-sortable', 'jquery-ui-datepicker' ), $version_identifier );
|
425 |
+
|
426 |
+
wp_enqueue_style ( 'wpsc-jquery-ui-datepicker', WPSC_URL . '/wpsc-admin/css/jquery.ui.datepicker-' . get_user_option( 'admin_color' ) . '.css', false, $version_identifier );
|
427 |
}
|
428 |
|
429 |
/**
|
430 |
+
* Includes and enqueues scripts and styles for the WPEC options page
|
431 |
+
*
|
432 |
+
* @uses wp_enqueue_script() Includes and prints out the JS for the WPEC options page
|
433 |
+
* @uses wp_localize_script() Sets up the JS vars needed
|
434 |
+
* @uses _wpsc_create_ajax_nonce() Alias for wp_create_nonce, creates a random one time use token
|
435 |
+
* @uses get_current_tab_id() Returns the current tab id
|
436 |
+
* @uses wp_enqueue_style() Includes and prints out the CSS for the WPEC options page
|
437 |
*/
|
438 |
function wpsc_admin_include_optionspage_css_and_js() {
|
439 |
$version_identifier = WPSC_VERSION . "." . WPSC_MINOR_VERSION;
|
459 |
wp_enqueue_style( 'wp-e-commerce-ui-tabs', WPSC_URL . '/wpsc-admin/css/jquery.ui.tabs.css', false, $version_identifier, 'all' );
|
460 |
}
|
461 |
|
462 |
+
/**
|
463 |
+
* Sets up the WPEC metaboxes
|
464 |
+
*
|
465 |
+
* @uses remove_meta_box() Removes the default taxonomy meta box so our own can be added
|
466 |
+
* @uses add_meta_bax() Adds metaboxes to the WordPress admin interface
|
467 |
+
*/
|
468 |
function wpsc_meta_boxes() {
|
469 |
global $post;
|
470 |
$pagename = 'wpsc-product';
|
490 |
add_meta_box( 'wpsc_product_shipping_forms', __('Shipping', 'wpsc'), 'wpsc_product_shipping_forms_metabox', $pagename, 'normal', 'high' );
|
491 |
add_meta_box( 'wpsc_product_advanced_forms', __('Advanced Settings', 'wpsc'), 'wpsc_product_advanced_forms', $pagename, 'normal', 'high' );
|
492 |
}
|
|
|
493 |
add_action( 'admin_footer', 'wpsc_meta_boxes' );
|
494 |
add_action( 'admin_enqueue_scripts', 'wpsc_admin_include_css_and_js_refac' );
|
495 |
+
|
496 |
+
/**
|
497 |
+
* Includes the JS and CSS
|
498 |
+
*
|
499 |
+
* @param string $pagehook The pagehook for the currently viewing page, provided by the 'admin_enqueue_scripts' action
|
500 |
+
*
|
501 |
+
* @uses wp_admin_css() Enqueues or prints a stylesheet in the admin
|
502 |
+
* @uses wp_enqueue_script() Enqueues the specified script
|
503 |
+
* @uses wp_localize_script() Sets up the JS vars needed
|
504 |
+
* @uses wp_enqueue_style() Enqueues the styles
|
505 |
+
* @uses wp_dequeue_script() Removes a previously enqueued script by handle
|
506 |
+
* @uses _wpsc_create_ajax_nonce() Alias for wp_create_nonce, creates a random one time use token
|
507 |
+
*/
|
508 |
function wpsc_admin_include_css_and_js_refac( $pagehook ) {
|
509 |
+
global $post_type, $post;
|
510 |
+
|
511 |
+
$current_screen = get_current_screen();
|
512 |
|
513 |
if ( version_compare( get_bloginfo( 'version' ), '3.3', '<' ) )
|
514 |
wp_admin_css( 'dashboard' );
|
590 |
wp_enqueue_style( 'wp-e-commerce-admin', WPSC_URL . '/wpsc-admin/css/admin.css', false, $version_identifier, 'all' );
|
591 |
}
|
592 |
|
593 |
+
/**
|
594 |
+
* @todo docs
|
595 |
+
*
|
596 |
+
* @uses get_option() Gets an option by name from the WordPress database
|
597 |
+
*/
|
598 |
function wpsc_admin_dynamic_js() {
|
599 |
header( 'Content-Type: text/javascript' );
|
600 |
header( 'Expires: ' . gmdate( 'r', mktime( 0, 0, 0, date( 'm' ), ( date( 'd' ) + 12 ), date( 'Y' ) ) ) . '' );
|
664 |
add_action( "admin_init", 'wpsc_admin_dynamic_js' );
|
665 |
}
|
666 |
|
667 |
+
/**
|
668 |
+
* @todo finish docs
|
669 |
+
*
|
670 |
+
* @uses apply_filters() Allows manipulation of the flash upload params.
|
671 |
+
*/
|
672 |
function wpsc_admin_dynamic_css() {
|
673 |
header( 'Content-Type: text/css' );
|
674 |
header( 'Expires: ' . gmdate( 'r', mktime( 0, 0, 0, date( 'm' ), ( date( 'd' ) + 12 ), date( 'Y' ) ) ) . '' );
|
707 |
|
708 |
add_action( 'admin_menu', 'wpsc_admin_pages' );
|
709 |
|
710 |
+
/**
|
711 |
+
* Displays latest activity in the Dashboard widget
|
712 |
+
*
|
713 |
+
* @uses $wpdb WordPress database object for queries
|
714 |
+
* @uses get_var() Returns single variable from the database
|
715 |
+
* @uses esc_html__() Gets translation of $text and escapes it for HTML output
|
716 |
+
* @uses wpsc_currency_display() Displays the currency
|
717 |
+
* @uses admin_display_total_price() Displays the total price
|
718 |
+
* @uses esc_html_x()
|
719 |
+
* @uses _n() Retrieves the singular or plural version
|
720 |
+
*/
|
721 |
function wpsc_admin_latest_activity() {
|
722 |
global $wpdb;
|
723 |
$totalOrders = $wpdb->get_var( "SELECT COUNT(*) FROM `" . WPSC_TABLE_PURCHASE_LOGS . "`" );
|
788 |
echo "</div>";
|
789 |
echo "<div style='clear:both'></div>";
|
790 |
}
|
|
|
791 |
add_action( 'wpsc_admin_pre_activity', 'wpsc_admin_latest_activity' );
|
792 |
|
|
|
793 |
/*
|
794 |
* Dashboard Widget Setup
|
795 |
* Adds the dashboard widgets if the user is an admin
|
796 |
+
*
|
797 |
* Since 3.6
|
798 |
+
*
|
799 |
+
* @uses wp_enqueue_style() Enqueues CSS
|
800 |
+
* @uses wp_enqueue_script() Enqueues JS
|
801 |
+
* @uses wp_add_dashboard_widget() Adds a new widget to the WordPress admin dashboard
|
802 |
+
* @uses current_user_can() Checks the capabilities of the current user
|
803 |
*/
|
|
|
804 |
function wpsc_dashboard_widget_setup() {
|
805 |
$version_identifier = WPSC_VERSION . "." . WPSC_MINOR_VERSION;
|
806 |
// Enqueue the styles and scripts necessary
|
859 |
|
860 |
add_action( 'wp_dashboard_setup', 'wpsc_dashboard_widget_setup' );
|
861 |
|
862 |
+
/**
|
863 |
+
* Shows the RSS feed for the WPEC dashboard widget
|
864 |
+
*
|
865 |
+
* @uses fetch_feed() Build SimplePie object based on RSS or Atom feed from URL.
|
866 |
+
* @uses wp_widget_rss_output() Display the RSS entries in a list
|
867 |
+
*/
|
868 |
function wpsc_dashboard_news() {
|
869 |
$rss = fetch_feed( 'http://getshopped.org/category/wp-e-commerce-plugin/' );
|
870 |
$args = array( 'show_author' => 1, 'show_date' => 1, 'show_summary' => 1, 'items'=>3 );
|
872 |
|
873 |
}
|
874 |
|
875 |
+
/**
|
876 |
+
* Gets the quarterly summary of revenue
|
877 |
+
*
|
878 |
+
* @uses get_option() Retrieves an option from the WordPress database
|
879 |
+
* @uses admin_display_total_price() Displays the total price
|
880 |
+
*
|
881 |
+
* @return array The array of prices
|
882 |
+
*/
|
883 |
function wpsc_get_quarterly_summary() {
|
884 |
(int)$firstquarter = get_option( 'wpsc_first_quart' );
|
885 |
(int)$secondquarter = get_option( 'wpsc_second_quart' );
|
894 |
return $results;
|
895 |
}
|
896 |
|
897 |
+
/**
|
898 |
+
* Called by wp_add_dashboard_widget and ads the quarterly revenue reports to the WordPress admin dashboard
|
899 |
+
*
|
900 |
+
* @uses get_option() Gets the specified option from database
|
901 |
+
* @uses esc_html_e() Displays translated text that has been escaped for safe use in HTML
|
902 |
+
*/
|
903 |
function wpsc_quarterly_dashboard_widget() {
|
904 |
if ( get_option( 'wpsc_business_year_start' ) == false ) {
|
905 |
?>
|
985 |
}
|
986 |
}
|
987 |
|
988 |
+
/**
|
989 |
+
* Called by wp_add_dashboard_widget to add the WPSC dashboard widget
|
990 |
+
*
|
991 |
+
* @uses do_action() Calls 'wpsc_admin_pre_activity'
|
992 |
+
* @uses do_action() Calls 'wpsc_admin_post_activity'
|
993 |
+
*/
|
994 |
function wpsc_dashboard_widget() {
|
995 |
do_action( 'wpsc_admin_pre_activity' );
|
996 |
do_action( 'wpsc_admin_post_activity' );
|
1003 |
|
1004 |
/*
|
1005 |
* Dashboard Widget Last Four Month Sales.
|
1006 |
+
*
|
1007 |
+
* @uses $wpdb WordPress database object for queries
|
1008 |
+
* @uses get_results() Gets generic multiple row results from the WordPress database
|
1009 |
+
* @uses get_var() Returns a single variable from the database
|
1010 |
+
* @uses wpsc_currency_display() Returns the currency with the display options applied
|
1011 |
*/
|
|
|
1012 |
function wpsc_dashboard_4months_widget() {
|
1013 |
global $wpdb;
|
1014 |
|
1092 |
|
1093 |
//Modification to allow for multiple column layout
|
1094 |
|
1095 |
+
/**
|
1096 |
+
* @todo docs
|
1097 |
+
* @param $columns
|
1098 |
+
* @param $screen
|
1099 |
+
* @return mixed
|
1100 |
+
*/
|
1101 |
function wpec_two_columns( $columns, $screen ) {
|
1102 |
if ( $screen == 'toplevel_page_wpsc-edit-products' )
|
1103 |
$columns['toplevel_page_wpsc-edit-products'] = 2;
|
1106 |
}
|
1107 |
add_filter( 'screen_layout_columns', 'wpec_two_columns', 10, 2 );
|
1108 |
|
1109 |
+
/**
|
1110 |
+
* @todo docs
|
1111 |
+
* @param $actions
|
1112 |
+
* @return mixed
|
1113 |
+
*/
|
1114 |
function wpsc_fav_action( $actions ) {
|
1115 |
$actions['post-new.php?post_type=wpsc-product'] = array( 'New Product', 'manage_options' );
|
1116 |
return $actions;
|
1117 |
}
|
1118 |
add_filter( 'favorite_actions', 'wpsc_fav_action' );
|
1119 |
|
1120 |
+
/**
|
1121 |
+
* Prits out the admin scripts
|
1122 |
+
*
|
1123 |
+
* @uses is_ssl() Defines if SSL is true
|
1124 |
+
* @uses wp_enqueue_script() Enqueues scripts
|
1125 |
+
* @uses home_url() Returns the base url for the site
|
1126 |
+
*/
|
1127 |
function wpsc_print_admin_scripts() {
|
1128 |
$scheme = is_ssl() ? 'https' : 'http';
|
1129 |
wp_enqueue_script( 'wp-e-commerce-dynamic', home_url( "/index.php?wpsc_user_dynamic_js=true", $scheme ) );
|
1134 |
*
|
1135 |
* @since 3.8.9
|
1136 |
* @access private
|
1137 |
+
*
|
1138 |
+
* @uses get_bloginfo() Returns information about your site to be used elsewhere
|
1139 |
+
* @uses version_compare() Compares two "PHP-standardized" version number strings
|
1140 |
+
* @uses _wpsc_display_permalink_refresh_notice() Display warning on older WordPress versions
|
1141 |
+
* @uses wpsc_update_page_urls() Gets the premalinks for product pages and stores for quick reference
|
1142 |
*/
|
1143 |
function _wpsc_action_permalink_structure_changed() {
|
1144 |
$wp_version = get_bloginfo( 'version' );
|
1157 |
* Display warning if the user is using WordPress prior to 3.3 because there is a bug with custom
|
1158 |
* post type and taxonomy permalink generation.
|
1159 |
*
|
|
|
1160 |
* @since 3.8.9
|
1161 |
+
* @access private
|
1162 |
*/
|
1163 |
function _wpsc_display_permalink_refresh_notice(){
|
1164 |
?>
|
1174 |
/**
|
1175 |
* wpsc_ajax_ie_save save changes made using inline edit
|
1176 |
*
|
1177 |
+
* @since 3.8
|
1178 |
+
* @access public
|
1179 |
+
*
|
1180 |
+
* @uses get_post_type_object() Gets post object for given registered post type name
|
1181 |
+
* @uses current_user_can() Checks the capabilities of the current user
|
1182 |
+
* @uses absint() Converts to a nonnegative integer
|
1183 |
+
* @uses get_post() Gets the post object given post id
|
1184 |
+
* @uses wp_get_object_terms() Gets terms for given post object
|
1185 |
+
* @uses wp_update_post() Updates the post in the database
|
1186 |
+
* @uses get_product_meta() An alias for get_post_meta prefixes with the WPSC key
|
1187 |
+
* @uses wpsc_convert_weight() Converts to weight format specified by user
|
1188 |
+
* @uses json_encode() Encodes array for JS
|
1189 |
+
* @uses esc_js() Escape single quotes, htmlspecialchar " < > &, and fix line endings.
|
1190 |
*
|
|
|
1191 |
* @returns nothing
|
1192 |
*/
|
1193 |
function wpsc_ajax_ie_save() {
|
1202 |
$id = absint( $_POST['id'] );
|
1203 |
$post = get_post( $_POST['id'] );
|
1204 |
$parent = get_post( $post->post_parent );
|
1205 |
+
$terms = wpsc_get_product_terms( $id, 'wpsc-variation', 'name' );
|
1206 |
|
1207 |
$product = array(
|
1208 |
'ID' => $_POST['id'],
|
1244 |
die();
|
1245 |
}
|
1246 |
|
1247 |
+
/**
|
1248 |
+
* @todo docs
|
1249 |
+
*
|
1250 |
+
* @uses add_meta_box Allows addition of metaboxes to the wpsc_add_meta_boxes admin
|
1251 |
+
*/
|
1252 |
function wpsc_add_meta_boxes(){
|
1253 |
add_meta_box( 'dashboard_right_now', __( 'Current Month', 'wpsc' ), 'wpsc_right_now', 'dashboard_page_wpsc-sales-logs', 'top' );
|
1254 |
}
|
1257 |
* Displays notice if user has Great Britain selected as their base country
|
1258 |
* Since 3.8.9, we have deprecated Great Britain in favor of the UK
|
1259 |
*
|
|
|
1260 |
* @since 3.8.9
|
1261 |
+
* @access private
|
1262 |
+
* @link http://code.google.com/p/wp-e-commerce/issues/detail?id=1079
|
1263 |
+
*
|
1264 |
+
* @uses get_option() Retrieves option from the WordPress database
|
1265 |
+
* @uses get_outdate_isocodes() Returns outdated isocodes
|
1266 |
+
* @uses admin_url() Returns admin_url of the site
|
1267 |
+
*
|
1268 |
+
* @return string The admin notices for deprecated countries
|
1269 |
*/
|
1270 |
function _wpsc_action_admin_notices_deprecated_countries_notice() {
|
1271 |
$base_country = get_option( 'base_country' );
|
1303 |
add_action( 'wp_ajax_wpsc_ie_save', 'wpsc_ajax_ie_save' );
|
1304 |
add_action('in_admin_header', 'wpsc_add_meta_boxes');
|
1305 |
|
1306 |
+
/**
|
1307 |
+
* Deletes file associated with a product.
|
1308 |
+
*
|
1309 |
+
* @access private
|
1310 |
+
*
|
1311 |
+
* @uses $wpdb WordPress database object for queries
|
1312 |
+
* @uses prepare() Prepares a database query by escaping
|
1313 |
+
* @uses wp_delete_post() Removes a post attachment or page*
|
1314 |
+
*
|
1315 |
+
* @param int $product_id req The id of the product
|
1316 |
+
* @param string $file_name req The string
|
1317 |
+
*
|
1318 |
+
* @return mixed
|
1319 |
+
*
|
1320 |
+
*/
|
1321 |
function _wpsc_delete_file( $product_id, $file_name ) {
|
1322 |
global $wpdb;
|
1323 |
|
1326 |
return wp_delete_post( $product_id_to_delete, true );
|
1327 |
}
|
1328 |
|
1329 |
+
/**
|
1330 |
+
* Duplicates a product
|
1331 |
+
*
|
1332 |
+
* @uses wp_insert_post() Inserts a new post to the database
|
1333 |
+
* @uses wpsc_duplicate_taxonomies() Copy the taxonomies of a post to another post
|
1334 |
+
* @uses wpsc_duplicate_product_meta() Copy the metadata of a post to another post
|
1335 |
+
* @uses wpsc_duplicate_children() Copy the children of the product
|
1336 |
+
*
|
1337 |
+
* @param object $post req The post object
|
1338 |
+
* @param bool $new_parent_id opt The parent post id
|
1339 |
+
*
|
1340 |
+
* @return int|WP_Error New post id or error
|
1341 |
+
*/
|
1342 |
function wpsc_duplicate_product_process( $post, $new_parent_id = false ) {
|
1343 |
+
$new_post_date = $post->post_date;
|
1344 |
$new_post_date_gmt = get_gmt_from_date( $new_post_date );
|
1345 |
|
1346 |
+
$new_post_type = $post->post_type;
|
1347 |
+
$post_content = $post->post_content;
|
1348 |
+
$post_content_filtered = $post->post_content_filtered;
|
1349 |
+
$post_excerpt = $post->post_excerpt;
|
1350 |
+
$post_title = $post->post_title . " (Duplicate)";
|
1351 |
+
$post_name = $post->post_name;
|
1352 |
+
$comment_status = $post->comment_status;
|
1353 |
+
$ping_status = $post->ping_status;
|
1354 |
|
1355 |
$defaults = array(
|
1356 |
'post_status' => $post->post_status,
|
1358 |
'ping_status' => $ping_status,
|
1359 |
'post_parent' => $new_parent_id ? $new_parent_id : $post->post_parent,
|
1360 |
'menu_order' => $post->menu_order,
|
1361 |
+
'to_ping' => $post->to_ping,
|
1362 |
'pinged' => $post->pinged,
|
1363 |
'post_excerpt' => $post_excerpt,
|
1364 |
'post_title' => $post_title,
|
1371 |
if ( 'attachment' == $post->post_type )
|
1372 |
$defaults['guid'] = $post->guid;
|
1373 |
|
1374 |
+
$defaults = stripslashes_deep( $defaults );
|
1375 |
+
|
1376 |
// Insert the new template in the post table
|
1377 |
$new_post_id = wp_insert_post($defaults);
|
1378 |
|
1390 |
|
1391 |
/**
|
1392 |
* Copy the taxonomies of a post to another post
|
1393 |
+
*
|
1394 |
+
* @uses get_object_taxonomies() Gets taxonomies for the give object
|
1395 |
+
* @uses wp_get_object_terms() Gets terms for the taxonomies
|
1396 |
+
* @uses wp_set_object_terms() Sets the terms for a post object
|
1397 |
+
*
|
1398 |
+
* @param int $id req ID of the post we are duping
|
1399 |
+
* @param int $new_id req ID of the new post
|
1400 |
+
* @param string $post_type req The post type we are setting
|
1401 |
*/
|
1402 |
function wpsc_duplicate_taxonomies( $id, $new_id, $post_type ) {
|
1403 |
$taxonomies = get_object_taxonomies( $post_type ); //array("category", "post_tag");
|
1404 |
foreach ( $taxonomies as $taxonomy ) {
|
1405 |
+
$post_terms = wpsc_get_product_terms( $id, $taxonomy );
|
1406 |
+
foreach ( $post_terms as $post_term ) {
|
1407 |
+
wp_set_object_terms( $new_id, $post_term->slug, $taxonomy, true );
|
1408 |
}
|
1409 |
}
|
1410 |
}
|
1411 |
|
1412 |
/**
|
1413 |
* Copy the meta information of a post to another post
|
1414 |
+
*
|
1415 |
+
* @uses $wpdb WordPress database object for queries
|
1416 |
+
* @uses get_results() Gets generic multirow results from the database
|
1417 |
+
* @uses prepare() Prepares a database query making it safe
|
1418 |
+
* @uses query() Runs an SQL query
|
1419 |
+
*
|
1420 |
+
* @param int $id req ID of the post we are duping
|
1421 |
+
* @param int $new_id req ID of the new post
|
1422 |
*/
|
1423 |
function wpsc_duplicate_product_meta( $id, $new_id ) {
|
1424 |
global $wpdb;
|
1446 |
|
1447 |
/**
|
1448 |
* Duplicates children product and children meta
|
1449 |
+
*
|
1450 |
+
* @uses get_posts() Gets an array of posts given array of arguments
|
1451 |
+
* @uses wpsc_duplicate_product_process() Duplicates product
|
1452 |
+
*
|
1453 |
+
* @param int $old_parent_id req Post id for old parent
|
1454 |
+
* @param int $new_parenc_id req Post id for the new parent
|
1455 |
*/
|
1456 |
function wpsc_duplicate_children( $old_parent_id, $new_parent_id ) {
|
1457 |
|
1469 |
|
1470 |
}
|
1471 |
|
1472 |
+
/**
|
1473 |
+
* @todo docs
|
1474 |
+
* @access private
|
1475 |
+
*
|
1476 |
+
* @uses add_query_arg() Adds argument to the WordPress query
|
1477 |
+
* @uses update_option() Updates an option in the WordPress database given string and value
|
1478 |
+
* @uses get_option() Gets option from the database given string
|
1479 |
+
*/
|
1480 |
function _wpsc_admin_notices_3dot8dot9() {
|
1481 |
$message = '<p>' . __( 'You are currently using WP e-Commerce 3.8.9. There have been major changes in WP e-Commerce 3.8.9, so backward-compatibility with existing plugins might not always be guaranteed. If you are unsure, please roll back to 3.8.8.5, and set up a test site with 3.8.9 to make sure WP e-Commerce 3.8.9 is compatible with your existing themes and plugins.<br />If you find any incompatibility issues, please <a href="%1$s">report them to us</a> as well as the other plugins or themes\' developers.' , 'wpsc' ) . '</p>';
|
1482 |
$message .= "\n<p>" . __( '<a href="%2$s">Hide this warning</a>', 'wpsc' ) . '</p>';
|
wpsc-admin/ajax-and-init.php
CHANGED
@@ -7,6 +7,15 @@
|
|
7 |
*
|
8 |
* @package wp-e-commerce
|
9 |
* @since 3.7
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
*/
|
11 |
function wpsc_admin_ajax() {
|
12 |
global $wpdb;
|
@@ -89,7 +98,11 @@ function wpsc_admin_ajax() {
|
|
89 |
if ( isset( $_REQUEST['ajax'] ) && isset( $_REQUEST['admin'] ) && ($_REQUEST['ajax'] == "true") && ($_REQUEST['admin'] == "true") )
|
90 |
add_action( 'admin_init', 'wpsc_admin_ajax' );
|
91 |
|
92 |
-
|
|
|
|
|
|
|
|
|
93 |
if ( is_numeric( $_POST['currencyid'] ) ) {
|
94 |
$currency_data = $wpdb->get_results( $wpdb->prepare( "SELECT `symbol`,`symbol_html`,`code` FROM `" . WPSC_TABLE_CURRENCY_LIST . "` WHERE `id`=%d LIMIT 1", $_POST['currencyid'] ), ARRAY_A );
|
95 |
$price_out = null;
|
@@ -104,6 +117,10 @@ function wpsc_change_currency() {
|
|
104 |
if ( isset( $_REQUEST['wpsc_admin_action'] ) && ($_REQUEST['wpsc_admin_action'] == 'change_currency') )
|
105 |
add_action( 'admin_init', 'wpsc_change_currency' );
|
106 |
|
|
|
|
|
|
|
|
|
107 |
function wpsc_rearrange_images() {
|
108 |
global $wpdb;
|
109 |
$images = explode( ",", $_POST['order'] );
|
@@ -137,6 +154,15 @@ function wpsc_rearrange_images() {
|
|
137 |
if ( isset( $_REQUEST['wpsc_admin_action'] ) && ($_REQUEST['wpsc_admin_action'] == 'rearrange_images') )
|
138 |
add_action( 'admin_init', 'wpsc_rearrange_images' );
|
139 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
function wpsc_clean_categories() {
|
141 |
global $wpdb, $wp_rewrite;
|
142 |
$sql_query = "SELECT `id`, `name`, `active` FROM `" . WPSC_TABLE_PRODUCT_CATEGORIES . "`";
|
7 |
*
|
8 |
* @package wp-e-commerce
|
9 |
* @since 3.7
|
10 |
+
*
|
11 |
+
* @uses update_option() Updates option in the database given key and value
|
12 |
+
* @uses wp_delete_term() Removes term from the database
|
13 |
+
* @uses fetch_rss() DEPRECATED
|
14 |
+
* @uses wpsc_member_dedeactivate_subscriptions() @todo docs
|
15 |
+
* @uses wpsc_member_deactivate_subscriptions() @todo docs
|
16 |
+
* @uses wpsc_update_purchase_log_status() Updates the status of the logs for a purchase
|
17 |
+
* @uses transaction_results() Main function for creating purchase reports
|
18 |
+
* @uses wpsc_find_purchlog_status_name() Finds name of given status
|
19 |
*/
|
20 |
function wpsc_admin_ajax() {
|
21 |
global $wpdb;
|
98 |
if ( isset( $_REQUEST['ajax'] ) && isset( $_REQUEST['admin'] ) && ($_REQUEST['ajax'] == "true") && ($_REQUEST['admin'] == "true") )
|
99 |
add_action( 'admin_init', 'wpsc_admin_ajax' );
|
100 |
|
101 |
+
/**
|
102 |
+
* @todo docs
|
103 |
+
* @uses $wpdb WordPress database object for queries
|
104 |
+
*/
|
105 |
+
function wpsc_change_currency() { echo 'test';
|
106 |
if ( is_numeric( $_POST['currencyid'] ) ) {
|
107 |
$currency_data = $wpdb->get_results( $wpdb->prepare( "SELECT `symbol`,`symbol_html`,`code` FROM `" . WPSC_TABLE_CURRENCY_LIST . "` WHERE `id`=%d LIMIT 1", $_POST['currencyid'] ), ARRAY_A );
|
108 |
$price_out = null;
|
117 |
if ( isset( $_REQUEST['wpsc_admin_action'] ) && ($_REQUEST['wpsc_admin_action'] == 'change_currency') )
|
118 |
add_action( 'admin_init', 'wpsc_change_currency' );
|
119 |
|
120 |
+
/**
|
121 |
+
* @todo docs
|
122 |
+
* @uses $wpdb WordPress database object for queries
|
123 |
+
*/
|
124 |
function wpsc_rearrange_images() {
|
125 |
global $wpdb;
|
126 |
$images = explode( ",", $_POST['order'] );
|
154 |
if ( isset( $_REQUEST['wpsc_admin_action'] ) && ($_REQUEST['wpsc_admin_action'] == 'rearrange_images') )
|
155 |
add_action( 'admin_init', 'wpsc_rearrange_images' );
|
156 |
|
157 |
+
/**
|
158 |
+
* @todo docs
|
159 |
+
*
|
160 |
+
* @uses $wpdb WordPress database object for queries
|
161 |
+
* @uses $wp_rewrite Global variable instance of the WP_Rewrite Class
|
162 |
+
* @uses wp_get_referer() Retrieve referer from '_wp_http_referer' or HTTP referer.
|
163 |
+
* @uses add_query_arg() Retrieve a modified URL query string.
|
164 |
+
* @uses wp_redirect() Redirects to string given as argument
|
165 |
+
*/
|
166 |
function wpsc_clean_categories() {
|
167 |
global $wpdb, $wp_rewrite;
|
168 |
$sql_query = "SELECT `id`, `name`, `active` FROM `" . WPSC_TABLE_PRODUCT_CATEGORIES . "`";
|
wpsc-admin/ajax.php
CHANGED
@@ -5,6 +5,10 @@
|
|
5 |
*
|
6 |
* @since 3.8.9
|
7 |
* @access private
|
|
|
|
|
|
|
|
|
8 |
* @param string $ajax_action Name of AJAX action
|
9 |
* @return WP_Error|boolean True if nonce is valid. WP_Error if otherwise.
|
10 |
*/
|
@@ -30,6 +34,9 @@ function _wpsc_ajax_verify_nonce( $ajax_action ) {
|
|
30 |
*
|
31 |
* @since 3.8.9
|
32 |
* @access private
|
|
|
|
|
|
|
33 |
* @param string $ajax_action Name of AJAX action
|
34 |
* @return WP_Error|array Array of response args if callback is valid. WP_Error if otherwise.
|
35 |
*/
|
@@ -52,6 +59,12 @@ function _wpsc_ajax_fire_callback( $ajax_action ) {
|
|
52 |
*
|
53 |
* @since 3.8.9
|
54 |
* @access private
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
*/
|
56 |
function _wpsc_ajax_handler() {
|
57 |
$ajax_action = str_replace( '-', '_', $_REQUEST['wpsc_action'] );
|
@@ -80,6 +93,12 @@ function _wpsc_ajax_handler() {
|
|
80 |
}
|
81 |
add_action( 'wp_ajax_wpsc_ajax', '_wpsc_ajax_handler' );
|
82 |
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
function wpsc_is_doing_ajax( $action = '' ) {
|
84 |
$ajax = defined( 'DOING_AJAX' ) && DOING_AJAX && ! empty( $_REQUEST['action'] ) && $_REQUEST['action'] == 'wpsc_ajax';
|
85 |
|
@@ -95,6 +114,9 @@ function wpsc_is_doing_ajax( $action = '' ) {
|
|
95 |
*
|
96 |
* @since 3.8.9
|
97 |
* @access private
|
|
|
|
|
|
|
98 |
* @param string $action AJAX action without prefix
|
99 |
* @return string The generated nonce.
|
100 |
*/
|
@@ -110,6 +132,19 @@ function _wpsc_create_ajax_nonce( $ajax_action ) {
|
|
110 |
*
|
111 |
* @since 3.8.8
|
112 |
* @access private
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
* @return array Response args
|
114 |
*/
|
115 |
function _wpsc_ajax_add_variation_set() {
|
@@ -128,7 +163,7 @@ function _wpsc_ajax_add_variation_set() {
|
|
128 |
}
|
129 |
|
130 |
if ( empty( $variation_set_id ) ) {
|
131 |
-
$results = wp_insert_term( $new_variation_set, 'wpsc-variation' );
|
132 |
if ( is_wp_error( $results ) )
|
133 |
return $results;
|
134 |
$variation_set_id = $results['term_id'];
|
@@ -138,7 +173,7 @@ function _wpsc_ajax_add_variation_set() {
|
|
138 |
return new WP_Error( 'wpsc_invalid_variation_id', __( 'Cannot retrieve the variation set in order to proceed.', 'wpsc' ) );
|
139 |
|
140 |
foreach ( $variants as $variant ) {
|
141 |
-
$results = wp_insert_term( $variant, 'wpsc-variation', array( 'parent' => $variation_set_id ) );
|
142 |
|
143 |
if ( is_wp_error( $results ) )
|
144 |
return $results;
|
@@ -184,6 +219,10 @@ function _wpsc_ajax_add_variation_set() {
|
|
184 |
*
|
185 |
* @since 3.8.9
|
186 |
* @access private
|
|
|
|
|
|
|
|
|
187 |
* @return array Response args
|
188 |
*/
|
189 |
function _wpsc_ajax_payment_gateway_settings_form() {
|
@@ -204,7 +243,11 @@ function _wpsc_ajax_payment_gateway_settings_form() {
|
|
204 |
*
|
205 |
* @since 3.8.9
|
206 |
* @access private
|
207 |
-
*
|
|
|
|
|
|
|
|
|
208 |
*/
|
209 |
function _wpsc_ajax_shipping_module_settings_form() {
|
210 |
require_once( 'settings-page.php' );
|
@@ -224,7 +267,11 @@ function _wpsc_ajax_shipping_module_settings_form() {
|
|
224 |
*
|
225 |
* @since 3.8.9
|
226 |
* @access private
|
227 |
-
*
|
|
|
|
|
|
|
|
|
228 |
*/
|
229 |
function _wpsc_ajax_navigate_settings_tab() {
|
230 |
require_once( 'settings-page.php' );
|
@@ -237,12 +284,17 @@ function _wpsc_ajax_navigate_settings_tab() {
|
|
237 |
|
238 |
return $return;
|
239 |
}
|
|
|
240 |
/**
|
241 |
* Display base region list in Store Settings -> General
|
242 |
*
|
243 |
* @since 3.8.9
|
244 |
* @access private
|
245 |
-
*
|
|
|
|
|
|
|
|
|
246 |
*/
|
247 |
function _wpsc_ajax_display_region_list() {
|
248 |
require_once( 'settings-page.php' );
|
@@ -262,7 +314,10 @@ function _wpsc_ajax_display_region_list() {
|
|
262 |
*
|
263 |
* @since 3.8.9
|
264 |
* @access private
|
265 |
-
*
|
|
|
|
|
|
|
266 |
*/
|
267 |
function _wpsc_ajax_purchase_log_save_tracking_id() {
|
268 |
global $wpdb;
|
@@ -296,7 +351,15 @@ function _wpsc_ajax_purchase_log_save_tracking_id() {
|
|
296 |
*
|
297 |
* @since 3.8.9
|
298 |
* @access private
|
299 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
300 |
*/
|
301 |
function _wpsc_ajax_purchase_log_send_tracking_email() {
|
302 |
global $wpdb;
|
@@ -310,7 +373,7 @@ function _wpsc_ajax_purchase_log_send_tracking_email() {
|
|
310 |
$message = str_replace( '%shop_name%', get_option( 'blogname' ), $message );
|
311 |
|
312 |
$email_form_field = $wpdb->get_var( "SELECT `id` FROM `" . WPSC_TABLE_CHECKOUT_FORMS . "` WHERE `type` IN ('email') AND `active` = '1' ORDER BY `checkout_order` ASC LIMIT 1" );
|
313 |
-
$email = $wpdb->get_var( $wpdb->prepare( "SELECT `value` FROM `" .
|
314 |
|
315 |
$subject = get_option( 'wpsc_trackingid_subject' );
|
316 |
$subject = str_replace( '%shop_name%', get_option( 'blogname' ), $subject );
|
@@ -339,7 +402,11 @@ function _wpsc_ajax_purchase_log_send_tracking_email() {
|
|
339 |
*
|
340 |
* @since 3.8.9
|
341 |
* @access private
|
342 |
-
*
|
|
|
|
|
|
|
|
|
343 |
*/
|
344 |
function _wpsc_ajax_delete_file() {
|
345 |
$product_id = absint( $_REQUEST['product_id'] );
|
@@ -363,7 +430,11 @@ function _wpsc_ajax_delete_file() {
|
|
363 |
*
|
364 |
* @since 3.8.9
|
365 |
* @access private
|
366 |
-
*
|
|
|
|
|
|
|
|
|
367 |
*/
|
368 |
function _wpsc_ajax_remove_product_meta() {
|
369 |
$meta_id = (int) $_POST['meta_id'];
|
@@ -378,7 +449,17 @@ function _wpsc_ajax_remove_product_meta() {
|
|
378 |
*
|
379 |
* @since 3.8.9
|
380 |
* @access private
|
381 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
382 |
*/
|
383 |
function _wpsc_ajax_change_purchase_log_status() {
|
384 |
$result = wpsc_purchlog_edit_status( $_POST['id'], $_POST['new_status'] );
|
@@ -424,10 +505,14 @@ function _wpsc_ajax_change_purchase_log_status() {
|
|
424 |
*
|
425 |
* @since 3.8.9
|
426 |
* @access private
|
|
|
|
|
|
|
|
|
|
|
427 |
* @return array|WP_Error Response args if successful, WP_Error if otherwise
|
428 |
*/
|
429 |
function _wpsc_ajax_save_product_order() {
|
430 |
-
global $wpdb;
|
431 |
|
432 |
$products = array( );
|
433 |
foreach ( $_POST['post'] as $product ) {
|
@@ -463,6 +548,10 @@ function _wpsc_ajax_save_product_order() {
|
|
463 |
*
|
464 |
* @since 3.8.9
|
465 |
* @access private
|
|
|
|
|
|
|
|
|
466 |
* @return array|WP_Error Response args or WP_Error
|
467 |
*/
|
468 |
function _wpsc_ajax_update_checkout_fields_order() {
|
@@ -508,6 +597,17 @@ function _wpsc_ajax_update_checkout_fields_order() {
|
|
508 |
*
|
509 |
* @since 3.8.9
|
510 |
* @access private
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
511 |
* @return array|WP_Error Response args if successful, WP_Error if otherwise.
|
512 |
*/
|
513 |
function _wpsc_ajax_upload_product_file() {
|
@@ -577,6 +677,10 @@ function _wpsc_ajax_upload_product_file() {
|
|
577 |
*
|
578 |
* @since 3.8.9
|
579 |
* @access private
|
|
|
|
|
|
|
|
|
580 |
* @return array|WP_Error Response args if successful, WP_Error if otherwise
|
581 |
*/
|
582 |
function _wpsc_ajax_update_variations() {
|
@@ -606,6 +710,13 @@ add_action( 'wp_ajax_wpsc_tinymce_window', '_wpsc_action_tinymce_window' );
|
|
606 |
* Add tax rate
|
607 |
* @since 3.8.9
|
608 |
* @access private
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
609 |
* @return array|WP_Error Response args if successful, WP_Error if otherwise
|
610 |
*/
|
611 |
function _wpsc_ajax_add_tax_rate() {
|
@@ -645,6 +756,13 @@ function _wpsc_ajax_add_tax_rate() {
|
|
645 |
);
|
646 |
}
|
647 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
648 |
function wpsc_product_variations_table() {
|
649 |
check_admin_referer( 'wpsc_product_variations_table' );
|
650 |
require_once( WPSC_FILE_PATH . '/wpsc-admin/includes/product-variations-page.class.php' );
|
@@ -655,6 +773,16 @@ function wpsc_product_variations_table() {
|
|
655 |
}
|
656 |
add_action( 'wp_ajax_wpsc_product_variations_table', 'wpsc_product_variations_table' );
|
657 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
658 |
function _wpsc_ajax_set_variation_product_thumbnail() {
|
659 |
$response = array(
|
660 |
'success' => false
|
@@ -679,4 +807,4 @@ function _wpsc_ajax_set_variation_product_thumbnail() {
|
|
679 |
echo json_encode( $response );
|
680 |
exit;
|
681 |
}
|
682 |
-
add_action( 'wp_ajax_wpsc_set_variation_product_thumbnail', '_wpsc_ajax_set_variation_product_thumbnail' );
|
5 |
*
|
6 |
* @since 3.8.9
|
7 |
* @access private
|
8 |
+
*
|
9 |
+
* @uses WP_Error WordPress Error Class
|
10 |
+
* @uses wp_verify_nonce() Verify that correct nonce was used with time limit.
|
11 |
+
*
|
12 |
* @param string $ajax_action Name of AJAX action
|
13 |
* @return WP_Error|boolean True if nonce is valid. WP_Error if otherwise.
|
14 |
*/
|
34 |
*
|
35 |
* @since 3.8.9
|
36 |
* @access private
|
37 |
+
*
|
38 |
+
* @uses WP_Error WordPress Error object
|
39 |
+
*
|
40 |
* @param string $ajax_action Name of AJAX action
|
41 |
* @return WP_Error|array Array of response args if callback is valid. WP_Error if otherwise.
|
42 |
*/
|
59 |
*
|
60 |
* @since 3.8.9
|
61 |
* @access private
|
62 |
+
*
|
63 |
+
* @uses _wpsc_ajax_fire_callback() Verify ajax callback if it exists
|
64 |
+
* @uses _wpsc_ajax_verify_nonce() Verify nonce of an ajax request
|
65 |
+
* @uses is_wp_error() Check whether variable is a WordPress Error.
|
66 |
+
*
|
67 |
+
* @return array $output json encoded response
|
68 |
*/
|
69 |
function _wpsc_ajax_handler() {
|
70 |
$ajax_action = str_replace( '-', '_', $_REQUEST['wpsc_action'] );
|
93 |
}
|
94 |
add_action( 'wp_ajax_wpsc_ajax', '_wpsc_ajax_handler' );
|
95 |
|
96 |
+
/**
|
97 |
+
* Checks if WPSC is doing ajax
|
98 |
+
*
|
99 |
+
* @param string $action req The action we're checking
|
100 |
+
* @return bool True if doing ajax
|
101 |
+
*/
|
102 |
function wpsc_is_doing_ajax( $action = '' ) {
|
103 |
$ajax = defined( 'DOING_AJAX' ) && DOING_AJAX && ! empty( $_REQUEST['action'] ) && $_REQUEST['action'] == 'wpsc_ajax';
|
104 |
|
114 |
*
|
115 |
* @since 3.8.9
|
116 |
* @access private
|
117 |
+
*
|
118 |
+
* @uses wp_create_nonce() Creates a random one time use token
|
119 |
+
*
|
120 |
* @param string $action AJAX action without prefix
|
121 |
* @return string The generated nonce.
|
122 |
*/
|
132 |
*
|
133 |
* @since 3.8.8
|
134 |
* @access private
|
135 |
+
*
|
136 |
+
* @uses term_exists() Returns true if term exists
|
137 |
+
* @uses get_term() Gets all term data by term_id
|
138 |
+
* @uses wp_insert_term() Inserts a term to the WordPress database
|
139 |
+
* @uses is_wp_error() Checks whether variable is a WordPress error
|
140 |
+
* @uses WP_Error WordPress Error class
|
141 |
+
* @uses clean_term_cache() Will remove all of the term ids from the cache.
|
142 |
+
* @uses delete_option() Deletes option from the database
|
143 |
+
* @uses wp_cache_set() Saves the data to the cache.
|
144 |
+
* @uses _get_term_hierarchy() Retrieves children of taxonomy as Term IDs.
|
145 |
+
* @uses wp_terms_checklist() Output an unordered list of checkbox <input> elements labelled
|
146 |
+
* @uses WPSC_Walker_Variation_Checklist Walker variation checklist
|
147 |
+
*
|
148 |
* @return array Response args
|
149 |
*/
|
150 |
function _wpsc_ajax_add_variation_set() {
|
163 |
}
|
164 |
|
165 |
if ( empty( $variation_set_id ) ) {
|
166 |
+
$results = wp_insert_term( apply_filters( 'wpsc_new_variation_set', $new_variation_set ), 'wpsc-variation' );
|
167 |
if ( is_wp_error( $results ) )
|
168 |
return $results;
|
169 |
$variation_set_id = $results['term_id'];
|
173 |
return new WP_Error( 'wpsc_invalid_variation_id', __( 'Cannot retrieve the variation set in order to proceed.', 'wpsc' ) );
|
174 |
|
175 |
foreach ( $variants as $variant ) {
|
176 |
+
$results = wp_insert_term( apply_filters( 'wpsc_new_variant', $variant, $variation_set_id ), 'wpsc-variation', array( 'parent' => $variation_set_id ) );
|
177 |
|
178 |
if ( is_wp_error( $results ) )
|
179 |
return $results;
|
219 |
*
|
220 |
* @since 3.8.9
|
221 |
* @access private
|
222 |
+
*
|
223 |
+
* @uses WPSC_Settings_Tab_Gateway
|
224 |
+
* @uses WPSC_Settings_Tab_Gateway::display_payment_gateway_settings_form() Displays payment gateway form
|
225 |
+
*
|
226 |
* @return array Response args
|
227 |
*/
|
228 |
function _wpsc_ajax_payment_gateway_settings_form() {
|
243 |
*
|
244 |
* @since 3.8.9
|
245 |
* @access private
|
246 |
+
*
|
247 |
+
* @uses WPSC_Settings_Table_Shipping
|
248 |
+
* @uses WPSC_Settings_Table_Shipping::display_shipping_module_settings_form() Displays shipping module form
|
249 |
+
*
|
250 |
+
* @return array $return Response args
|
251 |
*/
|
252 |
function _wpsc_ajax_shipping_module_settings_form() {
|
253 |
require_once( 'settings-page.php' );
|
267 |
*
|
268 |
* @since 3.8.9
|
269 |
* @access private
|
270 |
+
*
|
271 |
+
* @uses WPSC_Settings_Page
|
272 |
+
* @uses WPSC_Settings_Page::display_current_tab() Shows current tab of settings page
|
273 |
+
*
|
274 |
+
* @return array $return Response args
|
275 |
*/
|
276 |
function _wpsc_ajax_navigate_settings_tab() {
|
277 |
require_once( 'settings-page.php' );
|
284 |
|
285 |
return $return;
|
286 |
}
|
287 |
+
|
288 |
/**
|
289 |
* Display base region list in Store Settings -> General
|
290 |
*
|
291 |
* @since 3.8.9
|
292 |
* @access private
|
293 |
+
*
|
294 |
+
* @uses WPSC_Settings_Tab_General
|
295 |
+
* @uses WPSC_Settings_Tab_General::display_region_drop_down() Shows region dropdown
|
296 |
+
*
|
297 |
+
* @return array $return Response args
|
298 |
*/
|
299 |
function _wpsc_ajax_display_region_list() {
|
300 |
require_once( 'settings-page.php' );
|
314 |
*
|
315 |
* @since 3.8.9
|
316 |
* @access private
|
317 |
+
*
|
318 |
+
* @uses WP_Error WordPress Error class
|
319 |
+
*
|
320 |
+
* @return array|WP_Error $return Response args if successful, WP_Error if otherwise.
|
321 |
*/
|
322 |
function _wpsc_ajax_purchase_log_save_tracking_id() {
|
323 |
global $wpdb;
|
351 |
*
|
352 |
* @since 3.8.9
|
353 |
* @access private
|
354 |
+
*
|
355 |
+
* @uses $wpdb WordPress database object for queries
|
356 |
+
* @uses get_option() Gets option from DB given key
|
357 |
+
* @uses add_filter() Calls 'wp_mail_from' which can replace the from email address
|
358 |
+
* @uses add_filter() Calls 'wp_mail_from_name' allows replacement of the from name on WordPress emails
|
359 |
+
* @uses wp_mail() All the emailses in WordPress are sent through this function
|
360 |
+
* @uses WP_Error WordPress Error class
|
361 |
+
*
|
362 |
+
* @return array|WP_Error $return Response args if successful, WP_Error if otherwise
|
363 |
*/
|
364 |
function _wpsc_ajax_purchase_log_send_tracking_email() {
|
365 |
global $wpdb;
|
373 |
$message = str_replace( '%shop_name%', get_option( 'blogname' ), $message );
|
374 |
|
375 |
$email_form_field = $wpdb->get_var( "SELECT `id` FROM `" . WPSC_TABLE_CHECKOUT_FORMS . "` WHERE `type` IN ('email') AND `active` = '1' ORDER BY `checkout_order` ASC LIMIT 1" );
|
376 |
+
$email = $wpdb->get_var( $wpdb->prepare( "SELECT `value` FROM `" . WPSC_TABLE_SUBMITTED_FORM_DATA . "` WHERE `log_id`=%d AND `form_id` = '$email_form_field' LIMIT 1", $id ) );
|
377 |
|
378 |
$subject = get_option( 'wpsc_trackingid_subject' );
|
379 |
$subject = str_replace( '%shop_name%', get_option( 'blogname' ), $subject );
|
402 |
*
|
403 |
* @since 3.8.9
|
404 |
* @access private
|
405 |
+
*
|
406 |
+
* @uses _wpsc_delete_file() Deletes files associated with a product
|
407 |
+
* @uses WP_Error WordPress error class
|
408 |
+
*
|
409 |
+
* @return array|WP_Error $return Response args if successful, WP_Error if otherwise
|
410 |
*/
|
411 |
function _wpsc_ajax_delete_file() {
|
412 |
$product_id = absint( $_REQUEST['product_id'] );
|
430 |
*
|
431 |
* @since 3.8.9
|
432 |
* @access private
|
433 |
+
*
|
434 |
+
* @uses delete_meta() Deletes metadata by meta id
|
435 |
+
* @uses WP_Error WordPress error class
|
436 |
+
*
|
437 |
+
* @return array|WP_Error $return Response args if successful, WP_Error if otherwise
|
438 |
*/
|
439 |
function _wpsc_ajax_remove_product_meta() {
|
440 |
$meta_id = (int) $_POST['meta_id'];
|
449 |
*
|
450 |
* @since 3.8.9
|
451 |
* @access private
|
452 |
+
*
|
453 |
+
* @uses wpsc_purchlog_edit_status() Edits purchase log status
|
454 |
+
* @uses WP_Error WordPress Error class
|
455 |
+
* @uses get_bloginfo() Gets information about your WordPress site
|
456 |
+
* @uses set_current_screen() Sets current screen object
|
457 |
+
* @uses WPSC_Purchase_Log_List_Table
|
458 |
+
* @uses WPSC_Purchase_Log_List_Table::prepare_items()
|
459 |
+
* @uses WPSC_Purchase_Log_List_Table::views()
|
460 |
+
* @uses WPSC_Purchase_Log_List_Table::display_tablenav() @todo docs
|
461 |
+
*
|
462 |
+
* @return array|WP_Error $return Response args if successful, WP_Error if otherwise.
|
463 |
*/
|
464 |
function _wpsc_ajax_change_purchase_log_status() {
|
465 |
$result = wpsc_purchlog_edit_status( $_POST['id'], $_POST['new_status'] );
|
505 |
*
|
506 |
* @since 3.8.9
|
507 |
* @access private
|
508 |
+
*
|
509 |
+
* @uses $wpdb WordPress database object for use in queries
|
510 |
+
* @uses wp_update_post() Updates post based on passed $args. Needs a post_id
|
511 |
+
* @uses WP_Error WordPress Error class
|
512 |
+
*
|
513 |
* @return array|WP_Error Response args if successful, WP_Error if otherwise
|
514 |
*/
|
515 |
function _wpsc_ajax_save_product_order() {
|
|
|
516 |
|
517 |
$products = array( );
|
518 |
foreach ( $_POST['post'] as $product ) {
|
548 |
*
|
549 |
* @since 3.8.9
|
550 |
* @access private
|
551 |
+
*
|
552 |
+
* @uses $wpdb WordPress database object used for queries
|
553 |
+
* @uses WP_Error WordPress error class
|
554 |
+
*
|
555 |
* @return array|WP_Error Response args or WP_Error
|
556 |
*/
|
557 |
function _wpsc_ajax_update_checkout_fields_order() {
|
597 |
*
|
598 |
* @since 3.8.9
|
599 |
* @access private
|
600 |
+
*
|
601 |
+
* @uses $wpdb WordPress database object for use in queries
|
602 |
+
* @uses _wpsc_create_ajax_nonce() Creates nonce for an ajax action
|
603 |
+
* @uses wpsc_get_mimetype() Returns mimetype of file
|
604 |
+
* @uses wp_insert_post() Inserts post to WordPress database
|
605 |
+
* @uses wp_nonce_url() Retrieve URL with nonce added to URL query.
|
606 |
+
* @uses wpsc_convert_bytes() Formats bytes
|
607 |
+
* @uses wpsc_get_extension() Gets extension of file
|
608 |
+
* @uses esc_attr() Escapes HTML attributes
|
609 |
+
* @uses _x() Retrieve translated string with gettext context
|
610 |
+
*
|
611 |
* @return array|WP_Error Response args if successful, WP_Error if otherwise.
|
612 |
*/
|
613 |
function _wpsc_ajax_upload_product_file() {
|
677 |
*
|
678 |
* @since 3.8.9
|
679 |
* @access private
|
680 |
+
*
|
681 |
+
* @uses wpsc_update_variations() Updates prouct variations given
|
682 |
+
* @uses wpsc_admin_product_listing() DEPRECATED
|
683 |
+
*
|
684 |
* @return array|WP_Error Response args if successful, WP_Error if otherwise
|
685 |
*/
|
686 |
function _wpsc_ajax_update_variations() {
|
710 |
* Add tax rate
|
711 |
* @since 3.8.9
|
712 |
* @access private
|
713 |
+
*
|
714 |
+
* @uses wpec_taxes_controller Contains all the logic to communicate with the taxes system
|
715 |
+
* @uses wpec_taxes_controller::wpec_taxes::wpec_taxes_get_regions() Gets tax regions based on input country code
|
716 |
+
* @uses wpec_taxes_controller::wpec_taxes_build_select_options() Returns HTML formatted options from input array
|
717 |
+
* @uses wpec_taxes_controller::wpec_taxes_build_form() Builds the tax rate form
|
718 |
+
* @uses wpec_taxes_controller::wpec_taxes::wpec_taxes_get_band_from_index() Retrieves tax band for given name
|
719 |
+
*
|
720 |
* @return array|WP_Error Response args if successful, WP_Error if otherwise
|
721 |
*/
|
722 |
function _wpsc_ajax_add_tax_rate() {
|
756 |
);
|
757 |
}
|
758 |
|
759 |
+
/**
|
760 |
+
* Displays the WPSC product variations table
|
761 |
+
*
|
762 |
+
* @uses check_admin_referrer() Makes sure user was referred from another admin page
|
763 |
+
* @uses WPSC_Product_Variations_Page The WPSC Product variations class
|
764 |
+
* @uses WPSC_Product_Variations_Page::display() Displays the product variations page
|
765 |
+
*/
|
766 |
function wpsc_product_variations_table() {
|
767 |
check_admin_referer( 'wpsc_product_variations_table' );
|
768 |
require_once( WPSC_FILE_PATH . '/wpsc-admin/includes/product-variations-page.class.php' );
|
773 |
}
|
774 |
add_action( 'wp_ajax_wpsc_product_variations_table', 'wpsc_product_variations_table' );
|
775 |
|
776 |
+
/**
|
777 |
+
* @access private
|
778 |
+
*
|
779 |
+
* @uses current_user_can() Checks user capabilities given string
|
780 |
+
* @uses delete_post_thumbnail() Deletes post thumbnail given thumbnail id
|
781 |
+
* @uses set_post_thumbnail() Sets post thumbnail given post_id and thumbnail_id
|
782 |
+
* @uses wpsc_the_product_thumbnail() Returns URL to the product thumbnail
|
783 |
+
*
|
784 |
+
* @return array $response Includes the thumbnail URL and success bool value
|
785 |
+
*/
|
786 |
function _wpsc_ajax_set_variation_product_thumbnail() {
|
787 |
$response = array(
|
788 |
'success' => false
|
807 |
echo json_encode( $response );
|
808 |
exit;
|
809 |
}
|
810 |
+
add_action( 'wp_ajax_wpsc_set_variation_product_thumbnail', '_wpsc_ajax_set_variation_product_thumbnail' );
|
wpsc-admin/css/admin.css
CHANGED
@@ -1362,223 +1362,7 @@ a.variation_handle {
|
|
1362 |
.meta-box-sortables-wpec .postbox:hover .handlediv {
|
1363 |
background: transparent url(../../wpsc-core/images/menu-bits.gif) no-repeat scroll 0% -111px;
|
1364 |
}
|
1365 |
-
|
1366 |
-
#ui-datepicker-div, .ui-datepicker-inline {
|
1367 |
-
font-family: Arial,Helvetica,sans-serif;
|
1368 |
-
font-size: 14px;
|
1369 |
-
padding: 0;
|
1370 |
-
margin: 0;
|
1371 |
-
background: #E0F4D7;
|
1372 |
-
width: 185px;
|
1373 |
-
}
|
1374 |
-
#ui-datepicker-div {
|
1375 |
-
display: none;
|
1376 |
-
border: 1px solid #21759B;
|
1377 |
-
z-index: 10;
|
1378 |
-
}
|
1379 |
-
.ui-datepicker-inline {
|
1380 |
-
float: left;
|
1381 |
-
display: block;
|
1382 |
-
border: 0;
|
1383 |
-
}
|
1384 |
-
.ui-datepicker-rtl {
|
1385 |
-
direction: rtl;
|
1386 |
-
}
|
1387 |
-
.ui-datepicker-dialog {
|
1388 |
-
padding: 5px !important;
|
1389 |
-
border: 4px ridge #fff !important;
|
1390 |
-
}
|
1391 |
-
button.ui-datepicker-trigger {
|
1392 |
-
width: 25px;
|
1393 |
-
}
|
1394 |
-
img.ui-datepicker-trigger {
|
1395 |
-
margin: 2px;
|
1396 |
-
vertical-align: middle;
|
1397 |
-
}
|
1398 |
-
.ui-datepicker-prompt {
|
1399 |
-
float: left;
|
1400 |
-
padding: 2px;
|
1401 |
-
background: #fff;
|
1402 |
-
color: #000;
|
1403 |
-
}
|
1404 |
-
*html .ui-datepicker-prompt {
|
1405 |
-
width: 185px;
|
1406 |
-
}
|
1407 |
-
.ui-datepicker-control, .ui-datepicker-links, .ui-datepicker-header, .ui-datepicker {
|
1408 |
-
clear: both;
|
1409 |
-
float: left;
|
1410 |
-
width: 100%;
|
1411 |
-
color: #FFF;
|
1412 |
-
}
|
1413 |
-
.ui-datepicker-control {
|
1414 |
-
background: #fff;
|
1415 |
-
padding: 2px 0px;
|
1416 |
-
display:none;
|
1417 |
-
}
|
1418 |
-
.ui-datepicker-links {
|
1419 |
-
background: #fff;
|
1420 |
-
padding: 2px 0px;
|
1421 |
-
}
|
1422 |
-
.ui-datepicker-control, .ui-datepicker-links {
|
1423 |
-
font-weight: bold;
|
1424 |
-
font-size: 80%;
|
1425 |
-
letter-spacing: 1px;
|
1426 |
-
}
|
1427 |
-
.ui-datepicker-links label {
|
1428 |
-
padding: 2px 5px;
|
1429 |
-
color: #fff;
|
1430 |
-
}
|
1431 |
-
.ui-datepicker-clear, .ui-datepicker-prev {
|
1432 |
-
float: left;
|
1433 |
-
width: 34%;
|
1434 |
-
}
|
1435 |
-
.ui-datepicker-rtl .ui-datepicker-clear, .ui-datepicker-rtl .ui-datepicker-prev {
|
1436 |
-
float: right;
|
1437 |
-
text-align: right;
|
1438 |
-
}
|
1439 |
-
.ui-datepicker-current {
|
1440 |
-
float: left;
|
1441 |
-
width: 30%;
|
1442 |
-
text-align: center;
|
1443 |
-
}
|
1444 |
-
.ui-datepicker-close, .ui-datepicker-next {
|
1445 |
-
float: right;
|
1446 |
-
width: 34%;
|
1447 |
-
text-align: right;
|
1448 |
-
}
|
1449 |
-
.ui-datepicker-rtl .ui-datepicker-close, .ui-datepicker-rtl .ui-datepicker-next {
|
1450 |
-
float: left;
|
1451 |
-
text-align: left;
|
1452 |
-
}
|
1453 |
-
.ui-datepicker-header {
|
1454 |
-
padding: 1px 0 3px;
|
1455 |
-
background: #fff;
|
1456 |
-
text-align: center;
|
1457 |
-
font-weight: bold;
|
1458 |
-
height: 1.3em;
|
1459 |
-
}
|
1460 |
-
.ui-datepicker-header select {
|
1461 |
-
background: #fff;
|
1462 |
-
color: #000;
|
1463 |
-
border: 0px;
|
1464 |
-
font-weight: bold;
|
1465 |
-
}
|
1466 |
-
.ui-datepicker {
|
1467 |
-
background: #fff;
|
1468 |
-
text-align: center;
|
1469 |
-
font-size: 100%;
|
1470 |
-
}
|
1471 |
-
.ui-datepicker a {
|
1472 |
-
display: block;
|
1473 |
-
width: 100%;
|
1474 |
-
}
|
1475 |
-
.ui-datepicker-title-row {
|
1476 |
-
background: #fff;
|
1477 |
-
color: #000;
|
1478 |
-
}
|
1479 |
-
.ui-datepicker-title-row .ui-datepicker-week-end-cell {
|
1480 |
-
background: #fff;
|
1481 |
-
}
|
1482 |
-
.ui-datepicker-days-row {
|
1483 |
-
background: #FFF;
|
1484 |
-
color: #666;
|
1485 |
-
}
|
1486 |
-
.ui-datepicker-week-col {
|
1487 |
-
background: #ededed;
|
1488 |
-
color: #000;
|
1489 |
-
}
|
1490 |
-
.ui-datepicker-days-cell {
|
1491 |
-
color: #000;
|
1492 |
-
border: 1px solid #DDD;
|
1493 |
-
}
|
1494 |
-
.ui-datepicker-days-cell a {
|
1495 |
-
display: block;
|
1496 |
-
}
|
1497 |
-
.ui-datepicker-week-end-cell {
|
1498 |
-
background: #EAF2FA;
|
1499 |
-
}
|
1500 |
-
.ui-datepicker-unselectable {
|
1501 |
-
color: #888;
|
1502 |
-
}
|
1503 |
-
.ui-datepicker-week-over, .ui-datepicker-week-over .ui-datepicker-week-end-cell {
|
1504 |
-
background: #B1DB87 !important;
|
1505 |
-
}
|
1506 |
-
.ui-datepicker-days-cell-over, .ui-datepicker-days-cell-over.ui-datepicker-week-end-cell {
|
1507 |
-
background: #FFF !important;
|
1508 |
-
border: 1px solid #777;
|
1509 |
-
}
|
1510 |
-
* html .ui-datepicker-title-row .ui-datepicker-week-end-cell {
|
1511 |
-
background: #ddd !important;
|
1512 |
-
}
|
1513 |
-
* html .ui-datepicker-week-end-cell {
|
1514 |
-
background: #ddd !important;
|
1515 |
-
border: 1px solid #DDD !important;
|
1516 |
-
}
|
1517 |
-
* html .ui-datepicker-days-cell-over {
|
1518 |
-
background: #FFF !important;
|
1519 |
-
border: 1px solid #777 !important;
|
1520 |
-
}
|
1521 |
-
* html .ui-datepicker-current-day {
|
1522 |
-
background: #d3d3d3 !important;
|
1523 |
-
}
|
1524 |
-
.ui-datepicker-today {
|
1525 |
-
background: #dddddd !important;
|
1526 |
-
}
|
1527 |
-
.ui-datepicker-current-day {
|
1528 |
-
background: #d3d3d3 !important;
|
1529 |
-
}
|
1530 |
-
.ui-datepicker-status {
|
1531 |
-
background: #fff;
|
1532 |
-
width: 100%;
|
1533 |
-
font-size: 80%;
|
1534 |
-
text-align: center;
|
1535 |
-
}
|
1536 |
-
#ui-datepicker-div a, .ui-datepicker-inline a {
|
1537 |
-
cursor: pointer;
|
1538 |
-
margin: 0;
|
1539 |
-
padding: 0;
|
1540 |
-
background: none;
|
1541 |
-
color: #000;
|
1542 |
-
}
|
1543 |
-
.ui-datepicker-inline .ui-datepicker-links a {
|
1544 |
-
padding: 0 5px !important;
|
1545 |
-
}
|
1546 |
-
.ui-datepicker-control a, .ui-datepicker-links a {
|
1547 |
-
padding: 2px 5px !important;
|
1548 |
-
color: #000 !important;
|
1549 |
-
}
|
1550 |
-
.ui-datepicker-title-row a {
|
1551 |
-
color: #000 !important;
|
1552 |
-
}
|
1553 |
-
.ui-datepicker-control a:hover {
|
1554 |
-
background: #f1f1f1 !important;
|
1555 |
-
color: #333 !important;
|
1556 |
-
}
|
1557 |
-
.ui-datepicker-links a:hover, .ui-datepicker-title-row a:hover {
|
1558 |
-
background: #FFF !important;
|
1559 |
-
color: #333 !important;
|
1560 |
-
}
|
1561 |
-
.ui-datepicker-multi .ui-datepicker {
|
1562 |
-
/* border: 1px solid #83C948; */
|
1563 |
-
}
|
1564 |
-
.ui-datepicker-one-month {
|
1565 |
-
float: left;
|
1566 |
-
width: 185px;
|
1567 |
-
}
|
1568 |
-
.ui-datepicker-new-row {
|
1569 |
-
clear: left;
|
1570 |
-
}
|
1571 |
-
.ui-datepicker-cover {
|
1572 |
-
display: none;
|
1573 |
-
display: block;
|
1574 |
-
position: absolute;
|
1575 |
-
z-index: -1;
|
1576 |
-
filter: mask();
|
1577 |
-
top: -4px;
|
1578 |
-
left: -4px;
|
1579 |
-
width: 193px;
|
1580 |
-
height: 200px;
|
1581 |
-
}
|
1582 |
/* marketing / coupon page styling */
|
1583 |
|
1584 |
div.modify_coupon{ border: 1px solid #eeeeee; display: none; width: 100%; }
|
@@ -2199,4 +1983,33 @@ table.purchase-logs tr:hover .column-id .delete {
|
|
2199 |
.compat-field-wpsc_image_size input[type="radio"] {
|
2200 |
width: auto;
|
2201 |
margin-right:5px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2202 |
}
|
1362 |
.meta-box-sortables-wpec .postbox:hover .handlediv {
|
1363 |
background: transparent url(../../wpsc-core/images/menu-bits.gif) no-repeat scroll 0% -111px;
|
1364 |
}
|
1365 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1366 |
/* marketing / coupon page styling */
|
1367 |
|
1368 |
div.modify_coupon{ border: 1px solid #eeeeee; display: none; width: 100%; }
|
1983 |
.compat-field-wpsc_image_size input[type="radio"] {
|
1984 |
width: auto;
|
1985 |
margin-right:5px;
|
1986 |
+
}
|
1987 |
+
|
1988 |
+
.wpsc-button-round {
|
1989 |
+
padding: 0 0 1px !important;
|
1990 |
+
height: 24px !important;
|
1991 |
+
text-align: center;
|
1992 |
+
width: 24px !important;
|
1993 |
+
-webkit-border-radius: 12px !important;
|
1994 |
+
border-radius: 12px !important;
|
1995 |
+
outline: 0 !important;
|
1996 |
+
}
|
1997 |
+
|
1998 |
+
/* make the minus sign look balanced with the plus sign */
|
1999 |
+
.wpsc-button-minus {
|
2000 |
+
font-weight: bold;
|
2001 |
+
font-size: 10px !important;
|
2002 |
+
}
|
2003 |
+
|
2004 |
+
span.wpsc-button-round {
|
2005 |
+
cursor: default !important;
|
2006 |
+
opacity: 0.3;
|
2007 |
+
}
|
2008 |
+
|
2009 |
+
.wpsc-coupon-status-active {
|
2010 |
+
color: #1be032;
|
2011 |
+
}
|
2012 |
+
|
2013 |
+
.wpsc-coupon-status-inactive {
|
2014 |
+
color: #e01b1b;
|
2015 |
}
|
wpsc-admin/css/arrows.png
CHANGED
File without changes
|
wpsc-admin/css/jquery.ui.datepicker-classic.css
ADDED
@@ -0,0 +1,579 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* jQuery UI CSS Framework 1.8.16
|
3 |
+
*
|
4 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
5 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
6 |
+
* http://jquery.org/license
|
7 |
+
*
|
8 |
+
* http://docs.jquery.com/UI/Theming/API
|
9 |
+
*
|
10 |
+
* Credit goes to Helen Hou-Sandi:
|
11 |
+
* https://github.com/helenhousandi/wp-admin-jquery-ui
|
12 |
+
*
|
13 |
+
*/
|
14 |
+
|
15 |
+
/* Layout helpers
|
16 |
+
----------------------------------*/
|
17 |
+
.ui-helper-hidden { display: none; }
|
18 |
+
.ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
|
19 |
+
.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
|
20 |
+
.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
|
21 |
+
.ui-helper-clearfix { display: inline-block; }
|
22 |
+
/* required comment for clearfix to work in Opera \*/
|
23 |
+
* html .ui-helper-clearfix { height:1%; }
|
24 |
+
.ui-helper-clearfix { display:block; }
|
25 |
+
/* end clearfix */
|
26 |
+
.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
|
27 |
+
|
28 |
+
|
29 |
+
/* Interaction Cues
|
30 |
+
----------------------------------*/
|
31 |
+
.ui-state-disabled { cursor: default !important; }
|
32 |
+
|
33 |
+
|
34 |
+
/* Icons
|
35 |
+
----------------------------------*/
|
36 |
+
|
37 |
+
/* states and images */
|
38 |
+
.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
|
39 |
+
|
40 |
+
|
41 |
+
/* Misc visuals
|
42 |
+
----------------------------------*/
|
43 |
+
|
44 |
+
/* Overlays */
|
45 |
+
.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
|
46 |
+
|
47 |
+
|
48 |
+
/*
|
49 |
+
* jQuery UI CSS Framework 1.8.16
|
50 |
+
*
|
51 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
52 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
53 |
+
* http://jquery.org/license
|
54 |
+
*
|
55 |
+
* http://docs.jquery.com/UI/Theming/API
|
56 |
+
*
|
57 |
+
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=sans-serif&fwDefault=normal&fsDefault=12px&cornerRadius=3px&bgColorHeader=eff8ff&bgTextureHeader=04_highlight_hard.png&bgImgOpacityHeader=75&borderColorHeader=d1e5ee&fcHeader=333333&iconColorHeader=21759b&bgColorContent=ffffff&bgTextureContent=01_flat.png&bgImgOpacityContent=75&borderColorContent=d1e5ee&fcContent=333333&iconColorContent=333333&bgColorDefault=eff8ff&bgTextureDefault=04_highlight_hard.png&bgImgOpacityDefault=75&borderColorDefault=d1e5ee&fcDefault=333333&iconColorDefault=333333&bgColorHover=f7fcfe&bgTextureHover=06_inset_hard.png&bgImgOpacityHover=75&borderColorHover=b8d7e5&fcHover=000000&iconColorHover=333333&bgColorActive=ffffff&bgTextureActive=01_flat.png&bgImgOpacityActive=65&borderColorActive=d1e5ee&fcActive=333333&iconColorActive=333333&bgColorHighlight=ffffe0&bgTextureHighlight=01_flat.png&bgImgOpacityHighlight=55&borderColorHighlight=e6db55&fcHighlight=333333&iconColorHighlight=21759b&bgColorError=ffebe8&bgTextureError=01_flat.png&bgImgOpacityError=95&borderColorError=cc0000&fcError=cc0000&iconColorError=cc0000&bgColorOverlay=aaaaaa&bgTextureOverlay=01_flat.png&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=01_flat.png&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=3px
|
58 |
+
*/
|
59 |
+
|
60 |
+
|
61 |
+
/* Component containers
|
62 |
+
----------------------------------*/
|
63 |
+
.ui-widget { font-family: sans-serif; font-size: 12px; }
|
64 |
+
.ui-widget .ui-widget { font-size: 1em; }
|
65 |
+
.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: sans-serif; font-size: 1em; }
|
66 |
+
.ui-widget-content { border: 1px solid #d1e5ee; background: #ffffff; color: #333333; }
|
67 |
+
.ui-widget-header { border: 1px solid #d1e5ee; background-color: #f5fafd; background-image: -ms-linear-gradient(top, #f7fcfe, #eff8ff); background-image: -moz-linear-gradient(top, #f7fcfe, #eff8ff); background-image: -o-linear-gradient(top, #f7fcfe, #eff8ff); background-image: -webkit-gradient(linear, left top, left bottom, from(#f7fcfe), to(#eff8ff)); background-image: -webkit-linear-gradient(top, #f7fcfe, #eff8ff); background-image: linear-gradient(top, #f7fcfe, #eff8ff); color: #333333; font-weight: bold; }
|
68 |
+
.ui-widget-header a { color: #333333; }
|
69 |
+
|
70 |
+
/* Interaction states
|
71 |
+
----------------------------------*/
|
72 |
+
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #d1e5ee; background-color: #f5fafd; background-image: -ms-linear-gradient(top, #f7fcfe, #eff8ff); background-image: -moz-linear-gradient(top, #f7fcfe, #eff8ff); background-image: -o-linear-gradient(top, #f7fcfe, #eff8ff); background-image: -webkit-gradient(linear, left top, left bottom, from(#f7fcfe), to(#eff8ff)); background-image: -webkit-linear-gradient(top, #f7fcfe, #eff8ff); background-image: linear-gradient(top, #f7fcfe, #eff8ff); font-weight: normal; color: #333333; }
|
73 |
+
.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #333333; text-decoration: none; }
|
74 |
+
.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #b8d7e5; background-color: #f7fcfe; background-image: -ms-linear-gradient(top, #eff8ff, #f7fcfe); background-image: -moz-linear-gradient(top, #eff8ff, #f7fcfe); background-image: -o-linear-gradient(top, #eff8ff, #f7fcfe); background-image: -webkit-gradient(linear, left top, left bottom, from(#eff8ff), to(#f7fcfe)); background-image: -webkit-linear-gradient(top, #eff8ff, #f7fcfe); background-image: linear-gradient(top, #eff8ff, #f7fcfe);; font-weight: normal; color: #000000; }
|
75 |
+
.ui-state-hover a, .ui-state-hover a:hover { color: #000000; text-decoration: none; }
|
76 |
+
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #d1e5ee; background: #ffffff; font-weight: normal; color: #333333; }
|
77 |
+
.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #333333; text-decoration: none; }
|
78 |
+
.ui-widget :active { outline: none; }
|
79 |
+
|
80 |
+
/* Interaction Cues
|
81 |
+
----------------------------------*/
|
82 |
+
.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #e6db55; background: #ffffe0; color: #333333; }
|
83 |
+
.ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #333333; }
|
84 |
+
.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #cc0000; background: #ffebe8; color: #cc0000; }
|
85 |
+
.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #cc0000; }
|
86 |
+
.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #cc0000; }
|
87 |
+
.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
|
88 |
+
.ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
|
89 |
+
.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
|
90 |
+
|
91 |
+
/* Icons
|
92 |
+
----------------------------------*/
|
93 |
+
|
94 |
+
/* states and images */
|
95 |
+
.ui-icon { width: 16px; height: 16px; background-image: url(ui-images/ui-icons_333333_256x240.png); }
|
96 |
+
.ui-widget-content .ui-icon {background-image: url(ui-images/ui-icons_333333_256x240.png); }
|
97 |
+
.ui-widget-header .ui-icon {background-image: url(ui-images/ui-icons_999999_256x240.png); }
|
98 |
+
.ui-state-default .ui-icon { background-image: url(ui-images/ui-icons_333333_256x240.png); }
|
99 |
+
.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(ui-images/ui-icons_333333_256x240.png); }
|
100 |
+
.ui-state-active .ui-icon {background-image: url(ui-images/ui-icons_333333_256x240.png); }
|
101 |
+
.ui-state-highlight .ui-icon {background-image: url(ui-images/ui-icons_21759b_256x240.png); }
|
102 |
+
.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(ui-images/ui-icons_cc0000_256x240.png); }
|
103 |
+
|
104 |
+
/* positioning */
|
105 |
+
.ui-icon-carat-1-n { background-position: 0 0; }
|
106 |
+
.ui-icon-carat-1-ne { background-position: -16px 0; }
|
107 |
+
.ui-icon-carat-1-e { background-position: -32px 0; }
|
108 |
+
.ui-icon-carat-1-se { background-position: -48px 0; }
|
109 |
+
.ui-icon-carat-1-s { background-position: -64px 0; }
|
110 |
+
.ui-icon-carat-1-sw { background-position: -80px 0; }
|
111 |
+
.ui-icon-carat-1-w { background-position: -96px 0; }
|
112 |
+
.ui-icon-carat-1-nw { background-position: -112px 0; }
|
113 |
+
.ui-icon-carat-2-n-s { background-position: -128px 0; }
|
114 |
+
.ui-icon-carat-2-e-w { background-position: -144px 0; }
|
115 |
+
.ui-icon-triangle-1-n { background-position: 0 -16px; }
|
116 |
+
.ui-icon-triangle-1-ne { background-position: -16px -16px; }
|
117 |
+
.ui-icon-triangle-1-e { background-position: -32px -16px; }
|
118 |
+
.ui-icon-triangle-1-se { background-position: -48px -16px; }
|
119 |
+
.ui-icon-triangle-1-s { background-position: -64px -16px; }
|
120 |
+
.ui-icon-triangle-1-sw { background-position: -80px -16px; }
|
121 |
+
.ui-icon-triangle-1-w { background-position: -96px -16px; }
|
122 |
+
.ui-icon-triangle-1-nw { background-position: -112px -16px; }
|
123 |
+
.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
|
124 |
+
.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
|
125 |
+
.ui-icon-arrow-1-n { background-position: 0 -32px; }
|
126 |
+
.ui-icon-arrow-1-ne { background-position: -16px -32px; }
|
127 |
+
.ui-icon-arrow-1-e { background-position: -32px -32px; }
|
128 |
+
.ui-icon-arrow-1-se { background-position: -48px -32px; }
|
129 |
+
.ui-icon-arrow-1-s { background-position: -64px -32px; }
|
130 |
+
.ui-icon-arrow-1-sw { background-position: -80px -32px; }
|
131 |
+
.ui-icon-arrow-1-w { background-position: -96px -32px; }
|
132 |
+
.ui-icon-arrow-1-nw { background-position: -112px -32px; }
|
133 |
+
.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
|
134 |
+
.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
|
135 |
+
.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
|
136 |
+
.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
|
137 |
+
.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
|
138 |
+
.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
|
139 |
+
.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
|
140 |
+
.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
|
141 |
+
.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
|
142 |
+
.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
|
143 |
+
.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
|
144 |
+
.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
|
145 |
+
.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
|
146 |
+
.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
|
147 |
+
.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
|
148 |
+
.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
|
149 |
+
.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
|
150 |
+
.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
|
151 |
+
.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
|
152 |
+
.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
|
153 |
+
.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
|
154 |
+
.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
|
155 |
+
.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
|
156 |
+
.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
|
157 |
+
.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
|
158 |
+
.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
|
159 |
+
.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
|
160 |
+
.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
|
161 |
+
.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
|
162 |
+
.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
|
163 |
+
.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
|
164 |
+
.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
|
165 |
+
.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
|
166 |
+
.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
|
167 |
+
.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
|
168 |
+
.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
|
169 |
+
.ui-icon-arrow-4 { background-position: 0 -80px; }
|
170 |
+
.ui-icon-arrow-4-diag { background-position: -16px -80px; }
|
171 |
+
.ui-icon-extlink { background-position: -32px -80px; }
|
172 |
+
.ui-icon-newwin { background-position: -48px -80px; }
|
173 |
+
.ui-icon-refresh { background-position: -64px -80px; }
|
174 |
+
.ui-icon-shuffle { background-position: -80px -80px; }
|
175 |
+
.ui-icon-transfer-e-w { background-position: -96px -80px; }
|
176 |
+
.ui-icon-transferthick-e-w { background-position: -112px -80px; }
|
177 |
+
.ui-icon-folder-collapsed { background-position: 0 -96px; }
|
178 |
+
.ui-icon-folder-open { background-position: -16px -96px; }
|
179 |
+
.ui-icon-document { background-position: -32px -96px; }
|
180 |
+
.ui-icon-document-b { background-position: -48px -96px; }
|
181 |
+
.ui-icon-note { background-position: -64px -96px; }
|
182 |
+
.ui-icon-mail-closed { background-position: -80px -96px; }
|
183 |
+
.ui-icon-mail-open { background-position: -96px -96px; }
|
184 |
+
.ui-icon-suitcase { background-position: -112px -96px; }
|
185 |
+
.ui-icon-comment { background-position: -128px -96px; }
|
186 |
+
.ui-icon-person { background-position: -144px -96px; }
|
187 |
+
.ui-icon-print { background-position: -160px -96px; }
|
188 |
+
.ui-icon-trash { background-position: -176px -96px; }
|
189 |
+
.ui-icon-locked { background-position: -192px -96px; }
|
190 |
+
.ui-icon-unlocked { background-position: -208px -96px; }
|
191 |
+
.ui-icon-bookmark { background-position: -224px -96px; }
|
192 |
+
.ui-icon-tag { background-position: -240px -96px; }
|
193 |
+
.ui-icon-home { background-position: 0 -112px; }
|
194 |
+
.ui-icon-flag { background-position: -16px -112px; }
|
195 |
+
.ui-icon-calendar { background-position: -32px -112px; }
|
196 |
+
.ui-icon-cart { background-position: -48px -112px; }
|
197 |
+
.ui-icon-pencil { background-position: -64px -112px; }
|
198 |
+
.ui-icon-clock { background-position: -80px -112px; }
|
199 |
+
.ui-icon-disk { background-position: -96px -112px; }
|
200 |
+
.ui-icon-calculator { background-position: -112px -112px; }
|
201 |
+
.ui-icon-zoomin { background-position: -128px -112px; }
|
202 |
+
.ui-icon-zoomout { background-position: -144px -112px; }
|
203 |
+
.ui-icon-search { background-position: -160px -112px; }
|
204 |
+
.ui-icon-wrench { background-position: -176px -112px; }
|
205 |
+
.ui-icon-gear { background-position: -192px -112px; }
|
206 |
+
.ui-icon-heart { background-position: -208px -112px; }
|
207 |
+
.ui-icon-star { background-position: -224px -112px; }
|
208 |
+
.ui-icon-link { background-position: -240px -112px; }
|
209 |
+
.ui-icon-cancel { background-position: 0 -128px; }
|
210 |
+
.ui-icon-plus { background-position: -16px -128px; }
|
211 |
+
.ui-icon-plusthick { background-position: -32px -128px; }
|
212 |
+
.ui-icon-minus { background-position: -48px -128px; }
|
213 |
+
.ui-icon-minusthick { background-position: -64px -128px; }
|
214 |
+
.ui-icon-close { background-position: -80px -128px; }
|
215 |
+
.ui-icon-closethick { background-position: -96px -128px; }
|
216 |
+
.ui-icon-key { background-position: -112px -128px; }
|
217 |
+
.ui-icon-lightbulb { background-position: -128px -128px; }
|
218 |
+
.ui-icon-scissors { background-position: -144px -128px; }
|
219 |
+
.ui-icon-clipboard { background-position: -160px -128px; }
|
220 |
+
.ui-icon-copy { background-position: -176px -128px; }
|
221 |
+
.ui-icon-contact { background-position: -192px -128px; }
|
222 |
+
.ui-icon-image { background-position: -208px -128px; }
|
223 |
+
.ui-icon-video { background-position: -224px -128px; }
|
224 |
+
.ui-icon-script { background-position: -240px -128px; }
|
225 |
+
.ui-icon-alert { background-position: 0 -144px; }
|
226 |
+
.ui-icon-info { background-position: -16px -144px; }
|
227 |
+
.ui-icon-notice { background-position: -32px -144px; }
|
228 |
+
.ui-icon-help { background-position: -48px -144px; }
|
229 |
+
.ui-icon-check { background-position: -64px -144px; }
|
230 |
+
.ui-icon-bullet { background-position: -80px -144px; }
|
231 |
+
.ui-icon-radio-off { background-position: -96px -144px; }
|
232 |
+
.ui-icon-radio-on { background-position: -112px -144px; }
|
233 |
+
.ui-icon-pin-w { background-position: -128px -144px; }
|
234 |
+
.ui-icon-pin-s { background-position: -144px -144px; }
|
235 |
+
.ui-icon-play { background-position: 0 -160px; }
|
236 |
+
.ui-icon-pause { background-position: -16px -160px; }
|
237 |
+
.ui-icon-seek-next { background-position: -32px -160px; }
|
238 |
+
.ui-icon-seek-prev { background-position: -48px -160px; }
|
239 |
+
.ui-icon-seek-end { background-position: -64px -160px; }
|
240 |
+
.ui-icon-seek-start { background-position: -80px -160px; }
|
241 |
+
/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
|
242 |
+
.ui-icon-seek-first { background-position: -80px -160px; }
|
243 |
+
.ui-icon-stop { background-position: -96px -160px; }
|
244 |
+
.ui-icon-eject { background-position: -112px -160px; }
|
245 |
+
.ui-icon-volume-off { background-position: -128px -160px; }
|
246 |
+
.ui-icon-volume-on { background-position: -144px -160px; }
|
247 |
+
.ui-icon-power { background-position: 0 -176px; }
|
248 |
+
.ui-icon-signal-diag { background-position: -16px -176px; }
|
249 |
+
.ui-icon-signal { background-position: -32px -176px; }
|
250 |
+
.ui-icon-battery-0 { background-position: -48px -176px; }
|
251 |
+
.ui-icon-battery-1 { background-position: -64px -176px; }
|
252 |
+
.ui-icon-battery-2 { background-position: -80px -176px; }
|
253 |
+
.ui-icon-battery-3 { background-position: -96px -176px; }
|
254 |
+
.ui-icon-circle-plus { background-position: 0 -192px; }
|
255 |
+
.ui-icon-circle-minus { background-position: -16px -192px; }
|
256 |
+
.ui-icon-circle-close { background-position: -32px -192px; }
|
257 |
+
.ui-icon-circle-triangle-e { background-position: -48px -192px; }
|
258 |
+
.ui-icon-circle-triangle-s { background-position: -64px -192px; }
|
259 |
+
.ui-icon-circle-triangle-w { background-position: -80px -192px; }
|
260 |
+
.ui-icon-circle-triangle-n { background-position: -96px -192px; }
|
261 |
+
.ui-icon-circle-arrow-e { background-position: -112px -192px; }
|
262 |
+
.ui-icon-circle-arrow-s { background-position: -128px -192px; }
|
263 |
+
.ui-icon-circle-arrow-w { background-position: -144px -192px; }
|
264 |
+
.ui-icon-circle-arrow-n { background-position: -160px -192px; }
|
265 |
+
.ui-icon-circle-zoomin { background-position: -176px -192px; }
|
266 |
+
.ui-icon-circle-zoomout { background-position: -192px -192px; }
|
267 |
+
.ui-icon-circle-check { background-position: -208px -192px; }
|
268 |
+
.ui-icon-circlesmall-plus { background-position: 0 -208px; }
|
269 |
+
.ui-icon-circlesmall-minus { background-position: -16px -208px; }
|
270 |
+
.ui-icon-circlesmall-close { background-position: -32px -208px; }
|
271 |
+
.ui-icon-squaresmall-plus { background-position: -48px -208px; }
|
272 |
+
.ui-icon-squaresmall-minus { background-position: -64px -208px; }
|
273 |
+
.ui-icon-squaresmall-close { background-position: -80px -208px; }
|
274 |
+
.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
|
275 |
+
.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
|
276 |
+
.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
|
277 |
+
.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
|
278 |
+
.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
|
279 |
+
.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
|
280 |
+
|
281 |
+
|
282 |
+
/* Misc visuals
|
283 |
+
----------------------------------*/
|
284 |
+
|
285 |
+
/* Corner radius */
|
286 |
+
.ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl { -moz-border-radius-topleft: 3px; -webkit-border-top-left-radius: 3px; -khtml-border-top-left-radius: 3px; border-top-left-radius: 3px; }
|
287 |
+
.ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr { -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 3px; -khtml-border-top-right-radius: 3px; border-top-right-radius: 3px; }
|
288 |
+
.ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl { -moz-border-radius-bottomleft: 3px; -webkit-border-bottom-left-radius: 3px; -khtml-border-bottom-left-radius: 3px; border-bottom-left-radius: 3px; }
|
289 |
+
.ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { -moz-border-radius-bottomright: 3px; -webkit-border-bottom-right-radius: 3px; -khtml-border-bottom-right-radius: 3px; border-bottom-right-radius: 3px; }
|
290 |
+
|
291 |
+
/* Overlays */
|
292 |
+
.ui-widget-overlay { background: #000000; opacity: .6;filter:Alpha(Opacity=60); }
|
293 |
+
.ui-widget-shadow { box-shadow: 0 0 16px rgba(0, 0, 0, 0.3); }/*
|
294 |
+
* jQuery UI Resizable 1.8.16
|
295 |
+
*
|
296 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
297 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
298 |
+
* http://jquery.org/license
|
299 |
+
*
|
300 |
+
* http://docs.jquery.com/UI/Resizable#theming
|
301 |
+
*/
|
302 |
+
.ui-resizable { position: relative;}
|
303 |
+
.ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block; }
|
304 |
+
.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
|
305 |
+
.ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; }
|
306 |
+
.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; }
|
307 |
+
.ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; }
|
308 |
+
.ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; }
|
309 |
+
.ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; }
|
310 |
+
.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; }
|
311 |
+
.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; }
|
312 |
+
.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}/*
|
313 |
+
* jQuery UI Selectable 1.8.16
|
314 |
+
*
|
315 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
316 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
317 |
+
* http://jquery.org/license
|
318 |
+
*
|
319 |
+
* http://docs.jquery.com/UI/Selectable#theming
|
320 |
+
*/
|
321 |
+
.ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; }
|
322 |
+
/*
|
323 |
+
* jQuery UI Accordion 1.8.16
|
324 |
+
*
|
325 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
326 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
327 |
+
* http://jquery.org/license
|
328 |
+
*
|
329 |
+
* http://docs.jquery.com/UI/Accordion#theming
|
330 |
+
*/
|
331 |
+
/* IE/Win - Fix animation bug - #4615 */
|
332 |
+
.ui-accordion { width: 100%; }
|
333 |
+
.ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; }
|
334 |
+
.ui-accordion .ui-accordion-li-fix { display: inline; }
|
335 |
+
.ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
|
336 |
+
.ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em .7em; }
|
337 |
+
.ui-accordion-icons .ui-accordion-header a { padding-left: 2.2em; }
|
338 |
+
.ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
|
339 |
+
.ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; zoom: 1; }
|
340 |
+
.ui-accordion .ui-accordion-content-active { display: block; }
|
341 |
+
/*
|
342 |
+
* jQuery UI Autocomplete 1.8.16
|
343 |
+
*
|
344 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
345 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
346 |
+
* http://jquery.org/license
|
347 |
+
*
|
348 |
+
* http://docs.jquery.com/UI/Autocomplete#theming
|
349 |
+
*/
|
350 |
+
.ui-autocomplete { position: absolute; cursor: default; }
|
351 |
+
|
352 |
+
/* workarounds */
|
353 |
+
* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
|
354 |
+
|
355 |
+
/*
|
356 |
+
* jQuery UI Menu 1.8.16
|
357 |
+
*
|
358 |
+
* Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
|
359 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
360 |
+
* http://jquery.org/license
|
361 |
+
*
|
362 |
+
* http://docs.jquery.com/UI/Menu#theming
|
363 |
+
*/
|
364 |
+
.ui-menu {
|
365 |
+
list-style:none;
|
366 |
+
padding: 2px;
|
367 |
+
margin: 0;
|
368 |
+
display:block;
|
369 |
+
float: left;
|
370 |
+
}
|
371 |
+
.ui-menu .ui-menu {
|
372 |
+
margin-top: -3px;
|
373 |
+
}
|
374 |
+
.ui-menu .ui-menu-item {
|
375 |
+
margin:0;
|
376 |
+
padding: 0;
|
377 |
+
zoom: 1;
|
378 |
+
float: left;
|
379 |
+
clear: left;
|
380 |
+
width: 100%;
|
381 |
+
}
|
382 |
+
.ui-menu .ui-menu-item a {
|
383 |
+
text-decoration:none;
|
384 |
+
display:block;
|
385 |
+
padding:.2em .4em;
|
386 |
+
line-height:1.5;
|
387 |
+
zoom:1;
|
388 |
+
}
|
389 |
+
.ui-menu .ui-menu-item a.ui-state-hover,
|
390 |
+
.ui-menu .ui-menu-item a.ui-state-active {
|
391 |
+
font-weight: normal;
|
392 |
+
margin: -1px;
|
393 |
+
}
|
394 |
+
/*
|
395 |
+
* jQuery UI Button 1.8.16
|
396 |
+
*
|
397 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
398 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
399 |
+
* http://jquery.org/license
|
400 |
+
*
|
401 |
+
* http://docs.jquery.com/UI/Button#theming
|
402 |
+
*/
|
403 |
+
.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */
|
404 |
+
.ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
|
405 |
+
button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
|
406 |
+
.ui-button-icons-only { width: 3.4em; }
|
407 |
+
button.ui-button-icons-only { width: 3.7em; }
|
408 |
+
|
409 |
+
/*button text element */
|
410 |
+
.ui-button .ui-button-text { display: block; line-height: 1.4; }
|
411 |
+
.ui-button-text-only .ui-button-text { padding: .4em 1em; }
|
412 |
+
.ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; }
|
413 |
+
.ui-button-text-icon-primary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 1em .4em 2.1em; }
|
414 |
+
.ui-button-text-icon-secondary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 2.1em .4em 1em; }
|
415 |
+
.ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; }
|
416 |
+
/* no icon support for input elements, provide padding by default */
|
417 |
+
input.ui-button { padding: .4em 1em; }
|
418 |
+
|
419 |
+
/*button icon element(s) */
|
420 |
+
.ui-button-icon-only .ui-icon, .ui-button-text-icon-primary .ui-icon, .ui-button-text-icon-secondary .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -8px; }
|
421 |
+
.ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; }
|
422 |
+
.ui-button-text-icon-primary .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { left: .5em; }
|
423 |
+
.ui-button-text-icon-secondary .ui-button-icon-secondary, .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
|
424 |
+
.ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
|
425 |
+
|
426 |
+
/*button sets*/
|
427 |
+
.ui-buttonset { margin-right: 7px; }
|
428 |
+
.ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; }
|
429 |
+
|
430 |
+
/* workarounds */
|
431 |
+
button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */
|
432 |
+
/*
|
433 |
+
* jQuery UI Dialog 1.8.16
|
434 |
+
*
|
435 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
436 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
437 |
+
* http://jquery.org/license
|
438 |
+
*
|
439 |
+
* http://docs.jquery.com/UI/Dialog#theming
|
440 |
+
*/
|
441 |
+
.ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; }
|
442 |
+
.ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; }
|
443 |
+
.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; }
|
444 |
+
.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
|
445 |
+
.ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; }
|
446 |
+
.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
|
447 |
+
.ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
|
448 |
+
.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
|
449 |
+
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; }
|
450 |
+
.ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; }
|
451 |
+
.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
|
452 |
+
.ui-draggable .ui-dialog-titlebar { cursor: move; }
|
453 |
+
/*
|
454 |
+
* jQuery UI Slider 1.8.16
|
455 |
+
*
|
456 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
457 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
458 |
+
* http://jquery.org/license
|
459 |
+
*
|
460 |
+
* http://docs.jquery.com/UI/Slider#theming
|
461 |
+
*/
|
462 |
+
.ui-slider { position: relative; text-align: left; }
|
463 |
+
.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
|
464 |
+
.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
|
465 |
+
|
466 |
+
.ui-slider-horizontal { height: .8em; }
|
467 |
+
.ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; }
|
468 |
+
.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
|
469 |
+
.ui-slider-horizontal .ui-slider-range-min { left: 0; }
|
470 |
+
.ui-slider-horizontal .ui-slider-range-max { right: 0; }
|
471 |
+
|
472 |
+
.ui-slider-vertical { width: .8em; height: 100px; }
|
473 |
+
.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
|
474 |
+
.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
|
475 |
+
.ui-slider-vertical .ui-slider-range-min { bottom: 0; }
|
476 |
+
.ui-slider-vertical .ui-slider-range-max { top: 0; }/*
|
477 |
+
* jQuery UI Tabs 1.8.16
|
478 |
+
*
|
479 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
480 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
481 |
+
* http://jquery.org/license
|
482 |
+
*
|
483 |
+
* http://docs.jquery.com/UI/Tabs#theming
|
484 |
+
*/
|
485 |
+
.ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
|
486 |
+
.ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; }
|
487 |
+
.ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; }
|
488 |
+
.ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; }
|
489 |
+
.ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; }
|
490 |
+
.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; }
|
491 |
+
.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
|
492 |
+
.ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; }
|
493 |
+
.ui-tabs .ui-tabs-hide { display: none !important; }
|
494 |
+
/*
|
495 |
+
* jQuery UI Datepicker 1.8.16
|
496 |
+
*
|
497 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
498 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
499 |
+
* http://jquery.org/license
|
500 |
+
*
|
501 |
+
* http://docs.jquery.com/UI/Datepicker#theming
|
502 |
+
*/
|
503 |
+
.ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; }
|
504 |
+
.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; }
|
505 |
+
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
|
506 |
+
.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; }
|
507 |
+
.ui-datepicker .ui-datepicker-prev { left:2px; }
|
508 |
+
.ui-datepicker .ui-datepicker-next { right:2px; }
|
509 |
+
.ui-datepicker .ui-datepicker-prev-hover { left:1px; }
|
510 |
+
.ui-datepicker .ui-datepicker-next-hover { right:1px; }
|
511 |
+
.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; }
|
512 |
+
.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
|
513 |
+
.ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; }
|
514 |
+
.ui-datepicker select.ui-datepicker-month-year {width: 100%;}
|
515 |
+
.ui-datepicker select.ui-datepicker-month,
|
516 |
+
.ui-datepicker select.ui-datepicker-year { width: 49%;}
|
517 |
+
.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
|
518 |
+
.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; }
|
519 |
+
.ui-datepicker td { border: 0; padding: 1px; }
|
520 |
+
.ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; }
|
521 |
+
.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; }
|
522 |
+
.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; }
|
523 |
+
.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; }
|
524 |
+
|
525 |
+
/* with multiple calendars */
|
526 |
+
.ui-datepicker.ui-datepicker-multi { width:auto; }
|
527 |
+
.ui-datepicker-multi .ui-datepicker-group { float:left; }
|
528 |
+
.ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; }
|
529 |
+
.ui-datepicker-multi-2 .ui-datepicker-group { width:50%; }
|
530 |
+
.ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; }
|
531 |
+
.ui-datepicker-multi-4 .ui-datepicker-group { width:25%; }
|
532 |
+
.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; }
|
533 |
+
.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; }
|
534 |
+
.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; }
|
535 |
+
.ui-datepicker-row-break { clear:both; width:100%; font-size:0em; }
|
536 |
+
|
537 |
+
/* RTL support */
|
538 |
+
.ui-datepicker-rtl { direction: rtl; }
|
539 |
+
.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; }
|
540 |
+
.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; }
|
541 |
+
.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; }
|
542 |
+
.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; }
|
543 |
+
.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; }
|
544 |
+
.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; }
|
545 |
+
.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; }
|
546 |
+
.ui-datepicker-rtl .ui-datepicker-group { float:right; }
|
547 |
+
.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
|
548 |
+
.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
|
549 |
+
|
550 |
+
/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
|
551 |
+
.ui-datepicker-cover {
|
552 |
+
display: none; /*sorry for IE5*/
|
553 |
+
display/**/: block; /*sorry for IE5*/
|
554 |
+
position: absolute; /*must have*/
|
555 |
+
z-index: -1; /*must have*/
|
556 |
+
filter: mask(); /*must have*/
|
557 |
+
top: -4px; /*must have*/
|
558 |
+
left: -4px; /*must have*/
|
559 |
+
width: 200px; /*must have*/
|
560 |
+
height: 200px; /*must have*/
|
561 |
+
}/*
|
562 |
+
* jQuery UI Progressbar 1.8.16
|
563 |
+
*
|
564 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
565 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
566 |
+
* http://jquery.org/license
|
567 |
+
*
|
568 |
+
* http://docs.jquery.com/UI/Progressbar#theming
|
569 |
+
*/
|
570 |
+
.ui-progressbar { height:2em; text-align: left; }
|
571 |
+
.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }
|
572 |
+
.ui-progressbar .ui-widget-header {
|
573 |
+
background-color: #83B4D8;
|
574 |
+
background-image: linear-gradient(bottom, rgb(114,167,207) 0%, rgb(144,197,238) 100%);
|
575 |
+
background-image: -o-linear-gradient(bottom, rgb(114,167,207) 0%, rgb(144,197,238) 100%);
|
576 |
+
background-image: -moz-linear-gradient(bottom, rgb(114,167,207) 0%, rgb(144,197,238) 100%);
|
577 |
+
background-image: -webkit-linear-gradient(bottom, rgb(114,167,207) 0%, rgb(144,197,238) 100%);
|
578 |
+
background-image: -ms-linear-gradient(bottom, rgb(114,167,207) 0%, rgb(144,197,238) 100%);
|
579 |
+
}
|
wpsc-admin/css/jquery.ui.datepicker-fresh.css
ADDED
@@ -0,0 +1,579 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* jQuery UI CSS Framework 1.8.16
|
3 |
+
*
|
4 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
5 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
6 |
+
* http://jquery.org/license
|
7 |
+
*
|
8 |
+
* http://docs.jquery.com/UI/Theming/API
|
9 |
+
*
|
10 |
+
* Credit goes to Helen Hou-Sandi:
|
11 |
+
* https://github.com/helenhousandi/wp-admin-jquery-ui
|
12 |
+
*
|
13 |
+
*/
|
14 |
+
|
15 |
+
/* Layout helpers
|
16 |
+
----------------------------------*/
|
17 |
+
.ui-helper-hidden { display: none; }
|
18 |
+
.ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
|
19 |
+
.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
|
20 |
+
.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
|
21 |
+
.ui-helper-clearfix { display: inline-block; }
|
22 |
+
/* required comment for clearfix to work in Opera \*/
|
23 |
+
* html .ui-helper-clearfix { height:1%; }
|
24 |
+
.ui-helper-clearfix { display:block; }
|
25 |
+
/* end clearfix */
|
26 |
+
.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
|
27 |
+
|
28 |
+
|
29 |
+
/* Interaction Cues
|
30 |
+
----------------------------------*/
|
31 |
+
.ui-state-disabled { cursor: default !important; }
|
32 |
+
|
33 |
+
|
34 |
+
/* Icons
|
35 |
+
----------------------------------*/
|
36 |
+
|
37 |
+
/* states and images */
|
38 |
+
.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
|
39 |
+
|
40 |
+
|
41 |
+
/* Misc visuals
|
42 |
+
----------------------------------*/
|
43 |
+
|
44 |
+
/* Overlays */
|
45 |
+
.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
|
46 |
+
|
47 |
+
|
48 |
+
/*
|
49 |
+
* jQuery UI CSS Framework 1.8.16
|
50 |
+
*
|
51 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
52 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
53 |
+
* http://jquery.org/license
|
54 |
+
*
|
55 |
+
* http://docs.jquery.com/UI/Theming/API
|
56 |
+
*
|
57 |
+
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=sans-serif&fwDefault=normal&fsDefault=12px&cornerRadius=4px&bgColorHeader=ececec&bgTextureHeader=04_highlight_hard.png&bgImgOpacityHeader=75&borderColorHeader=dfdfdf&fcHeader=333333&iconColorHeader=999999&bgColorContent=ffffff&bgTextureContent=01_flat.png&bgImgOpacityContent=75&borderColorContent=dfdfdf&fcContent=333333&iconColorContent=333333&bgColorDefault=ececec&bgTextureDefault=04_highlight_hard.png&bgImgOpacityDefault=75&borderColorDefault=dfdfdf&fcDefault=333333&iconColorDefault=333333&bgColorHover=ececec&bgTextureHover=06_inset_hard.png&bgImgOpacityHover=75&borderColorHover=ccc&fcHover=000000&iconColorHover=333333&bgColorActive=ffffff&bgTextureActive=01_flat.png&bgImgOpacityActive=65&borderColorActive=dfdfdf&fcActive=333333&iconColorActive=333333&bgColorHighlight=ffffe0&bgTextureHighlight=01_flat.png&bgImgOpacityHighlight=55&borderColorHighlight=e6db55&fcHighlight=333333&iconColorHighlight=21759b&bgColorError=ffebe8&bgTextureError=01_flat.png&bgImgOpacityError=95&borderColorError=cc0000&fcError=cc0000&iconColorError=cc0000&bgColorOverlay=aaaaaa&bgTextureOverlay=01_flat.png&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=01_flat.png&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=3px
|
58 |
+
*/
|
59 |
+
|
60 |
+
|
61 |
+
/* Component containers
|
62 |
+
----------------------------------*/
|
63 |
+
.ui-widget { font-family: sans-serif; font-size: 12px; }
|
64 |
+
.ui-widget .ui-widget { font-size: 1em; }
|
65 |
+
.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: sans-serif; font-size: 1em; }
|
66 |
+
.ui-widget-content { border: 1px solid #dfdfdf; background: #ffffff; color: #333333; }
|
67 |
+
.ui-widget-header { border: 1px solid #dfdfdf; color: #333333; font-weight: bold; background-color: #f1f1f1; background-image: -ms-linear-gradient(top, #f9f9f9, #ececec); background-image: -moz-linear-gradient(top, #f9f9f9, #ececec); background-image: -o-linear-gradient(top, #f9f9f9, #ececec); background-image: -webkit-gradient(linear, left top, left bottom, from(#f9f9f9), to(#ececec)); background-image: -webkit-linear-gradient(top, #f9f9f9, #ececec); background-image: linear-gradient(top, #f9f9f9, #ececec); }
|
68 |
+
.ui-widget-header a { color: #333333; }
|
69 |
+
|
70 |
+
/* Interaction states
|
71 |
+
----------------------------------*/
|
72 |
+
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #dfdfdf; background-color: #f1f1f1; background-image: -ms-linear-gradient(top, #f9f9f9, #ececec); background-image: -moz-linear-gradient(top, #f9f9f9, #ececec); background-image: -o-linear-gradient(top, #f9f9f9, #ececec); background-image: -webkit-gradient(linear, left top, left bottom, from(#f9f9f9), to(#ececec)); background-image: -webkit-linear-gradient(top, #f9f9f9, #ececec); background-image: linear-gradient(top, #f9f9f9, #ececec); font-weight: normal; color: #333333; }
|
73 |
+
.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #333333; text-decoration: none; }
|
74 |
+
.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #ccc; background-color: #ececec; background-image: -ms-linear-gradient(top, #ececec, #f9f9f9); background-image: -moz-linear-gradient(top, #ececec, #f9f9f9); background-image: -o-linear-gradient(top, #ececec, #f9f9f9); background-image: -webkit-gradient(linear, left top, left bottom, from(#ececec), to(#f9f9f9)); background-image: -webkit-linear-gradient(top, #ececec, #f9f9f9); background-image: linear-gradient(top, #ececec, #f9f9f9); font-weight: normal; color: #000000; }
|
75 |
+
.ui-state-hover a, .ui-state-hover a:hover { color: #000000; text-decoration: none; }
|
76 |
+
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #dfdfdf; background: #ffffff; font-weight: normal; color: #333333; }
|
77 |
+
.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #333333; text-decoration: none; }
|
78 |
+
.ui-widget :active { outline: none; }
|
79 |
+
|
80 |
+
/* Interaction Cues
|
81 |
+
----------------------------------*/
|
82 |
+
.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #e6db55; background: #ffffe0; color: #333333; }
|
83 |
+
.ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #333333; }
|
84 |
+
.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #cc0000; background: #ffebe8; color: #cc0000; }
|
85 |
+
.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #cc0000; }
|
86 |
+
.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #cc0000; }
|
87 |
+
.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
|
88 |
+
.ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
|
89 |
+
.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
|
90 |
+
|
91 |
+
/* Icons
|
92 |
+
----------------------------------*/
|
93 |
+
|
94 |
+
/* states and images */
|
95 |
+
.ui-icon { width: 16px; height: 16px; background-image: url(ui-images/ui-icons_333333_256x240.png); }
|
96 |
+
.ui-widget-content .ui-icon {background-image: url(ui-images/ui-icons_333333_256x240.png); }
|
97 |
+
.ui-widget-header .ui-icon {background-image: url(ui-images/ui-icons_999999_256x240.png); }
|
98 |
+
.ui-state-default .ui-icon { background-image: url(ui-images/ui-icons_333333_256x240.png); }
|
99 |
+
.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(ui-images/ui-icons_333333_256x240.png); }
|
100 |
+
.ui-state-active .ui-icon {background-image: url(ui-images/ui-icons_333333_256x240.png); }
|
101 |
+
.ui-state-highlight .ui-icon {background-image: url(ui-images/ui-icons_21759b_256x240.png); }
|
102 |
+
.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(ui-images/ui-icons_cc0000_256x240.png); }
|
103 |
+
|
104 |
+
/* positioning */
|
105 |
+
.ui-icon-carat-1-n { background-position: 0 0; }
|
106 |
+
.ui-icon-carat-1-ne { background-position: -16px 0; }
|
107 |
+
.ui-icon-carat-1-e { background-position: -32px 0; }
|
108 |
+
.ui-icon-carat-1-se { background-position: -48px 0; }
|
109 |
+
.ui-icon-carat-1-s { background-position: -64px 0; }
|
110 |
+
.ui-icon-carat-1-sw { background-position: -80px 0; }
|
111 |
+
.ui-icon-carat-1-w { background-position: -96px 0; }
|
112 |
+
.ui-icon-carat-1-nw { background-position: -112px 0; }
|
113 |
+
.ui-icon-carat-2-n-s { background-position: -128px 0; }
|
114 |
+
.ui-icon-carat-2-e-w { background-position: -144px 0; }
|
115 |
+
.ui-icon-triangle-1-n { background-position: 0 -16px; }
|
116 |
+
.ui-icon-triangle-1-ne { background-position: -16px -16px; }
|
117 |
+
.ui-icon-triangle-1-e { background-position: -32px -16px; }
|
118 |
+
.ui-icon-triangle-1-se { background-position: -48px -16px; }
|
119 |
+
.ui-icon-triangle-1-s { background-position: -64px -16px; }
|
120 |
+
.ui-icon-triangle-1-sw { background-position: -80px -16px; }
|
121 |
+
.ui-icon-triangle-1-w { background-position: -96px -16px; }
|
122 |
+
.ui-icon-triangle-1-nw { background-position: -112px -16px; }
|
123 |
+
.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
|
124 |
+
.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
|
125 |
+
.ui-icon-arrow-1-n { background-position: 0 -32px; }
|
126 |
+
.ui-icon-arrow-1-ne { background-position: -16px -32px; }
|
127 |
+
.ui-icon-arrow-1-e { background-position: -32px -32px; }
|
128 |
+
.ui-icon-arrow-1-se { background-position: -48px -32px; }
|
129 |
+
.ui-icon-arrow-1-s { background-position: -64px -32px; }
|
130 |
+
.ui-icon-arrow-1-sw { background-position: -80px -32px; }
|
131 |
+
.ui-icon-arrow-1-w { background-position: -96px -32px; }
|
132 |
+
.ui-icon-arrow-1-nw { background-position: -112px -32px; }
|
133 |
+
.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
|
134 |
+
.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
|
135 |
+
.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
|
136 |
+
.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
|
137 |
+
.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
|
138 |
+
.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
|
139 |
+
.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
|
140 |
+
.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
|
141 |
+
.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
|
142 |
+
.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
|
143 |
+
.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
|
144 |
+
.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
|
145 |
+
.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
|
146 |
+
.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
|
147 |
+
.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
|
148 |
+
.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
|
149 |
+
.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
|
150 |
+
.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
|
151 |
+
.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
|
152 |
+
.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
|
153 |
+
.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
|
154 |
+
.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
|
155 |
+
.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
|
156 |
+
.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
|
157 |
+
.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
|
158 |
+
.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
|
159 |
+
.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
|
160 |
+
.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
|
161 |
+
.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
|
162 |
+
.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
|
163 |
+
.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
|
164 |
+
.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
|
165 |
+
.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
|
166 |
+
.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
|
167 |
+
.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
|
168 |
+
.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
|
169 |
+
.ui-icon-arrow-4 { background-position: 0 -80px; }
|
170 |
+
.ui-icon-arrow-4-diag { background-position: -16px -80px; }
|
171 |
+
.ui-icon-extlink { background-position: -32px -80px; }
|
172 |
+
.ui-icon-newwin { background-position: -48px -80px; }
|
173 |
+
.ui-icon-refresh { background-position: -64px -80px; }
|
174 |
+
.ui-icon-shuffle { background-position: -80px -80px; }
|
175 |
+
.ui-icon-transfer-e-w { background-position: -96px -80px; }
|
176 |
+
.ui-icon-transferthick-e-w { background-position: -112px -80px; }
|
177 |
+
.ui-icon-folder-collapsed { background-position: 0 -96px; }
|
178 |
+
.ui-icon-folder-open { background-position: -16px -96px; }
|
179 |
+
.ui-icon-document { background-position: -32px -96px; }
|
180 |
+
.ui-icon-document-b { background-position: -48px -96px; }
|
181 |
+
.ui-icon-note { background-position: -64px -96px; }
|
182 |
+
.ui-icon-mail-closed { background-position: -80px -96px; }
|
183 |
+
.ui-icon-mail-open { background-position: -96px -96px; }
|
184 |
+
.ui-icon-suitcase { background-position: -112px -96px; }
|
185 |
+
.ui-icon-comment { background-position: -128px -96px; }
|
186 |
+
.ui-icon-person { background-position: -144px -96px; }
|
187 |
+
.ui-icon-print { background-position: -160px -96px; }
|
188 |
+
.ui-icon-trash { background-position: -176px -96px; }
|
189 |
+
.ui-icon-locked { background-position: -192px -96px; }
|
190 |
+
.ui-icon-unlocked { background-position: -208px -96px; }
|
191 |
+
.ui-icon-bookmark { background-position: -224px -96px; }
|
192 |
+
.ui-icon-tag { background-position: -240px -96px; }
|
193 |
+
.ui-icon-home { background-position: 0 -112px; }
|
194 |
+
.ui-icon-flag { background-position: -16px -112px; }
|
195 |
+
.ui-icon-calendar { background-position: -32px -112px; }
|
196 |
+
.ui-icon-cart { background-position: -48px -112px; }
|
197 |
+
.ui-icon-pencil { background-position: -64px -112px; }
|
198 |
+
.ui-icon-clock { background-position: -80px -112px; }
|
199 |
+
.ui-icon-disk { background-position: -96px -112px; }
|
200 |
+
.ui-icon-calculator { background-position: -112px -112px; }
|
201 |
+
.ui-icon-zoomin { background-position: -128px -112px; }
|
202 |
+
.ui-icon-zoomout { background-position: -144px -112px; }
|
203 |
+
.ui-icon-search { background-position: -160px -112px; }
|
204 |
+
.ui-icon-wrench { background-position: -176px -112px; }
|
205 |
+
.ui-icon-gear { background-position: -192px -112px; }
|
206 |
+
.ui-icon-heart { background-position: -208px -112px; }
|
207 |
+
.ui-icon-star { background-position: -224px -112px; }
|
208 |
+
.ui-icon-link { background-position: -240px -112px; }
|
209 |
+
.ui-icon-cancel { background-position: 0 -128px; }
|
210 |
+
.ui-icon-plus { background-position: -16px -128px; }
|
211 |
+
.ui-icon-plusthick { background-position: -32px -128px; }
|
212 |
+
.ui-icon-minus { background-position: -48px -128px; }
|
213 |
+
.ui-icon-minusthick { background-position: -64px -128px; }
|
214 |
+
.ui-icon-close { background-position: -80px -128px; }
|
215 |
+
.ui-icon-closethick { background-position: -96px -128px; }
|
216 |
+
.ui-icon-key { background-position: -112px -128px; }
|
217 |
+
.ui-icon-lightbulb { background-position: -128px -128px; }
|
218 |
+
.ui-icon-scissors { background-position: -144px -128px; }
|
219 |
+
.ui-icon-clipboard { background-position: -160px -128px; }
|
220 |
+
.ui-icon-copy { background-position: -176px -128px; }
|
221 |
+
.ui-icon-contact { background-position: -192px -128px; }
|
222 |
+
.ui-icon-image { background-position: -208px -128px; }
|
223 |
+
.ui-icon-video { background-position: -224px -128px; }
|
224 |
+
.ui-icon-script { background-position: -240px -128px; }
|
225 |
+
.ui-icon-alert { background-position: 0 -144px; }
|
226 |
+
.ui-icon-info { background-position: -16px -144px; }
|
227 |
+
.ui-icon-notice { background-position: -32px -144px; }
|
228 |
+
.ui-icon-help { background-position: -48px -144px; }
|
229 |
+
.ui-icon-check { background-position: -64px -144px; }
|
230 |
+
.ui-icon-bullet { background-position: -80px -144px; }
|
231 |
+
.ui-icon-radio-off { background-position: -96px -144px; }
|
232 |
+
.ui-icon-radio-on { background-position: -112px -144px; }
|
233 |
+
.ui-icon-pin-w { background-position: -128px -144px; }
|
234 |
+
.ui-icon-pin-s { background-position: -144px -144px; }
|
235 |
+
.ui-icon-play { background-position: 0 -160px; }
|
236 |
+
.ui-icon-pause { background-position: -16px -160px; }
|
237 |
+
.ui-icon-seek-next { background-position: -32px -160px; }
|
238 |
+
.ui-icon-seek-prev { background-position: -48px -160px; }
|
239 |
+
.ui-icon-seek-end { background-position: -64px -160px; }
|
240 |
+
.ui-icon-seek-start { background-position: -80px -160px; }
|
241 |
+
/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
|
242 |
+
.ui-icon-seek-first { background-position: -80px -160px; }
|
243 |
+
.ui-icon-stop { background-position: -96px -160px; }
|
244 |
+
.ui-icon-eject { background-position: -112px -160px; }
|
245 |
+
.ui-icon-volume-off { background-position: -128px -160px; }
|
246 |
+
.ui-icon-volume-on { background-position: -144px -160px; }
|
247 |
+
.ui-icon-power { background-position: 0 -176px; }
|
248 |
+
.ui-icon-signal-diag { background-position: -16px -176px; }
|
249 |
+
.ui-icon-signal { background-position: -32px -176px; }
|
250 |
+
.ui-icon-battery-0 { background-position: -48px -176px; }
|
251 |
+
.ui-icon-battery-1 { background-position: -64px -176px; }
|
252 |
+
.ui-icon-battery-2 { background-position: -80px -176px; }
|
253 |
+
.ui-icon-battery-3 { background-position: -96px -176px; }
|
254 |
+
.ui-icon-circle-plus { background-position: 0 -192px; }
|
255 |
+
.ui-icon-circle-minus { background-position: -16px -192px; }
|
256 |
+
.ui-icon-circle-close { background-position: -32px -192px; }
|
257 |
+
.ui-icon-circle-triangle-e { background-position: -48px -192px; }
|
258 |
+
.ui-icon-circle-triangle-s { background-position: -64px -192px; }
|
259 |
+
.ui-icon-circle-triangle-w { background-position: -80px -192px; }
|
260 |
+
.ui-icon-circle-triangle-n { background-position: -96px -192px; }
|
261 |
+
.ui-icon-circle-arrow-e { background-position: -112px -192px; }
|
262 |
+
.ui-icon-circle-arrow-s { background-position: -128px -192px; }
|
263 |
+
.ui-icon-circle-arrow-w { background-position: -144px -192px; }
|
264 |
+
.ui-icon-circle-arrow-n { background-position: -160px -192px; }
|
265 |
+
.ui-icon-circle-zoomin { background-position: -176px -192px; }
|
266 |
+
.ui-icon-circle-zoomout { background-position: -192px -192px; }
|
267 |
+
.ui-icon-circle-check { background-position: -208px -192px; }
|
268 |
+
.ui-icon-circlesmall-plus { background-position: 0 -208px; }
|
269 |
+
.ui-icon-circlesmall-minus { background-position: -16px -208px; }
|
270 |
+
.ui-icon-circlesmall-close { background-position: -32px -208px; }
|
271 |
+
.ui-icon-squaresmall-plus { background-position: -48px -208px; }
|
272 |
+
.ui-icon-squaresmall-minus { background-position: -64px -208px; }
|
273 |
+
.ui-icon-squaresmall-close { background-position: -80px -208px; }
|
274 |
+
.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
|
275 |
+
.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
|
276 |
+
.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
|
277 |
+
.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
|
278 |
+
.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
|
279 |
+
.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
|
280 |
+
|
281 |
+
|
282 |
+
/* Misc visuals
|
283 |
+
----------------------------------*/
|
284 |
+
|
285 |
+
/* Corner radius */
|
286 |
+
.ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl { -moz-border-radius-topleft: 3px; -webkit-border-top-left-radius: 3px; border-top-left-radius: 3px; }
|
287 |
+
.ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr { -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 3px; border-top-right-radius: 3px; }
|
288 |
+
.ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl { -moz-border-radius-bottomleft: 3px; -webkit-border-bottom-left-radius: 3px; border-bottom-left-radius: 3px; }
|
289 |
+
.ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { -moz-border-radius-bottomright: 3px; -webkit-border-bottom-right-radius: 3px; border-bottom-right-radius: 3px; }
|
290 |
+
|
291 |
+
/* Overlays */
|
292 |
+
.ui-widget-overlay { background: #000000; opacity: .6;filter:Alpha(Opacity=60); }
|
293 |
+
.ui-widget-shadow { box-shadow: 0 0 16px rgba(0, 0, 0, 0.3); }/*
|
294 |
+
* jQuery UI Resizable 1.8.16
|
295 |
+
*
|
296 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
297 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
298 |
+
* http://jquery.org/license
|
299 |
+
*
|
300 |
+
* http://docs.jquery.com/UI/Resizable#theming
|
301 |
+
*/
|
302 |
+
.ui-resizable { position: relative;}
|
303 |
+
.ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block; }
|
304 |
+
.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
|
305 |
+
.ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; }
|
306 |
+
.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; }
|
307 |
+
.ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; }
|
308 |
+
.ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; }
|
309 |
+
.ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; }
|
310 |
+
.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; }
|
311 |
+
.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; }
|
312 |
+
.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}/*
|
313 |
+
* jQuery UI Selectable 1.8.16
|
314 |
+
*
|
315 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
316 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
317 |
+
* http://jquery.org/license
|
318 |
+
*
|
319 |
+
* http://docs.jquery.com/UI/Selectable#theming
|
320 |
+
*/
|
321 |
+
.ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; }
|
322 |
+
/*
|
323 |
+
* jQuery UI Accordion 1.8.16
|
324 |
+
*
|
325 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
326 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
327 |
+
* http://jquery.org/license
|
328 |
+
*
|
329 |
+
* http://docs.jquery.com/UI/Accordion#theming
|
330 |
+
*/
|
331 |
+
/* IE/Win - Fix animation bug - #4615 */
|
332 |
+
.ui-accordion { width: 100%; }
|
333 |
+
.ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; }
|
334 |
+
.ui-accordion .ui-accordion-li-fix { display: inline; }
|
335 |
+
.ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
|
336 |
+
.ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em .7em; }
|
337 |
+
.ui-accordion-icons .ui-accordion-header a { padding-left: 2.2em; }
|
338 |
+
.ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
|
339 |
+
.ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; zoom: 1; }
|
340 |
+
.ui-accordion .ui-accordion-content-active { display: block; }
|
341 |
+
/*
|
342 |
+
* jQuery UI Autocomplete 1.8.16
|
343 |
+
*
|
344 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
345 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
346 |
+
* http://jquery.org/license
|
347 |
+
*
|
348 |
+
* http://docs.jquery.com/UI/Autocomplete#theming
|
349 |
+
*/
|
350 |
+
.ui-autocomplete { position: absolute; cursor: default; }
|
351 |
+
|
352 |
+
/* workarounds */
|
353 |
+
* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
|
354 |
+
|
355 |
+
/*
|
356 |
+
* jQuery UI Menu 1.8.16
|
357 |
+
*
|
358 |
+
* Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
|
359 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
360 |
+
* http://jquery.org/license
|
361 |
+
*
|
362 |
+
* http://docs.jquery.com/UI/Menu#theming
|
363 |
+
*/
|
364 |
+
.ui-menu {
|
365 |
+
list-style:none;
|
366 |
+
padding: 2px;
|
367 |
+
margin: 0;
|
368 |
+
display:block;
|
369 |
+
float: left;
|
370 |
+
}
|
371 |
+
.ui-menu .ui-menu {
|
372 |
+
margin-top: -3px;
|
373 |
+
}
|
374 |
+
.ui-menu .ui-menu-item {
|
375 |
+
margin:0;
|
376 |
+
padding: 0;
|
377 |
+
zoom: 1;
|
378 |
+
float: left;
|
379 |
+
clear: left;
|
380 |
+
width: 100%;
|
381 |
+
}
|
382 |
+
.ui-menu .ui-menu-item a {
|
383 |
+
text-decoration:none;
|
384 |
+
display:block;
|
385 |
+
padding:.2em .4em;
|
386 |
+
line-height:1.5;
|
387 |
+
zoom:1;
|
388 |
+
}
|
389 |
+
.ui-menu .ui-menu-item a.ui-state-hover,
|
390 |
+
.ui-menu .ui-menu-item a.ui-state-active {
|
391 |
+
font-weight: normal;
|
392 |
+
margin: -1px;
|
393 |
+
}
|
394 |
+
/*
|
395 |
+
* jQuery UI Button 1.8.16
|
396 |
+
*
|
397 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
398 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
399 |
+
* http://jquery.org/license
|
400 |
+
*
|
401 |
+
* http://docs.jquery.com/UI/Button#theming
|
402 |
+
*/
|
403 |
+
.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */
|
404 |
+
.ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
|
405 |
+
button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
|
406 |
+
.ui-button-icons-only { width: 3.4em; }
|
407 |
+
button.ui-button-icons-only { width: 3.7em; }
|
408 |
+
|
409 |
+
/*button text element */
|
410 |
+
.ui-button .ui-button-text { display: block; line-height: 1.4; }
|
411 |
+
.ui-button-text-only .ui-button-text { padding: .4em 1em; }
|
412 |
+
.ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; }
|
413 |
+
.ui-button-text-icon-primary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 1em .4em 2.1em; }
|
414 |
+
.ui-button-text-icon-secondary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 2.1em .4em 1em; }
|
415 |
+
.ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; }
|
416 |
+
/* no icon support for input elements, provide padding by default */
|
417 |
+
input.ui-button { padding: .4em 1em; }
|
418 |
+
|
419 |
+
/*button icon element(s) */
|
420 |
+
.ui-button-icon-only .ui-icon, .ui-button-text-icon-primary .ui-icon, .ui-button-text-icon-secondary .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -8px; }
|
421 |
+
.ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; }
|
422 |
+
.ui-button-text-icon-primary .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { left: .5em; }
|
423 |
+
.ui-button-text-icon-secondary .ui-button-icon-secondary, .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
|
424 |
+
.ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
|
425 |
+
|
426 |
+
/*button sets*/
|
427 |
+
.ui-buttonset { margin-right: 7px; }
|
428 |
+
.ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; }
|
429 |
+
|
430 |
+
/* workarounds */
|
431 |
+
button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */
|
432 |
+
/*
|
433 |
+
* jQuery UI Dialog 1.8.16
|
434 |
+
*
|
435 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
436 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
437 |
+
* http://jquery.org/license
|
438 |
+
*
|
439 |
+
* http://docs.jquery.com/UI/Dialog#theming
|
440 |
+
*/
|
441 |
+
.ui-dialog { position: fixed; padding: .2em; width: 300px; overflow: hidden; }
|
442 |
+
.ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; }
|
443 |
+
.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; }
|
444 |
+
.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
|
445 |
+
.ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; }
|
446 |
+
.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
|
447 |
+
.ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
|
448 |
+
.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
|
449 |
+
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; }
|
450 |
+
.ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; }
|
451 |
+
.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
|
452 |
+
.ui-draggable .ui-dialog-titlebar { cursor: move; }
|
453 |
+
/*
|
454 |
+
* jQuery UI Slider 1.8.16
|
455 |
+
*
|
456 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
457 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
458 |
+
* http://jquery.org/license
|
459 |
+
*
|
460 |
+
* http://docs.jquery.com/UI/Slider#theming
|
461 |
+
*/
|
462 |
+
.ui-slider { position: relative; text-align: left; }
|
463 |
+
.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
|
464 |
+
.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
|
465 |
+
|
466 |
+
.ui-slider-horizontal { height: .8em; }
|
467 |
+
.ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; }
|
468 |
+
.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
|
469 |
+
.ui-slider-horizontal .ui-slider-range-min { left: 0; }
|
470 |
+
.ui-slider-horizontal .ui-slider-range-max { right: 0; }
|
471 |
+
|
472 |
+
.ui-slider-vertical { width: .8em; height: 100px; }
|
473 |
+
.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
|
474 |
+
.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
|
475 |
+
.ui-slider-vertical .ui-slider-range-min { bottom: 0; }
|
476 |
+
.ui-slider-vertical .ui-slider-range-max { top: 0; }/*
|
477 |
+
* jQuery UI Tabs 1.8.16
|
478 |
+
*
|
479 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
480 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
481 |
+
* http://jquery.org/license
|
482 |
+
*
|
483 |
+
* http://docs.jquery.com/UI/Tabs#theming
|
484 |
+
*/
|
485 |
+
.ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
|
486 |
+
.ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; }
|
487 |
+
.ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; }
|
488 |
+
.ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; }
|
489 |
+
.ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; }
|
490 |
+
.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; }
|
491 |
+
.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
|
492 |
+
.ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; }
|
493 |
+
.ui-tabs .ui-tabs-hide { display: none !important; }
|
494 |
+
/*
|
495 |
+
* jQuery UI Datepicker 1.8.16
|
496 |
+
*
|
497 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
498 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
499 |
+
* http://jquery.org/license
|
500 |
+
*
|
501 |
+
* http://docs.jquery.com/UI/Datepicker#theming
|
502 |
+
*/
|
503 |
+
.ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; }
|
504 |
+
.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; }
|
505 |
+
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
|
506 |
+
.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; }
|
507 |
+
.ui-datepicker .ui-datepicker-prev { left:2px; }
|
508 |
+
.ui-datepicker .ui-datepicker-next { right:2px; }
|
509 |
+
.ui-datepicker .ui-datepicker-prev-hover { left:1px; }
|
510 |
+
.ui-datepicker .ui-datepicker-next-hover { right:1px; }
|
511 |
+
.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; }
|
512 |
+
.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
|
513 |
+
.ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; }
|
514 |
+
.ui-datepicker select.ui-datepicker-month-year {width: 100%;}
|
515 |
+
.ui-datepicker select.ui-datepicker-month,
|
516 |
+
.ui-datepicker select.ui-datepicker-year { width: 49%;}
|
517 |
+
.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
|
518 |
+
.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; }
|
519 |
+
.ui-datepicker td { border: 0; padding: 1px; }
|
520 |
+
.ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; }
|
521 |
+
.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; }
|
522 |
+
.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; }
|
523 |
+
.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; }
|
524 |
+
|
525 |
+
/* with multiple calendars */
|
526 |
+
.ui-datepicker.ui-datepicker-multi { width:auto; }
|
527 |
+
.ui-datepicker-multi .ui-datepicker-group { float:left; }
|
528 |
+
.ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; }
|
529 |
+
.ui-datepicker-multi-2 .ui-datepicker-group { width:50%; }
|
530 |
+
.ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; }
|
531 |
+
.ui-datepicker-multi-4 .ui-datepicker-group { width:25%; }
|
532 |
+
.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; }
|
533 |
+
.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; }
|
534 |
+
.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; }
|
535 |
+
.ui-datepicker-row-break { clear:both; width:100%; font-size:0em; }
|
536 |
+
|
537 |
+
/* RTL support */
|
538 |
+
.ui-datepicker-rtl { direction: rtl; }
|
539 |
+
.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; }
|
540 |
+
.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; }
|
541 |
+
.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; }
|
542 |
+
.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; }
|
543 |
+
.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; }
|
544 |
+
.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; }
|
545 |
+
.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; }
|
546 |
+
.ui-datepicker-rtl .ui-datepicker-group { float:right; }
|
547 |
+
.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
|
548 |
+
.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
|
549 |
+
|
550 |
+
/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
|
551 |
+
.ui-datepicker-cover {
|
552 |
+
display: none; /*sorry for IE5*/
|
553 |
+
display/**/: block; /*sorry for IE5*/
|
554 |
+
position: absolute; /*must have*/
|
555 |
+
z-index: -1; /*must have*/
|
556 |
+
filter: mask(); /*must have*/
|
557 |
+
top: -4px; /*must have*/
|
558 |
+
left: -4px; /*must have*/
|
559 |
+
width: 200px; /*must have*/
|
560 |
+
height: 200px; /*must have*/
|
561 |
+
}/*
|
562 |
+
* jQuery UI Progressbar 1.8.16
|
563 |
+
*
|
564 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
565 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
566 |
+
* http://jquery.org/license
|
567 |
+
*
|
568 |
+
* http://docs.jquery.com/UI/Progressbar#theming
|
569 |
+
*/
|
570 |
+
.ui-progressbar { height:2em; text-align: left; }
|
571 |
+
.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }
|
572 |
+
.ui-progressbar .ui-widget-header {
|
573 |
+
background-color: #83B4D8;
|
574 |
+
background-image: linear-gradient(bottom, rgb(114,167,207) 0%, rgb(144,197,238) 100%);
|
575 |
+
background-image: -o-linear-gradient(bottom, rgb(114,167,207) 0%, rgb(144,197,238) 100%);
|
576 |
+
background-image: -moz-linear-gradient(bottom, rgb(114,167,207) 0%, rgb(144,197,238) 100%);
|
577 |
+
background-image: -webkit-linear-gradient(bottom, rgb(114,167,207) 0%, rgb(144,197,238) 100%);
|
578 |
+
background-image: -ms-linear-gradient(bottom, rgb(114,167,207) 0%, rgb(144,197,238) 100%);
|
579 |
+
}
|
wpsc-admin/css/loading-small.gif
CHANGED
File without changes
|
wpsc-admin/css/plus-minus.png
DELETED
Binary file
|
wpsc-admin/css/settingspage.css
CHANGED
@@ -121,7 +121,7 @@ td.gateway_settings textarea{
|
|
121 |
width:100%;
|
122 |
}
|
123 |
td.gateway_settings h4{
|
124 |
-
margin-
|
125 |
}
|
126 |
|
127 |
div#wpsc_shipwire_setting, div#shipping_discount_value {
|
@@ -291,10 +291,6 @@ a.nav-tab-loading {
|
|
291 |
margin-right:10px;
|
292 |
}
|
293 |
|
294 |
-
.wpsc-shipping-module-settings-tablerate td .add, .wpsc-shipping-module-settings-weightrate td .add {
|
295 |
-
display:none;
|
296 |
-
}
|
297 |
-
|
298 |
#wpsc_options .action {
|
299 |
display:none;
|
300 |
}
|
@@ -321,41 +317,6 @@ a.nav-tab-loading {
|
|
321 |
opacity:0.3;
|
322 |
}
|
323 |
|
324 |
-
.js .wpsc-shipping-module-settings-tablerate td a.add:hover,
|
325 |
-
.js .wpsc-shipping-module-settings-weightrate td a.add:hover,
|
326 |
-
.js #wpsc_checkout_list .actionscol a.add:hover,
|
327 |
-
.js .wpsc-field-options-table .column-actions a.add:hover {
|
328 |
-
background-position:-20px 0;
|
329 |
-
}
|
330 |
-
|
331 |
-
.js .wpsc-shipping-module-settings-tablerate td a.add:active,
|
332 |
-
.js .wpsc-shipping-module-settings-weightrate td a.add:active,
|
333 |
-
.js #wpsc_checkout_list .actionscol a.add:active,
|
334 |
-
.js .wpsc-field-options-table .column-actions a.add:active {
|
335 |
-
background-position:-40px 0;
|
336 |
-
}
|
337 |
-
|
338 |
-
.js .wpsc-shipping-module-settings-tablerate td a.delete:hover,
|
339 |
-
.js .wpsc-shipping-module-settings-weightrate td a.delete:hover,
|
340 |
-
.js #wpsc_checkout_list .actionscol a.delete:hover,
|
341 |
-
.js .wpsc-field-options-table .column-actions a.delete:hover {
|
342 |
-
background-position:-20px -20px;
|
343 |
-
}
|
344 |
-
|
345 |
-
.js .wpsc-shipping-module-settings-tablerate td a.delete:active,
|
346 |
-
.js .wpsc-shipping-module-settings-weightrate td a.delete:active,
|
347 |
-
.js #wpsc_checkout_list .actionscol a.delete:active,
|
348 |
-
.js .wpsc-field-options-table .column-actions a.delete:active {
|
349 |
-
background-position:-40px -20px;
|
350 |
-
}
|
351 |
-
|
352 |
-
.js .wpsc-shipping-module-settings-tablerate td .delete,
|
353 |
-
.js .wpsc-shipping-module-settings-weightrate td .delete,
|
354 |
-
.js #wpsc_checkout_list .actionscol .delete,
|
355 |
-
.js .wpsc-field-options-table .column-actions .delete {
|
356 |
-
background-position:0 -20px;
|
357 |
-
}
|
358 |
-
|
359 |
#wpsc_checkout_list .wpsc-field-options-table {
|
360 |
border-collapse:collapse;
|
361 |
margin-bottom:1em;
|
@@ -426,7 +387,7 @@ div.wpsc_shipping_options, div.wpsc-select-gateway {
|
|
426 |
margin:0px 9em 0 0;
|
427 |
float:right;
|
428 |
}
|
429 |
-
div.wpsc_shipping_options:hover .wpsc-shipping-actions,
|
430 |
div.wpsc-select-gateway:hover .wpsc-gateway-actions {
|
431 |
font-size:10px;
|
432 |
visibility:visible;
|
@@ -441,4 +402,4 @@ table.form-table td .updated.shipwire-update {
|
|
441 |
display : none;
|
442 |
font-size : 12px;
|
443 |
line-height : 1.6em;
|
444 |
-
}
|
121 |
width:100%;
|
122 |
}
|
123 |
td.gateway_settings h4{
|
124 |
+
margin-bottom:5px;
|
125 |
}
|
126 |
|
127 |
div#wpsc_shipwire_setting, div#shipping_discount_value {
|
291 |
margin-right:10px;
|
292 |
}
|
293 |
|
|
|
|
|
|
|
|
|
294 |
#wpsc_options .action {
|
295 |
display:none;
|
296 |
}
|
317 |
opacity:0.3;
|
318 |
}
|
319 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
320 |
#wpsc_checkout_list .wpsc-field-options-table {
|
321 |
border-collapse:collapse;
|
322 |
margin-bottom:1em;
|
387 |
margin:0px 9em 0 0;
|
388 |
float:right;
|
389 |
}
|
390 |
+
div.wpsc_shipping_options:hover .wpsc-shipping-actions,
|
391 |
div.wpsc-select-gateway:hover .wpsc-gateway-actions {
|
392 |
font-size:10px;
|
393 |
visibility:visible;
|
402 |
display : none;
|
403 |
font-size : 12px;
|
404 |
line-height : 1.6em;
|
405 |
+
}
|
wpsc-admin/css/ui-images/ui-icons_21759b_256x240.png
ADDED
Binary file
|
wpsc-admin/css/ui-images/ui-icons_333333_256x240.png
ADDED
Binary file
|
wpsc-admin/css/ui-images/ui-icons_999999_256x240.png
ADDED
Binary file
|
wpsc-admin/css/ui-images/ui-icons_cc0000_256x240.png
ADDED
Binary file
|
wpsc-admin/db-upgrades/routines/1.php
CHANGED
File without changes
|
wpsc-admin/db-upgrades/routines/2.php
CHANGED
File without changes
|
wpsc-admin/db-upgrades/routines/3.php
CHANGED
File without changes
|
wpsc-admin/db-upgrades/upgrade.php
CHANGED
File without changes
|
wpsc-admin/db-upgrades/views/main.php
CHANGED
File without changes
|
wpsc-admin/display-coupon-add.php
ADDED
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="wrap" id+"coupon_data">
|
2 |
+
<div id="add_coupon_box">
|
3 |
+
<h2><?php _e( 'Add Coupon', 'wpsc' ); ?></h2>
|
4 |
+
<form name='add_coupon' method="post" action="<?php echo admin_url( 'edit.php?post_type=wpsc-product&page=wpsc-edit-coupons' ); ?>">
|
5 |
+
<table class="form-table">
|
6 |
+
<tbody>
|
7 |
+
|
8 |
+
<tr class="form-field">
|
9 |
+
<th scope="row" valign="top">
|
10 |
+
<label for="add_coupon_code"><?php _e( 'Coupon Code', 'wpsc' ); ?></label>
|
11 |
+
</th>
|
12 |
+
<td>
|
13 |
+
<input name="add_coupon_code" id="add_coupon_code" type="text" style="width: 300px;"/>
|
14 |
+
<p class="description"><?php _e( 'The code entered to receive the discount', 'wpsc' ); ?></p>
|
15 |
+
</td>
|
16 |
+
</tr>
|
17 |
+
|
18 |
+
<tr class="form-field" id="discount_amount">
|
19 |
+
<th scope="row" valign="top">
|
20 |
+
<label for="add-coupon-code"><?php _e( 'Discount', 'wpsc' ); ?></label>
|
21 |
+
</th>
|
22 |
+
<td>
|
23 |
+
<input name="add_discount" id="add-coupon-code" type="number" class="small-text"/>
|
24 |
+
<span class="description"><?php _e( 'The discount amount', 'wpsc' ); ?></span>
|
25 |
+
</td>
|
26 |
+
</tr>
|
27 |
+
|
28 |
+
<tr class="form-field">
|
29 |
+
<th scope="row" valign="top">
|
30 |
+
<label for="add_discount_type"><?php _e( 'Discount Type', 'wpsc' ); ?></label>
|
31 |
+
</th>
|
32 |
+
<td>
|
33 |
+
<select name='add_discount_type' id='add_discount_type' onchange = 'show_shipping_options();'>
|
34 |
+
<option value='0'><?php _e( 'Fixed Amount', 'wpsc' ); ?></option>
|
35 |
+
<option value='1'><?php _e( 'Percentage', 'wpsc' ); ?></option>
|
36 |
+
<option value='2'><?php _e( 'Free shipping', 'wpsc' ); ?></option>
|
37 |
+
</select>
|
38 |
+
<p class="description"><?php _e( 'The discount type', 'wpsc' ); ?></p>
|
39 |
+
</td>
|
40 |
+
</tr>
|
41 |
+
|
42 |
+
<tr class="form-field">
|
43 |
+
<th scope="row" valign="top">
|
44 |
+
<label for="add_start"><?php _e( 'Start and End', 'wpsc' ); ?></label>
|
45 |
+
</th>
|
46 |
+
<td>
|
47 |
+
<span class="description"><?php _e( 'Start: ', 'wpsc' ); ?></span>
|
48 |
+
<input name="add_start" id="add_start" type="text" class="regular-text pickdate" style="width: 100px"/>
|
49 |
+
<span class="description"><?php _e( 'End: ', 'wpsc' ); ?></span>
|
50 |
+
<input name="add_end" id="add_end" type="text" class="regular-text pickdate" style="width: 100px"/>
|
51 |
+
</td>
|
52 |
+
</tr>
|
53 |
+
|
54 |
+
<tr>
|
55 |
+
<th scope="row" valign="top">
|
56 |
+
<?php _e( 'Active', 'wpsc' ); ?>
|
57 |
+
</th>
|
58 |
+
<td>
|
59 |
+
<input type='hidden' value='0' name='add_active' />
|
60 |
+
<input type="checkbox" value='1' checked='checked' name='add_active' id="add_active" />
|
61 |
+
<label for="add_active"><?php _e( 'Activate coupon on creation.', 'wpsc' ) ?></label>
|
62 |
+
</td>
|
63 |
+
</tr>
|
64 |
+
|
65 |
+
<tr>
|
66 |
+
<th scope="row" valign="top">
|
67 |
+
<?php _e( 'Use Once', 'wpsc' ); ?>
|
68 |
+
</th>
|
69 |
+
<td>
|
70 |
+
<input type='hidden' value='0' name='add_use-once' />
|
71 |
+
<input type='checkbox' value='1' name='add_use-once' id="add_use-once" />
|
72 |
+
<label for="add_use-once"><?php _e( 'Deactivate coupon after it has been used.', 'wpsc' ) ?></label>
|
73 |
+
</td>
|
74 |
+
</tr>
|
75 |
+
|
76 |
+
<tr>
|
77 |
+
<th scope="row" valign="top">
|
78 |
+
<?php _e( 'Apply On All Products', 'wpsc' ); ?>
|
79 |
+
</th>
|
80 |
+
<td>
|
81 |
+
</span><input type='hidden' value='0' name='add_every_product' />
|
82 |
+
<input type="checkbox" value="1" name='add_every_product' id="add_every-product"/>
|
83 |
+
<label for="add_every-product"><?php _e( 'This coupon affects each product at checkout.', 'wpsc' ) ?></label>
|
84 |
+
</td>
|
85 |
+
</tr>
|
86 |
+
|
87 |
+
<tr class="form-field coupon-conditions">
|
88 |
+
<th scope="row" valign="top">
|
89 |
+
<label><strong><?php _e( 'Conditions', 'wpsc' ); ?></strong></label>
|
90 |
+
</th>
|
91 |
+
<td>
|
92 |
+
<div class='coupon-condition' >
|
93 |
+
<select class="ruleprops" name="rules[property][]">
|
94 |
+
<option value="item_name" rel="order"><?php _e( 'Item name', 'wpsc' ); ?></option>
|
95 |
+
<option value="item_quantity" rel="order"><?php _e( 'Item quantity', 'wpsc' ); ?></option>
|
96 |
+
<option value="total_quantity" rel="order"><?php _e( 'Total quantity', 'wpsc' ); ?></option>
|
97 |
+
<option value="subtotal_amount" rel="order"><?php _e( 'Subtotal amount', 'wpsc' ); ?></option>
|
98 |
+
<?php echo apply_filters( 'wpsc_coupon_rule_property_options', '' ); ?>
|
99 |
+
</select>
|
100 |
+
|
101 |
+
<select name="rules[logic][]">
|
102 |
+
<option value="equal"><?php _e( 'Is equal to', 'wpsc' ); ?></option>
|
103 |
+
<option value="greater"><?php _e( 'Is greater than', 'wpsc' ); ?></option>
|
104 |
+
<option value="less"><?php _e( 'Is less than', 'wpsc' ); ?></option>
|
105 |
+
<option value="contains"><?php _e( 'Contains', 'wpsc' ); ?></option>
|
106 |
+
<option value="not_contain"><?php _e( 'Does not contain', 'wpsc' ); ?></option>
|
107 |
+
<option value="begins"><?php _e( 'Begins with', 'wpsc' ); ?></option>
|
108 |
+
<option value="ends"><?php _e( 'Ends with', 'wpsc' ); ?></option>
|
109 |
+
<option value="category"><?php _e( 'In Category', 'wpsc' ); ?></option>
|
110 |
+
</select>
|
111 |
+
|
112 |
+
<input type="text" name="rules[value][]" style="width: 150px;"/>
|
113 |
+
<a title="<?php esc_attr_e( 'Delete condition', 'wpsc' ); ?>" class="button-secondary wpsc-button-round wpsc-button-minus" href="#"><?php echo _x( '–', 'delete item', 'wpsc' ); ?></a>
|
114 |
+
<a title="<?php esc_attr_e( 'Add condition', 'wpsc' ); ?>" class="button-secondary wpsc-button-round wpsc-button-plus" href="#"><?php echo _x( '+', 'add item', 'wpsc' ); ?></a>
|
115 |
+
</div>
|
116 |
+
</td>
|
117 |
+
</tr>
|
118 |
+
|
119 |
+
</tbody>
|
120 |
+
</table>
|
121 |
+
|
122 |
+
<?php submit_button( __( 'Add Coupon', 'wpsc' ), 'primary', 'add_coupon' ); ?>
|
123 |
+
|
124 |
+
</form>
|
125 |
+
</div>
|
126 |
+
</div><!--end .wrap-->
|
wpsc-admin/display-coupon-edit.php
ADDED
@@ -0,0 +1,166 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
// die if accessed directly
|
4 |
+
if( !defined( 'ABSPATH' ) )
|
5 |
+
die();
|
6 |
+
|
7 |
+
$coupon_id = absint( $_GET['coupon'] );
|
8 |
+
$coupon = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM `" . WPSC_TABLE_COUPON_CODES . "` WHERE `id` = %d", $coupon_id ), ARRAY_A );
|
9 |
+
?>
|
10 |
+
<div class="wrap" id+"coupon_data">
|
11 |
+
<div id="edit_coupon_box">
|
12 |
+
<h2><?php _e( 'Edit Coupon', 'wpsc' ); ?></h2>
|
13 |
+
|
14 |
+
<script type='text/javascript'>
|
15 |
+
jQuery(".pickdate").datepicker();
|
16 |
+
/* jQuery datepicker selector */
|
17 |
+
if (typeof jQuery('.pickdate').datepicker != "undefined") {
|
18 |
+
jQuery('.pickdate').datepicker({ dateFormat: 'yy-mm-dd' });
|
19 |
+
}
|
20 |
+
</script>
|
21 |
+
<form name='edit_coupon' method="post" action="<?php echo admin_url( 'edit.php?post_type=wpsc-product&page=wpsc-edit-coupons' ); ?>">
|
22 |
+
<table class="form-table">
|
23 |
+
<tbody>
|
24 |
+
|
25 |
+
<tr class="form-field">
|
26 |
+
<th scope="row" valign="top">
|
27 |
+
<label for="edit_coupon_code"><?php _e( 'Coupon Code', 'wpsc' ); ?></label>
|
28 |
+
</th>
|
29 |
+
<td>
|
30 |
+
<input name="edit_coupon_code" id="edit_coupon_code" type="text" value="<?php esc_attr_e( $coupon['coupon_code'] ); ?>" style="width: 300px;"/>
|
31 |
+
<p class="description"><?php _e( 'The code entered to receive the discount', 'wpsc' ); ?></p>
|
32 |
+
</td>
|
33 |
+
</tr>
|
34 |
+
|
35 |
+
<tr class="form-field" id="discount_amount">
|
36 |
+
<th scope="row" valign="top">
|
37 |
+
<label for="edit_coupon_amount"><?php _e( 'Discount', 'wpsc' ); ?></label>
|
38 |
+
</th>
|
39 |
+
<td>
|
40 |
+
<input name="edit_coupon_amount" id="edit_coupon_amount" type="number" value="<?php esc_attr_e( $coupon['value'] ); ?>" class="small-text"/>
|
41 |
+
<span class="description"><?php _e( 'The discount amount', 'wpsc' ); ?></span>
|
42 |
+
</td>
|
43 |
+
</tr>
|
44 |
+
|
45 |
+
<tr class="form-field">
|
46 |
+
<th scope="row" valign="top">
|
47 |
+
<label for="edit_discount_type"><?php _e( 'Discount Type', 'wpsc' ); ?></label>
|
48 |
+
</th>
|
49 |
+
<td>
|
50 |
+
<?php $type = absint( $coupon['is-percentage'] ); ?>
|
51 |
+
<select name='edit_discount_type' id='edit_discount_type' onchange='show_shipping_options();'>
|
52 |
+
<option value='0'<?php selected( 0, $type ); ?>><?php _e( 'Fixed Amount', 'wpsc' ); ?></option>
|
53 |
+
<option value='1'<?php selected( 1, $type ); ?>><?php _e( 'Percentage', 'wpsc' ); ?></option>
|
54 |
+
<option value='2'<?php selected( 2, $type ); ?>><?php _e( 'Free shipping', 'wpsc' ); ?></option>
|
55 |
+
</select>
|
56 |
+
<p class="description"><?php _e( 'The discount type', 'wpsc' ); ?></p>
|
57 |
+
|
58 |
+
<?php $display = $type == 2 ? '' : 'style="display:none;"'; ?>
|
59 |
+
</td>
|
60 |
+
</tr>
|
61 |
+
|
62 |
+
<tr class="form-field">
|
63 |
+
<th scope="row" valign="top">
|
64 |
+
<label for="edit_coupon_start"><?php _e( 'Start and End', 'wpsc' ); ?></label>
|
65 |
+
</th>
|
66 |
+
<td>
|
67 |
+
<?php
|
68 |
+
$start = $coupon['start'] == '0000-00-00 00:00:00' ? '' : get_date_from_gmt( $coupon['start'], 'Y-m-d' );
|
69 |
+
$end = $coupon['expiry'] == '0000-00-00 00:00:00' ? '' : get_date_from_gmt( $coupon['expiry'], 'Y-m-d' );
|
70 |
+
?>
|
71 |
+
<span class="description"><?php _e( 'Start: ', 'wpsc' ); ?></span>
|
72 |
+
<input name="edit_coupon_start" id="edit_coupon_start" type="text" value="<?php esc_attr_e( $start ); ?>" class="regular-text pickdate" style="width: 100px"/>
|
73 |
+
<span class="description"><?php _e( 'End: ', 'wpsc' ); ?></span>
|
74 |
+
<input name="edit_coupon_end" id="edit_coupon_end" type="text" value="<?php esc_attr_e( $end ); ?>" class="regular-text pickdate" style="width: 100px"/>
|
75 |
+
</td>
|
76 |
+
</tr>
|
77 |
+
|
78 |
+
<tr>
|
79 |
+
<th scope="row" valign="top">
|
80 |
+
<?php _e( 'Active', 'wpsc' ); ?>
|
81 |
+
</th>
|
82 |
+
<td>
|
83 |
+
<input type='hidden' value='0' name='edit_coupon_active' />
|
84 |
+
<input type="checkbox" value='1'<?php checked( 1, $coupon['active'] ); ?> name='edit_coupon_active' id="edit_coupon_active" />
|
85 |
+
<label for="edit_coupon_active"><?php _e( 'Is this coupon active?', 'wpsc' ) ?></label>
|
86 |
+
</td>
|
87 |
+
</tr>
|
88 |
+
|
89 |
+
<tr>
|
90 |
+
<th scope="row" valign="top">
|
91 |
+
<?php _e( 'Use Once', 'wpsc' ); ?>
|
92 |
+
</th>
|
93 |
+
<td>
|
94 |
+
<input type='hidden' value='0' name='edit_coupon_use_once' />
|
95 |
+
<input type='checkbox' value='1'<?php checked( 1, $coupon['use-once'] ); ?> name='edit_coupon_use_once' id="edit_coupon_use_once" />
|
96 |
+
<label for="edit_coupon_use_once"><?php _e( 'Deactivate coupon after it has been used.', 'wpsc' ) ?></label>
|
97 |
+
</td>
|
98 |
+
</tr>
|
99 |
+
|
100 |
+
<tr>
|
101 |
+
<th scope="row" valign="top">
|
102 |
+
<?php _e( 'Apply On All Products', 'wpsc' ); ?>
|
103 |
+
</th>
|
104 |
+
<td>
|
105 |
+
</span><input type='hidden' value='0' name='edit_coupon_every_product' />
|
106 |
+
<input type="checkbox" value="1"<?php checked( 1, $coupon['every_product'] ); ?> name='edit_coupon_every_product' id="edit-coupon-every-product"/>
|
107 |
+
<label for="edit-coupon-every-product"><?php _e( 'This coupon affects each product at checkout.', 'wpsc' ) ?></label>
|
108 |
+
</td>
|
109 |
+
</tr>
|
110 |
+
|
111 |
+
<tr class="form-field coupon-conditions">
|
112 |
+
<th scope="row" valign="top">
|
113 |
+
<label><strong><?php _e( 'Conditions', 'wpsc' ); ?></strong></label>
|
114 |
+
</th>
|
115 |
+
<td>
|
116 |
+
<?php
|
117 |
+
$conditions = maybe_unserialize( $coupon['condition'] );
|
118 |
+
|
119 |
+
if ( empty( $conditions ) )
|
120 |
+
$conditions = array(
|
121 |
+
array(
|
122 |
+
'property' => '',
|
123 |
+
'logic' => '',
|
124 |
+
'value' => '',
|
125 |
+
)
|
126 |
+
);
|
127 |
+
foreach( $conditions as $key => $condition ) :
|
128 |
+
?>
|
129 |
+
<div class='coupon-condition'>
|
130 |
+
<select class="ruleprops" name="rules[property][]">
|
131 |
+
<option value="item_name"<?php selected( 'item_name', $condition['property'] ); ?> rel="order"><?php _e( 'Item name', 'wpsc' ); ?></option>
|
132 |
+
<option value="item_quantity"<?php selected( 'item_quantity', $condition['property'] ); ?> rel="order"><?php _e( 'Item quantity', 'wpsc' ); ?></option>
|
133 |
+
<option value="total_quantity"<?php selected( 'total_quantity', $condition['property'] ); ?> rel="order"><?php _e( 'Total quantity', 'wpsc' ); ?></option>
|
134 |
+
<option value="subtotal_amount"<?php selected( 'subtotal_amount', $condition['property'] ); ?> rel="order"><?php _e( 'Subtotal amount', 'wpsc' ); ?></option>
|
135 |
+
<?php do_action( 'wpsc_coupon_rule_property_options' ); ?>
|
136 |
+
</select>
|
137 |
+
|
138 |
+
<select name="rules[logic][]">
|
139 |
+
<option value="equal"<?php selected( 'equal', $condition['logic'] ); ?>><?php _e( 'Is equal to', 'wpsc' ); ?></option>
|
140 |
+
<option value="greater"<?php selected( 'greater', $condition['logic'] ); ?>><?php _e( 'Is greater than', 'wpsc' ); ?></option>
|
141 |
+
<option value="less"<?php selected( 'less', $condition['logic'] ); ?>><?php _e( 'Is less than', 'wpsc' ); ?></option>
|
142 |
+
<option value="contains"<?php selected( 'contains', $condition['logic'] ); ?>><?php _e( 'Contains', 'wpsc' ); ?></option>
|
143 |
+
<option value="not_contain"<?php selected( 'not_contain', $condition['logic'] ); ?>><?php _e( 'Does not contain', 'wpsc' ); ?></option>
|
144 |
+
<option value="begins"<?php selected( 'begins', $condition['logic'] ); ?>><?php _e( 'Begins with', 'wpsc' ); ?></option>
|
145 |
+
<option value="ends"<?php selected( 'ends', $condition['logic'] ); ?>><?php _e( 'Ends with', 'wpsc' ); ?></option>
|
146 |
+
<option value="category"<?php selected( 'category', $condition['logic'] ); ?>><?php _e( 'In Category', 'wpsc' ); ?></option>
|
147 |
+
</select>
|
148 |
+
|
149 |
+
<input type="text" name="rules[value][]" value="<?php esc_attr_e( $condition['value'] ); ?>" style="width: 150px;"/>
|
150 |
+
<a title="<?php esc_attr_e( 'Delete condition', 'wpsc' ); ?>" class="button-secondary wpsc-button-round wpsc-button-minus" href="#"><?php echo _x( '–', 'delete item', 'wpsc' ); ?></a>
|
151 |
+
<a title="<?php esc_attr_e( 'Add condition', 'wpsc' ); ?>" class="button-secondary wpsc-button-round wpsc-button-plus" href="#"><?php echo _x( '+', 'add item', 'wpsc' ); ?></a>
|
152 |
+
</div>
|
153 |
+
<?php endforeach; ?>
|
154 |
+
</td>
|
155 |
+
</tr>
|
156 |
+
|
157 |
+
</tbody>
|
158 |
+
</table>
|
159 |
+
<input type="hidden" name="coupon_id" value="<?php echo esc_attr( $coupon_id ); ?>"/>
|
160 |
+
<input type="hidden" name="edit_coupon_is_used" value="<?php echo esc_attr( $coupon['is-used'] ); ?>"/>
|
161 |
+
<input type="hidden" name="is_edit_coupon" value="true"/>
|
162 |
+
<?php submit_button( __( 'Update Coupon', 'wpsc' ), 'primary' ); ?>
|
163 |
+
|
164 |
+
</form>
|
165 |
+
</div>
|
166 |
+
</div><!--end .wrap-->
|
wpsc-admin/display-coupons.php
CHANGED
@@ -2,9 +2,15 @@
|
|
2 |
|
3 |
function wpsc_display_coupons_page() {
|
4 |
global $wpdb;
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
if ( isset( $_POST ) && is_array( $_POST ) && !empty( $_POST ) ) {
|
6 |
|
7 |
-
if ( isset( $_POST['add_coupon'] ) && (
|
8 |
|
9 |
$coupon_code = $_POST['add_coupon_code'];
|
10 |
$discount = (double)$_POST['add_discount'];
|
@@ -12,20 +18,20 @@ function wpsc_display_coupons_page() {
|
|
12 |
$use_once = (int)(bool)$_POST['add_use-once'];
|
13 |
$every_product = (int)(bool)$_POST['add_every_product'];
|
14 |
$is_active = (int)(bool)$_POST['add_active'];
|
15 |
-
$start_date = date( 'Y-m-d', strtotime( $_POST['add_start'] ) ) . " 00:00:00";
|
16 |
-
$end_date = date( 'Y-m-d', strtotime( $_POST['add_end'] ) ) . "
|
17 |
$rules = $_POST['rules'];
|
|
|
18 |
|
19 |
foreach ( $rules as $key => $rule ) {
|
20 |
foreach ( $rule as $k => $r ) {
|
21 |
-
$
|
22 |
}
|
23 |
}
|
24 |
|
25 |
-
foreach ( $
|
26 |
-
if ( '' == $rule['value'] )
|
27 |
-
unset( $
|
28 |
-
}
|
29 |
}
|
30 |
|
31 |
$insert = $wpdb->insert(
|
@@ -40,425 +46,107 @@ function wpsc_display_coupons_page() {
|
|
40 |
'every_product' => $every_product,
|
41 |
'start' => $start_date,
|
42 |
'expiry' => $end_date,
|
43 |
-
'condition' => serialize( $
|
44 |
),
|
45 |
array(
|
46 |
'%s',
|
47 |
'%f',
|
48 |
-
'%d',
|
49 |
'%s',
|
50 |
'%s',
|
51 |
'%s',
|
52 |
'%s',
|
53 |
'%s',
|
54 |
'%s',
|
55 |
-
'%s'
|
|
|
56 |
)
|
57 |
);
|
58 |
if ( $insert )
|
59 |
-
echo "<div class='updated'><p
|
60 |
|
61 |
}
|
62 |
|
|
|
63 |
if ( isset( $_POST['is_edit_coupon'] ) && ($_POST['is_edit_coupon'] == 'true') && !(isset( $_POST['delete_condition'] )) && !(isset( $_POST['submit_condition'] )) ) {
|
64 |
|
65 |
-
|
66 |
-
|
67 |
-
$coupon_id = (int)$coupon_id;
|
68 |
-
$coupon_data['start'] = get_gmt_from_date( $coupon_data['start'] . " 00:00:00" );
|
69 |
-
$coupon_data['expiry'] = get_gmt_from_date( $coupon_data['expiry'] . " 23:59:59" );
|
70 |
-
$check_values = $wpdb->get_row( $wpdb->prepare( "SELECT `id`, `coupon_code`, `value`, `is-percentage`, `use-once`, `active`, `start`, `expiry`,`every_product` FROM `" . WPSC_TABLE_COUPON_CODES . "` WHERE `id` = %d", $coupon_id ), ARRAY_A );
|
71 |
-
|
72 |
-
// Sort both arrays to make sure that if they contain the same stuff,
|
73 |
-
// that they will compare to be the same, may not need to do this, but what the heck
|
74 |
-
if ( $check_values != null )
|
75 |
-
ksort( $check_values );
|
76 |
-
|
77 |
-
ksort( $coupon_data );
|
78 |
-
|
79 |
-
if ( $check_values != $coupon_data ) {
|
80 |
-
|
81 |
-
$insert_array = array();
|
82 |
-
|
83 |
-
foreach ( $coupon_data as $coupon_key => $coupon_value ) {
|
84 |
-
if ( ($coupon_key == "submit_coupon") || ($coupon_key == "delete_coupon") )
|
85 |
-
continue;
|
86 |
-
|
87 |
-
if ( isset( $check_values[$coupon_key] ) && $coupon_value != $check_values[$coupon_key] )
|
88 |
-
$insert_array[] = "`$coupon_key` = '$coupon_value'";
|
89 |
-
|
90 |
-
}
|
91 |
-
|
92 |
-
if ( isset( $check_values['every_product'] ) && $coupon_data['add_every_product'] != $check_values['every_product'] )
|
93 |
-
$insert_array[] = "`every_product` = '$coupon_data[add_every_product]'";
|
94 |
-
|
95 |
-
if ( count( $insert_array ) > 0 )
|
96 |
-
$wpdb->query( $wpdb->prepare( "UPDATE `" . WPSC_TABLE_COUPON_CODES . "` SET " . implode( ", ", $insert_array ) . " WHERE `id` = %d LIMIT 1;", $coupon_id ) );
|
97 |
-
|
98 |
-
unset( $insert_array );
|
99 |
-
$rules = $_POST['rules'];
|
100 |
-
|
101 |
-
foreach ( (array)$rules as $key => $rule ) {
|
102 |
-
foreach ( $rule as $k => $r ) {
|
103 |
-
$new_rule[$k][$key] = $r;
|
104 |
-
}
|
105 |
-
}
|
106 |
-
|
107 |
-
foreach ( (array)$new_rule as $key => $rule ) {
|
108 |
-
if ( $rule['value'] == '' ) {
|
109 |
-
unset( $new_rule[$key] );
|
110 |
-
}
|
111 |
-
}
|
112 |
-
|
113 |
-
$conditions = $wpdb->get_var( $wpdb->prepare( "SELECT `condition` FROM `" . WPSC_TABLE_COUPON_CODES . "` WHERE `id` = %d LIMIT 1", $_POST['coupon_id'] ) );
|
114 |
-
$conditions = unserialize( $conditions );
|
115 |
-
$new_cond = array();
|
116 |
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
$new_cond['value'] = $_POST['rules']['value'][0];
|
121 |
-
$conditions [] = $new_cond;
|
122 |
-
}
|
123 |
-
|
124 |
-
$wpdb->update(
|
125 |
-
WPSC_TABLE_COUPON_CODES,
|
126 |
-
array(
|
127 |
-
'condition' => serialize( $conditions ),
|
128 |
-
|
129 |
-
),
|
130 |
-
array(
|
131 |
-
'id' => $_POST['coupon_id']
|
132 |
-
),
|
133 |
-
'%s',
|
134 |
-
'%d'
|
135 |
-
);
|
136 |
}
|
137 |
}
|
138 |
-
}
|
139 |
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
unset( $conditions[(int)$_POST['delete_condition']] );
|
146 |
|
147 |
-
$wpdb->update(
|
148 |
WPSC_TABLE_COUPON_CODES,
|
149 |
array(
|
150 |
-
|
151 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
),
|
|
|
153 |
array(
|
154 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
),
|
156 |
-
'%
|
157 |
-
|
158 |
-
);
|
159 |
-
}
|
160 |
-
|
161 |
-
if ( isset( $_POST['submit_condition'] ) ) {
|
162 |
-
$conditions = $wpdb->get_var( "SELECT `condition` FROM `" . WPSC_TABLE_COUPON_CODES . "` WHERE `id` = '" . (int)$_POST['coupon_id'] . "' LIMIT 1" );
|
163 |
-
$conditions = unserialize( $conditions );
|
164 |
-
|
165 |
-
$new_cond = array();
|
166 |
-
$new_cond['property'] = $_POST['rules']['property'][0];
|
167 |
-
$new_cond['logic'] = $_POST['rules']['logic'][0];
|
168 |
-
$new_cond['value'] = $_POST['rules']['value'][0];
|
169 |
-
$conditions[] = $new_cond;
|
170 |
-
|
171 |
-
$wpdb->update(
|
172 |
-
WPSC_TABLE_COUPON_CODES,
|
173 |
-
array(
|
174 |
-
'condition' => serialize( $conditions )
|
175 |
-
),
|
176 |
-
array(
|
177 |
-
'id' => $_POST['coupon_id']
|
178 |
-
),
|
179 |
-
'%s',
|
180 |
-
'%d'
|
181 |
-
);
|
182 |
|
|
|
|
|
183 |
}
|
184 |
}
|
185 |
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
<th><?php esc_html_e( 'Discount', 'wpsc' ); ?></th>
|
216 |
-
<th><?php esc_html_e( 'Start', 'wpsc' ); ?></th>
|
217 |
-
<th><?php esc_html_e( 'Expiry', 'wpsc' ); ?></th>
|
218 |
-
</tr>
|
219 |
-
<tr>
|
220 |
-
<td>
|
221 |
-
<input type='text' value='' name='add_coupon_code' />
|
222 |
-
</td>
|
223 |
-
<td>
|
224 |
-
<input type='text' value='' size='3' name='add_discount' />
|
225 |
-
<select name='add_discount_type'>
|
226 |
-
<option value='0' ><?php echo esc_html( $currency_sign ) ?></option>
|
227 |
-
<option value='1' ><?php _ex( '%', 'Percentage sign as discount type in coupons page', 'wpsc' ); ?></option>
|
228 |
-
<option value='2' ><?php esc_html_e( 'Free shipping', 'wpsc' ); ?></option>
|
229 |
-
</select>
|
230 |
-
</td>
|
231 |
-
<td>
|
232 |
-
<input type='text' class='pickdate' size='11' value="<?php echo date('Y-m-d'); ?>" name='add_start' />
|
233 |
-
</td>
|
234 |
-
<td>
|
235 |
-
<input type='text' class='pickdate' size='11' name='add_end' value="<?php echo (date('Y')+1) . date('-m-d') ; ?>">
|
236 |
-
</td>
|
237 |
-
<td>
|
238 |
-
<input type='hidden' value='true' name='add_coupon' />
|
239 |
-
<input type='submit' value='<?php esc_attr_e( 'Add Coupon', 'wpsc' ); ?>' name='submit_coupon' class='button-primary' />
|
240 |
-
</td>
|
241 |
-
</tr>
|
242 |
-
|
243 |
-
<tr>
|
244 |
-
<td colspan='3' scope="row">
|
245 |
-
<p>
|
246 |
-
<span class='input_label'><?php esc_html_e( 'Active', 'wpsc' ); ?></span><input type='hidden' value='0' name='add_active' />
|
247 |
-
<input type='checkbox' value='1' checked='checked' name='add_active' />
|
248 |
-
<span class='description'><?php esc_html_e( 'Activate coupon on creation.', 'wpsc' ) ?></span>
|
249 |
-
</p>
|
250 |
-
</td>
|
251 |
-
</tr>
|
252 |
-
|
253 |
-
<tr>
|
254 |
-
<td colspan='3' scope="row">
|
255 |
-
<p>
|
256 |
-
<span class='input_label'><?php esc_html_e( 'Use Once', 'wpsc' ); ?></span><input type='hidden' value='0' name='add_use-once' />
|
257 |
-
<input type='checkbox' value='1' name='add_use-once' />
|
258 |
-
<span class='description'><?php esc_html_e( 'Deactivate coupon after it has been used.', 'wpsc' ) ?></span>
|
259 |
-
</p>
|
260 |
-
</td>
|
261 |
-
</tr>
|
262 |
-
|
263 |
-
<tr>
|
264 |
-
<td colspan='3' scope="row">
|
265 |
-
<p>
|
266 |
-
<span class='input_label'><?php esc_html_e( 'Apply On All Products', 'wpsc' ); ?></span><input type='hidden' value='0' name='add_every_product' />
|
267 |
-
<input type="checkbox" value="1" name='add_every_product'/>
|
268 |
-
<span class='description'><?php esc_html_e( 'This coupon affects each product at checkout.', 'wpsc' ) ?></span>
|
269 |
-
</p>
|
270 |
-
</td>
|
271 |
-
</tr>
|
272 |
-
|
273 |
-
<tr><td colspan='3'><span id='table_header'><?php esc_html_e( 'Conditions', 'wpsc' ); ?></span></td></tr>
|
274 |
-
<tr>
|
275 |
-
<td colspan="8">
|
276 |
-
<div class='coupon_condition' >
|
277 |
-
<div class='first_condition'>
|
278 |
-
<select class="ruleprops" name="rules[property][]">
|
279 |
-
<option value="item_name" rel="order"><?php esc_html_e( 'Item name', 'wpsc' ); ?></option>
|
280 |
-
<option value="item_quantity" rel="order"><?php esc_html_e( 'Item quantity', 'wpsc' ); ?></option>
|
281 |
-
<option value="total_quantity" rel="order"><?php esc_html_e( 'Total quantity', 'wpsc' ); ?></option>
|
282 |
-
<option value="subtotal_amount" rel="order"><?php esc_html_e( 'Subtotal amount', 'wpsc' ); ?></option>
|
283 |
-
<?php echo apply_filters( 'wpsc_coupon_rule_property_options', '' ); ?>
|
284 |
-
</select>
|
285 |
-
|
286 |
-
<select name="rules[logic][]">
|
287 |
-
<option value="equal"><?php esc_html_e( 'Is equal to', 'wpsc' ); ?></option>
|
288 |
-
<option value="greater"><?php esc_html_e( 'Is greater than', 'wpsc' ); ?></option>
|
289 |
-
<option value="less"><?php esc_html_e( 'Is less than', 'wpsc' ); ?></option>
|
290 |
-
<option value="contains"><?php esc_html_e( 'Contains', 'wpsc' ); ?></option>
|
291 |
-
<option value="not_contain"><?php esc_html_e( 'Does not contain', 'wpsc' ); ?></option>
|
292 |
-
<option value="begins"><?php esc_html_e( 'Begins with', 'wpsc' ); ?></option>
|
293 |
-
<option value="ends"><?php esc_html_e( 'Ends with', 'wpsc' ); ?></option>
|
294 |
-
<option value="category"><?php esc_html_e( 'In Category', 'wpsc' ); ?></option>
|
295 |
-
</select>
|
296 |
-
|
297 |
-
<span><input type="text" name="rules[value][]"/></span>
|
298 |
-
<script>
|
299 |
-
var coupon_number=1;
|
300 |
-
function add_another_property(this_button){
|
301 |
-
var new_property='<div class="coupon_condition">\n'+
|
302 |
-
'<div> \n'+
|
303 |
-
'<select class="ruleprops" name="rules[property][]"> \n'+
|
304 |
-
'<option value="item_name" rel="order"><?php echo esc_js( __( 'Item name', 'wpsc' ) ); ?></option> \n'+
|
305 |
-
'<option value="item_quantity" rel="order"><?php echo esc_js( __( 'Item quantity', 'wpsc' ) ); ?></option>\n'+
|
306 |
-
'<option value="total_quantity" rel="order"><?php echo esc_js( __( 'Total quantity', 'wpsc' ) ); ?></option>\n'+
|
307 |
-
'<option value="subtotal_amount" rel="order"><?php echo esc_js( __( 'Subtotal amount', 'wpsc' ) ); ?></option>\n'+
|
308 |
-
'<?php echo apply_filters( 'wpsc_coupon_rule_property_options', '' ); ?>'+
|
309 |
-
'</select> \n'+
|
310 |
-
'<select name="rules[logic][]"> \n'+
|
311 |
-
'<option value="equal"><?php echo esc_js( __( 'Is equal to', 'wpsc' ) ); ?></option> \n'+
|
312 |
-
'<option value="greater"><?php echo esc_js( __( 'Is greater than', 'wpsc' ) ); ?></option> \n'+
|
313 |
-
'<option value="less"><?php echo esc_js( __( 'Is less than', 'wpsc' ) ); ?></option> \n'+
|
314 |
-
'<option value="contains"><?php echo esc_js( __( 'Contains', 'wpsc' ) ); ?></option> \n'+
|
315 |
-
'<option value="not_contain"><?php echo esc_js( __( 'Does not contain', 'wpsc' ) ); ?></option> \n'+
|
316 |
-
'<option value="begins"><?php echo esc_js( __( 'Begins with', 'wpsc' ) ); ?></option> \n'+
|
317 |
-
'<option value="ends"><?php echo esc_js( __( 'Ends with', 'wpsc' ) ); ?></option> \n'+
|
318 |
-
'</select> \n'+
|
319 |
-
'<span> \n'+
|
320 |
-
'<input type="text" name="rules[value][]"/> \n'+
|
321 |
-
'</span> \n'+
|
322 |
-
'<img height="16" width="16" class="delete" alt="<?php esc_attr_e( 'Delete', 'wpsc' ); ?>" src="<?php echo WPSC_CORE_IMAGES_URL; ?>/cross.png" onclick="jQuery(this).parent().remove();"/></div> \n'+
|
323 |
-
'</div> ';
|
324 |
-
|
325 |
-
jQuery('#coupon_data .coupon_condition :last').after(new_property);
|
326 |
-
coupon_number++;
|
327 |
-
}
|
328 |
-
</script>
|
329 |
-
</div>
|
330 |
-
</div>
|
331 |
-
</tr>
|
332 |
-
|
333 |
-
<tr>
|
334 |
-
<td>
|
335 |
-
<a class="wpsc_coupons_condition_add" onclick="add_another_property(jQuery(this));">
|
336 |
-
<?php esc_html_e( 'Add New Condition', 'wpsc' ); ?>
|
337 |
-
</a>
|
338 |
-
</td>
|
339 |
-
</tr>
|
340 |
-
</table>
|
341 |
-
</form>
|
342 |
-
</div>
|
343 |
-
</td>
|
344 |
-
</tr>
|
345 |
-
</table>
|
346 |
-
|
347 |
<?php
|
348 |
-
|
349 |
-
|
350 |
-
'discount' => __( 'Discount', 'wpsc' ),
|
351 |
-
'start' => __( 'Start', 'wpsc' ),
|
352 |
-
'expiry' => __( 'Expiry', 'wpsc' ),
|
353 |
-
'active' => __( 'Active', 'wpsc' ),
|
354 |
-
'apply_on_prods' => __( 'Apply On All Products', 'wpsc' ),
|
355 |
-
'edit' => __( 'Edit', 'wpsc' )
|
356 |
-
);
|
357 |
-
register_column_headers( 'display-coupon-details', $columns );
|
358 |
-
?>
|
359 |
-
|
360 |
-
<table class="coupon-list widefat" cellspacing="0">
|
361 |
-
<thead>
|
362 |
-
<tr>
|
363 |
-
<?php print_column_headers( 'display-coupon-details' ); ?>
|
364 |
-
</tr>
|
365 |
-
</thead>
|
366 |
-
|
367 |
-
<tfoot>
|
368 |
-
<tr>
|
369 |
-
<?php print_column_headers( 'display-coupon-details', false ); ?>
|
370 |
-
</tr>
|
371 |
-
</tfoot>
|
372 |
-
|
373 |
-
<tbody>
|
374 |
-
<?php
|
375 |
-
$i = 0;
|
376 |
-
$coupon_data = $wpdb->get_results( "SELECT * FROM `" . WPSC_TABLE_COUPON_CODES . "` ", ARRAY_A );
|
377 |
-
|
378 |
-
foreach ( (array)$coupon_data as $coupon ) {
|
379 |
-
$alternate = "";
|
380 |
-
$i++;
|
381 |
-
if ( ($i % 2) != 0 ) {
|
382 |
-
$alternate = "class='alt'";
|
383 |
-
}
|
384 |
-
|
385 |
-
$start = get_date_from_gmt( $coupon['start'], 'd/m/Y' );
|
386 |
-
$expiry = get_date_from_gmt( $coupon['expiry'], 'd/m/Y' );
|
387 |
-
|
388 |
-
echo "<tr $alternate>\n\r";
|
389 |
-
|
390 |
-
echo " <td>\n\r";
|
391 |
-
echo esc_attr( $coupon['coupon_code'] );
|
392 |
-
echo " </td>\n\r";
|
393 |
-
|
394 |
-
echo " <td>\n\r";
|
395 |
-
if ( $coupon['is-percentage'] == 1 )
|
396 |
-
echo esc_attr( $coupon['value'] ) . "%";
|
397 |
-
|
398 |
-
else if ( $coupon['is-percentage'] == 2 )
|
399 |
-
_e( 'Free Shipping', 'wpsc' );
|
400 |
-
|
401 |
-
else
|
402 |
-
echo wpsc_currency_display( esc_attr( $coupon['value'] ) );
|
403 |
-
|
404 |
-
echo " </td>\n\r";
|
405 |
-
|
406 |
-
echo " <td>\n\r";
|
407 |
-
echo $start;
|
408 |
-
echo " </td>\n\r";
|
409 |
-
|
410 |
-
echo " <td>\n\r";
|
411 |
-
echo $expiry;
|
412 |
-
echo " </td>\n\r";
|
413 |
-
|
414 |
-
echo " <td>\n\r";
|
415 |
-
switch ( $coupon['active'] ) {
|
416 |
-
case 1:
|
417 |
-
echo "<img src='" . WPSC_CORE_IMAGES_URL . "/yes_stock.gif' alt='' title='' />";
|
418 |
-
break;
|
419 |
-
|
420 |
-
case 0: default:
|
421 |
-
echo "<img src='" . WPSC_CORE_IMAGES_URL . "/no_stock.gif' alt='' title='' />";
|
422 |
-
break;
|
423 |
-
}
|
424 |
-
echo " </td>\n\r";
|
425 |
-
|
426 |
-
echo " <td>\n\r";
|
427 |
-
switch ( $coupon['every_product'] ) {
|
428 |
-
case 1:
|
429 |
-
echo "<img src='" . WPSC_CORE_IMAGES_URL . "/yes_stock.gif' alt='' title='' />";
|
430 |
-
break;
|
431 |
-
|
432 |
-
case 0: default:
|
433 |
-
echo "<img src='" . WPSC_CORE_IMAGES_URL . "/no_stock.gif' alt='' title='' />";
|
434 |
-
break;
|
435 |
-
}
|
436 |
-
|
437 |
-
echo " </td>\n\r";
|
438 |
-
echo " <td>\n\r";
|
439 |
-
echo "<a title='" . esc_attr( $coupon['coupon_code'] ). "' href='#' rel='" . $coupon['id'] . "' class='wpsc_edit_coupon' >" . esc_html__( 'Edit', 'wpsc' ) . "</a>";
|
440 |
-
echo " </td>\n\r";
|
441 |
-
echo " </tr>\n\r";
|
442 |
-
echo " <tr class='coupon_edit'>\n\r";
|
443 |
-
echo " <td colspan='7' style='padding-left:0px;'>\n\r";
|
444 |
-
echo " <div id='coupon_box_" . $coupon['id'] . "' class='displaynone modify_coupon' >\n\r";
|
445 |
-
coupon_edit_form( $coupon );
|
446 |
-
echo " </div>\n\r";
|
447 |
-
echo " </td>\n\r";
|
448 |
-
echo " </tr>\n\r";
|
449 |
-
}
|
450 |
-
?>
|
451 |
-
</tbody>
|
452 |
-
</table>
|
453 |
-
|
454 |
-
<p style='margin: 10px 0px 5px 0px;'>
|
455 |
-
<?php _e( '<strong>Note:</strong> Due to a current PayPal limitation, when a purchase is made using a coupon we cannot send a detailed list of items through for processing. Instead we send the total amount of the purchase so the customer will see your shop name and the total within PayPal.', 'wpsc' ); ?>
|
456 |
-
</p>
|
457 |
-
|
458 |
-
</div>
|
459 |
-
|
460 |
-
<?php
|
461 |
-
|
462 |
-
}
|
463 |
-
|
464 |
-
?>
|
2 |
|
3 |
function wpsc_display_coupons_page() {
|
4 |
global $wpdb;
|
5 |
+
|
6 |
+
|
7 |
+
/**
|
8 |
+
* Update / create code that will be abstracted to its own class at some point
|
9 |
+
*/
|
10 |
+
|
11 |
if ( isset( $_POST ) && is_array( $_POST ) && !empty( $_POST ) ) {
|
12 |
|
13 |
+
if ( isset( $_POST['add_coupon'] ) && (!isset( $_POST['is_edit_coupon'] ) || !($_POST['is_edit_coupon'] == 'true')) ) {
|
14 |
|
15 |
$coupon_code = $_POST['add_coupon_code'];
|
16 |
$discount = (double)$_POST['add_discount'];
|
18 |
$use_once = (int)(bool)$_POST['add_use-once'];
|
19 |
$every_product = (int)(bool)$_POST['add_every_product'];
|
20 |
$is_active = (int)(bool)$_POST['add_active'];
|
21 |
+
$start_date = ! empty( $_POST['add_start'] ) ? date( 'Y-m-d', strtotime( $_POST['add_start'] ) ) . " 00:00:00" : null;
|
22 |
+
$end_date = ! empty( $_POST['add_end'] ) ? date( 'Y-m-d', strtotime( $_POST['add_end'] ) ) . " 23:59:59" : null;
|
23 |
$rules = $_POST['rules'];
|
24 |
+
$new_rules = array();
|
25 |
|
26 |
foreach ( $rules as $key => $rule ) {
|
27 |
foreach ( $rule as $k => $r ) {
|
28 |
+
$new_rules[$k][$key] = $r;
|
29 |
}
|
30 |
}
|
31 |
|
32 |
+
foreach ( $new_rules as $key => $rule ) {
|
33 |
+
if ( '' == $rule['value'] )
|
34 |
+
unset( $new_rules[$key] );
|
|
|
35 |
}
|
36 |
|
37 |
$insert = $wpdb->insert(
|
46 |
'every_product' => $every_product,
|
47 |
'start' => $start_date,
|
48 |
'expiry' => $end_date,
|
49 |
+
'condition' => serialize( $new_rules )
|
50 |
),
|
51 |
array(
|
52 |
'%s',
|
53 |
'%f',
|
|
|
54 |
'%s',
|
55 |
'%s',
|
56 |
'%s',
|
57 |
'%s',
|
58 |
'%s',
|
59 |
'%s',
|
60 |
+
'%s',
|
61 |
+
'%s',
|
62 |
)
|
63 |
);
|
64 |
if ( $insert )
|
65 |
+
echo "<div class='updated'><p>" . __( 'The coupon has been added.', 'wpsc' ) . "</p></div>";
|
66 |
|
67 |
}
|
68 |
|
69 |
+
// update an existing coupon
|
70 |
if ( isset( $_POST['is_edit_coupon'] ) && ($_POST['is_edit_coupon'] == 'true') && !(isset( $_POST['delete_condition'] )) && !(isset( $_POST['submit_condition'] )) ) {
|
71 |
|
72 |
+
$rules = isset( $_POST['rules'] ) ? $_POST['rules'] : array();
|
73 |
+
$new_rules = array();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
|
75 |
+
foreach ( $rules as $key => $rule ) {
|
76 |
+
foreach ( $rule as $k => $r ) {
|
77 |
+
$new_rules[$k][$key] = $r;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
}
|
79 |
}
|
|
|
80 |
|
81 |
+
foreach ( $new_rules as $key => $rule ) {
|
82 |
+
if ( '' == $rule['value'] )
|
83 |
+
unset( $new_rules[$key] );
|
84 |
+
}
|
|
|
|
|
85 |
|
86 |
+
$update = $wpdb->update(
|
87 |
WPSC_TABLE_COUPON_CODES,
|
88 |
array(
|
89 |
+
'coupon_code' => $_POST['edit_coupon_code'],
|
90 |
+
'value' => $_POST['edit_coupon_amount'],
|
91 |
+
'is-percentage' => $_POST['edit_discount_type'],
|
92 |
+
'use-once' => $_POST['edit_coupon_use_once'],
|
93 |
+
'is-used' => $_POST['edit_coupon_is_used'],
|
94 |
+
'active' => $_POST['edit_coupon_active'],
|
95 |
+
'every_product' => $_POST['edit_coupon_every_product'],
|
96 |
+
'start' => ! empty( $_POST['edit_coupon_start'] ) ? get_gmt_from_date( $_POST['edit_coupon_start'] . ' 00:00:00' ) : null,
|
97 |
+
'expiry' => ! empty( $_POST['edit_coupon_end'] ) ? get_gmt_from_date( $_POST['edit_coupon_end'] . ' 23:59:59' ) : null,
|
98 |
+
'condition' => serialize( $new_rules )
|
99 |
),
|
100 |
+
array( 'id' => absint( $_POST['coupon_id'] ) ),
|
101 |
array(
|
102 |
+
'%s',
|
103 |
+
'%f',
|
104 |
+
'%s',
|
105 |
+
'%s',
|
106 |
+
'%s',
|
107 |
+
'%s',
|
108 |
+
'%s',
|
109 |
+
'%s',
|
110 |
+
'%s',
|
111 |
+
'%s'
|
112 |
),
|
113 |
+
array( '%d' )
|
114 |
+
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
|
116 |
+
if ( $update )
|
117 |
+
echo "<div class='updated'><p>" . __( 'The coupon has been updated.', 'wpsc' ) . "</p></div>";
|
118 |
}
|
119 |
}
|
120 |
|
121 |
+
/**
|
122 |
+
* Load the selected view
|
123 |
+
*/
|
124 |
+
|
125 |
+
if( isset( $_GET['wpsc-action'] ) && $_GET['wpsc-action'] == 'add_coupon' ) {
|
126 |
+
// load the coupon add screen
|
127 |
+
include( dirname( __FILE__ ) . '/display-coupon-add.php' );
|
128 |
+
|
129 |
+
} elseif( isset( $_GET['wpsc-action'] ) && $_GET['wpsc-action'] == 'edit_coupon' ) {
|
130 |
+
// load the coupon add screen
|
131 |
+
include( dirname( __FILE__ ) . '/display-coupon-edit.php' );
|
132 |
+
|
133 |
+
} else {
|
134 |
+
require_once WPSC_FILE_PATH . '/wpsc-admin/includes/coupon-list-table-class.php';
|
135 |
+
$coupons_table = new WPSC_Coupons_List_Table();
|
136 |
+
$coupons_table->prepare_items(); ?>
|
137 |
+
<div class="wrap">
|
138 |
+
<h2><?php _e( 'Coupons', 'wpsc' ); ?><a href="<?php echo add_query_arg( 'wpsc-action', 'add_coupon' ); ?>" class="add-new-h2"><?php _e( 'Add Coupon', 'wpsc' ); ?></a></h2>
|
139 |
+
<?php do_action( 'wpsc_coupons_page_top' ); ?>
|
140 |
+
<form id="wpsc-coupons-filter" method="get" action="<?php echo admin_url( 'edit.php?post_type=wpsc-product&page=wpsc-edit-coupons' ); ?>">
|
141 |
+
|
142 |
+
<input type="hidden" name="post_type" value="wpsc-product" />
|
143 |
+
<input type="hidden" name="page" value="wpsc-edit-coupons" />
|
144 |
+
|
145 |
+
<?php $coupons_table->views() ?>
|
146 |
+
<?php $coupons_table->display() ?>
|
147 |
+
</form>
|
148 |
+
<?php do_action( 'wpsc_coupons_page_bottom' ); ?>
|
149 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
<?php
|
151 |
+
} // end view check
|
152 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-admin/display-debug.page.php
CHANGED
@@ -8,11 +8,18 @@
|
|
8 |
*
|
9 |
* @package wp-e-commerce
|
10 |
* @since 3.7
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
*/
|
12 |
function wpsc_debug_page() {
|
13 |
if ( !current_user_can('manage_options') )
|
14 |
wp_die("You don't look like an administrator.");
|
15 |
-
|
16 |
$fixpage = admin_url( 'admin.php?page=wpsc-sales-logs&subpage=upgrade-purchase-logs' );
|
17 |
?>
|
18 |
<div class="wrap">
|
@@ -343,6 +350,4 @@ function wpsc_mass_resize_thumbnails_and_clean_images() {
|
|
343 |
}
|
344 |
}
|
345 |
$wpdb->query( "DELETE FROM `" . WPSC_TABLE_PRODUCT_IMAGES . "` WHERE `product_id` IN('0')" );
|
346 |
-
}
|
347 |
-
|
348 |
-
?>
|
8 |
*
|
9 |
* @package wp-e-commerce
|
10 |
* @since 3.7
|
11 |
+
*
|
12 |
+
* @uses wp_die() Kill WordPress execution and display HTML message with error message.
|
13 |
+
* @uses $wpdb WordPress database variable for queries
|
14 |
+
* @uses admin_url() Gets URL to the admin of the current site
|
15 |
+
* @uses wp_nonce_url() Retrieve URL with nonce added to URL query.
|
16 |
+
* @uses wpsc_convert_products_to_posts() Converts legacy data format to post_types
|
17 |
+
* @todo docs
|
18 |
*/
|
19 |
function wpsc_debug_page() {
|
20 |
if ( !current_user_can('manage_options') )
|
21 |
wp_die("You don't look like an administrator.");
|
22 |
+
|
23 |
$fixpage = admin_url( 'admin.php?page=wpsc-sales-logs&subpage=upgrade-purchase-logs' );
|
24 |
?>
|
25 |
<div class="wrap">
|
350 |
}
|
351 |
}
|
352 |
$wpdb->query( "DELETE FROM `" . WPSC_TABLE_PRODUCT_IMAGES . "` WHERE `product_id` IN('0')" );
|
353 |
+
}
|
|
|
|
wpsc-admin/display-items.page.php
CHANGED
@@ -38,6 +38,11 @@ function wpsc_additional_column_names( $columns ){
|
|
38 |
|
39 |
return $columns;
|
40 |
}
|
|
|
|
|
|
|
|
|
|
|
41 |
function wpsc_additional_sortable_column_names( $columns ){
|
42 |
|
43 |
$columns['stock'] = 'stock';
|
@@ -53,8 +58,12 @@ function wpsc_additional_sortable_column_names( $columns ){
|
|
53 |
*
|
54 |
* @since 3.8.9
|
55 |
* @access private
|
|
|
56 |
* @param object $post Post object
|
57 |
* @param int $post_id Post ID
|
|
|
|
|
|
|
58 |
*/
|
59 |
function _wpsc_manage_products_column_image( $post, $post_id ) {
|
60 |
$src = wpsc_the_product_thumbnail( false, false, $post_id, 'manage-products' );
|
@@ -71,9 +80,16 @@ add_action( 'wpsc_manage_products_column_image', '_wpsc_manage_products_column_i
|
|
71 |
*
|
72 |
* @since 3.8.9
|
73 |
* @access private
|
|
|
74 |
* @param object $post Post object
|
75 |
* @param int $post_id Post ID
|
76 |
* @param boolean $has_variations Whether the product has variations
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
*/
|
78 |
function _wpsc_manage_products_column_weight( $post, $post_id, $has_variations ) {
|
79 |
if( $has_variations ) {
|
@@ -126,9 +142,14 @@ add_action( 'wpsc_manage_products_column_weight', '_wpsc_manage_products_column_
|
|
126 |
*
|
127 |
* @since 3.8.9
|
128 |
* @access private
|
|
|
129 |
* @param object $post Post Object
|
130 |
* @param int $post_id Post ID
|
131 |
* @param boolean $has_variations Whether the product has variations
|
|
|
|
|
|
|
|
|
132 |
*/
|
133 |
function _wpsc_manage_products_column_stock( $post, $post_id, $has_variations ) {
|
134 |
$stock = get_post_meta( $post->ID, '_wpsc_stock', true );
|
@@ -152,9 +173,14 @@ add_action( 'wpsc_manage_products_column_stock', '_wpsc_manage_products_column_s
|
|
152 |
*
|
153 |
* @since 3.8.9
|
154 |
* @access private
|
|
|
155 |
* @param object $post Post object
|
156 |
* @param int $post_id Post ID
|
157 |
* @param boolean $has_variations Whether the product has variations
|
|
|
|
|
|
|
|
|
158 |
*/
|
159 |
function _wpsc_manage_products_column_price( $post, $post_id, $has_variations ) {
|
160 |
$price = get_post_meta( $post->ID, '_wpsc_price', true );
|
@@ -175,9 +201,14 @@ add_action( 'wpsc_manage_products_column_price', '_wpsc_manage_products_column_p
|
|
175 |
*
|
176 |
* @since 3.8.9
|
177 |
* @access private
|
|
|
178 |
* @param object $post Post object
|
179 |
* @param int $post_id Post ID
|
180 |
* @param boolean $has_variations Whether the product has variations
|
|
|
|
|
|
|
|
|
181 |
*/
|
182 |
function _wpsc_manage_products_column_sale_price( $post, $post_id, $has_variations ) {
|
183 |
$price = get_post_meta( $post->ID, '_wpsc_special_price', true );
|
@@ -194,8 +225,12 @@ add_action( 'wpsc_manage_products_column_sale_price', '_wpsc_manage_products_col
|
|
194 |
*
|
195 |
* @since 3.8.9
|
196 |
* @access private
|
|
|
197 |
* @param object $post Post object
|
198 |
* @param int $post_id Post ID
|
|
|
|
|
|
|
199 |
*/
|
200 |
function _wpsc_manage_products_column_sku( $post, $post_id ) {
|
201 |
$sku = get_post_meta( $post->ID, '_wpsc_sku', true );
|
@@ -212,8 +247,13 @@ add_action( 'wpsc_manage_products_column_sku', '_wpsc_manage_products_column_sku
|
|
212 |
*
|
213 |
* @since 3.8.9
|
214 |
* @access private
|
|
|
215 |
* @param object $post Post object
|
216 |
* @param int $post_id Post ID
|
|
|
|
|
|
|
|
|
217 |
*/
|
218 |
function _wpsc_manage_products_column_cats( $post, $post_id ) {
|
219 |
$categories = get_the_product_category( $post->ID );
|
@@ -233,8 +273,12 @@ add_action( 'wpsc_manage_products_column_cats', '_wpsc_manage_products_column_ca
|
|
233 |
*
|
234 |
* @since 3.8.9
|
235 |
* @access private
|
|
|
236 |
* @param object $post Post object
|
237 |
* @param int $post_id Post ID
|
|
|
|
|
|
|
238 |
*/
|
239 |
function _wpsc_manage_products_column_featured( $post, $post_id ) {
|
240 |
$featured_product_url = wp_nonce_url( "index.php?wpsc_admin_action=update_featured_product&product_id=$post->ID", 'feature_product_' . $post->ID);
|
@@ -255,8 +299,11 @@ add_action( 'wpsc_manage_products_column_featured', '_wpsc_manage_products_colum
|
|
255 |
*
|
256 |
* @since 3.8.9
|
257 |
* @access private
|
|
|
258 |
* @param object $post Post object
|
259 |
* @param int $post_id Post ID
|
|
|
|
|
260 |
*/
|
261 |
function _wpsc_manage_products_column_hidden_alerts( $post, $post_id ) {
|
262 |
$product_alert = apply_filters( 'wpsc_product_alert', array( false, '' ), $post );
|
@@ -278,14 +325,19 @@ add_action( 'wpsc_manage_products_column_hidden_alerts', '_wpsc_manage_products_
|
|
278 |
|
279 |
|
280 |
/**
|
281 |
-
*
|
282 |
*
|
283 |
* @access public
|
|
|
284 |
* @param (array) $column
|
285 |
* @return void
|
|
|
286 |
* @todo Need to check titles / alt tags ( I don't think thumbnails have any in this code )
|
287 |
* @desc Switch function to generate columns the right way...no more UI hacking!
|
288 |
*
|
|
|
|
|
|
|
289 |
*/
|
290 |
function wpsc_additional_column_data( $column, $post_id ) {
|
291 |
$post = get_post( $post_id );
|
@@ -295,6 +347,10 @@ function wpsc_additional_column_data( $column, $post_id ) {
|
|
295 |
do_action( "wpsc_manage_products_column_{$column}", $post, $post_id, $is_parent );
|
296 |
}
|
297 |
|
|
|
|
|
|
|
|
|
298 |
function wpsc_column_sql_orderby( $vars ) {
|
299 |
if ( ! isset( $vars['post_type'] ) || 'wpsc-product' != $vars['post_type'] || ! isset( $vars['orderby'] ) )
|
300 |
return $vars;
|
@@ -341,6 +397,12 @@ function wpsc_column_sql_orderby( $vars ) {
|
|
341 |
|
342 |
return $vars;
|
343 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
344 |
function wpsc_cats_restrict_manage_posts() {
|
345 |
global $typenow;
|
346 |
|
@@ -362,7 +424,15 @@ function wpsc_cats_restrict_manage_posts() {
|
|
362 |
}
|
363 |
}
|
364 |
|
365 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
366 |
$prefix = str_repeat( ' ' , $level );
|
367 |
$terms = get_terms( $taxonomy, array( 'parent' => $parent, 'hide_empty' => false ) );
|
368 |
if( !($terms instanceof WP_Error) && !empty($terms) )
|
@@ -373,13 +443,12 @@ function wpsc_cats_restrict_manage_posts_print_terms($taxonomy, $parent = 0, $le
|
|
373 |
}
|
374 |
|
375 |
/**
|
376 |
-
* wpsc no minors allowed
|
377 |
* Restrict the products page to showing only parent products and not variations.
|
|
|
378 |
* @since 3.8
|
379 |
*/
|
380 |
-
|
381 |
function wpsc_no_minors_allowed( $vars ) {
|
382 |
-
|
383 |
|
384 |
if( $current_screen->post_type != 'wpsc-product' )
|
385 |
return $vars;
|
@@ -394,8 +463,9 @@ function wpsc_no_minors_allowed( $vars ) {
|
|
394 |
*
|
395 |
* Only sorts columns on edit.php page.
|
396 |
* @since 3.8.8
|
|
|
|
|
397 |
*/
|
398 |
-
|
399 |
function wpsc_sortable_column_load() {
|
400 |
add_filter( 'request', 'wpsc_no_minors_allowed' );
|
401 |
add_filter( 'request', 'wpsc_column_sql_orderby', 8 );
|
@@ -416,6 +486,12 @@ add_filter( 'manage_wpsc-product_posts_columns', 'wpsc_additional_column_names'
|
|
416 |
* @access public
|
417 |
* @todo Should be refactored to e
|
418 |
* @return void
|
|
|
|
|
|
|
|
|
|
|
|
|
419 |
*/
|
420 |
function wpsc_update_featured_products() {
|
421 |
$is_ajax = (int)(bool)$_POST['ajax'];
|
@@ -446,9 +522,18 @@ function wpsc_update_featured_products() {
|
|
446 |
wp_redirect( wp_get_referer() );
|
447 |
exit();
|
448 |
}
|
449 |
-
|
450 |
add_filter( 'page_row_actions','my_action_row', 10, 2 );
|
451 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
452 |
function my_action_row( $actions, $post ) {
|
453 |
|
454 |
if ( $post->post_type != "wpsc-product" )
|
@@ -463,4 +548,3 @@ function my_action_row( $actions, $post ) {
|
|
463 |
|
464 |
if ( isset( $_REQUEST['wpsc_admin_action'] ) && ( $_REQUEST['wpsc_admin_action'] == 'update_featured_product' ) )
|
465 |
add_action( 'admin_init', 'wpsc_update_featured_products' );
|
466 |
-
|
38 |
|
39 |
return $columns;
|
40 |
}
|
41 |
+
|
42 |
+
/**
|
43 |
+
* @param array $columns The array of sortable columns
|
44 |
+
* @return array
|
45 |
+
*/
|
46 |
function wpsc_additional_sortable_column_names( $columns ){
|
47 |
|
48 |
$columns['stock'] = 'stock';
|
58 |
*
|
59 |
* @since 3.8.9
|
60 |
* @access private
|
61 |
+
*
|
62 |
* @param object $post Post object
|
63 |
* @param int $post_id Post ID
|
64 |
+
*
|
65 |
+
* @uses wpsc_the_product_thumbnail() Prints URL to the product thumbnail
|
66 |
+
* @uses esc_url() Makes sure we have a safe URL
|
67 |
*/
|
68 |
function _wpsc_manage_products_column_image( $post, $post_id ) {
|
69 |
$src = wpsc_the_product_thumbnail( false, false, $post_id, 'manage-products' );
|
80 |
*
|
81 |
* @since 3.8.9
|
82 |
* @access private
|
83 |
+
*
|
84 |
* @param object $post Post object
|
85 |
* @param int $post_id Post ID
|
86 |
* @param boolean $has_variations Whether the product has variations
|
87 |
+
*
|
88 |
+
* @uses esc_html_e() Safe HTML with translation
|
89 |
+
* @uses get_post_meta() Gets post meta given key and post_id
|
90 |
+
* @uses maybe_unserialize() Unserialize value only if it was serialized.
|
91 |
+
* @uses wpsc_convert_weight() Does weight conversions
|
92 |
+
* @uses esc_html() Makes sure things are safe
|
93 |
*/
|
94 |
function _wpsc_manage_products_column_weight( $post, $post_id, $has_variations ) {
|
95 |
if( $has_variations ) {
|
142 |
*
|
143 |
* @since 3.8.9
|
144 |
* @access private
|
145 |
+
*
|
146 |
* @param object $post Post Object
|
147 |
* @param int $post_id Post ID
|
148 |
* @param boolean $has_variations Whether the product has variations
|
149 |
+
*
|
150 |
+
* @uses get_post_meta() Gets post meta given key and post_id
|
151 |
+
* @uses wpsc_variations_stock_remaining() Gets remaining stock level for given post_id
|
152 |
+
* @uses esc_html() Because we need safe HTML right???
|
153 |
*/
|
154 |
function _wpsc_manage_products_column_stock( $post, $post_id, $has_variations ) {
|
155 |
$stock = get_post_meta( $post->ID, '_wpsc_stock', true );
|
173 |
*
|
174 |
* @since 3.8.9
|
175 |
* @access private
|
176 |
+
*
|
177 |
* @param object $post Post object
|
178 |
* @param int $post_id Post ID
|
179 |
* @param boolean $has_variations Whether the product has variations
|
180 |
+
*
|
181 |
+
* @uses get_post_meta() Gets post meta given key and post_id
|
182 |
+
* @uses wpsc_currency_display() Returns the currency after dealing with how the user wants it to be displayed
|
183 |
+
* @uses wpsc_product_variation_price_available() Gets the lowest price for the given post_id
|
184 |
*/
|
185 |
function _wpsc_manage_products_column_price( $post, $post_id, $has_variations ) {
|
186 |
$price = get_post_meta( $post->ID, '_wpsc_price', true );
|
201 |
*
|
202 |
* @since 3.8.9
|
203 |
* @access private
|
204 |
+
*
|
205 |
* @param object $post Post object
|
206 |
* @param int $post_id Post ID
|
207 |
* @param boolean $has_variations Whether the product has variations
|
208 |
+
*
|
209 |
+
* @uses get_post_meta() Gets post meta given key and post_id
|
210 |
+
* @uses wpsc_currency_display() Returns currency after taking user display options in to account
|
211 |
+
* @uses wpsc_product_variation_price_available() Gets the lowest price for the given post_id
|
212 |
*/
|
213 |
function _wpsc_manage_products_column_sale_price( $post, $post_id, $has_variations ) {
|
214 |
$price = get_post_meta( $post->ID, '_wpsc_special_price', true );
|
225 |
*
|
226 |
* @since 3.8.9
|
227 |
* @access private
|
228 |
+
*
|
229 |
* @param object $post Post object
|
230 |
* @param int $post_id Post ID
|
231 |
+
*
|
232 |
+
* @uses get_post_meta() Gets post meta given key and post_id
|
233 |
+
* @uses esc_html() Escapes the stuff inside
|
234 |
*/
|
235 |
function _wpsc_manage_products_column_sku( $post, $post_id ) {
|
236 |
$sku = get_post_meta( $post->ID, '_wpsc_sku', true );
|
247 |
*
|
248 |
* @since 3.8.9
|
249 |
* @access private
|
250 |
+
*
|
251 |
* @param object $post Post object
|
252 |
* @param int $post_id Post ID
|
253 |
+
*
|
254 |
+
* @uses get_the_product_category() Gets the category for the given post_id
|
255 |
+
* @uses esc_html() Makes sure we have safe HTML
|
256 |
+
* @uses sanitize_term_field() Cleanse the field value in the term based on the context.
|
257 |
*/
|
258 |
function _wpsc_manage_products_column_cats( $post, $post_id ) {
|
259 |
$categories = get_the_product_category( $post->ID );
|
273 |
*
|
274 |
* @since 3.8.9
|
275 |
* @access private
|
276 |
+
*
|
277 |
* @param object $post Post object
|
278 |
* @param int $post_id Post ID
|
279 |
+
*
|
280 |
+
* @uses get_option() Gets option from the WordPress database
|
281 |
+
* @uses _e() Displays the returned translated text from translate()
|
282 |
*/
|
283 |
function _wpsc_manage_products_column_featured( $post, $post_id ) {
|
284 |
$featured_product_url = wp_nonce_url( "index.php?wpsc_admin_action=update_featured_product&product_id=$post->ID", 'feature_product_' . $post->ID);
|
299 |
*
|
300 |
* @since 3.8.9
|
301 |
* @access private
|
302 |
+
*
|
303 |
* @param object $post Post object
|
304 |
* @param int $post_id Post ID
|
305 |
+
*
|
306 |
+
* @uses apply_filters() Calls 'wpsc_product_alert'
|
307 |
*/
|
308 |
function _wpsc_manage_products_column_hidden_alerts( $post, $post_id ) {
|
309 |
$product_alert = apply_filters( 'wpsc_product_alert', array( false, '' ), $post );
|
325 |
|
326 |
|
327 |
/**
|
328 |
+
* Adds extra data to post columns
|
329 |
*
|
330 |
* @access public
|
331 |
+
*
|
332 |
* @param (array) $column
|
333 |
* @return void
|
334 |
+
*
|
335 |
* @todo Need to check titles / alt tags ( I don't think thumbnails have any in this code )
|
336 |
* @desc Switch function to generate columns the right way...no more UI hacking!
|
337 |
*
|
338 |
+
* @uses get_post() Gets post object from provided post_id
|
339 |
+
* @uses wpsc_product_has_children() Checks if a product has variations or not
|
340 |
+
* @uses do_action() Calls 'wpsc_manage_products_column_$column'
|
341 |
*/
|
342 |
function wpsc_additional_column_data( $column, $post_id ) {
|
343 |
$post = get_post( $post_id );
|
347 |
do_action( "wpsc_manage_products_column_{$column}", $post, $post_id, $is_parent );
|
348 |
}
|
349 |
|
350 |
+
/**
|
351 |
+
* @param array $vars Array of query vars
|
352 |
+
* @return array $vars Our modified vars
|
353 |
+
*/
|
354 |
function wpsc_column_sql_orderby( $vars ) {
|
355 |
if ( ! isset( $vars['post_type'] ) || 'wpsc-product' != $vars['post_type'] || ! isset( $vars['orderby'] ) )
|
356 |
return $vars;
|
397 |
|
398 |
return $vars;
|
399 |
}
|
400 |
+
|
401 |
+
/**
|
402 |
+
*
|
403 |
+
* @uses get_taxonomy() Retrieves the taxonomy object of $taxonomy.
|
404 |
+
* @uses wpsc_cats_restrict_manage_posts_print_terms() @todo docs
|
405 |
+
*/
|
406 |
function wpsc_cats_restrict_manage_posts() {
|
407 |
global $typenow;
|
408 |
|
424 |
}
|
425 |
}
|
426 |
|
427 |
+
/**
|
428 |
+
* @todo docs
|
429 |
+
* @param $taxonomy
|
430 |
+
* @param int $parent
|
431 |
+
* @param int $level
|
432 |
+
*
|
433 |
+
* @uses get_terms() Retrieve the terms in a given taxonomy or list of taxonomies.
|
434 |
+
*/
|
435 |
+
function wpsc_cats_restrict_manage_posts_print_terms( $taxonomy, $parent = 0, $level = 0 ) {
|
436 |
$prefix = str_repeat( ' ' , $level );
|
437 |
$terms = get_terms( $taxonomy, array( 'parent' => $parent, 'hide_empty' => false ) );
|
438 |
if( !($terms instanceof WP_Error) && !empty($terms) )
|
443 |
}
|
444 |
|
445 |
/**
|
|
|
446 |
* Restrict the products page to showing only parent products and not variations.
|
447 |
+
*
|
448 |
* @since 3.8
|
449 |
*/
|
|
|
450 |
function wpsc_no_minors_allowed( $vars ) {
|
451 |
+
$current_screen = get_current_screen();
|
452 |
|
453 |
if( $current_screen->post_type != 'wpsc-product' )
|
454 |
return $vars;
|
463 |
*
|
464 |
* Only sorts columns on edit.php page.
|
465 |
* @since 3.8.8
|
466 |
+
*
|
467 |
+
* @uses add_filter()
|
468 |
*/
|
|
|
469 |
function wpsc_sortable_column_load() {
|
470 |
add_filter( 'request', 'wpsc_no_minors_allowed' );
|
471 |
add_filter( 'request', 'wpsc_column_sql_orderby', 8 );
|
486 |
* @access public
|
487 |
* @todo Should be refactored to e
|
488 |
* @return void
|
489 |
+
*
|
490 |
+
* @uses check_admin_referrer() Makes sure that a user was referred from another admin page.
|
491 |
+
* @uses get_option() Gets option from the WordPress database
|
492 |
+
* @uses update_option() Updates an option in the WordPress database
|
493 |
+
* @uses wp_redirect() Redirects to another page.
|
494 |
+
* @uses wp_get_referrer() Retrieve referer from '_wp_http_referer' or HTTP referer.
|
495 |
*/
|
496 |
function wpsc_update_featured_products() {
|
497 |
$is_ajax = (int)(bool)$_POST['ajax'];
|
522 |
wp_redirect( wp_get_referer() );
|
523 |
exit();
|
524 |
}
|
|
|
525 |
add_filter( 'page_row_actions','my_action_row', 10, 2 );
|
526 |
|
527 |
+
/**
|
528 |
+
* @param $actions
|
529 |
+
* @param $post
|
530 |
+
* @return mixed
|
531 |
+
*
|
532 |
+
* @uses admin_url() Gets the WordPress admin url
|
533 |
+
* @uses add_query_arg() Adds a query arg to url
|
534 |
+
* @uses esc_url() Makes sure the URL is safe, we like safe
|
535 |
+
* @uses esc_html_x() Displays translated string with gettext context
|
536 |
+
*/
|
537 |
function my_action_row( $actions, $post ) {
|
538 |
|
539 |
if ( $post->post_type != "wpsc-product" )
|
548 |
|
549 |
if ( isset( $_REQUEST['wpsc_admin_action'] ) && ( $_REQUEST['wpsc_admin_action'] == 'update_featured_product' ) )
|
550 |
add_action( 'admin_init', 'wpsc_update_featured_products' );
|
|
wpsc-admin/display-sales-logs.php
CHANGED
@@ -10,8 +10,7 @@
|
|
10 |
|
11 |
|
12 |
|
13 |
-
class WPSC_Purchase_Log_Page
|
14 |
-
{
|
15 |
private $list_table;
|
16 |
private $output;
|
17 |
|
@@ -75,7 +74,7 @@ class WPSC_Purchase_Log_Page
|
|
75 |
$numQueries = 0;
|
76 |
$purchlog = "SELECT DISTINCT id FROM `".WPSC_TABLE_PURCHASE_LOGS."` LIMIT 1";
|
77 |
$id = $wpdb->get_var($purchlog);
|
78 |
-
$usersql = "SELECT DISTINCT `".
|
79 |
$formfields = $wpdb->get_results($usersql);
|
80 |
|
81 |
if(count($formfields) < 1){
|
@@ -178,7 +177,7 @@ class WPSC_Purchase_Log_Page
|
|
178 |
<h4><?php esc_html_e( 'Cart Items with Custom Messages' , 'wpsc' ); ?>:</h4>
|
179 |
<?php
|
180 |
foreach($messages as $message){
|
181 |
-
echo esc_html( $message );
|
182 |
}
|
183 |
} ?>
|
184 |
</div>
|
@@ -348,7 +347,7 @@ class WPSC_Purchase_Log_Page
|
|
348 |
$wpdb->query( "DELETE FROM " . WPSC_TABLE_PURCHASE_LOGS . " WHERE id IN ($in)" );
|
349 |
$wpdb->query( "DELETE FROM " . WPSC_TABLE_CLAIMED_STOCK . " WHERE cart_id IN ($in)" );
|
350 |
$wpdb->query( "DELETE FROM " . WPSC_TABLE_CART_CONTENTS . " WHERE purchaseid IN ($in)" );
|
351 |
-
$wpdb->query( "DELETE FROM " .
|
352 |
|
353 |
$sendback = add_query_arg( array(
|
354 |
'paged' => $_REQUEST['last_paged'],
|
10 |
|
11 |
|
12 |
|
13 |
+
class WPSC_Purchase_Log_Page {
|
|
|
14 |
private $list_table;
|
15 |
private $output;
|
16 |
|
74 |
$numQueries = 0;
|
75 |
$purchlog = "SELECT DISTINCT id FROM `".WPSC_TABLE_PURCHASE_LOGS."` LIMIT 1";
|
76 |
$id = $wpdb->get_var($purchlog);
|
77 |
+
$usersql = "SELECT DISTINCT `".WPSC_TABLE_SUBMITTED_FORM_DATA."`.value, `".WPSC_TABLE_CHECKOUT_FORMS."`.* FROM `".WPSC_TABLE_CHECKOUT_FORMS."` LEFT JOIN `".WPSC_TABLE_SUBMITTED_FORM_DATA."` ON `".WPSC_TABLE_CHECKOUT_FORMS."`.id = `".WPSC_TABLE_SUBMITTED_FORM_DATA."`.`form_id` WHERE `".WPSC_TABLE_SUBMITTED_FORM_DATA."`.log_id=".$id." ORDER BY `".WPSC_TABLE_CHECKOUT_FORMS."`.`checkout_order`" ;
|
78 |
$formfields = $wpdb->get_results($usersql);
|
79 |
|
80 |
if(count($formfields) < 1){
|
177 |
<h4><?php esc_html_e( 'Cart Items with Custom Messages' , 'wpsc' ); ?>:</h4>
|
178 |
<?php
|
179 |
foreach($messages as $message){
|
180 |
+
echo esc_html( $message['title'] ) . ':<br />' . nl2br( esc_html( $message['message'] ) );
|
181 |
}
|
182 |
} ?>
|
183 |
</div>
|
347 |
$wpdb->query( "DELETE FROM " . WPSC_TABLE_PURCHASE_LOGS . " WHERE id IN ($in)" );
|
348 |
$wpdb->query( "DELETE FROM " . WPSC_TABLE_CLAIMED_STOCK . " WHERE cart_id IN ($in)" );
|
349 |
$wpdb->query( "DELETE FROM " . WPSC_TABLE_CART_CONTENTS . " WHERE purchaseid IN ($in)" );
|
350 |
+
$wpdb->query( "DELETE FROM " . WPSC_TABLE_SUBMITTED_FORM_DATA . " WHERE log_id IN ($in)" );
|
351 |
|
352 |
$sendback = add_query_arg( array(
|
353 |
'paged' => $_REQUEST['last_paged'],
|
wpsc-admin/display-update.page.php
CHANGED
File without changes
|
wpsc-admin/includes/coupon-list-table-class.php
ADDED
@@ -0,0 +1,484 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Coupon WP List Table Class
|
4 |
+
*
|
5 |
+
* @package WP e-Commerce
|
6 |
+
* @subpackage Coupon List Table Class
|
7 |
+
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
8 |
+
* @since 3.8.10
|
9 |
+
*/
|
10 |
+
|
11 |
+
|
12 |
+
// Exit if accessed directly
|
13 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
14 |
+
|
15 |
+
|
16 |
+
// Load WP_List_Table if not loaded
|
17 |
+
if ( ! class_exists( 'WP_List_Table' ) ) {
|
18 |
+
require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php';
|
19 |
+
}
|
20 |
+
|
21 |
+
/**
|
22 |
+
* WPSC Coupon Codes Table Class
|
23 |
+
*
|
24 |
+
* Renders the Coupons table on the Coupons page
|
25 |
+
*
|
26 |
+
* @access private
|
27 |
+
* @since 3.8.10
|
28 |
+
*/
|
29 |
+
|
30 |
+
class WPSC_Coupons_List_Table extends WP_List_Table {
|
31 |
+
|
32 |
+
|
33 |
+
/**
|
34 |
+
* Number of results to show per page
|
35 |
+
*
|
36 |
+
* @since 3.8.10
|
37 |
+
*/
|
38 |
+
private $per_page = 30;
|
39 |
+
|
40 |
+
private $total_count;
|
41 |
+
private $active_count;
|
42 |
+
private $inactive_count;
|
43 |
+
private $statuses;
|
44 |
+
|
45 |
+
|
46 |
+
/**
|
47 |
+
* Get things started
|
48 |
+
*
|
49 |
+
* @access private
|
50 |
+
* @since 3.8.10
|
51 |
+
* @return void
|
52 |
+
*/
|
53 |
+
|
54 |
+
public function __construct(){
|
55 |
+
global $status, $page;
|
56 |
+
|
57 |
+
parent::__construct( array(
|
58 |
+
'singular' => 'coupon',
|
59 |
+
'plural' => 'coupons',
|
60 |
+
'ajax' => false
|
61 |
+
) );
|
62 |
+
|
63 |
+
$this->statuses = array(
|
64 |
+
'active' => _x( 'Active', 'coupon status', 'wpsc' ),
|
65 |
+
'inactive' => _x( 'Inactive', 'coupon status', 'wpsc' ),
|
66 |
+
'unknown' => _x( 'Unknown', 'coupon status', 'wpsc' ),
|
67 |
+
);
|
68 |
+
|
69 |
+
$this->process_single_actions();
|
70 |
+
$this->count_coupons();
|
71 |
+
}
|
72 |
+
|
73 |
+
|
74 |
+
/**
|
75 |
+
* Retrieve the view types
|
76 |
+
*
|
77 |
+
* @access private
|
78 |
+
* @since 3.8.10
|
79 |
+
* @return array
|
80 |
+
*/
|
81 |
+
|
82 |
+
public function get_views() {
|
83 |
+
$base = admin_url('edit.php?post_type=wpsc-product&page=wpsc-edit-coupons');
|
84 |
+
|
85 |
+
$current = isset( $_GET['status'] ) ? $_GET['status'] : 'all';
|
86 |
+
$total_count = ' <span class="count">(' . $this->total_count . ')</span>';
|
87 |
+
$active_count = ' <span class="count">(' . $this->active_count . ')</span>';
|
88 |
+
$inactive_count = ' <span class="count">(' . $this->inactive_count . ')</span>';
|
89 |
+
|
90 |
+
$views = array(
|
91 |
+
'all' => sprintf( '<a href="%s"%s>%s</a>', remove_query_arg( 'status', $base ), $current === 'all' || $current == '' ? ' class="current"' : '', __('All', 'wpsc') . $total_count ),
|
92 |
+
'active' => sprintf( '<a href="%s"%s>%s</a>', add_query_arg( 'status', '1', $base ), $current === '1' ? ' class="current"' : '', __('Active', 'wpsc') . $active_count ),
|
93 |
+
'inactive' => sprintf( '<a href="%s"%s>%s</a>', add_query_arg( 'status', '0', $base ), $current === '0' ? ' class="current"' : '', __('Inactive', 'wpsc') . $inactive_count ),
|
94 |
+
);
|
95 |
+
|
96 |
+
return $views;
|
97 |
+
}
|
98 |
+
|
99 |
+
|
100 |
+
/**
|
101 |
+
* Retrieve the table columnds
|
102 |
+
*
|
103 |
+
* @access private
|
104 |
+
* @since 3.8.10
|
105 |
+
* @return array
|
106 |
+
*/
|
107 |
+
|
108 |
+
public function get_columns() {
|
109 |
+
$columns = array(
|
110 |
+
'cb' => '<input type="checkbox" />',
|
111 |
+
'coupon' => __( 'Code', 'wpsc' ),
|
112 |
+
'discount' => __( 'Discount', 'wpsc' ),
|
113 |
+
'start' => __( 'Start Date', 'wpsc' ),
|
114 |
+
'expiry' => __( 'Expiration', 'wpsc' ),
|
115 |
+
'status' => __( 'Status', 'wpsc' ),
|
116 |
+
);
|
117 |
+
|
118 |
+
return $columns;
|
119 |
+
}
|
120 |
+
|
121 |
+
|
122 |
+
/**
|
123 |
+
* Render most columns
|
124 |
+
*
|
125 |
+
* @access private
|
126 |
+
* @param array $item Contains all the data of the discount code
|
127 |
+
* @param string $column_name The name of the column
|
128 |
+
* @since 3.8.10
|
129 |
+
* @return string
|
130 |
+
*/
|
131 |
+
|
132 |
+
protected function column_default( $item, $column_name ) {
|
133 |
+
switch( $column_name ){
|
134 |
+
case 'start' :
|
135 |
+
|
136 |
+
if( ! empty( $item[ 'start'] ) && '0000-00-00 00:00:00' != $item['start'] ) {
|
137 |
+
$start_date = strtotime( get_date_from_gmt( $item[ $column_name ] ) );
|
138 |
+
$value = date_i18n( get_option( 'date_format' ), $start_date );
|
139 |
+
} else {
|
140 |
+
$value = __( 'None', 'wpsc' );
|
141 |
+
}
|
142 |
+
|
143 |
+
return $value;
|
144 |
+
|
145 |
+
case 'expiry' :
|
146 |
+
|
147 |
+
if( ! empty( $item[ 'expiry'] ) && '0000-00-00 00:00:00' != $item['expiry'] ) {
|
148 |
+
$expiry_date = strtotime( get_date_from_gmt( $item[ $column_name ] ) );
|
149 |
+
$value = date_i18n( get_option( 'date_format' ), $expiry_date );
|
150 |
+
} else {
|
151 |
+
$value = __( 'None', 'wpsc' );
|
152 |
+
}
|
153 |
+
|
154 |
+
return $value;
|
155 |
+
|
156 |
+
default:
|
157 |
+
return $item[ $column_name ];
|
158 |
+
}
|
159 |
+
}
|
160 |
+
|
161 |
+
/**
|
162 |
+
* Render the Name Column
|
163 |
+
*
|
164 |
+
* @access private
|
165 |
+
* @param array $item Contains all the data of the discount code
|
166 |
+
* @since 3.8.10
|
167 |
+
* @return string
|
168 |
+
*/
|
169 |
+
protected function column_coupon( $item ) {
|
170 |
+
|
171 |
+
$base = admin_url( 'edit.php?post_type=wpsc-product&page=wpsc-edit-coupons&wpsc-action=edit_coupon&coupon=' . $item['ID'] );
|
172 |
+
|
173 |
+
$coupon = '<strong><a href="' . add_query_arg( array( 'wpsc-action' => 'edit_coupon', 'coupon' => $item['ID'] ) ) . '">' . esc_html( $item['coupon'] ) . '</a></strong>';
|
174 |
+
|
175 |
+
$row_actions = array();
|
176 |
+
|
177 |
+
$row_actions['edit'] = '<a href="' . add_query_arg( array( 'wpsc-action' => 'edit_coupon', 'coupon' => $item['ID'] ) ) . '">' . __( 'Edit', 'wpsc' ) . '</a>';
|
178 |
+
|
179 |
+
if( strtolower( $item['status'] ) == 'active' )
|
180 |
+
$row_actions['deactivate'] = '<a href="' . add_query_arg( array( 'wpsc-action' => 'deactivate_coupon', 'coupon' => $item['ID'] ) ) . '">' . __( 'Deactivate', 'wpsc' ) . '</a>';
|
181 |
+
else
|
182 |
+
$row_actions['activate'] = '<a href="' . add_query_arg( array( 'wpsc-action' => 'activate_coupon', 'coupon' => $item['ID'] ) ) . '">' . __( 'Activate', 'wpsc' ) . '</a>';
|
183 |
+
|
184 |
+
$row_actions['delete'] = '<a href="' . add_query_arg( array( 'wpsc-action' => 'delete_coupon', 'coupon' => $item['ID'] ) ) . '">' . __( 'Delete', 'wpsc' ) . '</a>';
|
185 |
+
|
186 |
+
$row_actions = apply_filters( 'wpsc_coupon_row_actions', $row_actions, $item['ID'] );
|
187 |
+
|
188 |
+
return $coupon . $this->row_actions( $row_actions );
|
189 |
+
}
|
190 |
+
|
191 |
+
|
192 |
+
/**
|
193 |
+
* Render the checkbox column
|
194 |
+
*
|
195 |
+
* @access private
|
196 |
+
* @since 3.8.10
|
197 |
+
* @return string
|
198 |
+
*/
|
199 |
+
|
200 |
+
protected function column_cb( $item ) {
|
201 |
+
return sprintf(
|
202 |
+
'<input type="checkbox" name="%1$s[]" value="%2$s" />',
|
203 |
+
/*$1%s*/ $this->_args['singular'],
|
204 |
+
/*$2%s*/ $item['ID']
|
205 |
+
);
|
206 |
+
}
|
207 |
+
|
208 |
+
|
209 |
+
/**
|
210 |
+
* Render the Status Column
|
211 |
+
*
|
212 |
+
* @access private
|
213 |
+
* @param array $item Contains all the data of the discount code
|
214 |
+
* @since 3.8.10
|
215 |
+
* @return string
|
216 |
+
*/
|
217 |
+
|
218 |
+
protected function column_status( $item ) {
|
219 |
+
if ( ! array_key_exists( $item['status'], $this->statuses ) )
|
220 |
+
$item['status'] = 'unknown';
|
221 |
+
|
222 |
+
$column = '<span class="wpsc-coupon-status wpsc-coupon-status-%1$s">%2$s</a>';
|
223 |
+
$column = sprintf( $column, $item['status'], $this->statuses[$item['status']] );
|
224 |
+
|
225 |
+
return $column;
|
226 |
+
}
|
227 |
+
|
228 |
+
|
229 |
+
/**
|
230 |
+
* Render the Discount Column
|
231 |
+
*
|
232 |
+
* @access private
|
233 |
+
* @param array $item Contains all the data of the discount code
|
234 |
+
* @since 3.8.10
|
235 |
+
* @return string
|
236 |
+
*/
|
237 |
+
|
238 |
+
protected function column_discount( $item ) {
|
239 |
+
switch( $item['type'] ) {
|
240 |
+
case 0:
|
241 |
+
return wpsc_currency_display( $item['discount'] );
|
242 |
+
break;
|
243 |
+
case 1:
|
244 |
+
return $item['discount'] . '%';
|
245 |
+
break;
|
246 |
+
case 2:
|
247 |
+
return __( 'Free shipping', 'wpsc' );
|
248 |
+
break;
|
249 |
+
}
|
250 |
+
}
|
251 |
+
|
252 |
+
|
253 |
+
/**
|
254 |
+
* Retrieve the bulk actions
|
255 |
+
*
|
256 |
+
* @access private
|
257 |
+
* @since 3.8.10
|
258 |
+
* @return array
|
259 |
+
*/
|
260 |
+
|
261 |
+
public function get_bulk_actions() {
|
262 |
+
$actions = array(
|
263 |
+
'activate' => __( 'Activate', 'wpsc' ),
|
264 |
+
'deactivate' => __( 'Deactivate', 'wpsc' ),
|
265 |
+
'delete' => __( 'Delete', 'wpsc' )
|
266 |
+
);
|
267 |
+
|
268 |
+
return $actions;
|
269 |
+
}
|
270 |
+
|
271 |
+
|
272 |
+
/**
|
273 |
+
* Process the bulk actions
|
274 |
+
*
|
275 |
+
* @access private
|
276 |
+
* @since 3.8.10
|
277 |
+
* @return void
|
278 |
+
*/
|
279 |
+
|
280 |
+
public function process_bulk_action() {
|
281 |
+
|
282 |
+
global $wpdb;
|
283 |
+
|
284 |
+
$ids = isset( $_GET['coupon'] ) ? $_GET['coupon'] : false;
|
285 |
+
|
286 |
+
if ( ! is_array( $ids ) )
|
287 |
+
$ids = array( $ids );
|
288 |
+
|
289 |
+
foreach ( $ids as $id ) {
|
290 |
+
if ( 'delete' === $this->current_action() ) {
|
291 |
+
|
292 |
+
// delete a discount
|
293 |
+
$wpdb->query( $wpdb->prepare( "DELETE FROM " . WPSC_TABLE_COUPON_CODES . " WHERE id = %d", $id ) );
|
294 |
+
|
295 |
+
} elseif( 'activate' === $this->current_action() ) {
|
296 |
+
|
297 |
+
// activate a discount
|
298 |
+
$wpdb->query( $wpdb->prepare( "UPDATE " . WPSC_TABLE_COUPON_CODES . " SET active = 1 WHERE id = %d", $id ) );
|
299 |
+
|
300 |
+
|
301 |
+
} elseif( 'deactivate' === $this->current_action() ) {
|
302 |
+
|
303 |
+
// deactivate a discount
|
304 |
+
$wpdb->query( $wpdb->prepare( "UPDATE " . WPSC_TABLE_COUPON_CODES . " SET active = 0 WHERE id = %d", $id ) );
|
305 |
+
|
306 |
+
}
|
307 |
+
}
|
308 |
+
|
309 |
+
}
|
310 |
+
|
311 |
+
|
312 |
+
/**
|
313 |
+
* Process single actions
|
314 |
+
*
|
315 |
+
* @access private
|
316 |
+
* @since 3.8.10
|
317 |
+
* @return void
|
318 |
+
*/
|
319 |
+
public function process_single_actions() {
|
320 |
+
|
321 |
+
global $wpdb;
|
322 |
+
|
323 |
+
if( ! isset( $_GET['wpsc-action'] ) || ! isset( $_GET['coupon'] ) )
|
324 |
+
return;
|
325 |
+
|
326 |
+
$coupon_id = absint( $_GET['coupon'] );
|
327 |
+
|
328 |
+
switch( $_GET['wpsc-action'] ) {
|
329 |
+
|
330 |
+
case 'activate_coupon':
|
331 |
+
$updated = $wpdb->update(
|
332 |
+
WPSC_TABLE_COUPON_CODES,
|
333 |
+
array( 'active' => 1 ),
|
334 |
+
array( 'id' => $coupon_id ),
|
335 |
+
array( '%s' ),
|
336 |
+
array( '%d' )
|
337 |
+
);
|
338 |
+
|
339 |
+
if ( $updated )
|
340 |
+
echo "<div class='updated'><p>" . __( 'The coupon has been activated.', 'wpsc' ) . "</p></div>";
|
341 |
+
break;
|
342 |
+
case 'deactivate_coupon':
|
343 |
+
$updated = $wpdb->update(
|
344 |
+
WPSC_TABLE_COUPON_CODES,
|
345 |
+
array( 'active' => 0 ),
|
346 |
+
array( 'id' => $coupon_id ),
|
347 |
+
array( '%s' ),
|
348 |
+
array( '%d' )
|
349 |
+
);
|
350 |
+
|
351 |
+
if ( $updated )
|
352 |
+
echo "<div class='updated'><p>" . __( 'The coupon has been deactivated.', 'wpsc' ) . "</p></div>";
|
353 |
+
break;
|
354 |
+
case 'delete_coupon':
|
355 |
+
$deleted = $wpdb->delete(
|
356 |
+
WPSC_TABLE_COUPON_CODES,
|
357 |
+
array( 'id' => $coupon_id ),
|
358 |
+
array( '%d' )
|
359 |
+
);
|
360 |
+
|
361 |
+
if ( $deleted )
|
362 |
+
echo "<div class='updated'><p>" . __( 'The coupon has been deleted.', 'wpsc' ) . "</p></div>";
|
363 |
+
|
364 |
+
break;
|
365 |
+
}
|
366 |
+
}
|
367 |
+
|
368 |
+
|
369 |
+
/**
|
370 |
+
* Retrieve the discount code counts
|
371 |
+
*
|
372 |
+
* @access private
|
373 |
+
* @since 3.8.10
|
374 |
+
* @return array
|
375 |
+
*/
|
376 |
+
public function count_coupons() {
|
377 |
+
|
378 |
+
global $wpdb;
|
379 |
+
|
380 |
+
// retrieve all discounts here
|
381 |
+
$this->active_count = $wpdb->get_var( "SELECT COUNT(id) AS count FROM " . WPSC_TABLE_COUPON_CODES . " WHERE active=1;" );
|
382 |
+
$this->inactive_count = $wpdb->get_var( "SELECT COUNT(id) AS count FROM " . WPSC_TABLE_COUPON_CODES . " WHERE active=0;" );
|
383 |
+
$this->total_count = $this->active_count + $this->inactive_count;
|
384 |
+
}
|
385 |
+
|
386 |
+
|
387 |
+
/**
|
388 |
+
* Retrieve all the data for all the discount codes
|
389 |
+
*
|
390 |
+
* @access private
|
391 |
+
* @since 3.8.10
|
392 |
+
* @return array
|
393 |
+
*/
|
394 |
+
public function coupons_data() {
|
395 |
+
|
396 |
+
global $wpdb;
|
397 |
+
|
398 |
+
$coupons_data = array();
|
399 |
+
|
400 |
+
if ( isset( $_GET['paged'] ) ) $page = $_GET['paged']; else $page = 1;
|
401 |
+
|
402 |
+
$per_page = $this->per_page;
|
403 |
+
$offset = ( $page - 1 ) * $this->per_page;
|
404 |
+
|
405 |
+
$status = isset( $_GET['status'] ) ? absint( $_GET['status'] ) : false;
|
406 |
+
|
407 |
+
if( $status !== false )
|
408 |
+
$where = "WHERE active = $status";
|
409 |
+
else
|
410 |
+
$where = '';
|
411 |
+
|
412 |
+
$order = isset( $_GET['order'] ) ? $_GET['order'] : 'DESC';
|
413 |
+
|
414 |
+
$limit = " LIMIT $offset,$per_page;";
|
415 |
+
|
416 |
+
$coupons = $wpdb->get_results( "SELECT * FROM `" . WPSC_TABLE_COUPON_CODES . "` {$where} ORDER BY id {$order} {$limit} ", ARRAY_A );
|
417 |
+
|
418 |
+
if ( $coupons ) {
|
419 |
+
foreach ( $coupons as $coupon ) {
|
420 |
+
|
421 |
+
$coupons_data[] = array(
|
422 |
+
'ID' => $coupon['id'],
|
423 |
+
'coupon' => $coupon['coupon_code'],
|
424 |
+
'discount' => $coupon['value'],
|
425 |
+
'type' => $coupon['is-percentage'],
|
426 |
+
'start' => $coupon['start'],
|
427 |
+
'expiry' => $coupon['expiry'],
|
428 |
+
'status' => $coupon['active'] == 1 ? 'active' : 'inactive',
|
429 |
+
);
|
430 |
+
}
|
431 |
+
}
|
432 |
+
return $coupons_data;
|
433 |
+
}
|
434 |
+
|
435 |
+
|
436 |
+
/**
|
437 |
+
* Setup the final data for the table
|
438 |
+
*
|
439 |
+
* @access private
|
440 |
+
* @since 3.8.10
|
441 |
+
* @return array
|
442 |
+
*/
|
443 |
+
public function prepare_items() {
|
444 |
+
|
445 |
+
$per_page = $this->per_page;
|
446 |
+
|
447 |
+
$columns = $this->get_columns();
|
448 |
+
|
449 |
+
$hidden = array();
|
450 |
+
|
451 |
+
$sortable = $this->get_sortable_columns();
|
452 |
+
|
453 |
+
$this->_column_headers = array( $columns, $hidden, $sortable );
|
454 |
+
|
455 |
+
$this->process_bulk_action();
|
456 |
+
|
457 |
+
$data = $this->coupons_data();
|
458 |
+
|
459 |
+
$current_page = $this->get_pagenum();
|
460 |
+
|
461 |
+
$status = isset( $_GET['status'] ) ? $_GET['status'] : 'any';
|
462 |
+
|
463 |
+
switch( $status ) {
|
464 |
+
case '1':
|
465 |
+
$total_items = $this->active_count;
|
466 |
+
break;
|
467 |
+
case '0':
|
468 |
+
$total_items = $this->inactive_count;
|
469 |
+
break;
|
470 |
+
case 'any':
|
471 |
+
$total_items = $this->total_count;
|
472 |
+
break;
|
473 |
+
}
|
474 |
+
|
475 |
+
$this->items = $data;
|
476 |
+
|
477 |
+
$this->set_pagination_args( array(
|
478 |
+
'total_items' => $total_items,
|
479 |
+
'per_page' => $per_page,
|
480 |
+
'total_pages' => ceil( $total_items / $per_page )
|
481 |
+
)
|
482 |
+
);
|
483 |
+
}
|
484 |
+
}
|
wpsc-admin/includes/display-items-functions.php
CHANGED
@@ -120,6 +120,17 @@ function wpsc_price_control_forms() {
|
|
120 |
if ( !isset( $product_data['meta']['_wpsc_special_price'] ) )
|
121 |
$product_data['meta']['_wpsc_special_price'] = $wpsc_product_defaults['special_price'];
|
122 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
$currency_data = $wpdb->get_results( "SELECT * FROM `" . WPSC_TABLE_CURRENCY_LIST . "` ORDER BY `country` ASC", ARRAY_A );
|
124 |
?>
|
125 |
<input type="hidden" id="parent_post" name="parent_post" value="<?php echo $post->post_parent; ?>" />
|
@@ -132,16 +143,15 @@ function wpsc_price_control_forms() {
|
|
132 |
<p><?php echo sprintf( __( 'This Product has variations, to edit the price please use the <a href="%s">Variation Controls</a>.' , 'wpsc' ), '#wpsc_product_variation_forms' ); ?></p>
|
133 |
<p><?php printf( __( 'Price: %s and above.' , 'wpsc' ) , $price ); ?></p>
|
134 |
<?php else: ?>
|
135 |
-
|
136 |
<div class='wpsc_floatleft' style="width:85px;">
|
137 |
<label><?php esc_html_e( 'Price', 'wpsc' ); ?>:</label><br />
|
138 |
-
<input type='text' class='text' size='10' name='meta[_wpsc_price]' value='<?php echo (
|
139 |
</div>
|
140 |
<div class='wpsc_floatleft' style='display:<?php if ( ( $product_data['special'] == 1 ) ? 'block' : 'none'
|
141 |
); ?>; width:85px; margin-left:30px;'>
|
142 |
<label for='add_form_special'><?php esc_html_e( 'Sale Price', 'wpsc' ); ?>:</label>
|
143 |
<div id='add_special'>
|
144 |
-
<input type='text' size='10' value='<?php echo (
|
145 |
</div>
|
146 |
</div>
|
147 |
<br style="clear:both" />
|
@@ -371,6 +381,11 @@ function wpsc_product_taxes_forms() {
|
|
371 |
|
372 |
if ( isset( $product_meta['wpec_taxes_taxable_amount'] ) ) {
|
373 |
$taxable_amount_input_settings['value'] = $product_meta['wpec_taxes_taxable_amount'];
|
|
|
|
|
|
|
|
|
|
|
374 |
}
|
375 |
}// if
|
376 |
|
@@ -438,7 +453,7 @@ function wpsc_product_shipping_forms( $product = false, $field_name_prefix = 'me
|
|
438 |
extract( $meta, EXTR_SKIP );
|
439 |
|
440 |
foreach ( $shipping as $key => &$val ) {
|
441 |
-
$val =
|
442 |
}
|
443 |
|
444 |
$weight = wpsc_convert_weight( $weight, 'pound', $weight_unit );
|
@@ -509,7 +524,7 @@ function wpsc_product_shipping_forms( $product = false, $field_name_prefix = 'me
|
|
509 |
<?php endif ?>
|
510 |
<label for="wpsc-product-shipping-<?php echo $field['name']; ?>"><?php echo esc_html( $field['label'] ); ?></label>
|
511 |
<span class="wpsc-product-shipping-input">
|
512 |
-
<input type="text" id="wpsc-product-shipping-<?php echo $field['name']; ?>" name="<?php echo $field_name_prefix . $field['prefix'] . '[' . $field['name'] . ']'; ?>" value="<?php if ( ! $bulk ) echo esc_attr( $field['value'] ); ?>" />
|
513 |
<select name="<?php echo $field_name_prefix . $field['prefix'] . '[' . $field['name'] . '_unit]'; ?>">
|
514 |
<?php foreach ( $field['units'] as $unit => $unit_label ): ?>
|
515 |
<option value="<?php echo $unit; ?>" <?php if ( ! $bulk ) selected( $unit, $measurements[$field['name'] . '_unit'] ); ?>><?php echo esc_html( $unit_label ); ?></option>
|
@@ -763,22 +778,19 @@ function wpsc_product_download_forms() {
|
|
763 |
}
|
764 |
$output = apply_filters( 'wpsc_downloads_metabox', $output );
|
765 |
}
|
766 |
-
|
767 |
-
_deprecated_function( __FUNCTION__, '3.8' );
|
768 |
-
return false;
|
769 |
-
}
|
770 |
/**
|
771 |
* Adding function to change text for media buttons
|
772 |
*/
|
773 |
function change_context( $context ) {
|
774 |
-
|
775 |
|
776 |
if ( $current_screen->id != 'wpsc-product' )
|
777 |
return $context;
|
778 |
return __( 'Upload Image%s', 'wpsc' );
|
779 |
}
|
780 |
function change_link( $link ) {
|
781 |
-
global $post_ID
|
782 |
$current_screen = get_current_screen();
|
783 |
if ( $current_screen && $current_screen->id != 'wpsc-product' )
|
784 |
return $link;
|
@@ -864,7 +876,8 @@ function wpsc_attachment_fields( $form_fields, $post ) {
|
|
864 |
else
|
865 |
$parent_post = get_post( $post->post_parent );
|
866 |
|
867 |
-
if
|
|
|
868 |
|
869 |
//Unfortunate hack, as I'm not sure why the From Computer tab doesn't process filters the same way the Gallery does
|
870 |
ob_start();
|
@@ -1342,7 +1355,6 @@ add_action( 'wpsc-variation_edit_form_fields', 'variation_price_field_check' );
|
|
1342 |
* @param <type> $term_id
|
1343 |
*/
|
1344 |
function save_term_prices( $term_id ) {
|
1345 |
-
|
1346 |
// First - Saves options from input
|
1347 |
if ( isset( $_POST['variation_price'] ) || isset( $_POST["apply_to_current"] ) ) {
|
1348 |
|
@@ -1427,4 +1439,4 @@ function wpsc_delete_variations( $postid ) {
|
|
1427 |
wp_delete_post( $variation->ID, true );
|
1428 |
}
|
1429 |
}
|
1430 |
-
add_action( '
|
120 |
if ( !isset( $product_data['meta']['_wpsc_special_price'] ) )
|
121 |
$product_data['meta']['_wpsc_special_price'] = $wpsc_product_defaults['special_price'];
|
122 |
|
123 |
+
$product_data['meta']['_wpsc_special_price'] = wpsc_format_number(
|
124 |
+
$product_data['meta']['_wpsc_special_price']
|
125 |
+
);
|
126 |
+
|
127 |
+
if ( ! isset( $product_data['meta']['_wpsc_price'] ) )
|
128 |
+
$product_data['meta']['_wpsc_price'] = 0;
|
129 |
+
|
130 |
+
$product_data['meta']['_wpsc_price'] = wpsc_format_number(
|
131 |
+
$product_data['meta']['_wpsc_price']
|
132 |
+
);
|
133 |
+
|
134 |
$currency_data = $wpdb->get_results( "SELECT * FROM `" . WPSC_TABLE_CURRENCY_LIST . "` ORDER BY `country` ASC", ARRAY_A );
|
135 |
?>
|
136 |
<input type="hidden" id="parent_post" name="parent_post" value="<?php echo $post->post_parent; ?>" />
|
143 |
<p><?php echo sprintf( __( 'This Product has variations, to edit the price please use the <a href="%s">Variation Controls</a>.' , 'wpsc' ), '#wpsc_product_variation_forms' ); ?></p>
|
144 |
<p><?php printf( __( 'Price: %s and above.' , 'wpsc' ) , $price ); ?></p>
|
145 |
<?php else: ?>
|
|
|
146 |
<div class='wpsc_floatleft' style="width:85px;">
|
147 |
<label><?php esc_html_e( 'Price', 'wpsc' ); ?>:</label><br />
|
148 |
+
<input type='text' class='text' size='10' name='meta[_wpsc_price]' value='<?php echo esc_attr( $product_data['meta']['_wpsc_price'] ); ?>' />
|
149 |
</div>
|
150 |
<div class='wpsc_floatleft' style='display:<?php if ( ( $product_data['special'] == 1 ) ? 'block' : 'none'
|
151 |
); ?>; width:85px; margin-left:30px;'>
|
152 |
<label for='add_form_special'><?php esc_html_e( 'Sale Price', 'wpsc' ); ?>:</label>
|
153 |
<div id='add_special'>
|
154 |
+
<input type='text' size='10' value='<?php echo esc_attr( $product_data['meta']['_wpsc_special_price'] ); ?>' name='meta[_wpsc_special_price]' />
|
155 |
</div>
|
156 |
</div>
|
157 |
<br style="clear:both" />
|
381 |
|
382 |
if ( isset( $product_meta['wpec_taxes_taxable_amount'] ) ) {
|
383 |
$taxable_amount_input_settings['value'] = $product_meta['wpec_taxes_taxable_amount'];
|
384 |
+
|
385 |
+
if ( ! empty( $product_meta['wpec_taxes_taxable_amount'] ) )
|
386 |
+
$taxable_amount_input_settings['value'] = wpsc_format_number(
|
387 |
+
$taxable_amount_input_settings['value']
|
388 |
+
);
|
389 |
}
|
390 |
}// if
|
391 |
|
453 |
extract( $meta, EXTR_SKIP );
|
454 |
|
455 |
foreach ( $shipping as $key => &$val ) {
|
456 |
+
$val = wpsc_format_number( $val );
|
457 |
}
|
458 |
|
459 |
$weight = wpsc_convert_weight( $weight, 'pound', $weight_unit );
|
524 |
<?php endif ?>
|
525 |
<label for="wpsc-product-shipping-<?php echo $field['name']; ?>"><?php echo esc_html( $field['label'] ); ?></label>
|
526 |
<span class="wpsc-product-shipping-input">
|
527 |
+
<input type="text" id="wpsc-product-shipping-<?php echo $field['name']; ?>" name="<?php echo $field_name_prefix . $field['prefix'] . '[' . $field['name'] . ']'; ?>" value="<?php if ( ! $bulk ) echo esc_attr( wpsc_format_number( $field['value'] ) ); ?>" />
|
528 |
<select name="<?php echo $field_name_prefix . $field['prefix'] . '[' . $field['name'] . '_unit]'; ?>">
|
529 |
<?php foreach ( $field['units'] as $unit => $unit_label ): ?>
|
530 |
<option value="<?php echo $unit; ?>" <?php if ( ! $bulk ) selected( $unit, $measurements[$field['name'] . '_unit'] ); ?>><?php echo esc_html( $unit_label ); ?></option>
|
778 |
}
|
779 |
$output = apply_filters( 'wpsc_downloads_metabox', $output );
|
780 |
}
|
781 |
+
|
|
|
|
|
|
|
782 |
/**
|
783 |
* Adding function to change text for media buttons
|
784 |
*/
|
785 |
function change_context( $context ) {
|
786 |
+
$current_screen = get_current_screen();
|
787 |
|
788 |
if ( $current_screen->id != 'wpsc-product' )
|
789 |
return $context;
|
790 |
return __( 'Upload Image%s', 'wpsc' );
|
791 |
}
|
792 |
function change_link( $link ) {
|
793 |
+
global $post_ID;
|
794 |
$current_screen = get_current_screen();
|
795 |
if ( $current_screen && $current_screen->id != 'wpsc-product' )
|
796 |
return $link;
|
876 |
else
|
877 |
$parent_post = get_post( $post->post_parent );
|
878 |
|
879 |
+
// check if post is set before accessing
|
880 |
+
if ( isset( $parent_post ) && $parent_post->post_type == "wpsc-product" ) {
|
881 |
|
882 |
//Unfortunate hack, as I'm not sure why the From Computer tab doesn't process filters the same way the Gallery does
|
883 |
ob_start();
|
1355 |
* @param <type> $term_id
|
1356 |
*/
|
1357 |
function save_term_prices( $term_id ) {
|
|
|
1358 |
// First - Saves options from input
|
1359 |
if ( isset( $_POST['variation_price'] ) || isset( $_POST["apply_to_current"] ) ) {
|
1360 |
|
1439 |
wp_delete_post( $variation->ID, true );
|
1440 |
}
|
1441 |
}
|
1442 |
+
add_action( 'before_delete_post', 'wpsc_delete_variations' );
|
wpsc-admin/includes/product-functions.php
CHANGED
@@ -18,7 +18,9 @@ function wpsc_get_max_upload_size(){
|
|
18 |
* @return nothing
|
19 |
*/
|
20 |
function wpsc_admin_submit_product( $post_ID, $post ) {
|
21 |
-
global $
|
|
|
|
|
22 |
|
23 |
if ( ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) || empty( $current_screen ) || $current_screen->id != 'wpsc-product' || $post->post_type != 'wpsc-product' || empty( $_POST['meta'] ) )
|
24 |
return $post_ID;
|
@@ -61,11 +63,22 @@ function wpsc_admin_submit_product( $post_ID, $post ) {
|
|
61 |
if(!isset($post_data['meta']['_wpsc_product_metadata']['display_weight_as'])) $post_data['meta']['_wpsc_product_metadata']['display_weight_as'] = '';
|
62 |
|
63 |
if ( isset( $post_data['meta']['_wpsc_product_metadata']['weight'] ) ) {
|
64 |
-
$weight =
|
65 |
-
$post_data['meta']['_wpsc_product_metadata']['
|
|
|
66 |
$post_data['meta']['_wpsc_product_metadata']['display_weight_as'] = $post_data['meta']['_wpsc_product_metadata']['weight_unit'];
|
67 |
}
|
68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
// table rate price
|
70 |
$post_data['meta']['_wpsc_product_metadata']['table_rate_price'] = isset( $post_data['table_rate_price'] ) ? $post_data['table_rate_price'] : array();
|
71 |
|
@@ -89,6 +102,11 @@ function wpsc_admin_submit_product( $post_ID, $post ) {
|
|
89 |
$post_data['meta']['_wpsc_product_metadata']['shipping']['international'] = wpsc_string_to_float( $post_data['meta']['_wpsc_product_metadata']['shipping']['international'] );
|
90 |
}
|
91 |
|
|
|
|
|
|
|
|
|
|
|
92 |
// Advanced Options
|
93 |
$post_data['meta']['_wpsc_product_metadata']['engraved'] = (int)(bool)$post_data['meta']['_wpsc_product_metadata']['engraved'];
|
94 |
$post_data['meta']['_wpsc_product_metadata']['can_have_uploaded_image'] = (int)(bool)$post_data['meta']['_wpsc_product_metadata']['can_have_uploaded_image'];
|
@@ -144,6 +162,7 @@ function wpsc_admin_submit_product( $post_ID, $post ) {
|
|
144 |
$post_data['tax_input']['wpsc_product_category'][1] = wpsc_add_product_category_default($product_id);
|
145 |
|
146 |
}
|
|
|
147 |
// and the meta
|
148 |
wpsc_update_product_meta($product_id, $post_data['meta']);
|
149 |
|
@@ -467,7 +486,7 @@ function wpsc_determine_variation_price( $variation_id, $term_ids = false ) {
|
|
467 |
$price = (float) get_product_meta( $variation->post_parent, 'price', true );
|
468 |
|
469 |
if ( ! $term_ids )
|
470 |
-
$term_ids =
|
471 |
|
472 |
$term_price_arr = get_option( 'term_prices' );
|
473 |
foreach ( $term_ids as $term_id ) {
|
@@ -526,7 +545,7 @@ function wpsc_edit_product_variations($product_id, $post_data) {
|
|
526 |
// Retrieve the array containing the combinations of each variation set to be associated with this product.
|
527 |
$combinations = $wpsc_combinator->return_combinations();
|
528 |
|
529 |
-
$product_terms =
|
530 |
|
531 |
$variation_sets_and_values = array_merge($variation_sets, $variation_values);
|
532 |
$variation_sets_and_values = apply_filters('wpsc_edit_product_variation_sets_and_values', $variation_sets_and_values, $product_id);
|
@@ -1071,7 +1090,7 @@ function _wpsc_refresh_parent_product_terms( $parent_id ) {
|
|
1071 |
|
1072 |
$children_ids = wp_list_pluck( $children, 'ID' );
|
1073 |
|
1074 |
-
$children_terms =
|
1075 |
$new_terms = array();
|
1076 |
foreach ( $children_terms as $term ) {
|
1077 |
if ( $term->parent )
|
18 |
* @return nothing
|
19 |
*/
|
20 |
function wpsc_admin_submit_product( $post_ID, $post ) {
|
21 |
+
global $wpdb;
|
22 |
+
|
23 |
+
$current_screen = get_current_screen();
|
24 |
|
25 |
if ( ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) || empty( $current_screen ) || $current_screen->id != 'wpsc-product' || $post->post_type != 'wpsc-product' || empty( $_POST['meta'] ) )
|
26 |
return $post_ID;
|
63 |
if(!isset($post_data['meta']['_wpsc_product_metadata']['display_weight_as'])) $post_data['meta']['_wpsc_product_metadata']['display_weight_as'] = '';
|
64 |
|
65 |
if ( isset( $post_data['meta']['_wpsc_product_metadata']['weight'] ) ) {
|
66 |
+
$weight = wpsc_string_to_float( $post_data['meta']['_wpsc_product_metadata']['weight'] );
|
67 |
+
$weight = wpsc_convert_weight( $weight, $post_data['meta']['_wpsc_product_metadata']['weight_unit'], "pound", true);
|
68 |
+
$post_data['meta']['_wpsc_product_metadata']['weight'] = $weight;
|
69 |
$post_data['meta']['_wpsc_product_metadata']['display_weight_as'] = $post_data['meta']['_wpsc_product_metadata']['weight_unit'];
|
70 |
}
|
71 |
|
72 |
+
if ( isset( $post_data['meta']['_wpsc_product_metadata']['dimensions'] ) ) {
|
73 |
+
$dimensions =& $post_data['meta']['_wpsc_product_metadata']['dimensions'];
|
74 |
+
foreach ( $dimensions as $key => $value ) {
|
75 |
+
if ( ! in_array( $key, array( 'height', 'width', 'length' ) ) )
|
76 |
+
continue;
|
77 |
+
|
78 |
+
$dimensions[$key] = wpsc_string_to_float( $value );
|
79 |
+
}
|
80 |
+
}
|
81 |
+
|
82 |
// table rate price
|
83 |
$post_data['meta']['_wpsc_product_metadata']['table_rate_price'] = isset( $post_data['table_rate_price'] ) ? $post_data['table_rate_price'] : array();
|
84 |
|
102 |
$post_data['meta']['_wpsc_product_metadata']['shipping']['international'] = wpsc_string_to_float( $post_data['meta']['_wpsc_product_metadata']['shipping']['international'] );
|
103 |
}
|
104 |
|
105 |
+
if ( ! empty( $post_data['meta']['_wpsc_product_metadata']['wpec_taxes_taxable_amount'] ) )
|
106 |
+
$post_data['meta']['_wpsc_product_metadata']['wpec_taxes_taxable_amount'] = wpsc_string_to_float(
|
107 |
+
$post_data['meta']['_wpsc_product_metadata']['wpec_taxes_taxable_amount']
|
108 |
+
);
|
109 |
+
|
110 |
// Advanced Options
|
111 |
$post_data['meta']['_wpsc_product_metadata']['engraved'] = (int)(bool)$post_data['meta']['_wpsc_product_metadata']['engraved'];
|
112 |
$post_data['meta']['_wpsc_product_metadata']['can_have_uploaded_image'] = (int)(bool)$post_data['meta']['_wpsc_product_metadata']['can_have_uploaded_image'];
|
162 |
$post_data['tax_input']['wpsc_product_category'][1] = wpsc_add_product_category_default($product_id);
|
163 |
|
164 |
}
|
165 |
+
|
166 |
// and the meta
|
167 |
wpsc_update_product_meta($product_id, $post_data['meta']);
|
168 |
|
486 |
$price = (float) get_product_meta( $variation->post_parent, 'price', true );
|
487 |
|
488 |
if ( ! $term_ids )
|
489 |
+
$term_ids = wpsc_get_product_terms( $variation_id, 'wpsc-variation', 'term_id' );
|
490 |
|
491 |
$term_price_arr = get_option( 'term_prices' );
|
492 |
foreach ( $term_ids as $term_id ) {
|
545 |
// Retrieve the array containing the combinations of each variation set to be associated with this product.
|
546 |
$combinations = $wpsc_combinator->return_combinations();
|
547 |
|
548 |
+
$product_terms = wpsc_get_product_terms( $product_id, 'wpsc-variation' );
|
549 |
|
550 |
$variation_sets_and_values = array_merge($variation_sets, $variation_values);
|
551 |
$variation_sets_and_values = apply_filters('wpsc_edit_product_variation_sets_and_values', $variation_sets_and_values, $product_id);
|
1090 |
|
1091 |
$children_ids = wp_list_pluck( $children, 'ID' );
|
1092 |
|
1093 |
+
$children_terms = wpsc_get_product_terms( $children_ids, 'wpsc-variation' );
|
1094 |
$new_terms = array();
|
1095 |
foreach ( $children_terms as $term ) {
|
1096 |
if ( $term->parent )
|
wpsc-admin/includes/product-variation-list-table.class.php
CHANGED
@@ -3,8 +3,7 @@
|
|
3 |
require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' );
|
4 |
require_once( ABSPATH . 'wp-admin/includes/class-wp-posts-list-table.php' );
|
5 |
|
6 |
-
class WPSC_Product_Variation_List_Table extends WP_List_Table
|
7 |
-
{
|
8 |
private $product_id;
|
9 |
private $object_terms_cache = array();
|
10 |
private $args = array();
|
@@ -38,10 +37,9 @@ class WPSC_Product_Variation_List_Table extends WP_List_Table
|
|
38 |
|
39 |
$per_page = $this->get_items_per_page( 'edit_wpsc-product-variations_per_page' );
|
40 |
$per_page = apply_filters( 'edit_wpsc_product_variations_per_page', $per_page );
|
41 |
-
|
42 |
$this->args = array(
|
43 |
'post_type' => 'wpsc-product',
|
44 |
-
'orderby' => 'menu_order
|
45 |
'post_parent' => $this->product_id,
|
46 |
'post_status' => 'publish, inherit',
|
47 |
'numberposts' => -1,
|
@@ -224,7 +222,7 @@ class WPSC_Product_Variation_List_Table extends WP_List_Table
|
|
224 |
<?php if ( $show_edit_link ): ?>
|
225 |
<a target="_blank" href="<?php echo esc_url( get_edit_post_link( $item->ID, true ) ); ?>" title="<?php esc_attr_e( __( 'Edit this item' ), 'wpsc' ); ?>">
|
226 |
<?php endif; ?>
|
227 |
-
<?php echo esc_html( $title ); ?>
|
228 |
<?php if ( $show_edit_link ): ?>
|
229 |
</a>
|
230 |
<?php endif; ?>
|
@@ -235,7 +233,7 @@ class WPSC_Product_Variation_List_Table extends WP_List_Table
|
|
235 |
}
|
236 |
|
237 |
public function column_stock( $item ) {
|
238 |
-
$stock = get_product_meta( $item->ID, 'stock', true );
|
239 |
?>
|
240 |
<input type="text" name="wpsc_variations[<?php echo $item->ID; ?>][stock]" value="<?php echo esc_attr( $stock ); ?>" />
|
241 |
<?php
|
@@ -243,6 +241,7 @@ class WPSC_Product_Variation_List_Table extends WP_List_Table
|
|
243 |
|
244 |
public function column_price( $item ) {
|
245 |
$price = get_product_meta( $item->ID, 'price', true );
|
|
|
246 |
?>
|
247 |
<input type="text" name="wpsc_variations[<?php echo $item->ID; ?>][price]" value="<?php echo esc_attr( $price ); ?>" />
|
248 |
<?php
|
@@ -250,6 +249,7 @@ class WPSC_Product_Variation_List_Table extends WP_List_Table
|
|
250 |
|
251 |
public function column_sale_price( $item ) {
|
252 |
$sale_price = get_product_meta( $item->ID, 'special_price', true );
|
|
|
253 |
?>
|
254 |
<input type="text" name="wpsc_variations[<?php echo $item->ID; ?>][sale_price]" value="<?php echo esc_attr( $sale_price ); ?>">
|
255 |
<?php
|
@@ -267,7 +267,7 @@ class WPSC_Product_Variation_List_Table extends WP_List_Table
|
|
267 |
if ( ! $meta || ! isset( $meta['wpec_taxes_taxable_amount'] ) )
|
268 |
$tax = '';
|
269 |
else
|
270 |
-
$tax = (
|
271 |
?>
|
272 |
<input type="text" name="wpsc_variations[<?php echo $item->ID; ?>][product_metadata][wpec_taxes_taxable_amount]" value="<?php echo esc_attr( $tax ); ?>" />
|
273 |
<?php
|
@@ -643,4 +643,4 @@ class WPSC_Product_Variation_List_Table extends WP_List_Table
|
|
643 |
}
|
644 |
?></div><?php
|
645 |
}
|
646 |
-
}
|
3 |
require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' );
|
4 |
require_once( ABSPATH . 'wp-admin/includes/class-wp-posts-list-table.php' );
|
5 |
|
6 |
+
class WPSC_Product_Variation_List_Table extends WP_List_Table {
|
|
|
7 |
private $product_id;
|
8 |
private $object_terms_cache = array();
|
9 |
private $args = array();
|
37 |
|
38 |
$per_page = $this->get_items_per_page( 'edit_wpsc-product-variations_per_page' );
|
39 |
$per_page = apply_filters( 'edit_wpsc_product_variations_per_page', $per_page );
|
|
|
40 |
$this->args = array(
|
41 |
'post_type' => 'wpsc-product',
|
42 |
+
'orderby' => 'menu_order title',
|
43 |
'post_parent' => $this->product_id,
|
44 |
'post_status' => 'publish, inherit',
|
45 |
'numberposts' => -1,
|
222 |
<?php if ( $show_edit_link ): ?>
|
223 |
<a target="_blank" href="<?php echo esc_url( get_edit_post_link( $item->ID, true ) ); ?>" title="<?php esc_attr_e( __( 'Edit this item' ), 'wpsc' ); ?>">
|
224 |
<?php endif; ?>
|
225 |
+
<?php echo esc_html( apply_filters( 'wpsc_variation_name', $title, $item ) ); ?>
|
226 |
<?php if ( $show_edit_link ): ?>
|
227 |
</a>
|
228 |
<?php endif; ?>
|
233 |
}
|
234 |
|
235 |
public function column_stock( $item ) {
|
236 |
+
$stock = (int) get_product_meta( $item->ID, 'stock', true );
|
237 |
?>
|
238 |
<input type="text" name="wpsc_variations[<?php echo $item->ID; ?>][stock]" value="<?php echo esc_attr( $stock ); ?>" />
|
239 |
<?php
|
241 |
|
242 |
public function column_price( $item ) {
|
243 |
$price = get_product_meta( $item->ID, 'price', true );
|
244 |
+
$price = wpsc_format_number( $price );
|
245 |
?>
|
246 |
<input type="text" name="wpsc_variations[<?php echo $item->ID; ?>][price]" value="<?php echo esc_attr( $price ); ?>" />
|
247 |
<?php
|
249 |
|
250 |
public function column_sale_price( $item ) {
|
251 |
$sale_price = get_product_meta( $item->ID, 'special_price', true );
|
252 |
+
$sale_price = wpsc_format_number( $sale_price );
|
253 |
?>
|
254 |
<input type="text" name="wpsc_variations[<?php echo $item->ID; ?>][sale_price]" value="<?php echo esc_attr( $sale_price ); ?>">
|
255 |
<?php
|
267 |
if ( ! $meta || ! isset( $meta['wpec_taxes_taxable_amount'] ) )
|
268 |
$tax = '';
|
269 |
else
|
270 |
+
$tax = wpsc_format_number( $meta['wpec_taxes_taxable_amount'] );
|
271 |
?>
|
272 |
<input type="text" name="wpsc_variations[<?php echo $item->ID; ?>][product_metadata][wpec_taxes_taxable_amount]" value="<?php echo esc_attr( $tax ); ?>" />
|
273 |
<?php
|
643 |
}
|
644 |
?></div><?php
|
645 |
}
|
646 |
+
}
|
wpsc-admin/includes/product-variations-manage.page.php
CHANGED
File without changes
|
wpsc-admin/includes/product-variations-page.class.php
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class WPSC_Product_Variations_Page
|
4 |
-
{
|
5 |
private $list_table;
|
6 |
private $parent_id;
|
7 |
private $current_tab = 'manage';
|
@@ -24,7 +23,7 @@ class WPSC_Product_Variations_Page
|
|
24 |
if ( ! isset( $updated[$key] ) )
|
25 |
continue;
|
26 |
|
27 |
-
if ( is_array( $original[$key] ) ) {
|
28 |
$original[$key] = $this->merge_meta_deep( $original[$key] , $updated[$key] );
|
29 |
} else {
|
30 |
$original[$key] = $updated[$key];
|
@@ -39,6 +38,8 @@ class WPSC_Product_Variations_Page
|
|
39 |
|
40 |
private function save_variation_meta( $id, $data ) {
|
41 |
$product_meta = get_product_meta( $id, 'product_metadata', true );
|
|
|
|
|
42 |
$product_meta = $this->merge_meta_deep( $product_meta, $data['product_metadata'] );
|
43 |
|
44 |
// convert to pound to maintain backward compat with shipping modules
|
@@ -48,10 +49,10 @@ class WPSC_Product_Variations_Page
|
|
48 |
update_product_meta( $id, 'product_metadata', $product_meta );
|
49 |
|
50 |
if ( isset( $data['price'] ) )
|
51 |
-
update_product_meta( $id, 'price', (
|
52 |
|
53 |
if ( isset( $data['sale_price'] ) )
|
54 |
-
update_product_meta( $id, 'special_price', $data['sale_price'] );
|
55 |
|
56 |
if ( isset( $data['sku'] ) )
|
57 |
update_product_meta( $id, 'sku', $data['sku'] );
|
@@ -79,7 +80,7 @@ class WPSC_Product_Variations_Page
|
|
79 |
}
|
80 |
|
81 |
public function display() {
|
82 |
-
global $title, $hook_suffix, $
|
83 |
$current_site, $update_title, $total_update_count, $parent_file;
|
84 |
|
85 |
$current_screen = get_current_screen();
|
1 |
<?php
|
2 |
|
3 |
+
class WPSC_Product_Variations_Page {
|
|
|
4 |
private $list_table;
|
5 |
private $parent_id;
|
6 |
private $current_tab = 'manage';
|
23 |
if ( ! isset( $updated[$key] ) )
|
24 |
continue;
|
25 |
|
26 |
+
if ( isset( $original[$key] ) && is_array( $original[$key] ) ) {
|
27 |
$original[$key] = $this->merge_meta_deep( $original[$key] , $updated[$key] );
|
28 |
} else {
|
29 |
$original[$key] = $updated[$key];
|
38 |
|
39 |
private function save_variation_meta( $id, $data ) {
|
40 |
$product_meta = get_product_meta( $id, 'product_metadata', true );
|
41 |
+
if ( ! is_array( $product_meta ) )
|
42 |
+
$product_meta = array();
|
43 |
$product_meta = $this->merge_meta_deep( $product_meta, $data['product_metadata'] );
|
44 |
|
45 |
// convert to pound to maintain backward compat with shipping modules
|
49 |
update_product_meta( $id, 'product_metadata', $product_meta );
|
50 |
|
51 |
if ( isset( $data['price'] ) )
|
52 |
+
update_product_meta( $id, 'price', wpsc_string_to_float( $data['price'] ) );
|
53 |
|
54 |
if ( isset( $data['sale_price'] ) )
|
55 |
+
update_product_meta( $id, 'special_price', wpsc_string_to_float( $data['sale_price'] ) );
|
56 |
|
57 |
if ( isset( $data['sku'] ) )
|
58 |
update_product_meta( $id, 'sku', $data['sku'] );
|
80 |
}
|
81 |
|
82 |
public function display() {
|
83 |
+
global $title, $hook_suffix, $wp_locale, $pagenow, $wp_version, $is_iphone,
|
84 |
$current_site, $update_title, $total_update_count, $parent_file;
|
85 |
|
86 |
$current_screen = get_current_screen();
|
wpsc-admin/includes/product-variations-setup.page.php
CHANGED
File without changes
|
wpsc-admin/includes/product-variations.page.php
CHANGED
File without changes
|
wpsc-admin/includes/products.php
CHANGED
File without changes
|
wpsc-admin/includes/purchase-log-list-table-class.php
CHANGED
@@ -5,8 +5,7 @@
|
|
5 |
require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' );
|
6 |
require_once( ABSPATH . 'wp-admin/includes/class-wp-posts-list-table.php' );
|
7 |
|
8 |
-
class WPSC_Purchase_Log_List_Table extends WP_List_Table
|
9 |
-
{
|
10 |
private $search_box = true;
|
11 |
private $bulk_actions = true;
|
12 |
private $sortable = true;
|
@@ -82,7 +81,7 @@ class WPSC_Purchase_Log_List_Table extends WP_List_Table
|
|
82 |
$table_as = 's' . $i;
|
83 |
$select_as = str_replace('billing', '', $field->unique_name );
|
84 |
$selects[] = $table_as . '.value AS ' . $select_as;
|
85 |
-
$joins[] = $wpdb->prepare( "LEFT OUTER JOIN " .
|
86 |
|
87 |
// build search term queries for first name, last name, email
|
88 |
foreach ( $search_terms as $term ) {
|
@@ -133,10 +132,10 @@ class WPSC_Purchase_Log_List_Table extends WP_List_Table
|
|
133 |
$orderby = empty( $_REQUEST['orderby'] ) ? 'p.id' : 'p.' . $_REQUEST['orderby'];
|
134 |
$order = empty( $_REQUEST['order'] ) ? 'DESC' : $_REQUEST['order'];
|
135 |
|
136 |
-
$orderby = esc_sql( $orderby );
|
137 |
$order = esc_sql( $order );
|
138 |
|
139 |
-
$submitted_data_log =
|
140 |
$purchase_log_sql = "
|
141 |
SELECT SQL_CALC_FOUND_ROWS {$selects}
|
142 |
FROM " . WPSC_TABLE_PURCHASE_LOGS . " AS p
|
@@ -145,7 +144,8 @@ class WPSC_Purchase_Log_List_Table extends WP_List_Table
|
|
145 |
ORDER BY {$orderby} {$order}
|
146 |
{$limit}
|
147 |
";
|
148 |
-
|
|
|
149 |
if ( $this->per_page ) {
|
150 |
$total_items = $wpdb->get_var( "SELECT FOUND_ROWS()" );
|
151 |
|
@@ -185,6 +185,13 @@ class WPSC_Purchase_Log_List_Table extends WP_List_Table
|
|
185 |
return $this->search_box;
|
186 |
}
|
187 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
188 |
public function get_columns() {
|
189 |
return array(
|
190 |
'cb' => '<input type="checkbox" />',
|
@@ -193,10 +200,17 @@ class WPSC_Purchase_Log_List_Table extends WP_List_Table
|
|
193 |
'amount' => __( 'Amount', 'wpsc' ),
|
194 |
'status' => _x( 'Status', 'sales log list table column', 'wpsc' ),
|
195 |
'date' => __( 'Date', 'wpsc' ),
|
196 |
-
'tracking' =>
|
197 |
-
);
|
198 |
}
|
199 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
200 |
public function get_sortable_columns() {
|
201 |
if ( ! $this->sortable )
|
202 |
return array();
|
@@ -205,7 +219,7 @@ class WPSC_Purchase_Log_List_Table extends WP_List_Table
|
|
205 |
'date' => 'id',
|
206 |
'status' => 'processed',
|
207 |
'amount' => 'totalprice',
|
208 |
-
);
|
209 |
}
|
210 |
|
211 |
private function get_months() {
|
@@ -450,13 +464,13 @@ class WPSC_Purchase_Log_List_Table extends WP_List_Table
|
|
450 |
|
451 |
public function column_default( $item, $column_name ) {
|
452 |
$default = isset( $item->$column_name ) ? $item->$column_name : '';
|
453 |
-
$output = apply_filters( 'wpsc_manage_purchase_logs_custom_column',
|
454 |
return $output;
|
455 |
}
|
456 |
|
457 |
public function column_status( $item ) {
|
458 |
global $wpsc_purchlog_statuses;
|
459 |
-
$dropdown_options =
|
460 |
$current_status = false;
|
461 |
foreach ( $wpsc_purchlog_statuses as $status ) {
|
462 |
$selected = '';
|
5 |
require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' );
|
6 |
require_once( ABSPATH . 'wp-admin/includes/class-wp-posts-list-table.php' );
|
7 |
|
8 |
+
class WPSC_Purchase_Log_List_Table extends WP_List_Table {
|
|
|
9 |
private $search_box = true;
|
10 |
private $bulk_actions = true;
|
11 |
private $sortable = true;
|
81 |
$table_as = 's' . $i;
|
82 |
$select_as = str_replace('billing', '', $field->unique_name );
|
83 |
$selects[] = $table_as . '.value AS ' . $select_as;
|
84 |
+
$joins[] = $wpdb->prepare( "LEFT OUTER JOIN " . WPSC_TABLE_SUBMITTED_FORM_DATA . " AS {$table_as} ON {$table_as}.log_id = p.id AND {$table_as}.form_id = %d", $field->id );
|
85 |
|
86 |
// build search term queries for first name, last name, email
|
87 |
foreach ( $search_terms as $term ) {
|
132 |
$orderby = empty( $_REQUEST['orderby'] ) ? 'p.id' : 'p.' . $_REQUEST['orderby'];
|
133 |
$order = empty( $_REQUEST['order'] ) ? 'DESC' : $_REQUEST['order'];
|
134 |
|
135 |
+
$orderby = esc_sql( apply_filters( 'wpsc_manage_purchase_logs_orderby', $orderby ) );
|
136 |
$order = esc_sql( $order );
|
137 |
|
138 |
+
$submitted_data_log = WPSC_TABLE_SUBMITTED_FORM_DATA;
|
139 |
$purchase_log_sql = "
|
140 |
SELECT SQL_CALC_FOUND_ROWS {$selects}
|
141 |
FROM " . WPSC_TABLE_PURCHASE_LOGS . " AS p
|
144 |
ORDER BY {$orderby} {$order}
|
145 |
{$limit}
|
146 |
";
|
147 |
+
|
148 |
+
$this->items = apply_filters( 'wpsc_manage_purchase_logs_items', $wpdb->get_results( $purchase_log_sql ) );
|
149 |
if ( $this->per_page ) {
|
150 |
$total_items = $wpdb->get_var( "SELECT FOUND_ROWS()" );
|
151 |
|
185 |
return $this->search_box;
|
186 |
}
|
187 |
|
188 |
+
/**
|
189 |
+
* Define the columns in our list table. You can add/amend this list using
|
190 |
+
* WordPress core filter manage_{screen}_columns, specifically
|
191 |
+
* manage_dashboard_page_wpsc-purchase-logs_columns.
|
192 |
+
*
|
193 |
+
* @return array[string]string List of column headings
|
194 |
+
*/
|
195 |
public function get_columns() {
|
196 |
return array(
|
197 |
'cb' => '<input type="checkbox" />',
|
200 |
'amount' => __( 'Amount', 'wpsc' ),
|
201 |
'status' => _x( 'Status', 'sales log list table column', 'wpsc' ),
|
202 |
'date' => __( 'Date', 'wpsc' ),
|
203 |
+
'tracking' => _x( 'Tracking ID', 'purchase log', 'wpsc' ),
|
204 |
+
) ;
|
205 |
}
|
206 |
|
207 |
+
/**
|
208 |
+
* Define the columns in the table which are sortable. You can add/amend
|
209 |
+
* this list using the WordPress core filter manage_{screen}_sortable_columns
|
210 |
+
* Specifically: manage_dashboard_page_wpsc-purchase-logs_sortable_columns
|
211 |
+
* *
|
212 |
+
* @return array[string]string List of sortable column IDs and corresponding db column of the item
|
213 |
+
*/
|
214 |
public function get_sortable_columns() {
|
215 |
if ( ! $this->sortable )
|
216 |
return array();
|
219 |
'date' => 'id',
|
220 |
'status' => 'processed',
|
221 |
'amount' => 'totalprice',
|
222 |
+
) ;
|
223 |
}
|
224 |
|
225 |
private function get_months() {
|
464 |
|
465 |
public function column_default( $item, $column_name ) {
|
466 |
$default = isset( $item->$column_name ) ? $item->$column_name : '';
|
467 |
+
$output = apply_filters( 'wpsc_manage_purchase_logs_custom_column', $default, $column_name, $item );
|
468 |
return $output;
|
469 |
}
|
470 |
|
471 |
public function column_status( $item ) {
|
472 |
global $wpsc_purchlog_statuses;
|
473 |
+
$dropdown_options = '';
|
474 |
$current_status = false;
|
475 |
foreach ( $wpsc_purchlog_statuses as $status ) {
|
476 |
$selected = '';
|
wpsc-admin/includes/purchase-logs-page/bulk-delete-confirm.php
CHANGED
File without changes
|
wpsc-admin/includes/purchase-logs-page/item-details.php
CHANGED
@@ -31,7 +31,7 @@
|
|
31 |
<?php esc_html_e( 'Shipping Method:', 'wpsc' ); ?> <?php echo wpsc_display_purchlog_shipping_method(); ?><br />
|
32 |
<?php esc_html_e( 'Shipping Option:', 'wpsc' ); ?> <?php echo wpsc_display_purchlog_shipping_option(); ?><br />
|
33 |
<?php if( wpsc_purchlogs_has_tracking() ) : ?>
|
34 |
-
<?php
|
35 |
<?php esc_html_e( 'Shipping Status:', 'wpsc' ); ?> <?php echo wpsc_purchlogitem_trackstatus(); ?><br />
|
36 |
<?php esc_html_e( 'Track History:', 'wpsc' ); ?> <?php echo wpsc_purchlogitem_trackhistory(); ?>
|
37 |
<?php endif; ?>
|
@@ -132,6 +132,7 @@
|
|
132 |
<!-- End Order Notes (by Ben) -->
|
133 |
|
134 |
<?php $this->purchase_logs_checkout_fields(); ?>
|
|
|
135 |
|
136 |
</div>
|
137 |
</div>
|
31 |
<?php esc_html_e( 'Shipping Method:', 'wpsc' ); ?> <?php echo wpsc_display_purchlog_shipping_method(); ?><br />
|
32 |
<?php esc_html_e( 'Shipping Option:', 'wpsc' ); ?> <?php echo wpsc_display_purchlog_shipping_option(); ?><br />
|
33 |
<?php if( wpsc_purchlogs_has_tracking() ) : ?>
|
34 |
+
<?php echo esc_html_x( 'Tracking ID:', 'purchase log', 'wpsc' ); ?> <?php echo wpsc_purchlogitem_trackid(); ?><br />
|
35 |
<?php esc_html_e( 'Shipping Status:', 'wpsc' ); ?> <?php echo wpsc_purchlogitem_trackstatus(); ?><br />
|
36 |
<?php esc_html_e( 'Track History:', 'wpsc' ); ?> <?php echo wpsc_purchlogitem_trackhistory(); ?>
|
37 |
<?php endif; ?>
|
132 |
<!-- End Order Notes (by Ben) -->
|
133 |
|
134 |
<?php $this->purchase_logs_checkout_fields(); ?>
|
135 |
+
<?php do_action( 'wpsc_purchlogitem_metabox_end', $this->log_id ); ?>
|
136 |
|
137 |
</div>
|
138 |
</div>
|
wpsc-admin/includes/purchase-logs-page/list-table.php
CHANGED
File without changes
|
wpsc-admin/includes/purchase-logs-page/packing-slip.php
CHANGED
File without changes
|
wpsc-admin/includes/settings-tabs/admin.php
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class WPSC_Settings_Tab_Admin extends WPSC_Settings_Tab
|
4 |
-
{
|
5 |
public function display() {
|
6 |
?>
|
7 |
<h3><?php esc_html_e( 'Admin Settings', 'wpsc' ); ?></h3>
|
1 |
<?php
|
2 |
|
3 |
+
class WPSC_Settings_Tab_Admin extends WPSC_Settings_Tab {
|
|
|
4 |
public function display() {
|
5 |
?>
|
6 |
<h3><?php esc_html_e( 'Admin Settings', 'wpsc' ); ?></h3>
|
wpsc-admin/includes/settings-tabs/checkout.php
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class WPSC_Settings_Tab_Checkout extends WPSC_Settings_Tab
|
4 |
-
{
|
5 |
private $require_register;
|
6 |
private $shipping_same_as_billing;
|
7 |
private $force_ssl;
|
@@ -300,8 +299,8 @@ class WPSC_Settings_Tab_Checkout extends WPSC_Settings_Tab
|
|
300 |
</td>
|
301 |
<td class="actionscol">
|
302 |
<div class="cell-wrapper">
|
303 |
-
<a tabindex="-1" title="<?php _e( 'Delete Field', 'wpsc' ); ?>" class="
|
304 |
-
<a tabindex="-1" title="<?php _e( 'Add Field', 'wpsc' ); ?>" class="
|
305 |
</div>
|
306 |
</td>
|
307 |
</tr>
|
@@ -330,8 +329,8 @@ class WPSC_Settings_Tab_Checkout extends WPSC_Settings_Tab
|
|
330 |
</td>
|
331 |
<td class="column-actions">
|
332 |
<div class="field-option-cell-wrapper">
|
333 |
-
<a tabindex="-1" title="<?php _e( 'Delete Field', 'wpsc' ); ?>" class="
|
334 |
-
<a tabindex="-1" title="<?php _e( 'Add Field', 'wpsc' ); ?>" class="
|
335 |
</div>
|
336 |
</td>
|
337 |
</tr>
|
@@ -511,11 +510,11 @@ class WPSC_Settings_Tab_Checkout extends WPSC_Settings_Tab
|
|
511 |
<td class="actionscol">
|
512 |
<div class="cell-wrapper">
|
513 |
<?php if ( ! $this->is_field_default( $form_field ) ): ?>
|
514 |
-
<a tabindex="-1" title="<?php esc_attr_e( 'Delete Field', 'wpsc' ); ?>" class="
|
515 |
<?php else: ?>
|
516 |
-
<span title="<?php _e( 'Cannot Delete Default Fields', 'wpsc' ); ?>" class="
|
517 |
<?php endif; ?>
|
518 |
-
<a tabindex="-1" title="<?php _e( 'Add Field', 'wpsc' ); ?>" class="
|
519 |
</div>
|
520 |
</td>
|
521 |
</tr>
|
1 |
<?php
|
2 |
|
3 |
+
class WPSC_Settings_Tab_Checkout extends WPSC_Settings_Tab {
|
|
|
4 |
private $require_register;
|
5 |
private $shipping_same_as_billing;
|
6 |
private $force_ssl;
|
299 |
</td>
|
300 |
<td class="actionscol">
|
301 |
<div class="cell-wrapper">
|
302 |
+
<a tabindex="-1" title="<?php _e( 'Delete Field', 'wpsc' ); ?>" class="button-secondary wpsc-button-round wpsc-button-minus" href="#"><?php echo _x( '–', 'delete item', 'wpsc' ); ?></a>
|
303 |
+
<a tabindex="-1" title="<?php _e( 'Add Field', 'wpsc' ); ?>" class="button-secondary wpsc-button-round wpsc-button-plus" href="#"><?php echo _x( '+', 'add item', 'wpsc' ); ?></a>
|
304 |
</div>
|
305 |
</td>
|
306 |
</tr>
|
329 |
</td>
|
330 |
<td class="column-actions">
|
331 |
<div class="field-option-cell-wrapper">
|
332 |
+
<a tabindex="-1" title="<?php _e( 'Delete Field', 'wpsc' ); ?>" class="button-secondary wpsc-button-round wpsc-button-minus" href="#"><?php echo _x( '–', 'delete item', 'wpsc' ); ?></a>
|
333 |
+
<a tabindex="-1" title="<?php _e( 'Add Field', 'wpsc' ); ?>" class="button-secondary wpsc-button-round wpsc-button-plus" href="#"><?php echo _x( '+', 'add item', 'wpsc' ); ?></a>
|
334 |
</div>
|
335 |
</td>
|
336 |
</tr>
|
510 |
<td class="actionscol">
|
511 |
<div class="cell-wrapper">
|
512 |
<?php if ( ! $this->is_field_default( $form_field ) ): ?>
|
513 |
+
<a tabindex="-1" title="<?php esc_attr_e( 'Delete Field', 'wpsc' ); ?>" class="button-secondary wpsc-button-round wpsc-button-minus" href="#"><?php echo _x( '–', 'delete item', 'wpsc' ); ?></a>
|
514 |
<?php else: ?>
|
515 |
+
<span title="<?php _e( 'Cannot Delete Default Fields', 'wpsc' ); ?>" class="button-secondary wpsc-button-round wpsc-button-minus"><?php echo _x( '–', 'delete item', 'wpsc' ); ?></span>
|
516 |
<?php endif; ?>
|
517 |
+
<a tabindex="-1" title="<?php _e( 'Add Field', 'wpsc' ); ?>" class="button-secondary wpsc-button-round wpsc-button-plus" href="#"><?php echo _x( '+', 'add item', 'wpsc' ); ?></a>
|
518 |
</div>
|
519 |
</td>
|
520 |
</tr>
|
wpsc-admin/includes/settings-tabs/gateway.php
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class WPSC_Settings_Tab_Gateway extends WPSC_Settings_Tab
|
4 |
-
{
|
5 |
private $active_gateways;
|
6 |
private $gateway_names;
|
7 |
|
@@ -11,65 +10,12 @@ class WPSC_Settings_Tab_Gateway extends WPSC_Settings_Tab
|
|
11 |
|
12 |
$this->active_gateways = get_option( 'custom_gateway_options' );
|
13 |
$this->gateway_names = get_option( 'payment_gateway_names' );
|
|
|
|
|
14 |
}
|
15 |
|
16 |
private function get_gateway_form( $selected_gateway ) {
|
17 |
-
|
18 |
-
|
19 |
-
$payment_gateway_names = get_option('payment_gateway_names');
|
20 |
-
$return = false;
|
21 |
-
$selected_gateway_data = false;
|
22 |
-
foreach ( $nzshpcrt_gateways as $gateway ) {
|
23 |
-
if ( $gateway['internalname'] == $selected_gateway ) {
|
24 |
-
$selected_gateway_data = $gateway;
|
25 |
-
break;
|
26 |
-
}
|
27 |
-
}
|
28 |
-
|
29 |
-
if ( $selected_gateway_data ) {
|
30 |
-
if ( array_key_exists( $selected_gateway, $payment_gateway_names ) ) {
|
31 |
-
$display_name = $payment_gateway_names[$selected_gateway];
|
32 |
-
} elseif ( ! empty( $selected_gateway_data['display_name'] ) ) {
|
33 |
-
$display_name = $selected_gateway_data['display_name'];
|
34 |
-
} else {
|
35 |
-
switch($selected_gateway_data['payment_type']) {
|
36 |
-
case "paypal";
|
37 |
-
$display_name = __( 'PayPal', 'wpsc' );
|
38 |
-
break;
|
39 |
-
|
40 |
-
case "manual_payment":
|
41 |
-
$display_name = __( 'Manual Payment', 'wpsc' );
|
42 |
-
break;
|
43 |
-
|
44 |
-
case "google_checkout":
|
45 |
-
$display_name = __( 'Google Checkout', 'wpsc' );
|
46 |
-
break;
|
47 |
-
|
48 |
-
case "credit_card":
|
49 |
-
default:
|
50 |
-
$display_name = __( 'Credit Card', 'wpsc' );
|
51 |
-
break;
|
52 |
-
}
|
53 |
-
}
|
54 |
-
|
55 |
-
ob_start();
|
56 |
-
?>
|
57 |
-
<tr>
|
58 |
-
<td><?php esc_html_e( 'Display Name', 'wpsc' ); ?></td>
|
59 |
-
<td>
|
60 |
-
<input type="text" name="user_defined_name[<?php echo esc_attr( $selected_gateway ); ?>]" value="<?php echo esc_html( $display_name ); ?>" /><br />
|
61 |
-
<small><?php esc_html_e( 'The text that people see when making a purchase.', 'wpsc' ); ?></small>
|
62 |
-
</td>
|
63 |
-
</tr>
|
64 |
-
<?php
|
65 |
-
$output = ob_get_clean();
|
66 |
-
$return = array(
|
67 |
-
'name' => $selected_gateway_data['name'],
|
68 |
-
'form_fields' => $output . $selected_gateway_data['form'](),
|
69 |
-
);
|
70 |
-
}
|
71 |
-
|
72 |
-
return $return;
|
73 |
}
|
74 |
|
75 |
private function get_gateway_settings_url( $gateway ) {
|
@@ -90,8 +36,9 @@ class WPSC_Settings_Tab_Gateway extends WPSC_Settings_Tab
|
|
90 |
$payment_data = $this->get_gateway_form( $selected_gateway );
|
91 |
if ( ! $payment_data ) {
|
92 |
$payment_data = array(
|
93 |
-
'name'
|
94 |
-
'form_fields'
|
|
|
95 |
);
|
96 |
}
|
97 |
?>
|
@@ -102,9 +49,9 @@ class WPSC_Settings_Tab_Gateway extends WPSC_Settings_Tab
|
|
102 |
<table class='form-table'>
|
103 |
<?php echo $payment_data['form_fields']; ?>
|
104 |
</table>
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
</div>
|
109 |
</td>
|
110 |
<?php
|
@@ -112,23 +59,11 @@ class WPSC_Settings_Tab_Gateway extends WPSC_Settings_Tab
|
|
112 |
|
113 |
public function display() {
|
114 |
global $wpdb, $nzshpcrt_gateways;
|
115 |
-
$payment_gateway_names = get_option( 'payment_gateway_names' );
|
116 |
if ( empty( $nzshpcrt_gateways ) )
|
117 |
$nzshpcrt_gateways = nzshpcrt_get_gateways();
|
118 |
?>
|
119 |
|
120 |
<div class='metabox-holder'>
|
121 |
-
<input type='hidden' name='gateway_submits' value='true' />
|
122 |
-
<input type='hidden' name='wpsc_gateway_settings' value='gateway_settings' />
|
123 |
-
<?php
|
124 |
-
if ( get_option( 'custom_gateway' ) == 1 ) {
|
125 |
-
$custom_gateway_hide = "style='display:block;'";
|
126 |
-
$custom_gateway1 = 'checked="checked"';
|
127 |
-
} else {
|
128 |
-
$custom_gateway_hide = "style='display:none;'";
|
129 |
-
$custom_gateway2 = 'checked="checked"';
|
130 |
-
}
|
131 |
-
?>
|
132 |
<table id='wpsc-payment-gateway-settings' class='wpsc-edit-module-options'>
|
133 |
<tr>
|
134 |
<td>
|
@@ -137,30 +72,8 @@ class WPSC_Settings_Tab_Gateway extends WPSC_Settings_Tab
|
|
137 |
<div class='inside'>
|
138 |
<p><?php _e( 'Activate the payment gateways that you want to make available to your customers by selecting them below.', 'wpsc' ); ?></p>
|
139 |
<br />
|
140 |
-
<?php
|
141 |
-
|
142 |
-
foreach ( $nzshpcrt_gateways as $gateway ) {
|
143 |
-
if ( isset( $gateway['admin_name'] ) )
|
144 |
-
$gateway['name'] = $gateway['admin_name'];
|
145 |
-
?>
|
146 |
-
|
147 |
-
<div class="wpsc-select-gateway">
|
148 |
-
<div class='wpsc-gateway-actions'>
|
149 |
-
<span class="edit">
|
150 |
-
<a class='edit-payment-module' data-gateway-id="<?php echo esc_attr( $gateway['internalname'] ); ?>" title="<?php esc_attr_e( "Edit this Payment Gateway's Settings", 'wpsc' ) ?>" href='<?php echo esc_url( $this->get_gateway_settings_url( $gateway['internalname'] ) ); ?>'><?php esc_html_e( 'Edit', 'wpsc' ); ?></a>
|
151 |
-
<img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" class="ajax-feedback" title="" alt="" />
|
152 |
-
</span>
|
153 |
-
</div>
|
154 |
-
<p>
|
155 |
-
<input name='wpsc_options[custom_gateway_options][]' <?php checked( in_array( $gateway['internalname'], (array) $selected_gateways ) ); ?> type='checkbox' value='<?php echo esc_attr( $gateway['internalname'] ); ?>' id='<?php echo esc_attr( $gateway['internalname'] ); ?>_id' />
|
156 |
-
<label for='<?php echo esc_attr( $gateway['internalname'] ); ?>_id'><?php echo esc_attr( $gateway['name'] ); ?></label>
|
157 |
-
</p>
|
158 |
-
</div>
|
159 |
-
<?php }
|
160 |
-
?>
|
161 |
-
<div class='submit gateway_settings'>
|
162 |
-
<input type='submit' value='<?php esc_attr_e( 'Update »', 'wpsc' ) ?>' name='updateoption' />
|
163 |
-
</div>
|
164 |
</div>
|
165 |
</div>
|
166 |
|
@@ -177,4 +90,34 @@ class WPSC_Settings_Tab_Gateway extends WPSC_Settings_Tab
|
|
177 |
|
178 |
<?php
|
179 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
180 |
}
|
1 |
<?php
|
2 |
|
3 |
+
class WPSC_Settings_Tab_Gateway extends WPSC_Settings_Tab {
|
|
|
4 |
private $active_gateways;
|
5 |
private $gateway_names;
|
6 |
|
10 |
|
11 |
$this->active_gateways = get_option( 'custom_gateway_options' );
|
12 |
$this->gateway_names = get_option( 'payment_gateway_names' );
|
13 |
+
|
14 |
+
$this->hide_submit_button();
|
15 |
}
|
16 |
|
17 |
private function get_gateway_form( $selected_gateway ) {
|
18 |
+
return apply_filters( 'wpsc_settings_gateway_form', array(), $selected_gateway );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
}
|
20 |
|
21 |
private function get_gateway_settings_url( $gateway ) {
|
36 |
$payment_data = $this->get_gateway_form( $selected_gateway );
|
37 |
if ( ! $payment_data ) {
|
38 |
$payment_data = array(
|
39 |
+
'name' => __( 'Edit Gateway Settings', 'wpsc' ),
|
40 |
+
'form_fields' => __( 'Modify a payment gateway settings by clicking "Edit" link on the left.', 'wpsc' ),
|
41 |
+
'has_submit_button' => 1,
|
42 |
);
|
43 |
}
|
44 |
?>
|
49 |
<table class='form-table'>
|
50 |
<?php echo $payment_data['form_fields']; ?>
|
51 |
</table>
|
52 |
+
<?php if ( empty( $payment_data['has_submit_button'] ) ) : ?>
|
53 |
+
<?php submit_button( __( 'Save Changes' ) ); ?>
|
54 |
+
<?php endif ?>
|
55 |
</div>
|
56 |
</td>
|
57 |
<?php
|
59 |
|
60 |
public function display() {
|
61 |
global $wpdb, $nzshpcrt_gateways;
|
|
|
62 |
if ( empty( $nzshpcrt_gateways ) )
|
63 |
$nzshpcrt_gateways = nzshpcrt_get_gateways();
|
64 |
?>
|
65 |
|
66 |
<div class='metabox-holder'>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
<table id='wpsc-payment-gateway-settings' class='wpsc-edit-module-options'>
|
68 |
<tr>
|
69 |
<td>
|
72 |
<div class='inside'>
|
73 |
<p><?php _e( 'Activate the payment gateways that you want to make available to your customers by selecting them below.', 'wpsc' ); ?></p>
|
74 |
<br />
|
75 |
+
<?php $this->gateway_list(); ?>
|
76 |
+
<?php submit_button( __( 'Save Changes' ) ); ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
</div>
|
78 |
</div>
|
79 |
|
90 |
|
91 |
<?php
|
92 |
}
|
93 |
+
|
94 |
+
private function gateway_list_item( $gateway ) {
|
95 |
+
$checked = in_array( $gateway['id'], $this->active_gateways );
|
96 |
+
?>
|
97 |
+
<div class="wpsc-select-gateway">
|
98 |
+
<div class='wpsc-gateway-actions'>
|
99 |
+
<span class="edit">
|
100 |
+
<a class='edit-payment-module' data-gateway-id="<?php echo esc_attr( $gateway['id'] ); ?>" title="<?php esc_attr_e( "Edit this Payment Gateway's Settings", 'wpsc' ) ?>" href='<?php echo esc_url( $this->get_gateway_settings_url( $gateway['id'] ) ); ?>'><?php esc_html_e( 'Edit', 'wpsc' ); ?></a>
|
101 |
+
<img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" class="ajax-feedback" title="" alt="" />
|
102 |
+
</span>
|
103 |
+
</div>
|
104 |
+
<p>
|
105 |
+
<input name='wpsc_options[custom_gateway_options][]' <?php checked( $checked ); ?> type='checkbox' value='<?php echo esc_attr( $gateway['id'] ); ?>' id='<?php echo esc_attr( $gateway['id'] ); ?>_id' />
|
106 |
+
<label for='<?php echo esc_attr( $gateway['id'] ); ?>_id'><?php echo esc_html( $gateway['name'] ); ?></label>
|
107 |
+
</p>
|
108 |
+
</div>
|
109 |
+
<?php
|
110 |
+
}
|
111 |
+
|
112 |
+
private function gateway_list() {
|
113 |
+
$gateways = apply_filters( 'wpsc_settings_get_gateways', array() );
|
114 |
+
|
115 |
+
foreach ( $gateways as $gateway ) {
|
116 |
+
$this->gateway_list_item( $gateway );
|
117 |
+
}
|
118 |
+
}
|
119 |
+
|
120 |
+
public function callback_submit_options() {
|
121 |
+
do_action( 'wpsc_submit_gateway_options' );
|
122 |
+
}
|
123 |
}
|
wpsc-admin/includes/settings-tabs/general.php
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
<?php
|
2 |
-
class WPSC_Settings_Tab_General extends WPSC_Settings_Tab
|
3 |
-
{
|
4 |
private $regions = array();
|
5 |
|
6 |
public function __construct() {
|
1 |
<?php
|
2 |
+
class WPSC_Settings_Tab_General extends WPSC_Settings_Tab {
|
|
|
3 |
private $regions = array();
|
4 |
|
5 |
public function __construct() {
|
wpsc-admin/includes/settings-tabs/import.php
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class WPSC_Settings_Tab_Import extends WPSC_Settings_Tab
|
4 |
-
{
|
5 |
private $file = false;
|
6 |
private $step = 1;
|
7 |
private $display_data = array();
|
1 |
<?php
|
2 |
|
3 |
+
class WPSC_Settings_Tab_Import extends WPSC_Settings_Tab {
|
|
|
4 |
private $file = false;
|
5 |
private $step = 1;
|
6 |
private $display_data = array();
|
wpsc-admin/includes/settings-tabs/marketing.php
CHANGED
@@ -54,7 +54,7 @@ class WPSC_Settings_Tab_Marketing extends WPSC_Settings_Tab {
|
|
54 |
<span class='description'><?php _e( 'By default, we insert the multiple-domain asynchronous tracking code. This should be fine for 99% of users. If you need to fine-tune it, select the Advanced option. Then, instead of simply entering your tracking ID, you will enter the enter tracking code from Google Analytics into the header.php file of your theme.', 'wpsc' ); ?></span>
|
55 |
</p><br />
|
56 |
<p class='wpsc_ga_tracking_id'>
|
57 |
-
<span class='input_label'><?php
|
58 |
<input value="<?php echo esc_attr( get_option( 'wpsc_ga_tracking_id' ) ); ?>" type='text' name='wpsc_ga_tracking_id' />
|
59 |
<span class='description'><?php _e( 'Enter your tracking ID here.', 'wpsc' ); ?></span>
|
60 |
</p><br />
|
54 |
<span class='description'><?php _e( 'By default, we insert the multiple-domain asynchronous tracking code. This should be fine for 99% of users. If you need to fine-tune it, select the Advanced option. Then, instead of simply entering your tracking ID, you will enter the enter tracking code from Google Analytics into the header.php file of your theme.', 'wpsc' ); ?></span>
|
55 |
</p><br />
|
56 |
<p class='wpsc_ga_tracking_id'>
|
57 |
+
<span class='input_label'><?php _ex( 'Tracking ID', 'google analytics', 'wpsc' ); ?></span>
|
58 |
<input value="<?php echo esc_attr( get_option( 'wpsc_ga_tracking_id' ) ); ?>" type='text' name='wpsc_ga_tracking_id' />
|
59 |
<span class='description'><?php _e( 'Enter your tracking ID here.', 'wpsc' ); ?></span>
|
60 |
</p><br />
|
wpsc-admin/includes/settings-tabs/presentation.php
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class WPSC_Settings_Tab_Presentation extends WPSC_Settings_Tab
|
4 |
-
{
|
5 |
public function __construct() {
|
6 |
$this->page_title = __( 'General Settings', 'wpsc' );
|
7 |
}
|
1 |
<?php
|
2 |
|
3 |
+
class WPSC_Settings_Tab_Presentation extends WPSC_Settings_Tab {
|
|
|
4 |
public function __construct() {
|
5 |
$this->page_title = __( 'General Settings', 'wpsc' );
|
6 |
}
|
wpsc-admin/includes/settings-tabs/shipping.php
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
<?php
|
2 |
-
class WPSC_Settings_Tab_Shipping extends WPSC_Settings_Tab
|
3 |
-
{
|
4 |
public function __construct() {
|
5 |
parent::__construct();
|
6 |
|
1 |
<?php
|
2 |
+
class WPSC_Settings_Tab_Shipping extends WPSC_Settings_Tab {
|
|
|
3 |
public function __construct() {
|
4 |
parent::__construct();
|
5 |
|
wpsc-admin/includes/settings-tabs/taxes.php
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class WPSC_Settings_Tab_Taxes extends WPSC_Settings_Tab
|
4 |
-
{
|
5 |
public function __construct() {
|
6 |
}
|
7 |
|
1 |
<?php
|
2 |
|
3 |
+
class WPSC_Settings_Tab_Taxes extends WPSC_Settings_Tab {
|
|
|
4 |
public function __construct() {
|
5 |
}
|
6 |
|
wpsc-admin/includes/updating-functions.php
CHANGED
@@ -6,8 +6,7 @@
|
|
6 |
* @since 3.8
|
7 |
*/
|
8 |
|
9 |
-
class WPSC_Update
|
10 |
-
{
|
11 |
private static $instance;
|
12 |
private $timeout;
|
13 |
private $script_start;
|
@@ -69,8 +68,7 @@ class WPSC_Update
|
|
69 |
}
|
70 |
}
|
71 |
|
72 |
-
class WPSC_Update_Progress
|
73 |
-
{
|
74 |
private $milestone;
|
75 |
private $start;
|
76 |
private $count;
|
6 |
* @since 3.8
|
7 |
*/
|
8 |
|
9 |
+
class WPSC_Update {
|
|
|
10 |
private static $instance;
|
11 |
private $timeout;
|
12 |
private $script_start;
|
68 |
}
|
69 |
}
|
70 |
|
71 |
+
class WPSC_Update_Progress {
|
|
|
72 |
private $milestone;
|
73 |
private $start;
|
74 |
private $count;
|
wpsc-admin/includes/walker-variation-checklist.php
CHANGED
@@ -41,7 +41,7 @@ class WPSC_Walker_Variation_Checklist extends Walker_Category_Checklist {
|
|
41 |
id="in-<?php echo esc_attr( $taxonomy ) . '-' . $category->term_id; ?>"
|
42 |
<?php checked( $checked, true ); disabled( empty( $args['disabled'] ), false ); ?>
|
43 |
/>
|
44 |
-
<?php echo esc_html( $category->name ); ?>
|
45 |
</label>
|
46 |
<?php
|
47 |
$output .= ob_get_clean();
|
41 |
id="in-<?php echo esc_attr( $taxonomy ) . '-' . $category->term_id; ?>"
|
42 |
<?php checked( $checked, true ); disabled( empty( $args['disabled'] ), false ); ?>
|
43 |
/>
|
44 |
+
<?php echo esc_html( apply_filters( 'wpsc_variation_name', $category->name, $category ) ); ?>
|
45 |
</label>
|
46 |
<?php
|
47 |
$output .= ob_get_clean();
|
wpsc-admin/init.php
CHANGED
@@ -146,7 +146,7 @@ function wpsc_purchase_log_csv() {
|
|
146 |
$output .= "\"" . $purchase['totalprice'] . "\","; //Purchase Total
|
147 |
foreach ( (array)$form_data as $form_field ) {
|
148 |
$form_headers_array[] = $form_field['unique_name'];
|
149 |
-
$collected_data_sql = "SELECT * FROM `" .
|
150 |
$collected_data = $wpdb->get_results( $collected_data_sql, ARRAY_A );
|
151 |
$collected_data = $collected_data[0];
|
152 |
$output .= "\"" . $collected_data['value'] . "\","; // get form fields
|
@@ -296,7 +296,7 @@ function wpsc_purchlog_clear_download_items() {
|
|
296 |
$cleared = true;
|
297 |
|
298 |
$email_form_field = $wpdb->get_var( "SELECT `id` FROM `" . WPSC_TABLE_CHECKOUT_FORMS . "` WHERE `type` IN ('email') AND `active` = '1' ORDER BY `checkout_order` ASC LIMIT 1" );
|
299 |
-
$email_address = $wpdb->get_var( "SELECT `value` FROM `" .
|
300 |
|
301 |
foreach ( (array)$downloadable_items as $downloadable_item ) {
|
302 |
$download_links .= add_query_arg(
|
@@ -411,7 +411,7 @@ function wpsc_delete_purchlog( $purchlog_id='' ) {
|
|
411 |
}
|
412 |
|
413 |
$wpdb->query( $wpdb->prepare( "DELETE FROM `" . WPSC_TABLE_CART_CONTENTS . "` WHERE `purchaseid` = %d", $purchlog_id ) );
|
414 |
-
$wpdb->query( $wpdb->prepare( "DELETE FROM `" .
|
415 |
$wpdb->query( $wpdb->prepare( "DELETE FROM `" . WPSC_TABLE_PURCHASE_LOGS . "` WHERE `id` = %d LIMIT 1", $purchlog_id ) );
|
416 |
|
417 |
$deleted = 1;
|
@@ -594,45 +594,6 @@ function wpsc_product_files_existing() {
|
|
594 |
if ( isset( $_REQUEST['wpsc_admin_action'] ) && ($_REQUEST['wpsc_admin_action'] == 'product_files_existing') )
|
595 |
add_action( 'admin_init', 'wpsc_product_files_existing' );
|
596 |
|
597 |
-
//change the gateway settings
|
598 |
-
function wpsc_gateway_settings() {
|
599 |
-
//To update options
|
600 |
-
if ( isset( $_POST['wpsc_options'] ) ) {
|
601 |
-
foreach ( $_POST['wpsc_options'] as $key => $value ) {
|
602 |
-
if ( $value != get_option( $key ) ) {
|
603 |
-
update_option( $key, $value );
|
604 |
-
}
|
605 |
-
}
|
606 |
-
unset( $_POST['wpsc_options'] );
|
607 |
-
}
|
608 |
-
|
609 |
-
if ( isset( $_POST['user_defined_name'] ) && is_array( $_POST['user_defined_name'] ) ) {
|
610 |
-
$payment_gateway_names = get_option( 'payment_gateway_names' );
|
611 |
-
|
612 |
-
if ( !is_array( $payment_gateway_names ) ) {
|
613 |
-
$payment_gateway_names = array( );
|
614 |
-
}
|
615 |
-
$payment_gateway_names = array_merge( $payment_gateway_names, (array)$_POST['user_defined_name'] );
|
616 |
-
update_option( 'payment_gateway_names', $payment_gateway_names );
|
617 |
-
}
|
618 |
-
$custom_gateways = get_option( 'custom_gateway_options' );
|
619 |
-
|
620 |
-
$nzshpcrt_gateways = nzshpcrt_get_gateways();
|
621 |
-
foreach ( $nzshpcrt_gateways as $gateway ) {
|
622 |
-
if ( in_array( $gateway['internalname'], $custom_gateways ) ) {
|
623 |
-
if ( isset( $gateway['submit_function'] ) ) {
|
624 |
-
call_user_func_array( $gateway['submit_function'], array( ) );
|
625 |
-
$changes_made = true;
|
626 |
-
}
|
627 |
-
}
|
628 |
-
}
|
629 |
-
if ( (isset( $_POST['payment_gw'] ) && $_POST['payment_gw'] != null ) ) {
|
630 |
-
update_option( 'payment_gateway', $_POST['payment_gw'] );
|
631 |
-
}
|
632 |
-
}
|
633 |
-
if ( isset( $_REQUEST['wpsc_gateway_settings'] ) && ($_REQUEST['wpsc_gateway_settings'] == 'gateway_settings') )
|
634 |
-
add_action( 'admin_init', 'wpsc_gateway_settings' );
|
635 |
-
|
636 |
function wpsc_google_shipping_settings() {
|
637 |
if ( isset( $_POST['submit'] ) ) {
|
638 |
foreach ( (array)$_POST['google_shipping'] as $key => $country ) {
|
146 |
$output .= "\"" . $purchase['totalprice'] . "\","; //Purchase Total
|
147 |
foreach ( (array)$form_data as $form_field ) {
|
148 |
$form_headers_array[] = $form_field['unique_name'];
|
149 |
+
$collected_data_sql = "SELECT * FROM `" . WPSC_TABLE_SUBMITTED_FORM_DATA . "` WHERE `log_id` = '" . $purchase['id'] . "' AND `form_id` = '" . $form_field['id'] . "' LIMIT 1";
|
150 |
$collected_data = $wpdb->get_results( $collected_data_sql, ARRAY_A );
|
151 |
$collected_data = $collected_data[0];
|
152 |
$output .= "\"" . $collected_data['value'] . "\","; // get form fields
|
296 |
$cleared = true;
|
297 |
|
298 |
$email_form_field = $wpdb->get_var( "SELECT `id` FROM `" . WPSC_TABLE_CHECKOUT_FORMS . "` WHERE `type` IN ('email') AND `active` = '1' ORDER BY `checkout_order` ASC LIMIT 1" );
|
299 |
+
$email_address = $wpdb->get_var( "SELECT `value` FROM `" . WPSC_TABLE_SUBMITTED_FORM_DATA . "` WHERE `log_id`='{$purchase_id}' AND `form_id` = '{$email_form_field}' LIMIT 1" );
|
300 |
|
301 |
foreach ( (array)$downloadable_items as $downloadable_item ) {
|
302 |
$download_links .= add_query_arg(
|
411 |
}
|
412 |
|
413 |
$wpdb->query( $wpdb->prepare( "DELETE FROM `" . WPSC_TABLE_CART_CONTENTS . "` WHERE `purchaseid` = %d", $purchlog_id ) );
|
414 |
+
$wpdb->query( $wpdb->prepare( "DELETE FROM `" . WPSC_TABLE_SUBMITTED_FORM_DATA . "` WHERE `log_id` IN (%d)", $purchlog_id ) );
|
415 |
$wpdb->query( $wpdb->prepare( "DELETE FROM `" . WPSC_TABLE_PURCHASE_LOGS . "` WHERE `id` = %d LIMIT 1", $purchlog_id ) );
|
416 |
|
417 |
$deleted = 1;
|
594 |
if ( isset( $_REQUEST['wpsc_admin_action'] ) && ($_REQUEST['wpsc_admin_action'] == 'product_files_existing') )
|
595 |
add_action( 'admin_init', 'wpsc_product_files_existing' );
|
596 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
597 |
function wpsc_google_shipping_settings() {
|
598 |
if ( isset( $_POST['submit'] ) ) {
|
599 |
foreach ( (array)$_POST['google_shipping'] as $key => $country ) {
|
wpsc-admin/js/admin.js
CHANGED
@@ -154,6 +154,7 @@
|
|
154 |
|
155 |
return false;
|
156 |
});
|
|
|
157 |
})(jQuery);
|
158 |
|
159 |
jQuery(document).ready(function(){
|
@@ -183,6 +184,7 @@ jQuery(document).ready(function(){
|
|
183 |
return false;
|
184 |
}
|
185 |
});
|
|
|
186 |
//Animateedit products columns
|
187 |
jQuery('.wpsc-separator').livequery(function(){
|
188 |
jQuery(this).click(function(){
|
@@ -583,6 +585,44 @@ jQuery(document).ready(function(){
|
|
583 |
jQuery(this).find('.wpsc_ie_sale_price').val(sale_price);
|
584 |
jQuery(this).find('.wpsc_ie_sku').val(sku);
|
585 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
586 |
});
|
587 |
|
588 |
// function for adding more custom meta
|
154 |
|
155 |
return false;
|
156 |
});
|
157 |
+
|
158 |
})(jQuery);
|
159 |
|
160 |
jQuery(document).ready(function(){
|
184 |
return false;
|
185 |
}
|
186 |
});
|
187 |
+
|
188 |
//Animateedit products columns
|
189 |
jQuery('.wpsc-separator').livequery(function(){
|
190 |
jQuery(this).click(function(){
|
585 |
jQuery(this).find('.wpsc_ie_sale_price').val(sale_price);
|
586 |
jQuery(this).find('.wpsc_ie_sku').val(sku);
|
587 |
});
|
588 |
+
|
589 |
+
jQuery('.coupon-conditions').on('click', '.wpsc-button-plus', function() {
|
590 |
+
var parent = jQuery(this).closest('.coupon-condition'),
|
591 |
+
prototype = parent.clone();
|
592 |
+
|
593 |
+
prototype.find('select').val('');
|
594 |
+
prototype.find('input').val('');
|
595 |
+
prototype.hide();
|
596 |
+
prototype.insertAfter(parent).slideDown(150);
|
597 |
+
|
598 |
+
return false;
|
599 |
+
});
|
600 |
+
|
601 |
+
jQuery('.coupon-conditions').on('click', '.wpsc-button-minus', function() {
|
602 |
+
var parent = jQuery(this).closest('.coupon-condition'),
|
603 |
+
conditions_count = jQuery('.coupon-condition').size(),
|
604 |
+
prototype;
|
605 |
+
|
606 |
+
if (conditions_count == 1) {
|
607 |
+
prototype = parent.clone();
|
608 |
+
prototype.find('select').val('');
|
609 |
+
prototype.find('input').val('');
|
610 |
+
prototype.hide();
|
611 |
+
jQuery('.coupon-conditions').find('td').prepend(prototype);
|
612 |
+
parent.slideUp(150, function(){
|
613 |
+
prototype.slideDown(150);
|
614 |
+
parent.remove();
|
615 |
+
});
|
616 |
+
|
617 |
+
return false;
|
618 |
+
}
|
619 |
+
|
620 |
+
parent.slideUp(150, function(){
|
621 |
+
parent.remove();
|
622 |
+
});
|
623 |
+
|
624 |
+
return false;
|
625 |
+
});
|
626 |
});
|
627 |
|
628 |
// function for adding more custom meta
|
wpsc-admin/js/product-variations.js
CHANGED
File without changes
|
wpsc-admin/js/purchase-logs.js
CHANGED
File without changes
|
wpsc-admin/js/set-post-thumbnail.js
CHANGED
File without changes
|
wpsc-admin/js/settings-page.js
CHANGED
@@ -300,12 +300,12 @@
|
|
300 |
event_init : function() {
|
301 |
var wrapper = $('#options_checkout');
|
302 |
wrapper.delegate('.add_new_form_set', 'click', WPSC_Settings_Page.Checkout.event_add_new_form_set).
|
303 |
-
delegate('.actionscol a.
|
304 |
-
delegate('.actionscol a.
|
305 |
delegate('a.edit-options', 'click', WPSC_Settings_Page.Checkout.event_edit_field_options).
|
306 |
delegate('select[name^="form_type"], select[name^="new_field_type"]', 'change', WPSC_Settings_Page.Checkout.event_form_type_changed).
|
307 |
-
delegate('.field-option-cell-wrapper .
|
308 |
-
delegate('.field-option-cell-wrapper .
|
309 |
delegate('#wpsc-delete-checkout-set', 'click', WPSC_Settings_Page.Checkout.event_delete_checkout_set).
|
310 |
delegate('#wpsc_form_set', 'change', WPSC_Settings_Page.Checkout.event_select_form_set);
|
311 |
$('#wpsc-settings-form').bind('submit', WPSC_Settings_Page.Checkout.event_form_submit);
|
@@ -806,8 +806,8 @@
|
|
806 |
WPSC_Settings_Page.Shipping.table_rate = WPSC_Settings_Page.Shipping.wrapper.find('.table-rate');
|
807 |
WPSC_Settings_Page.Shipping.wrapper.
|
808 |
delegate('.edit-shipping-module' , 'click' , WPSC_Settings_Page.Shipping.event_edit_shipping_module).
|
809 |
-
delegate('.table-rate .
|
810 |
-
delegate('.table-rate .
|
811 |
delegate('.table-rate input[type="text"]', 'keypress', WPSC_Settings_Page.Shipping.event_enter_key_pressed).
|
812 |
delegate('a.shipwire_sync' , 'click' , WPSC_Settings_Page.Shipping.event_sync_shipwire);
|
813 |
},
|
300 |
event_init : function() {
|
301 |
var wrapper = $('#options_checkout');
|
302 |
wrapper.delegate('.add_new_form_set', 'click', WPSC_Settings_Page.Checkout.event_add_new_form_set).
|
303 |
+
delegate('.actionscol a.wpsc-button-plus', 'click', WPSC_Settings_Page.Checkout.event_add_new_field).
|
304 |
+
delegate('.actionscol a.wpsc-button-minus', 'click', WPSC_Settings_Page.Checkout.event_delete_field).
|
305 |
delegate('a.edit-options', 'click', WPSC_Settings_Page.Checkout.event_edit_field_options).
|
306 |
delegate('select[name^="form_type"], select[name^="new_field_type"]', 'change', WPSC_Settings_Page.Checkout.event_form_type_changed).
|
307 |
+
delegate('.field-option-cell-wrapper .wpsc-button-plus', 'click', WPSC_Settings_Page.Checkout.event_add_field_option).
|
308 |
+
delegate('.field-option-cell-wrapper .wpsc-button-minus', 'click', WPSC_Settings_Page.Checkout.event_delete_field_option).
|
309 |
delegate('#wpsc-delete-checkout-set', 'click', WPSC_Settings_Page.Checkout.event_delete_checkout_set).
|
310 |
delegate('#wpsc_form_set', 'change', WPSC_Settings_Page.Checkout.event_select_form_set);
|
311 |
$('#wpsc-settings-form').bind('submit', WPSC_Settings_Page.Checkout.event_form_submit);
|
806 |
WPSC_Settings_Page.Shipping.table_rate = WPSC_Settings_Page.Shipping.wrapper.find('.table-rate');
|
807 |
WPSC_Settings_Page.Shipping.wrapper.
|
808 |
delegate('.edit-shipping-module' , 'click' , WPSC_Settings_Page.Shipping.event_edit_shipping_module).
|
809 |
+
delegate('.table-rate .wpsc-button-plus' , 'click' , WPSC_Settings_Page.Shipping.event_add_table_rate_layer).
|
810 |
+
delegate('.table-rate .wpsc-button-minus', 'click' , WPSC_Settings_Page.Shipping.event_delete_table_rate_layer).
|
811 |
delegate('.table-rate input[type="text"]', 'keypress', WPSC_Settings_Page.Shipping.event_enter_key_pressed).
|
812 |
delegate('a.shipwire_sync' , 'click' , WPSC_Settings_Page.Shipping.event_sync_shipwire);
|
813 |
},
|
wpsc-admin/js/sortable-table.js
CHANGED
File without changes
|
wpsc-admin/js/variations.js
CHANGED
@@ -55,10 +55,12 @@ var wpsc_set_variation_product_thumbnail = function(id, src) {
|
|
55 |
$(function(){
|
56 |
var table = $('body.edit-tags-php .wp-list-table');
|
57 |
table.find('tbody tr').each(function(){
|
58 |
-
var t = $(this)
|
|
|
59 |
id = t.attr('id').replace(/[^0-9]+/g, '');
|
60 |
-
|
61 |
-
|
|
|
62 |
});
|
63 |
|
64 |
table.wpsc_sortable_table({
|
55 |
$(function(){
|
56 |
var table = $('body.edit-tags-php .wp-list-table');
|
57 |
table.find('tbody tr').each(function(){
|
58 |
+
var t = $(this);
|
59 |
+
if (!t.hasClass('no-items')) {
|
60 |
id = t.attr('id').replace(/[^0-9]+/g, '');
|
61 |
+
t.data('level', WPSC_Term_List_Levels[id]);
|
62 |
+
t.data('id', id);
|
63 |
+
}
|
64 |
});
|
65 |
|
66 |
table.wpsc_sortable_table({
|
wpsc-admin/settings-page.php
CHANGED
@@ -11,10 +11,10 @@
|
|
11 |
* function my_plugin_settings_tabs( $settings_page ) {
|
12 |
* $settings_page->register_tab( 'recommendation_system', 'Recommendation System' );
|
13 |
* }
|
14 |
-
* add_action( '
|
15 |
* </code>
|
16 |
*
|
17 |
-
* Note that you need to hook into '
|
18 |
*
|
19 |
* The next step is to create a class for your tab which inherits from the base 'WPSC_Settings_Tab'.
|
20 |
* The name of the class needs to follow this convention: all the words have to be capitalized and
|
@@ -47,8 +47,7 @@
|
|
47 |
* 'callback_submit_options()'. Then process your submitted fields there.
|
48 |
*
|
49 |
* <code>
|
50 |
-
* class WPSC_Settings_Tab_Recommendation_System extends WPSC_Settings_Tab
|
51 |
-
* {
|
52 |
* // ...
|
53 |
* public function callback_submit_options() {
|
54 |
* if ( isset( $_POST['my_option'] ) )
|
@@ -70,8 +69,7 @@
|
|
70 |
* @package wp-e-commerce
|
71 |
* @subpackage settings-api
|
72 |
*/
|
73 |
-
abstract class WPSC_Settings_Tab
|
74 |
-
{
|
75 |
/**
|
76 |
* Display the content of the tab. This function has to be overridden.
|
77 |
*
|
@@ -174,8 +172,7 @@ abstract class WPSC_Settings_Tab
|
|
174 |
* @subpackage settings-api
|
175 |
* @final
|
176 |
*/
|
177 |
-
final class WPSC_Settings_Page
|
178 |
-
{
|
179 |
/**
|
180 |
* @staticvar object The active object instance
|
181 |
* @since 3.8.8
|
@@ -485,7 +482,7 @@ final class WPSC_Settings_Page
|
|
485 |
<input type='hidden' name='wpsc_admin_action' value='submit_options' />
|
486 |
<?php wp_nonce_field( 'update-options', 'wpsc-update-options' ); ?>
|
487 |
<?php if ( $this->current_tab->is_submit_button_displayed() ): ?>
|
488 |
-
|
489 |
<?php endif ?>
|
490 |
</div>
|
491 |
</div>
|
11 |
* function my_plugin_settings_tabs( $settings_page ) {
|
12 |
* $settings_page->register_tab( 'recommendation_system', 'Recommendation System' );
|
13 |
* }
|
14 |
+
* add_action( 'wpsc_register_settings_tabs', 'my_plugin_settings_tabs', 10, 1 );
|
15 |
* </code>
|
16 |
*
|
17 |
+
* Note that you need to hook into 'wpsc_register_settings_tabs' to do this.
|
18 |
*
|
19 |
* The next step is to create a class for your tab which inherits from the base 'WPSC_Settings_Tab'.
|
20 |
* The name of the class needs to follow this convention: all the words have to be capitalized and
|
47 |
* 'callback_submit_options()'. Then process your submitted fields there.
|
48 |
*
|
49 |
* <code>
|
50 |
+
* class WPSC_Settings_Tab_Recommendation_System extends WPSC_Settings_Tab {
|
|
|
51 |
* // ...
|
52 |
* public function callback_submit_options() {
|
53 |
* if ( isset( $_POST['my_option'] ) )
|
69 |
* @package wp-e-commerce
|
70 |
* @subpackage settings-api
|
71 |
*/
|
72 |
+
abstract class WPSC_Settings_Tab {
|
|
|
73 |
/**
|
74 |
* Display the content of the tab. This function has to be overridden.
|
75 |
*
|
172 |
* @subpackage settings-api
|
173 |
* @final
|
174 |
*/
|
175 |
+
final class WPSC_Settings_Page {
|
|
|
176 |
/**
|
177 |
* @staticvar object The active object instance
|
178 |
* @since 3.8.8
|
482 |
<input type='hidden' name='wpsc_admin_action' value='submit_options' />
|
483 |
<?php wp_nonce_field( 'update-options', 'wpsc-update-options' ); ?>
|
484 |
<?php if ( $this->current_tab->is_submit_button_displayed() ): ?>
|
485 |
+
<?php submit_button( __( 'Save Changes' ) ); ?>
|
486 |
<?php endif ?>
|
487 |
</div>
|
488 |
</div>
|
wpsc-components/merchant-core-v2/classes/wpsc-gateways.php
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* The WPSC Gateway class
|
5 |
+
*/
|
6 |
+
class wpsc_gateways {
|
7 |
+
|
8 |
+
var $wpsc_gateways;
|
9 |
+
var $gateway;
|
10 |
+
var $gateway_count = 0;
|
11 |
+
var $current_gateway = -1;
|
12 |
+
var $in_the_loop = false;
|
13 |
+
|
14 |
+
function wpsc_gateways() {
|
15 |
+
global $nzshpcrt_gateways;
|
16 |
+
|
17 |
+
$gateway_options = get_option( 'custom_gateway_options' );
|
18 |
+
foreach ( $nzshpcrt_gateways as $gateway ) {
|
19 |
+
if ( array_search( $gateway['internalname'], (array)$gateway_options ) !== false ) {
|
20 |
+
$this->wpsc_gateways[] = $gateway;
|
21 |
+
}
|
22 |
+
}
|
23 |
+
|
24 |
+
$this->wpsc_gateways = apply_filters(
|
25 |
+
'wpsc_merchant_v2_gateway_loop_items',
|
26 |
+
$this->wpsc_gateways,
|
27 |
+
$this
|
28 |
+
);
|
29 |
+
$this->gateway_count = count( $this->wpsc_gateways );
|
30 |
+
}
|
31 |
+
|
32 |
+
/**
|
33 |
+
* checkout loop methods
|
34 |
+
*/
|
35 |
+
function next_gateway() {
|
36 |
+
$this->current_gateway++;
|
37 |
+
$this->gateway = $this->wpsc_gateways[$this->current_gateway];
|
38 |
+
return $this->gateway;
|
39 |
+
}
|
40 |
+
|
41 |
+
function the_gateway() {
|
42 |
+
$this->in_the_loop = true;
|
43 |
+
$this->gateway = $this->next_gateway();
|
44 |
+
if ( $this->current_gateway == 0 ) // loop has just started
|
45 |
+
do_action( 'wpsc_checkout_loop_start' );
|
46 |
+
}
|
47 |
+
|
48 |
+
function have_gateways() {
|
49 |
+
if ( $this->current_gateway + 1 < $this->gateway_count ) {
|
50 |
+
return true;
|
51 |
+
} else if ( $this->current_gateway + 1 == $this->gateway_count && $this->gateway_count > 0 ) {
|
52 |
+
do_action( 'wpsc_checkout_loop_end' );
|
53 |
+
// Do some cleaning up after the loop,
|
54 |
+
$this->rewind_gateways();
|
55 |
+
}
|
56 |
+
|
57 |
+
$this->in_the_loop = false;
|
58 |
+
return false;
|
59 |
+
}
|
60 |
+
|
61 |
+
function rewind_gateways() {
|
62 |
+
$this->current_gateway = -1;
|
63 |
+
if ( $this->gateway_count > 0 ) {
|
64 |
+
$this->gateway = $this->wpsc_gateways[0];
|
65 |
+
}
|
66 |
+
}
|
67 |
+
|
68 |
+
}
|
wpsc-components/merchant-core-v2/helpers/admin.php
ADDED
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
add_filter( 'wpsc_settings_get_gateways', '_wpsc_filter_merchant_v2_get_gateways' );
|
4 |
+
|
5 |
+
function _wpsc_filter_merchant_v2_get_gateways( $gateways ) {
|
6 |
+
global $nzshpcrt_gateways;
|
7 |
+
|
8 |
+
foreach ( $nzshpcrt_gateways as $gateway ) {
|
9 |
+
$name = empty( $gateway['admin_name'] )
|
10 |
+
? $gateway['name']
|
11 |
+
: $gateway['admin_name'];
|
12 |
+
|
13 |
+
$gateways[] = array(
|
14 |
+
'id' => $gateway['internalname'],
|
15 |
+
'name' => $name,
|
16 |
+
);
|
17 |
+
}
|
18 |
+
|
19 |
+
return $gateways;
|
20 |
+
}
|
21 |
+
|
22 |
+
add_filter(
|
23 |
+
'wpsc_settings_gateway_form',
|
24 |
+
'_wpsc_filter_merchant_v2_gateway_form',
|
25 |
+
10,
|
26 |
+
2
|
27 |
+
);
|
28 |
+
|
29 |
+
function _wpsc_filter_merchant_v2_gateway_form( $form, $selected_gateway ) {
|
30 |
+
global $nzshpcrt_gateways;
|
31 |
+
|
32 |
+
$payment_gateway_names = get_option('payment_gateway_names');
|
33 |
+
$return = false;
|
34 |
+
$selected_gateway_data = false;
|
35 |
+
foreach ( $nzshpcrt_gateways as $gateway ) {
|
36 |
+
if ( $gateway['internalname'] == $selected_gateway ) {
|
37 |
+
$selected_gateway_data = $gateway;
|
38 |
+
break;
|
39 |
+
}
|
40 |
+
}
|
41 |
+
|
42 |
+
if ( $selected_gateway_data ) {
|
43 |
+
if ( array_key_exists( $selected_gateway, $payment_gateway_names ) ) {
|
44 |
+
$display_name = $payment_gateway_names[$selected_gateway];
|
45 |
+
} elseif ( ! empty( $selected_gateway_data['display_name'] ) ) {
|
46 |
+
$display_name = $selected_gateway_data['display_name'];
|
47 |
+
} else {
|
48 |
+
switch($selected_gateway_data['payment_type']) {
|
49 |
+
case "paypal";
|
50 |
+
$display_name = __( 'PayPal', 'wpsc' );
|
51 |
+
break;
|
52 |
+
|
53 |
+
case "manual_payment":
|
54 |
+
$display_name = __( 'Manual Payment', 'wpsc' );
|
55 |
+
break;
|
56 |
+
|
57 |
+
case "google_checkout":
|
58 |
+
$display_name = __( 'Google Checkout', 'wpsc' );
|
59 |
+
break;
|
60 |
+
|
61 |
+
case "credit_card":
|
62 |
+
default:
|
63 |
+
$display_name = __( 'Credit Card', 'wpsc' );
|
64 |
+
break;
|
65 |
+
}
|
66 |
+
}
|
67 |
+
|
68 |
+
ob_start();
|
69 |
+
?>
|
70 |
+
<tr>
|
71 |
+
<td><?php esc_html_e( 'Display Name', 'wpsc' ); ?></td>
|
72 |
+
<td>
|
73 |
+
<input type="text" name="user_defined_name[<?php echo esc_attr( $selected_gateway ); ?>]" value="<?php echo esc_html( $display_name ); ?>" /><br />
|
74 |
+
<small><?php esc_html_e( 'The text that people see when making a purchase.', 'wpsc' ); ?></small>
|
75 |
+
</td>
|
76 |
+
</tr>
|
77 |
+
<?php
|
78 |
+
$output = ob_get_clean();
|
79 |
+
$return = array(
|
80 |
+
'name' => $selected_gateway_data['name'],
|
81 |
+
'form_fields' => $output . $selected_gateway_data['form'](),
|
82 |
+
'has_submit_button' => 0,
|
83 |
+
);
|
84 |
+
}
|
85 |
+
|
86 |
+
return $return;
|
87 |
+
}
|
88 |
+
|
89 |
+
add_action(
|
90 |
+
'wpsc_submit_gateway_options',
|
91 |
+
'_wpsc_action_merchant_v2_submit_gateway_options'
|
92 |
+
);
|
93 |
+
|
94 |
+
function _wpsc_action_merchant_v2_submit_gateway_options() {
|
95 |
+
if ( isset( $_POST['user_defined_name'] ) && is_array( $_POST['user_defined_name'] ) ) {
|
96 |
+
$payment_gateway_names = get_option( 'payment_gateway_names' );
|
97 |
+
|
98 |
+
if ( !is_array( $payment_gateway_names ) ) {
|
99 |
+
$payment_gateway_names = array( );
|
100 |
+
}
|
101 |
+
$payment_gateway_names = array_merge( $payment_gateway_names, (array)$_POST['user_defined_name'] );
|
102 |
+
update_option( 'payment_gateway_names', $payment_gateway_names );
|
103 |
+
}
|
104 |
+
$custom_gateways = get_option( 'custom_gateway_options' );
|
105 |
+
|
106 |
+
$nzshpcrt_gateways = nzshpcrt_get_gateways();
|
107 |
+
foreach ( $nzshpcrt_gateways as $gateway ) {
|
108 |
+
if ( in_array( $gateway['internalname'], $custom_gateways ) ) {
|
109 |
+
if ( isset( $gateway['submit_function'] ) ) {
|
110 |
+
call_user_func_array( $gateway['submit_function'], array( ) );
|
111 |
+
$changes_made = true;
|
112 |
+
}
|
113 |
+
}
|
114 |
+
}
|
115 |
+
if ( (isset( $_POST['payment_gw'] ) && $_POST['payment_gw'] != null ) ) {
|
116 |
+
update_option( 'payment_gateway', $_POST['payment_gw'] );
|
117 |
+
}
|
118 |
+
}
|
wpsc-components/merchant-core-v2/helpers/checkout.php
ADDED
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
add_filter( 'wpsc_get_gateway_list', '_wpsc_filter_merchant_v2_get_gateway_list' );
|
4 |
+
|
5 |
+
function _wpsc_filter_merchant_v2_get_gateway_list() {
|
6 |
+
ob_start();
|
7 |
+
while (wpsc_have_gateways()) : wpsc_the_gateway(); ?>
|
8 |
+
<div class="custom_gateway">
|
9 |
+
<label><input type="radio" value="<?php echo wpsc_gateway_internal_name();?>" <?php echo wpsc_gateway_is_checked(); ?> name="custom_gateway" class="custom_gateway"/><?php echo wpsc_gateway_name(); ?>
|
10 |
+
<?php if( wpsc_show_gateway_image() ): ?>
|
11 |
+
<img src="<?php echo wpsc_gateway_image_url(); ?>" alt="<?php echo wpsc_gateway_name(); ?>" style="position:relative; top:5px;" />
|
12 |
+
<?php endif; ?>
|
13 |
+
</label>
|
14 |
+
|
15 |
+
<?php if(wpsc_gateway_form_fields()): ?>
|
16 |
+
<table class='wpsc_checkout_table <?php echo wpsc_gateway_form_field_style();?>'>
|
17 |
+
<?php echo wpsc_gateway_form_fields();?>
|
18 |
+
</table>
|
19 |
+
<?php endif; ?>
|
20 |
+
</div>
|
21 |
+
<?php endwhile;
|
22 |
+
return ob_get_clean();
|
23 |
+
}
|
24 |
+
|
25 |
+
add_filter( 'wpsc_gateway_count', '_wpsc_filter_merchant_v2_gateway_count' );
|
26 |
+
|
27 |
+
function _wpsc_filter_merchant_v2_gateway_count( $count ) {
|
28 |
+
global $wpsc_gateway;
|
29 |
+
$count += $wpsc_gateway->gateway_count;
|
30 |
+
return $count;
|
31 |
+
}
|
32 |
+
|
33 |
+
add_filter(
|
34 |
+
'wpsc_gateway_hidden_field_value',
|
35 |
+
'_wpsc_filter_merchant_v2_gateway_hidden_field_value'
|
36 |
+
);
|
37 |
+
|
38 |
+
function _wpsc_filter_merchant_v2_gateway_hidden_field_value( $value ) {
|
39 |
+
global $wpsc_gateway;
|
40 |
+
if ( wpsc_have_gateways() ) {
|
41 |
+
wpsc_the_gateway();
|
42 |
+
$value = $wpsc_gateway->gateway['internalname'];
|
43 |
+
}
|
44 |
+
$wpsc_gateway->rewind_gateways();
|
45 |
+
|
46 |
+
return $value;
|
47 |
+
}
|
48 |
+
|
49 |
+
add_action(
|
50 |
+
'wpsc_after_gateway_hidden_field',
|
51 |
+
'_wpsc_filter_merchant_v2_after_gateway_hidden_field'
|
52 |
+
);
|
53 |
+
|
54 |
+
function _wpsc_filter_merchant_v2_after_gateway_hidden_field() {
|
55 |
+
if ( wpsc_have_gateways() ) {
|
56 |
+
wpsc_the_gateway();
|
57 |
+
if ( wpsc_gateway_form_fields() ) : ?>
|
58 |
+
<table class='wpsc_checkout_table <?php echo wpsc_gateway_form_field_style();?>'>
|
59 |
+
<?php echo wpsc_gateway_form_fields(); ?>
|
60 |
+
</table>
|
61 |
+
<?php endif;
|
62 |
+
}
|
63 |
+
}
|
64 |
+
|
65 |
+
add_action(
|
66 |
+
'wpsc_submit_checkout_gateway',
|
67 |
+
'_wpsc_action_merchant_v2_submit_checkout',
|
68 |
+
10,
|
69 |
+
2
|
70 |
+
);
|
71 |
+
|
72 |
+
function _wpsc_action_merchant_v2_submit_checkout( $gateway, $purchase_log ) {
|
73 |
+
global $wpsc_gateways;
|
74 |
+
|
75 |
+
if ( empty( $wpsc_gateways[$gateway] ) )
|
76 |
+
return;
|
77 |
+
|
78 |
+
// submit to gateway
|
79 |
+
$current_gateway_data = &$wpsc_gateways[$gateway];
|
80 |
+
if ( isset( $current_gateway_data['api_version'] ) && $current_gateway_data['api_version'] >= 2.0 ) {
|
81 |
+
$merchant_instance = new $current_gateway_data['class_name']( $purchase_log->get( 'id' ) );
|
82 |
+
$merchant_instance->construct_value_array();
|
83 |
+
do_action_ref_array( 'wpsc_pre_submit_gateway', array( &$merchant_instance ) );
|
84 |
+
$merchant_instance->submit();
|
85 |
+
} elseif ( ($current_gateway_data['internalname'] == $gateway) && ($current_gateway_data['internalname'] != 'google') ) {
|
86 |
+
if ( get_option( 'permalink_structure' ) != '' )
|
87 |
+
$separator = "?";
|
88 |
+
else
|
89 |
+
$separator = "&";
|
90 |
+
$gateway_used = $current_gateway_data['internalname'];
|
91 |
+
$purchase_log->set( 'gateway', $gateway_used );
|
92 |
+
$purchase_log->save();
|
93 |
+
$current_gateway_data['function']( $separator, $purchase_log->get( 'sessionid' ) );
|
94 |
+
} elseif ( ($current_gateway_data['internalname'] == 'google') && ($current_gateway_data['internalname'] == $submitted_gateway) ) {
|
95 |
+
$gateway_used = $current_gateway_data['internalname'];
|
96 |
+
$purchase_log->set( 'gateway', $gateway_used );
|
97 |
+
wpsc_update_customer_meta( 'google_checkout', 'google' );
|
98 |
+
wp_redirect(get_option( 'shopping_cart_url' ));
|
99 |
+
exit;
|
100 |
+
}
|
101 |
+
}
|
wpsc-components/merchant-core-v2/helpers/gateways.php
ADDED
@@ -0,0 +1,179 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* The WPSC Gateway functions
|
5 |
+
*/
|
6 |
+
|
7 |
+
function wpsc_have_gateways() {
|
8 |
+
global $wpsc_gateway;
|
9 |
+
return $wpsc_gateway->have_gateways();
|
10 |
+
}
|
11 |
+
|
12 |
+
function wpsc_the_gateway() {
|
13 |
+
global $wpsc_gateway;
|
14 |
+
return $wpsc_gateway->the_gateway();
|
15 |
+
}
|
16 |
+
|
17 |
+
//return true only when gateway has image set
|
18 |
+
function wpsc_show_gateway_image(){
|
19 |
+
global $wpsc_gateway;
|
20 |
+
if( isset($wpsc_gateway->gateway['image']) && !empty($wpsc_gateway->gateway['image']) )
|
21 |
+
return true;
|
22 |
+
else
|
23 |
+
return false;
|
24 |
+
}
|
25 |
+
|
26 |
+
|
27 |
+
//return gateway image url (string) or false if none.
|
28 |
+
function wpsc_gateway_image_url(){
|
29 |
+
global $wpsc_gateway;
|
30 |
+
if( wpsc_show_gateway_image() )
|
31 |
+
return $wpsc_gateway->gateway['image'];
|
32 |
+
else
|
33 |
+
return false;
|
34 |
+
}
|
35 |
+
|
36 |
+
function wpsc_gateway_name() {
|
37 |
+
global $wpsc_gateway;
|
38 |
+
$display_name = '';
|
39 |
+
|
40 |
+
$payment_gateway_names = get_option( 'payment_gateway_names' );
|
41 |
+
|
42 |
+
if ( isset( $payment_gateway_names[$wpsc_gateway->gateway['internalname']] ) && ( $payment_gateway_names[$wpsc_gateway->gateway['internalname']] != '' || wpsc_show_gateway_image() ) ) {
|
43 |
+
$display_name = $payment_gateway_names[$wpsc_gateway->gateway['internalname']];
|
44 |
+
} elseif ( isset( $wpsc_gateway->gateway['payment_type'] ) ) {
|
45 |
+
switch ( $wpsc_gateway->gateway['payment_type'] ) {
|
46 |
+
case "paypal":
|
47 |
+
case "paypal_pro":
|
48 |
+
case "wpsc_merchant_paypal_pro";
|
49 |
+
$display_name = __( 'PayPal', 'wpsc' );
|
50 |
+
break;
|
51 |
+
|
52 |
+
case "manual_payment":
|
53 |
+
$display_name = __( 'Manual Payment', 'wpsc' );
|
54 |
+
break;
|
55 |
+
|
56 |
+
case "google_checkout":
|
57 |
+
$display_name = __( 'Google Wallet', 'wpsc' );
|
58 |
+
break;
|
59 |
+
|
60 |
+
case "credit_card":
|
61 |
+
default:
|
62 |
+
$display_name = __( 'Credit Card', 'wpsc' );
|
63 |
+
break;
|
64 |
+
}
|
65 |
+
}
|
66 |
+
if ( $display_name == '' && !wpsc_show_gateway_image() ) {
|
67 |
+
$display_name = __( 'Credit Card', 'wpsc' );
|
68 |
+
}
|
69 |
+
return $display_name;
|
70 |
+
}
|
71 |
+
|
72 |
+
function wpsc_gateway_internal_name() {
|
73 |
+
global $wpsc_gateway;
|
74 |
+
return $wpsc_gateway->gateway['internalname'];
|
75 |
+
}
|
76 |
+
|
77 |
+
function wpsc_gateway_is_checked() {
|
78 |
+
global $wpsc_gateway;
|
79 |
+
$is_checked = false;
|
80 |
+
$selected_gateway = wpsc_get_customer_meta( 'selected_gateway' );
|
81 |
+
|
82 |
+
if ( $selected_gateway ) {
|
83 |
+
if ( $wpsc_gateway->gateway['internalname'] == $selected_gateway ) {
|
84 |
+
$is_checked = true;
|
85 |
+
}
|
86 |
+
} else {
|
87 |
+
if ( $wpsc_gateway->current_gateway == 0 ) {
|
88 |
+
$is_checked = true;
|
89 |
+
}
|
90 |
+
}
|
91 |
+
if ( $is_checked == true ) {
|
92 |
+
$output = 'checked="checked"';
|
93 |
+
} else {
|
94 |
+
$output = '';
|
95 |
+
}
|
96 |
+
return $output;
|
97 |
+
}
|
98 |
+
|
99 |
+
function wpsc_gateway_form_fields() {
|
100 |
+
global $wpsc_gateway, $gateway_checkout_form_fields, $wpsc_gateway_error_messages;
|
101 |
+
|
102 |
+
$messages = is_array( $wpsc_gateway_error_messages ) ? $wpsc_gateway_error_messages : array();
|
103 |
+
|
104 |
+
$error = array(
|
105 |
+
'card_number' => empty( $messages['card_number'] ) ? '' : $messages['card_number'],
|
106 |
+
'expdate' => empty( $messages['expdate'] ) ? '' : $messages['expdate'],
|
107 |
+
'card_code' => empty( $messages['card_code'] ) ? '' : $messages['card_code'],
|
108 |
+
'cctype' => empty( $messages['cctype'] ) ? '' : $messages['cctype'],
|
109 |
+
);
|
110 |
+
|
111 |
+
// Match fields to gateway
|
112 |
+
switch ( $wpsc_gateway->gateway['internalname'] ) {
|
113 |
+
|
114 |
+
case 'paypal_pro' : // legacy
|
115 |
+
case 'wpsc_merchant_paypal_pro' :
|
116 |
+
$output = sprintf( $gateway_checkout_form_fields[$wpsc_gateway->gateway['internalname']], wpsc_the_checkout_CC_validation_class(), $error['card_number'],
|
117 |
+
wpsc_the_checkout_CCexpiry_validation_class(), $error['expdate'],
|
118 |
+
wpsc_the_checkout_CCcvv_validation_class(), $error['card_code'],
|
119 |
+
wpsc_the_checkout_CCtype_validation_class(), $error['cctype']
|
120 |
+
);
|
121 |
+
break;
|
122 |
+
|
123 |
+
case 'authorize' :
|
124 |
+
case 'paypal_payflow' :
|
125 |
+
$output = @sprintf( $gateway_checkout_form_fields[$wpsc_gateway->gateway['internalname']], wpsc_the_checkout_CC_validation_class(), $error['card_number'],
|
126 |
+
wpsc_the_checkout_CCexpiry_validation_class(), $error['expdate'],
|
127 |
+
wpsc_the_checkout_CCcvv_validation_class(), $error['card_code']
|
128 |
+
);
|
129 |
+
break;
|
130 |
+
|
131 |
+
case 'eway' :
|
132 |
+
case 'bluepay' :
|
133 |
+
$output = sprintf( $gateway_checkout_form_fields[$wpsc_gateway->gateway['internalname']], wpsc_the_checkout_CC_validation_class(), $error['card_number'],
|
134 |
+
wpsc_the_checkout_CCexpiry_validation_class(), $error['expdate']
|
135 |
+
);
|
136 |
+
break;
|
137 |
+
case 'linkpoint' :
|
138 |
+
$output = sprintf( $gateway_checkout_form_fields[$wpsc_gateway->gateway['internalname']], wpsc_the_checkout_CC_validation_class(), $error['card_number'],
|
139 |
+
wpsc_the_checkout_CCexpiry_validation_class(), $error['expdate']
|
140 |
+
);
|
141 |
+
break;
|
142 |
+
|
143 |
+
}
|
144 |
+
|
145 |
+
if ( isset( $output ) && !empty( $output ) )
|
146 |
+
return $output;
|
147 |
+
elseif ( isset( $gateway_checkout_form_fields[$wpsc_gateway->gateway['internalname']] ) )
|
148 |
+
return $gateway_checkout_form_fields[$wpsc_gateway->gateway['internalname']];
|
149 |
+
}
|
150 |
+
|
151 |
+
function wpsc_gateway_form_field_style() {
|
152 |
+
global $wpsc_gateway;
|
153 |
+
$is_checked = false;
|
154 |
+
$selected_gateway = wpsc_get_customer_meta( 'selected_gateway' );
|
155 |
+
if ( $selected_gateway ) {
|
156 |
+
if ( $wpsc_gateway->gateway['internalname'] == $selected_gateway ) {
|
157 |
+
$is_checked = true;
|
158 |
+
}
|
159 |
+
} else {
|
160 |
+
if ( $wpsc_gateway->current_gateway == 0 ) {
|
161 |
+
$is_checked = true;
|
162 |
+
}
|
163 |
+
}
|
164 |
+
if ( $is_checked == true ) {
|
165 |
+
$output = 'checkout_forms';
|
166 |
+
} else {
|
167 |
+
$output = 'checkout_forms_hidden';
|
168 |
+
}
|
169 |
+
return $output;
|
170 |
+
}
|
171 |
+
|
172 |
+
add_action(
|
173 |
+
'wpsc_before_shopping_cart_page',
|
174 |
+
'_wpsc_merchant_v2_before_shopping_cart'
|
175 |
+
);
|
176 |
+
|
177 |
+
function _wpsc_merchant_v2_before_shopping_cart() {
|
178 |
+
$GLOBALS['wpsc_gateway'] = new wpsc_gateways();
|
179 |
+
}
|
wpsc-components/merchant-core-v2/merchant-core-v2.php
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
define( 'WPSC_MERCHANT_V2_PATH', dirname( __FILE__ ) );
|
4 |
+
|
5 |
+
add_action( 'wpsc_includes', '_wpsc_action_merchant_v2_includes' );
|
6 |
+
|
7 |
+
function _wpsc_action_merchant_v2_includes() {
|
8 |
+
if ( is_admin() )
|
9 |
+
require_once( WPSC_MERCHANT_V2_PATH . '/helpers/admin.php' );
|
10 |
+
|
11 |
+
require_once( WPSC_MERCHANT_V2_PATH . '/classes/wpsc-gateways.php' );
|
12 |
+
require_once( WPSC_MERCHANT_V2_PATH . '/helpers/checkout.php' );
|
13 |
+
require_once( WPSC_MERCHANT_V2_PATH . '/helpers/gateways.php' );
|
14 |
+
}
|
wpsc-core/images/border.png
CHANGED
File without changes
|
wpsc-core/images/controls.png
CHANGED
File without changes
|
wpsc-core/images/credit_cards.png
CHANGED
File without changes
|
wpsc-core/images/drag.png
CHANGED
File without changes
|
wpsc-core/images/icon32.png
CHANGED
File without changes
|
wpsc-core/images/loading_background.png
CHANGED
File without changes
|
wpsc-core/images/menu-bits.gif
CHANGED
File without changes
|
wpsc-core/images/mobile.png
CHANGED
File without changes
|
wpsc-core/images/overlay.png
CHANGED
File without changes
|
wpsc-core/images/social_networking/facebook.png
CHANGED
File without changes
|
wpsc-core/images/toolbar.png
CHANGED
File without changes
|
wpsc-core/js/jquery.infieldlabel.min.js
CHANGED
File without changes
|
wpsc-core/js/tinymce3/credit_cards.png
CHANGED
File without changes
|
wpsc-core/js/tinymce3/productspage.jpg
CHANGED
File without changes
|
wpsc-core/js/wpsc_colorbox.css
CHANGED
File without changes
|
wpsc-core/wpsc-constants.php
CHANGED
@@ -30,9 +30,9 @@ function wpsc_core_constants() {
|
|
30 |
if(!defined('WPSC_URL'))
|
31 |
define( 'WPSC_URL', plugins_url( '', __FILE__ ) );
|
32 |
// Define Plugin version
|
33 |
-
define( 'WPSC_VERSION', '3.8.
|
34 |
-
define( 'WPSC_MINOR_VERSION', '
|
35 |
-
define( 'WPSC_PRESENTABLE_VERSION', '3.8.
|
36 |
define( 'WPSC_DB_VERSION', 3 );
|
37 |
|
38 |
// Define Debug Variables for developers
|
@@ -128,7 +128,7 @@ function wpsc_core_constants_table_names() {
|
|
128 |
define( 'WPSC_TABLE_PURCHASE_LOGS', "{$wp_table_prefix}wpsc_purchase_logs" );
|
129 |
define( 'WPSC_TABLE_CART_CONTENTS', "{$wp_table_prefix}wpsc_cart_contents" );
|
130 |
define( 'WPSC_TABLE_SUBMITED_FORM_DATA', "{$wp_table_prefix}wpsc_submited_form_data" );
|
131 |
-
define( 'WPSC_TABLE_SUBMITTED_FORM_DATA',
|
132 |
define( 'WPSC_TABLE_CURRENCY_LIST', "{$wp_table_prefix}wpsc_currency_list" );
|
133 |
|
134 |
// These tables may be needed in some situations, but are not vital to
|
30 |
if(!defined('WPSC_URL'))
|
31 |
define( 'WPSC_URL', plugins_url( '', __FILE__ ) );
|
32 |
// Define Plugin version
|
33 |
+
define( 'WPSC_VERSION', '3.8.10-beta' );
|
34 |
+
define( 'WPSC_MINOR_VERSION', '21170b4' );
|
35 |
+
define( 'WPSC_PRESENTABLE_VERSION', '3.8.10-beta' );
|
36 |
define( 'WPSC_DB_VERSION', 3 );
|
37 |
|
38 |
// Define Debug Variables for developers
|
128 |
define( 'WPSC_TABLE_PURCHASE_LOGS', "{$wp_table_prefix}wpsc_purchase_logs" );
|
129 |
define( 'WPSC_TABLE_CART_CONTENTS', "{$wp_table_prefix}wpsc_cart_contents" );
|
130 |
define( 'WPSC_TABLE_SUBMITED_FORM_DATA', "{$wp_table_prefix}wpsc_submited_form_data" );
|
131 |
+
define( 'WPSC_TABLE_SUBMITTED_FORM_DATA', "{$wp_table_prefix}wpsc_submited_form_data" );
|
132 |
define( 'WPSC_TABLE_CURRENCY_LIST', "{$wp_table_prefix}wpsc_currency_list" );
|
133 |
|
134 |
// These tables may be needed in some situations, but are not vital to
|
wpsc-core/wpsc-deprecated.php
CHANGED
@@ -5,10 +5,10 @@
|
|
5 |
* Deprecated function for checking whether a cart item has a custom message or not
|
6 |
*
|
7 |
* @return false
|
8 |
-
* @todo Actually correctly deprecate this
|
9 |
*/
|
10 |
|
11 |
function wpsc_cart_item_custom_message(){
|
|
|
12 |
return false;
|
13 |
}
|
14 |
|
@@ -19,9 +19,10 @@ function wpsc_cart_item_custom_message(){
|
|
19 |
*
|
20 |
* @global array $nzshpcrt_gateways
|
21 |
* @return array
|
22 |
-
* @todo Actually correctly deprecate this
|
23 |
*/
|
24 |
function nzshpcrt_get_gateways() {
|
|
|
|
|
25 |
global $nzshpcrt_gateways;
|
26 |
|
27 |
if ( !is_array( $nzshpcrt_gateways ) )
|
@@ -38,11 +39,10 @@ function nzshpcrt_get_gateways() {
|
|
38 |
*
|
39 |
*/
|
40 |
function wpsc_merchants_modules_deprecated($nzshpcrt_gateways){
|
41 |
-
|
42 |
$nzshpcrt_gateways = apply_filters( 'wpsc_gateway_modules', $nzshpcrt_gateways );
|
43 |
return $nzshpcrt_gateways;
|
44 |
}
|
45 |
-
add_filter('wpsc_merchants_modules','wpsc_merchants_modules_deprecated',1);
|
46 |
|
47 |
/**
|
48 |
* nzshpcrt_price_range()
|
@@ -54,12 +54,13 @@ add_filter('wpsc_merchants_modules','wpsc_merchants_modules_deprecated',1);
|
|
54 |
* @param $args (array) Arguments.
|
55 |
*/
|
56 |
function nzshpcrt_price_range($args){
|
|
|
57 |
wpsc_price_range($args);
|
58 |
}
|
59 |
|
60 |
// preserved for backwards compatibility
|
61 |
function nzshpcrt_shopping_basket( $input = null, $override_state = null ) {
|
62 |
-
|
63 |
return wpsc_shopping_cart( $input, $override_state );
|
64 |
}
|
65 |
|
@@ -70,7 +71,7 @@ function nzshpcrt_shopping_basket( $input = null, $override_state = null ) {
|
|
70 |
*
|
71 |
*/
|
72 |
function show_cats_brands($category_group = null , $display_method = null, $order_by = 'name', $image = null) {
|
73 |
-
|
74 |
}
|
75 |
/**
|
76 |
* Filter: wpsc-purchlogitem-links-start
|
@@ -81,12 +82,13 @@ function show_cats_brands($category_group = null , $display_method = null, $orde
|
|
81 |
* @since 3.7.6rc2
|
82 |
*/
|
83 |
function wpsc_purchlogitem_links_start_deprecated() {
|
|
|
84 |
do_action( 'wpsc-purchlogitem-links-start' );
|
85 |
}
|
86 |
-
add_action( 'wpsc_purchlogitem_links_start', 'wpsc_purchlogitem_links_start_deprecated' );
|
87 |
|
88 |
|
89 |
function nzshpcrt_donations($args){
|
|
|
90 |
wpsc_donations($args);
|
91 |
}
|
92 |
|
@@ -108,7 +110,7 @@ function nzshpcrt_donations($args){
|
|
108 |
* 5. Function now expects two arrays as per the standard Widget API.
|
109 |
*/
|
110 |
function nzshpcrt_latest_product( $args = null, $instance ) {
|
111 |
-
|
112 |
echo wpsc_latest_product( $args, $instance );
|
113 |
}
|
114 |
|
@@ -125,7 +127,8 @@ function nzshpcrt_latest_product( $args = null, $instance ) {
|
|
125 |
* @return void
|
126 |
*/
|
127 |
function nzshpcrt_currency_display($price_in, $tax_status, $nohtml = false, $id = false, $no_dollar_sign = false) {
|
128 |
-
|
|
|
129 |
$output = wpsc_currency_display($price_in, array(
|
130 |
'display_currency_symbol' => !(bool)$no_dollar_sign,
|
131 |
'display_as_html' => ! (bool)$nohtml,
|
@@ -135,8 +138,16 @@ function nzshpcrt_currency_display($price_in, $tax_status, $nohtml = false, $id
|
|
135 |
return $output;
|
136 |
}
|
137 |
|
138 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
139 |
function wpsc_include_language_constants(){
|
|
|
|
|
140 |
if(!defined('TXT_WPSC_ABOUT_THIS_PAGE'))
|
141 |
include_once(WPSC_FILE_PATH.'/wpsc-languages/EN_en.php');
|
142 |
}
|
@@ -144,6 +155,7 @@ add_action('init','wpsc_include_language_constants');
|
|
144 |
|
145 |
if(!function_exists('wpsc_has_noca_message')){
|
146 |
function wpsc_has_noca_message(){
|
|
|
147 |
if(isset($_SESSION['nocamsg']) && isset($_GET['noca']) && $_GET['noca'] == 'confirm')
|
148 |
return true;
|
149 |
else
|
@@ -153,6 +165,7 @@ if(!function_exists('wpsc_has_noca_message')){
|
|
153 |
|
154 |
if(!function_exists('wpsc_is_noca_gateway')){
|
155 |
function wpsc_is_noca_gateway(){
|
|
|
156 |
if(count($wpsc_gateway->wpsc_gateways) == 1 && $wpsc_gateway->wpsc_gateways[0]['name'] == 'Noca')
|
157 |
return true;
|
158 |
else
|
@@ -160,20 +173,12 @@ if(!function_exists('wpsc_is_noca_gateway')){
|
|
160 |
}
|
161 |
}
|
162 |
|
163 |
-
|
164 |
-
/**
|
165 |
-
* wpsc pagination
|
166 |
-
* It is intended to move some of this functionality to a paging class
|
167 |
-
* so that paging functionality can easily be created for multiple uses.
|
168 |
-
*/
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
/**
|
173 |
* wpsc current_page
|
174 |
* @return (int) The current page number
|
175 |
*/
|
176 |
function wpsc_current_page() {
|
|
|
177 |
|
178 |
global $wpsc_query;
|
179 |
|
@@ -194,6 +199,7 @@ function wpsc_current_page() {
|
|
194 |
* @return (string) Number of products showing
|
195 |
*/
|
196 |
function wpsc_showing_products() {
|
|
|
197 |
|
198 |
global $wpsc_query;
|
199 |
|
@@ -218,6 +224,7 @@ function wpsc_showing_products() {
|
|
218 |
* @return (string) Number of pages showing.
|
219 |
*/
|
220 |
function wpsc_showing_products_page() {
|
|
|
221 |
|
222 |
global $wpsc_query;
|
223 |
|
@@ -229,6 +236,40 @@ function wpsc_showing_products_page() {
|
|
229 |
}
|
230 |
|
231 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
232 |
|
233 |
/**
|
234 |
* wpsc product search url
|
@@ -237,7 +278,7 @@ function wpsc_showing_products_page() {
|
|
237 |
* @return (string) URL.
|
238 |
*/
|
239 |
function wpsc_product_search_url( $url ) {
|
240 |
-
|
241 |
if ( isset( $_GET['product_search'] ) ) {
|
242 |
if ( strrpos( $url, '?') ) {
|
243 |
$url .= '&product_search=' . $_GET['product_search'];
|
@@ -257,8 +298,7 @@ function wpsc_product_search_url( $url ) {
|
|
257 |
* @return (string) URL for the adjacent products page link.
|
258 |
*/
|
259 |
function wpsc_adjacent_products_url( $n ) {
|
260 |
-
|
261 |
-
_deprecated_function( __FUNCTION__, '3.8', 'wpsc_pagination');
|
262 |
return false;
|
263 |
|
264 |
}
|
@@ -271,10 +311,8 @@ function wpsc_adjacent_products_url( $n ) {
|
|
271 |
* @return (string) Next page link or text.
|
272 |
*/
|
273 |
function wpsc_next_products_link( $text = 'Next', $show_disabled = false ) {
|
274 |
-
|
275 |
-
_deprecated_function( __FUNCTION__, '3.8', 'wpsc_pagination');
|
276 |
return false;
|
277 |
-
|
278 |
}
|
279 |
|
280 |
/**
|
@@ -285,10 +323,8 @@ function wpsc_next_products_link( $text = 'Next', $show_disabled = false ) {
|
|
285 |
* @return (string) Previous page link or text.
|
286 |
*/
|
287 |
function wpsc_previous_products_link( $text = 'Previous', $show_disabled = false ) {
|
288 |
-
|
289 |
-
_deprecated_function( __FUNCTION__, '3.8', 'wpsc_pagination');
|
290 |
return false;;
|
291 |
-
|
292 |
}
|
293 |
|
294 |
/**
|
@@ -299,10 +335,8 @@ function wpsc_previous_products_link( $text = 'Previous', $show_disabled = false
|
|
299 |
* @return (string) First page link or text.
|
300 |
*/
|
301 |
function wpsc_first_products_link( $text = 'First', $show_disabled = false ) {
|
302 |
-
|
303 |
-
_deprecated_function( __FUNCTION__, '3.8', 'wpsc_pagination');
|
304 |
return false;
|
305 |
-
|
306 |
}
|
307 |
|
308 |
/**
|
@@ -313,8 +347,7 @@ function wpsc_first_products_link( $text = 'First', $show_disabled = false ) {
|
|
313 |
* @return (string) Last page link or text.
|
314 |
*/
|
315 |
function wpsc_last_products_link( $text = 'Last', $show_disabled = false ) {
|
316 |
-
|
317 |
-
_deprecated_function( __FUNCTION__, '3.8', 'wpsc_pagination');
|
318 |
return false;
|
319 |
|
320 |
}
|
@@ -325,7 +358,7 @@ function wpsc_last_products_link( $text = 'Last', $show_disabled = false ) {
|
|
325 |
* @return nothing
|
326 |
*/
|
327 |
function wpsc_save_variation_set() {
|
328 |
-
|
329 |
return false;
|
330 |
}
|
331 |
|
@@ -334,7 +367,7 @@ function wpsc_save_variation_set() {
|
|
334 |
* @return boolean - true while we have pages to loop through
|
335 |
*/
|
336 |
function wpsc_have_pages() {
|
337 |
-
|
338 |
return false;
|
339 |
}
|
340 |
|
@@ -343,7 +376,7 @@ function wpsc_have_pages() {
|
|
343 |
* @return nothing - iterate through the pages
|
344 |
*/
|
345 |
function wpsc_the_page() {
|
346 |
-
|
347 |
return false;
|
348 |
}
|
349 |
|
@@ -352,59 +385,59 @@ function wpsc_the_page() {
|
|
352 |
* @return integer - the page number
|
353 |
*/
|
354 |
function wpsc_page_number() {
|
355 |
-
|
356 |
return false;
|
357 |
}
|
358 |
|
359 |
function wpsc_ordersummary() {
|
360 |
-
|
361 |
return false;
|
362 |
}
|
363 |
|
364 |
function display_ecomm_rss_feed() {
|
365 |
-
|
366 |
return false;
|
367 |
}
|
368 |
|
369 |
function display_ecomm_admin_menu() {
|
370 |
-
|
371 |
return false;
|
372 |
}
|
373 |
|
374 |
// displays error messages if the category setup is odd in some way
|
375 |
// needs to be in a function because there are at least three places where this code must be used.
|
376 |
function wpsc_odd_category_setup() {
|
377 |
-
|
378 |
return false;
|
379 |
}
|
380 |
|
381 |
function wpsc_product_image_html( $image_name, $product_id ) {
|
382 |
-
|
383 |
return false;
|
384 |
}
|
385 |
|
386 |
function wpsc_delete_currency_layer() {
|
387 |
-
|
388 |
return false;
|
389 |
}
|
390 |
|
391 |
function wpsc_akst_send_mail() {
|
392 |
-
|
393 |
return false;
|
394 |
}
|
395 |
|
396 |
function wpsc_akst_hide_pop() {
|
397 |
-
|
398 |
return false;
|
399 |
}
|
400 |
|
401 |
function wpsc_akst_page() {
|
402 |
-
|
403 |
return false;
|
404 |
}
|
405 |
|
406 |
function wpsc_akst_share_link($action = 'print') {
|
407 |
-
|
408 |
if($action == 'print')
|
409 |
echo '<div class="st_sharethis" displayText="ShareThis"></div>';
|
410 |
else
|
@@ -413,12 +446,12 @@ function wpsc_akst_share_link($action = 'print') {
|
|
413 |
}
|
414 |
|
415 |
function wpsc_akst_share_form() {
|
416 |
-
|
417 |
return false;
|
418 |
}
|
419 |
|
420 |
function wpsc_has_shipping_form() {
|
421 |
-
|
422 |
return false;
|
423 |
}
|
424 |
|
@@ -431,8 +464,10 @@ function wpsc_has_shipping_form() {
|
|
431 |
*/
|
432 |
|
433 |
function wpsc_is_admin() {
|
434 |
-
|
435 |
-
global $pagenow
|
|
|
|
|
436 |
|
437 |
if( 'post.php' == $pagenow && 'wpsc-product' == $current_screen->post_type ) return true;
|
438 |
|
@@ -447,7 +482,7 @@ function wpsc_is_admin() {
|
|
447 |
* @return void
|
448 |
*/
|
449 |
function wpsc_print_product_list() {
|
450 |
-
|
451 |
}
|
452 |
|
453 |
/**
|
@@ -457,7 +492,7 @@ function wpsc_print_product_list() {
|
|
457 |
* @return int
|
458 |
*/
|
459 |
function wpsc_total_product_count() {
|
460 |
-
|
461 |
return wpsc_product_count();
|
462 |
}
|
463 |
|
@@ -467,18 +502,17 @@ function wpsc_total_product_count() {
|
|
467 |
* the results might not be what you expect.
|
468 |
*
|
469 |
*/
|
470 |
-
class WPSC_Query extends WP_Query
|
471 |
-
{
|
472 |
function WPSC_Query( $query = '' ) {
|
|
|
473 |
$query = wp_parse_args( $query );
|
474 |
$query['post_type'] = 'wpsc-product';
|
475 |
-
_deprecated_function( __FUNCTION__, '3.8', 'WP_Query class' );
|
476 |
parent::WP_Query( $query );
|
477 |
}
|
478 |
}
|
479 |
|
480 |
function wpec_get_the_post_id_by_shortcode( $shortcode ) {
|
481 |
-
|
482 |
return wpsc_get_the_post_id_by_shortcode( $shortcode );
|
483 |
}
|
484 |
|
@@ -492,6 +526,7 @@ function wpec_get_the_post_id_by_shortcode( $shortcode ) {
|
|
492 |
* @returns nothing
|
493 |
*/
|
494 |
function wpsc_update_permalinks( $return = '' ) {
|
|
|
495 |
_wpsc_action_permalink_structure_changed();
|
496 |
}
|
497 |
|
@@ -499,6 +534,7 @@ function wpsc_update_permalinks( $return = '' ) {
|
|
499 |
* @deprecated Use _wpsc_display_permalink_refresh_notice() instead;
|
500 |
*/
|
501 |
function wpsc_check_permalink_notice() {
|
|
|
502 |
_wpsc_display_permalink_refresh_notice();
|
503 |
}
|
504 |
|
@@ -506,6 +542,7 @@ function wpsc_check_permalink_notice() {
|
|
506 |
* @deprecated since 3.8.8. Not used in core any more.
|
507 |
*/
|
508 |
function wpsc_display_tracking_id(){
|
|
|
509 |
$value = wpsc_trackingid_value();
|
510 |
if(!empty($value))
|
511 |
return $value;
|
@@ -517,6 +554,7 @@ function wpsc_display_tracking_id(){
|
|
517 |
* @deprecated since 3.8.8. Not used in core any more.
|
518 |
*/
|
519 |
function wpsc_the_purch_item_price() {
|
|
|
520 |
global $purchlogs;
|
521 |
if ( $purchlogs->purchitem->processed > 1 && $purchlogs->purchitem->processed != 6 ) {
|
522 |
$purchlogs->totalAmount += $purchlogs->purchitem->totalprice;
|
@@ -528,6 +566,7 @@ function wpsc_the_purch_item_price() {
|
|
528 |
* @deprecated since 3.8.8. Not used in core any more.
|
529 |
*/
|
530 |
function wpsc_the_purch_item_date() {
|
|
|
531 |
global $purchlogs;
|
532 |
return date( 'M d Y,g:i a', $purchlogs->purchitem->date );
|
533 |
}
|
@@ -536,6 +575,7 @@ function wpsc_the_purch_item_date() {
|
|
536 |
* @deprecated since 3.8.8. Not used in core any more.
|
537 |
*/
|
538 |
function wpsc_the_purch_item_name() {
|
|
|
539 |
global $purchlogs;
|
540 |
if ( wpsc_purchlogs_has_customfields( wpsc_the_purch_item_id() ) ) {
|
541 |
return $purchlogs->the_purch_item_name() . '<img src="' . WPSC_CORE_IMAGES_URL . '/info_icon.jpg" title="' . esc_attr__( 'This Purchase has custom user content', 'wpsc' ) . '" alt="' . esc_attr__( 'exclamation icon', 'wpsc' ) . '" />';
|
@@ -548,6 +588,7 @@ function wpsc_the_purch_item_name() {
|
|
548 |
* @deprecated since 3.8.8. Not used in core any more.
|
549 |
*/
|
550 |
function wpsc_the_purch_item_id() {
|
|
|
551 |
global $purchlogs;
|
552 |
return $purchlogs->purchitem->id;
|
553 |
}
|
@@ -556,6 +597,7 @@ function wpsc_the_purch_item_id() {
|
|
556 |
* @deprecated since 3.8.8. Not used in core any more.
|
557 |
*/
|
558 |
function wpsc_the_purch_item_details() {
|
|
|
559 |
global $purchlogs;
|
560 |
return $purchlogs->the_purch_item_details();
|
561 |
}
|
@@ -566,6 +608,7 @@ function wpsc_the_purch_item_details() {
|
|
566 |
* @deprecated since 3.8.8. Not used in core any more.
|
567 |
*/
|
568 |
function wpsc_have_purch_items_statuses() {
|
|
|
569 |
global $purchlogs;
|
570 |
return $purchlogs->have_purch_status();
|
571 |
}
|
@@ -574,8 +617,8 @@ function wpsc_have_purch_items_statuses() {
|
|
574 |
* @deprecated since 3.8.8. Not used in core any more.
|
575 |
*/
|
576 |
function wpsc_the_purch_status() {
|
|
|
577 |
global $purchlogs;
|
578 |
-
|
579 |
return $purchlogs->the_purch_status();
|
580 |
}
|
581 |
|
@@ -583,6 +626,7 @@ function wpsc_the_purch_status() {
|
|
583 |
* @deprecated since 3.8.8. Not used in core any more.
|
584 |
*/
|
585 |
function wpsc_purchlogs_is_google_checkout() {
|
|
|
586 |
global $purchlogs;
|
587 |
if ( $purchlogs->purchitem->gateway == 'google' ) {
|
588 |
return true;
|
@@ -595,6 +639,7 @@ function wpsc_purchlogs_is_google_checkout() {
|
|
595 |
* @deprecated since 3.8.8. Not used in core any more.
|
596 |
*/
|
597 |
function wpsc_the_purch_total() {
|
|
|
598 |
global $purchlogs;
|
599 |
return $purchlogs->totalAmount;
|
600 |
}
|
@@ -603,6 +648,7 @@ function wpsc_the_purch_total() {
|
|
603 |
* @deprecated since 3.8.8. Not used in core any more.
|
604 |
*/
|
605 |
function wpsc_the_purch_item() {
|
|
|
606 |
global $purchlogs;
|
607 |
if ( isset( $_SESSION['newlogs'] ) ) {
|
608 |
$purchlogs->allpurchaselogs = $_SESSION['newlogs'];
|
@@ -615,6 +661,7 @@ function wpsc_the_purch_item() {
|
|
615 |
* @deprecated since 3.8.8. Not used in core any more.
|
616 |
*/
|
617 |
function wpsc_the_purch_item_statuses() {
|
|
|
618 |
global $purchlogs;
|
619 |
return $purchlogs->the_purch_item_statuses();
|
620 |
}
|
@@ -623,6 +670,7 @@ function wpsc_the_purch_item_statuses() {
|
|
623 |
* @deprecated since 3.8.8. Not used in core any more.
|
624 |
*/
|
625 |
function wpsc_the_purch_item_status() {
|
|
|
626 |
global $purchlogs;
|
627 |
return $purchlogs->the_purch_item_status();
|
628 |
}
|
@@ -631,6 +679,7 @@ function wpsc_the_purch_item_status() {
|
|
631 |
* @deprecated since 3.8.8. Not used in core any more.
|
632 |
*/
|
633 |
function wpsc_the_purch_status_id() {
|
|
|
634 |
global $purchlogs;
|
635 |
return $purchlogs->purchstatus['order'];
|
636 |
}
|
@@ -639,6 +688,7 @@ function wpsc_the_purch_status_id() {
|
|
639 |
* @deprecated since 3.8.8. Not used in core any more.
|
640 |
*/
|
641 |
function wpsc_purchlog_filter_by() {
|
|
|
642 |
wpsc_change_purchlog_view( $_POST['view_purchlogs_by'], $_POST['view_purchlogs_by_status'] );
|
643 |
}
|
644 |
|
@@ -646,6 +696,7 @@ function wpsc_purchlog_filter_by() {
|
|
646 |
* @deprecated since 3.8.8. Not used in core any more.
|
647 |
*/
|
648 |
function wpsc_the_purch_status_name() {
|
|
|
649 |
global $purchlogs;
|
650 |
if ( isset( $purchlogs->purchstatus['label'] ) ) {
|
651 |
return $purchlogs->purchstatus['label'];
|
@@ -656,6 +707,7 @@ function wpsc_the_purch_status_name() {
|
|
656 |
* @deprecated since 3.8.8. Not used in core any more.
|
657 |
*/
|
658 |
function wpsc_purchlogs_getfirstdates() {
|
|
|
659 |
global $purchlogs;
|
660 |
$dates = $purchlogs->getdates();
|
661 |
$fDate = '';
|
@@ -675,6 +727,7 @@ function wpsc_purchlogs_getfirstdates() {
|
|
675 |
* @deprecated since 3.8.8. Not used in core any more.
|
676 |
*/
|
677 |
function wpsc_change_purchlog_view( $viewby, $status='' ) {
|
|
|
678 |
global $purchlogs;
|
679 |
if ( $viewby == 'all' ) {
|
680 |
$dates = $purchlogs->getdates();
|
@@ -706,6 +759,7 @@ function wpsc_change_purchlog_view( $viewby, $status='' ) {
|
|
706 |
* @deprecated since 3.8.8. Not used in core any more.
|
707 |
*/
|
708 |
function wpsc_search_purchlog_view( $search ) {
|
|
|
709 |
global $purchlogs;
|
710 |
$newlogs = $purchlogs->search_purchlog_view( $search );
|
711 |
$purchlogs->getDates();
|
@@ -717,6 +771,7 @@ function wpsc_search_purchlog_view( $search ) {
|
|
717 |
* @deprecated since 3.8.8. Not used in core any more.
|
718 |
*/
|
719 |
function wpsc_purchlog_is_checked_status() {
|
|
|
720 |
global $purchlogitem, $purchlogs;
|
721 |
|
722 |
if ( $purchlogs->purchstatus['order'] == $purchlogitem->extrainfo->processed ) {
|
@@ -732,6 +787,7 @@ function wpsc_purchlog_is_checked_status() {
|
|
732 |
* @return string output
|
733 |
*/
|
734 |
function country_list( $selected_country = null ) {
|
|
|
735 |
return _wpsc_country_dropdown_options( array( 'selected' => $selected_country ) );
|
736 |
}
|
737 |
|
@@ -741,6 +797,7 @@ function country_list( $selected_country = null ) {
|
|
741 |
* @return array Product tags
|
742 |
*/
|
743 |
function get_the_product_tags( $id = 0 ) {
|
|
|
744 |
return wpsc_get_the_product_tags( $id );
|
745 |
}
|
746 |
|
@@ -750,6 +807,7 @@ function get_the_product_tags( $id = 0 ) {
|
|
750 |
* @deprecated since 3.8.9
|
751 |
*/
|
752 |
function wpsc_admin_product_listing( $parent_product = null, $args = array() ) {
|
|
|
753 |
global $wp_query;
|
754 |
|
755 |
if ( empty( $args ) )
|
@@ -787,6 +845,7 @@ function wpsc_admin_product_listing( $parent_product = null, $args = array() ) {
|
|
787 |
* @param $product (Object), $parent_product (Int) Note: I believe parent_product is unused
|
788 |
*/
|
789 |
function wpsc_product_row(&$product, $parent_product = null) {
|
|
|
790 |
global $mode, $current_user, $wpsc_products;
|
791 |
|
792 |
//is this good practice? <v.bakaitis@gmail.com>
|
@@ -1137,9 +1196,127 @@ function wpsc_product_row(&$product, $parent_product = null) {
|
|
1137 |
* @return $post_status (array)
|
1138 |
*/
|
1139 |
function wpsc_trashed_post_status($post_status){
|
|
|
1140 |
$post = get_post(get_the_ID());
|
1141 |
if( !empty($post) && 'wpsc-product' == $post->post_type && 'trash' == $post->post_status && !in_array('trash', $post_status))
|
1142 |
$post_status[] = 'Trash';
|
1143 |
|
1144 |
return $post_status;
|
1145 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
* Deprecated function for checking whether a cart item has a custom message or not
|
6 |
*
|
7 |
* @return false
|
|
|
8 |
*/
|
9 |
|
10 |
function wpsc_cart_item_custom_message(){
|
11 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8' );
|
12 |
return false;
|
13 |
}
|
14 |
|
19 |
*
|
20 |
* @global array $nzshpcrt_gateways
|
21 |
* @return array
|
|
|
22 |
*/
|
23 |
function nzshpcrt_get_gateways() {
|
24 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8' );
|
25 |
+
|
26 |
global $nzshpcrt_gateways;
|
27 |
|
28 |
if ( !is_array( $nzshpcrt_gateways ) )
|
39 |
*
|
40 |
*/
|
41 |
function wpsc_merchants_modules_deprecated($nzshpcrt_gateways){
|
42 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8' );
|
43 |
$nzshpcrt_gateways = apply_filters( 'wpsc_gateway_modules', $nzshpcrt_gateways );
|
44 |
return $nzshpcrt_gateways;
|
45 |
}
|
|
|
46 |
|
47 |
/**
|
48 |
* nzshpcrt_price_range()
|
54 |
* @param $args (array) Arguments.
|
55 |
*/
|
56 |
function nzshpcrt_price_range($args){
|
57 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8' );
|
58 |
wpsc_price_range($args);
|
59 |
}
|
60 |
|
61 |
// preserved for backwards compatibility
|
62 |
function nzshpcrt_shopping_basket( $input = null, $override_state = null ) {
|
63 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8', 'wpsc_shopping_cart');
|
64 |
return wpsc_shopping_cart( $input, $override_state );
|
65 |
}
|
66 |
|
71 |
*
|
72 |
*/
|
73 |
function show_cats_brands($category_group = null , $display_method = null, $order_by = 'name', $image = null) {
|
74 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8', 'wpsc_shopping_cart');
|
75 |
}
|
76 |
/**
|
77 |
* Filter: wpsc-purchlogitem-links-start
|
82 |
* @since 3.7.6rc2
|
83 |
*/
|
84 |
function wpsc_purchlogitem_links_start_deprecated() {
|
85 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8' );
|
86 |
do_action( 'wpsc-purchlogitem-links-start' );
|
87 |
}
|
|
|
88 |
|
89 |
|
90 |
function nzshpcrt_donations($args){
|
91 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8' );
|
92 |
wpsc_donations($args);
|
93 |
}
|
94 |
|
110 |
* 5. Function now expects two arrays as per the standard Widget API.
|
111 |
*/
|
112 |
function nzshpcrt_latest_product( $args = null, $instance ) {
|
113 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8', 'wpsc_latest_product');
|
114 |
echo wpsc_latest_product( $args, $instance );
|
115 |
}
|
116 |
|
127 |
* @return void
|
128 |
*/
|
129 |
function nzshpcrt_currency_display($price_in, $tax_status, $nohtml = false, $id = false, $no_dollar_sign = false) {
|
130 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8' );
|
131 |
+
|
132 |
$output = wpsc_currency_display($price_in, array(
|
133 |
'display_currency_symbol' => !(bool)$no_dollar_sign,
|
134 |
'display_as_html' => ! (bool)$nohtml,
|
138 |
return $output;
|
139 |
}
|
140 |
|
141 |
+
/**
|
142 |
+
* This should be deprecated using _wpsc_deprecated_function() however the
|
143 |
+
* constants are still being used in admin-legacy.js, which is still enqueued
|
144 |
+
* by default in wp-admin.
|
145 |
+
*
|
146 |
+
* @deprecated
|
147 |
+
*/
|
148 |
function wpsc_include_language_constants(){
|
149 |
+
// _wpsc_deprecated_function( __FUNCTION__, '3.8' );
|
150 |
+
|
151 |
if(!defined('TXT_WPSC_ABOUT_THIS_PAGE'))
|
152 |
include_once(WPSC_FILE_PATH.'/wpsc-languages/EN_en.php');
|
153 |
}
|
155 |
|
156 |
if(!function_exists('wpsc_has_noca_message')){
|
157 |
function wpsc_has_noca_message(){
|
158 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8' );
|
159 |
if(isset($_SESSION['nocamsg']) && isset($_GET['noca']) && $_GET['noca'] == 'confirm')
|
160 |
return true;
|
161 |
else
|
165 |
|
166 |
if(!function_exists('wpsc_is_noca_gateway')){
|
167 |
function wpsc_is_noca_gateway(){
|
168 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8' );
|
169 |
if(count($wpsc_gateway->wpsc_gateways) == 1 && $wpsc_gateway->wpsc_gateways[0]['name'] == 'Noca')
|
170 |
return true;
|
171 |
else
|
173 |
}
|
174 |
}
|
175 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
176 |
/**
|
177 |
* wpsc current_page
|
178 |
* @return (int) The current page number
|
179 |
*/
|
180 |
function wpsc_current_page() {
|
181 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8' );
|
182 |
|
183 |
global $wpsc_query;
|
184 |
|
199 |
* @return (string) Number of products showing
|
200 |
*/
|
201 |
function wpsc_showing_products() {
|
202 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8' );
|
203 |
|
204 |
global $wpsc_query;
|
205 |
|
224 |
* @return (string) Number of pages showing.
|
225 |
*/
|
226 |
function wpsc_showing_products_page() {
|
227 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8' );
|
228 |
|
229 |
global $wpsc_query;
|
230 |
|
236 |
}
|
237 |
|
238 |
|
239 |
+
/**
|
240 |
+
* is wpsc profile page
|
241 |
+
* Checks if the current account page tab is Edit Profile.
|
242 |
+
* @deprecated since 3.8.10
|
243 |
+
* @return (boolean) true if current tab ID is edit_profile.
|
244 |
+
*/
|
245 |
+
function is_wpsc_profile_page() {
|
246 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.10' );
|
247 |
+
return !empty($_REQUEST['tab']) && ( $_REQUEST['tab'] == 'edit_profile' );
|
248 |
+
}
|
249 |
+
|
250 |
+
/**
|
251 |
+
* is wpsc profile page
|
252 |
+
* Checks if the current account page tab is Downloads.
|
253 |
+
* @deprecated since 3.8.10
|
254 |
+
* @return (boolean) true if current tab ID is downloads.
|
255 |
+
*/
|
256 |
+
function is_wpsc_downloads_page() {
|
257 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.10' );
|
258 |
+
return !empty($_REQUEST['tab']) && ( $_REQUEST['tab'] == 'downloads' );
|
259 |
+
}
|
260 |
+
|
261 |
+
|
262 |
+
/**
|
263 |
+
* wpsc user details
|
264 |
+
* Displays the Purchase History account page section.
|
265 |
+
* @deprecated since 3.8.10
|
266 |
+
* @return (string) The Purchase History page template.
|
267 |
+
*/
|
268 |
+
function wpsc_user_details() {
|
269 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.10' );
|
270 |
+
return wpsc_user_purchases();
|
271 |
+
}
|
272 |
+
|
273 |
|
274 |
/**
|
275 |
* wpsc product search url
|
278 |
* @return (string) URL.
|
279 |
*/
|
280 |
function wpsc_product_search_url( $url ) {
|
281 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8' );
|
282 |
if ( isset( $_GET['product_search'] ) ) {
|
283 |
if ( strrpos( $url, '?') ) {
|
284 |
$url .= '&product_search=' . $_GET['product_search'];
|
298 |
* @return (string) URL for the adjacent products page link.
|
299 |
*/
|
300 |
function wpsc_adjacent_products_url( $n ) {
|
301 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8', 'wpsc_pagination');
|
|
|
302 |
return false;
|
303 |
|
304 |
}
|
311 |
* @return (string) Next page link or text.
|
312 |
*/
|
313 |
function wpsc_next_products_link( $text = 'Next', $show_disabled = false ) {
|
314 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8', 'wpsc_pagination');
|
|
|
315 |
return false;
|
|
|
316 |
}
|
317 |
|
318 |
/**
|
323 |
* @return (string) Previous page link or text.
|
324 |
*/
|
325 |
function wpsc_previous_products_link( $text = 'Previous', $show_disabled = false ) {
|
326 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8', 'wpsc_pagination');
|
|
|
327 |
return false;;
|
|
|
328 |
}
|
329 |
|
330 |
/**
|
335 |
* @return (string) First page link or text.
|
336 |
*/
|
337 |
function wpsc_first_products_link( $text = 'First', $show_disabled = false ) {
|
338 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8', 'wpsc_pagination');
|
|
|
339 |
return false;
|
|
|
340 |
}
|
341 |
|
342 |
/**
|
347 |
* @return (string) Last page link or text.
|
348 |
*/
|
349 |
function wpsc_last_products_link( $text = 'Last', $show_disabled = false ) {
|
350 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8', 'wpsc_pagination');
|
|
|
351 |
return false;
|
352 |
|
353 |
}
|
358 |
* @return nothing
|
359 |
*/
|
360 |
function wpsc_save_variation_set() {
|
361 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8');
|
362 |
return false;
|
363 |
}
|
364 |
|
367 |
* @return boolean - true while we have pages to loop through
|
368 |
*/
|
369 |
function wpsc_have_pages() {
|
370 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8', 'wpsc_pagination');
|
371 |
return false;
|
372 |
}
|
373 |
|
376 |
* @return nothing - iterate through the pages
|
377 |
*/
|
378 |
function wpsc_the_page() {
|
379 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8', 'wpsc_pagination');
|
380 |
return false;
|
381 |
}
|
382 |
|
385 |
* @return integer - the page number
|
386 |
*/
|
387 |
function wpsc_page_number() {
|
388 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8', 'wpsc_pagination');
|
389 |
return false;
|
390 |
}
|
391 |
|
392 |
function wpsc_ordersummary() {
|
393 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8');
|
394 |
return false;
|
395 |
}
|
396 |
|
397 |
function display_ecomm_rss_feed() {
|
398 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8');
|
399 |
return false;
|
400 |
}
|
401 |
|
402 |
function display_ecomm_admin_menu() {
|
403 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8');
|
404 |
return false;
|
405 |
}
|
406 |
|
407 |
// displays error messages if the category setup is odd in some way
|
408 |
// needs to be in a function because there are at least three places where this code must be used.
|
409 |
function wpsc_odd_category_setup() {
|
410 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8');
|
411 |
return false;
|
412 |
}
|
413 |
|
414 |
function wpsc_product_image_html( $image_name, $product_id ) {
|
415 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8');
|
416 |
return false;
|
417 |
}
|
418 |
|
419 |
function wpsc_delete_currency_layer() {
|
420 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8');
|
421 |
return false;
|
422 |
}
|
423 |
|
424 |
function wpsc_akst_send_mail() {
|
425 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8');
|
426 |
return false;
|
427 |
}
|
428 |
|
429 |
function wpsc_akst_hide_pop() {
|
430 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8');
|
431 |
return false;
|
432 |
}
|
433 |
|
434 |
function wpsc_akst_page() {
|
435 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8');
|
436 |
return false;
|
437 |
}
|
438 |
|
439 |
function wpsc_akst_share_link($action = 'print') {
|
440 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8');
|
441 |
if($action == 'print')
|
442 |
echo '<div class="st_sharethis" displayText="ShareThis"></div>';
|
443 |
else
|
446 |
}
|
447 |
|
448 |
function wpsc_akst_share_form() {
|
449 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8');
|
450 |
return false;
|
451 |
}
|
452 |
|
453 |
function wpsc_has_shipping_form() {
|
454 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8');
|
455 |
return false;
|
456 |
}
|
457 |
|
464 |
*/
|
465 |
|
466 |
function wpsc_is_admin() {
|
467 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8');
|
468 |
+
global $pagenow;
|
469 |
+
|
470 |
+
$current_screen = get_current_screen();
|
471 |
|
472 |
if( 'post.php' == $pagenow && 'wpsc-product' == $current_screen->post_type ) return true;
|
473 |
|
482 |
* @return void
|
483 |
*/
|
484 |
function wpsc_print_product_list() {
|
485 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8' );
|
486 |
}
|
487 |
|
488 |
/**
|
492 |
* @return int
|
493 |
*/
|
494 |
function wpsc_total_product_count() {
|
495 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8' );
|
496 |
return wpsc_product_count();
|
497 |
}
|
498 |
|
502 |
* the results might not be what you expect.
|
503 |
*
|
504 |
*/
|
505 |
+
class WPSC_Query extends WP_Query {
|
|
|
506 |
function WPSC_Query( $query = '' ) {
|
507 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8', 'WP_Query()' );
|
508 |
$query = wp_parse_args( $query );
|
509 |
$query['post_type'] = 'wpsc-product';
|
|
|
510 |
parent::WP_Query( $query );
|
511 |
}
|
512 |
}
|
513 |
|
514 |
function wpec_get_the_post_id_by_shortcode( $shortcode ) {
|
515 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.9', 'wpsc_get_the_post_id_by_shortcode' );
|
516 |
return wpsc_get_the_post_id_by_shortcode( $shortcode );
|
517 |
}
|
518 |
|
526 |
* @returns nothing
|
527 |
*/
|
528 |
function wpsc_update_permalinks( $return = '' ) {
|
529 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.9', '_wpsc_action_permalink_structure_changed' );
|
530 |
_wpsc_action_permalink_structure_changed();
|
531 |
}
|
532 |
|
534 |
* @deprecated Use _wpsc_display_permalink_refresh_notice() instead;
|
535 |
*/
|
536 |
function wpsc_check_permalink_notice() {
|
537 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.9', '_wpsc_display_permalink_refresh_notice' );
|
538 |
_wpsc_display_permalink_refresh_notice();
|
539 |
}
|
540 |
|
542 |
* @deprecated since 3.8.8. Not used in core any more.
|
543 |
*/
|
544 |
function wpsc_display_tracking_id(){
|
545 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.8' );
|
546 |
$value = wpsc_trackingid_value();
|
547 |
if(!empty($value))
|
548 |
return $value;
|
554 |
* @deprecated since 3.8.8. Not used in core any more.
|
555 |
*/
|
556 |
function wpsc_the_purch_item_price() {
|
557 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.8' );
|
558 |
global $purchlogs;
|
559 |
if ( $purchlogs->purchitem->processed > 1 && $purchlogs->purchitem->processed != 6 ) {
|
560 |
$purchlogs->totalAmount += $purchlogs->purchitem->totalprice;
|
566 |
* @deprecated since 3.8.8. Not used in core any more.
|
567 |
*/
|
568 |
function wpsc_the_purch_item_date() {
|
569 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.8' );
|
570 |
global $purchlogs;
|
571 |
return date( 'M d Y,g:i a', $purchlogs->purchitem->date );
|
572 |
}
|
575 |
* @deprecated since 3.8.8. Not used in core any more.
|
576 |
*/
|
577 |
function wpsc_the_purch_item_name() {
|
578 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.8' );
|
579 |
global $purchlogs;
|
580 |
if ( wpsc_purchlogs_has_customfields( wpsc_the_purch_item_id() ) ) {
|
581 |
return $purchlogs->the_purch_item_name() . '<img src="' . WPSC_CORE_IMAGES_URL . '/info_icon.jpg" title="' . esc_attr__( 'This Purchase has custom user content', 'wpsc' ) . '" alt="' . esc_attr__( 'exclamation icon', 'wpsc' ) . '" />';
|
588 |
* @deprecated since 3.8.8. Not used in core any more.
|
589 |
*/
|
590 |
function wpsc_the_purch_item_id() {
|
591 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.8' );
|
592 |
global $purchlogs;
|
593 |
return $purchlogs->purchitem->id;
|
594 |
}
|
597 |
* @deprecated since 3.8.8. Not used in core any more.
|
598 |
*/
|
599 |
function wpsc_the_purch_item_details() {
|
600 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.8' );
|
601 |
global $purchlogs;
|
602 |
return $purchlogs->the_purch_item_details();
|
603 |
}
|
608 |
* @deprecated since 3.8.8. Not used in core any more.
|
609 |
*/
|
610 |
function wpsc_have_purch_items_statuses() {
|
611 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.8' );
|
612 |
global $purchlogs;
|
613 |
return $purchlogs->have_purch_status();
|
614 |
}
|
617 |
* @deprecated since 3.8.8. Not used in core any more.
|
618 |
*/
|
619 |
function wpsc_the_purch_status() {
|
620 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.8' );
|
621 |
global $purchlogs;
|
|
|
622 |
return $purchlogs->the_purch_status();
|
623 |
}
|
624 |
|
626 |
* @deprecated since 3.8.8. Not used in core any more.
|
627 |
*/
|
628 |
function wpsc_purchlogs_is_google_checkout() {
|
629 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.8' );
|
630 |
global $purchlogs;
|
631 |
if ( $purchlogs->purchitem->gateway == 'google' ) {
|
632 |
return true;
|
639 |
* @deprecated since 3.8.8. Not used in core any more.
|
640 |
*/
|
641 |
function wpsc_the_purch_total() {
|
642 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.8' );
|
643 |
global $purchlogs;
|
644 |
return $purchlogs->totalAmount;
|
645 |
}
|
648 |
* @deprecated since 3.8.8. Not used in core any more.
|
649 |
*/
|
650 |
function wpsc_the_purch_item() {
|
651 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.8' );
|
652 |
global $purchlogs;
|
653 |
if ( isset( $_SESSION['newlogs'] ) ) {
|
654 |
$purchlogs->allpurchaselogs = $_SESSION['newlogs'];
|
661 |
* @deprecated since 3.8.8. Not used in core any more.
|
662 |
*/
|
663 |
function wpsc_the_purch_item_statuses() {
|
664 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.8' );
|
665 |
global $purchlogs;
|
666 |
return $purchlogs->the_purch_item_statuses();
|
667 |
}
|
670 |
* @deprecated since 3.8.8. Not used in core any more.
|
671 |
*/
|
672 |
function wpsc_the_purch_item_status() {
|
673 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.8' );
|
674 |
global $purchlogs;
|
675 |
return $purchlogs->the_purch_item_status();
|
676 |
}
|
679 |
* @deprecated since 3.8.8. Not used in core any more.
|
680 |
*/
|
681 |
function wpsc_the_purch_status_id() {
|
682 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.8' );
|
683 |
global $purchlogs;
|
684 |
return $purchlogs->purchstatus['order'];
|
685 |
}
|
688 |
* @deprecated since 3.8.8. Not used in core any more.
|
689 |
*/
|
690 |
function wpsc_purchlog_filter_by() {
|
691 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.8' );
|
692 |
wpsc_change_purchlog_view( $_POST['view_purchlogs_by'], $_POST['view_purchlogs_by_status'] );
|
693 |
}
|
694 |
|
696 |
* @deprecated since 3.8.8. Not used in core any more.
|
697 |
*/
|
698 |
function wpsc_the_purch_status_name() {
|
699 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.8' );
|
700 |
global $purchlogs;
|
701 |
if ( isset( $purchlogs->purchstatus['label'] ) ) {
|
702 |
return $purchlogs->purchstatus['label'];
|
707 |
* @deprecated since 3.8.8. Not used in core any more.
|
708 |
*/
|
709 |
function wpsc_purchlogs_getfirstdates() {
|
710 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.8' );
|
711 |
global $purchlogs;
|
712 |
$dates = $purchlogs->getdates();
|
713 |
$fDate = '';
|
727 |
* @deprecated since 3.8.8. Not used in core any more.
|
728 |
*/
|
729 |
function wpsc_change_purchlog_view( $viewby, $status='' ) {
|
730 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.8' );
|
731 |
global $purchlogs;
|
732 |
if ( $viewby == 'all' ) {
|
733 |
$dates = $purchlogs->getdates();
|
759 |
* @deprecated since 3.8.8. Not used in core any more.
|
760 |
*/
|
761 |
function wpsc_search_purchlog_view( $search ) {
|
762 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.8' );
|
763 |
global $purchlogs;
|
764 |
$newlogs = $purchlogs->search_purchlog_view( $search );
|
765 |
$purchlogs->getDates();
|
771 |
* @deprecated since 3.8.8. Not used in core any more.
|
772 |
*/
|
773 |
function wpsc_purchlog_is_checked_status() {
|
774 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.8' );
|
775 |
global $purchlogitem, $purchlogs;
|
776 |
|
777 |
if ( $purchlogs->purchstatus['order'] == $purchlogitem->extrainfo->processed ) {
|
787 |
* @return string output
|
788 |
*/
|
789 |
function country_list( $selected_country = null ) {
|
790 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.9', '_wpsc_country_dropdown_options' );
|
791 |
return _wpsc_country_dropdown_options( array( 'selected' => $selected_country ) );
|
792 |
}
|
793 |
|
797 |
* @return array Product tags
|
798 |
*/
|
799 |
function get_the_product_tags( $id = 0 ) {
|
800 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.9', 'wpsc_get_the_product_tags' );
|
801 |
return wpsc_get_the_product_tags( $id );
|
802 |
}
|
803 |
|
807 |
* @deprecated since 3.8.9
|
808 |
*/
|
809 |
function wpsc_admin_product_listing( $parent_product = null, $args = array() ) {
|
810 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.9' );
|
811 |
global $wp_query;
|
812 |
|
813 |
if ( empty( $args ) )
|
845 |
* @param $product (Object), $parent_product (Int) Note: I believe parent_product is unused
|
846 |
*/
|
847 |
function wpsc_product_row(&$product, $parent_product = null) {
|
848 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.9' );
|
849 |
global $mode, $current_user, $wpsc_products;
|
850 |
|
851 |
//is this good practice? <v.bakaitis@gmail.com>
|
1196 |
* @return $post_status (array)
|
1197 |
*/
|
1198 |
function wpsc_trashed_post_status($post_status){
|
1199 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.9' );
|
1200 |
$post = get_post(get_the_ID());
|
1201 |
if( !empty($post) && 'wpsc-product' == $post->post_type && 'trash' == $post->post_status && !in_array('trash', $post_status))
|
1202 |
$post_status[] = 'Trash';
|
1203 |
|
1204 |
return $post_status;
|
1205 |
+
}
|
1206 |
+
|
1207 |
+
function wpsc_product_label_forms() {
|
1208 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8' );
|
1209 |
+
return false;
|
1210 |
+
}
|
1211 |
+
|
1212 |
+
function wpsc_convert_weights($weight, $unit) {
|
1213 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8', 'wpsc_convert_weight' );
|
1214 |
+
if (is_array($weight)) {
|
1215 |
+
$weight = $weight['weight'];
|
1216 |
+
}
|
1217 |
+
return wpsc_convert_weight( $weight, $unit, 'gram', true );
|
1218 |
+
}
|
1219 |
+
|
1220 |
+
/**
|
1221 |
+
* wpsc in the loop function,
|
1222 |
+
* @return boolean - true if we are in the loop
|
1223 |
+
*/
|
1224 |
+
function wpsc_in_the_loop() {
|
1225 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8' );
|
1226 |
+
global $wpsc_query;
|
1227 |
+
return $wpsc_query->in_the_loop;
|
1228 |
+
}
|
1229 |
+
|
1230 |
+
/**
|
1231 |
+
* wpsc rewind products function, rewinds back to the first product
|
1232 |
+
* @return nothing
|
1233 |
+
*/
|
1234 |
+
function wpsc_rewind_products() {
|
1235 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8' );
|
1236 |
+
global $wpsc_query;
|
1237 |
+
return $wpsc_query->rewind_posts();
|
1238 |
+
}
|
1239 |
+
|
1240 |
+
/**
|
1241 |
+
* wpsc product has file function
|
1242 |
+
* @return boolean - true if the product has a file
|
1243 |
+
*/
|
1244 |
+
function wpsc_product_has_file() {
|
1245 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8' );
|
1246 |
+
global $wpsc_query, $wpdb;
|
1247 |
+
if ( is_numeric( $wpsc_query->product['file'] ) && ($wpsc_query->product['file'] > 0) )
|
1248 |
+
return true;
|
1249 |
+
|
1250 |
+
return false;
|
1251 |
+
}
|
1252 |
+
|
1253 |
+
/**
|
1254 |
+
* wpsc currency sign function
|
1255 |
+
* @return string - the selected currency sign for the store
|
1256 |
+
*/
|
1257 |
+
function wpsc_currency_sign() {
|
1258 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8' );
|
1259 |
+
global $wpdb;
|
1260 |
+
$currency_sign_location = get_option( 'currency_sign_location' );
|
1261 |
+
$currency_type = get_option( 'currency_type' );
|
1262 |
+
$currency_symbol = $wpdb->get_var( $wpdb->prepare( "SELECT `symbol_html` FROM `" . WPSC_TABLE_CURRENCY_LIST . "` WHERE `id` = %d LIMIT 1", $currency_type ) );
|
1263 |
+
|
1264 |
+
return $currency_symbol;
|
1265 |
+
}
|
1266 |
+
|
1267 |
+
/**
|
1268 |
+
* wpsc page is selected function
|
1269 |
+
* @return boolean - true if the page is selected
|
1270 |
+
*/
|
1271 |
+
function wpsc_page_is_selected() {
|
1272 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8' );
|
1273 |
+
// determine if we are on this page
|
1274 |
+
global $wpsc_query;
|
1275 |
+
return $wpsc_query->page['selected'];
|
1276 |
+
}
|
1277 |
+
|
1278 |
+
/**
|
1279 |
+
* wpsc page URL function
|
1280 |
+
* @return string - the page URL
|
1281 |
+
*/
|
1282 |
+
function wpsc_page_url() {
|
1283 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8' );
|
1284 |
+
// generate the page URL
|
1285 |
+
global $wpsc_query;
|
1286 |
+
return $wpsc_query->page['url'];
|
1287 |
+
}
|
1288 |
+
|
1289 |
+
function shipwire_build_xml( $log_id ) {
|
1290 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.9', 'WPSC_Shipwire' );
|
1291 |
+
return WPSC_Shipwire::get_order_xml( $log_id );
|
1292 |
+
}
|
1293 |
+
|
1294 |
+
function shipwire_built_sync_xml() {
|
1295 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.9', 'WPSC_Shipwire' );
|
1296 |
+
return WPSC_Shipwire::get_inventory_xml();
|
1297 |
+
}
|
1298 |
+
|
1299 |
+
function shipwire_built_tracking_xml() {
|
1300 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.9', 'WPSC_Shipwire' );
|
1301 |
+
return WPSC_Shipwire::get_tracking_xml();
|
1302 |
+
}
|
1303 |
+
|
1304 |
+
function shipwire_send_sync_request( $xml ) {
|
1305 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.9', 'WPSC_Shipwire' );
|
1306 |
+
return WPSC_Shipwire::send_inventory_request( $xml );
|
1307 |
+
}
|
1308 |
+
|
1309 |
+
function shipwire_sent_request( $xml ) {
|
1310 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.9', 'WPSC_Shipwire' );
|
1311 |
+
return WPSC_Shipwire::send_order_request( $xml );
|
1312 |
+
}
|
1313 |
+
|
1314 |
+
function shipwire_send_tracking_request( $xml ) {
|
1315 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.9', 'WPSC_Shipwire' );
|
1316 |
+
return WPSC_Shipwire::send_tracking_request( $xml );
|
1317 |
+
}
|
1318 |
+
|
1319 |
+
function wpsc_rage_where( $where ) {
|
1320 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8.8', 'wpsc_range_where()' );
|
1321 |
+
return wpsc_range_where( $where );
|
1322 |
+
}
|
wpsc-core/wpsc-functions.php
CHANGED
@@ -223,7 +223,10 @@ function wpsc_core_load_purchase_log_statuses() {
|
|
223 |
*/
|
224 |
function wpsc_core_load_page_titles() {
|
225 |
global $wpsc_page_titles;
|
226 |
-
$wpsc_page_titles =
|
|
|
|
|
|
|
227 |
}
|
228 |
|
229 |
/***
|
@@ -615,16 +618,28 @@ function _wpsc_menu_exists( $args ) {
|
|
615 |
$menu = wp_get_nav_menu_object( $locations[ $args->theme_location ] );
|
616 |
|
617 |
// get the first menu that has items if we still can't find a menu
|
618 |
-
if ( ! $menu &&
|
619 |
$menus = wp_get_nav_menus();
|
620 |
foreach ( $menus as $menu_maybe ) {
|
621 |
-
if ( $menu_items = wp_get_nav_menu_items($menu_maybe->term_id) ) {
|
622 |
$menu = $menu_maybe;
|
623 |
break;
|
624 |
}
|
625 |
}
|
626 |
}
|
627 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
628 |
return (bool) $menu;
|
629 |
}
|
630 |
|
@@ -1325,7 +1340,7 @@ function wpsc_product_link( $permalink, $post, $leavename ) {
|
|
1325 |
// Mostly the same conditions used for posts, but restricted to items with a post type of "wpsc-product "
|
1326 |
|
1327 |
if ( '' != $permalink_structure && !in_array( $post->post_status, array( 'draft', 'pending' ) ) ) {
|
1328 |
-
$product_categories =
|
1329 |
$product_category_slugs = array( );
|
1330 |
foreach ( $product_categories as $product_category ) {
|
1331 |
$product_category_slugs[] = $product_category->slug;
|
@@ -1488,7 +1503,10 @@ add_action( 'wp', 'wpsc_select_theme_functions', 10, 1 );
|
|
1488 |
*/
|
1489 |
function wpsc_force_ssl() {
|
1490 |
global $wp_query;
|
1491 |
-
if ( '1' == get_option( 'wpsc_force_ssl' ) &&
|
|
|
|
|
|
|
1492 |
$sslurl = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
|
1493 |
wp_redirect( $sslurl );
|
1494 |
exit;
|
@@ -1812,4 +1830,76 @@ function wpsc_delete_all_customer_meta( $id = false ) {
|
|
1812 |
return delete_user_meta( $id, "_wpsc_{$blog_prefix}customer_profile" );
|
1813 |
else
|
1814 |
return delete_transient( "wpsc_customer_meta_{$blog_prefix}{$id}" );
|
1815 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
223 |
*/
|
224 |
function wpsc_core_load_page_titles() {
|
225 |
global $wpsc_page_titles;
|
226 |
+
$wpsc_page_titles = apply_filters( 'wpsc_page_titles', false );
|
227 |
+
|
228 |
+
if ( empty( $wpsc_page_titles ) )
|
229 |
+
$wpsc_page_titles = wpsc_get_page_post_names();
|
230 |
}
|
231 |
|
232 |
/***
|
618 |
$menu = wp_get_nav_menu_object( $locations[ $args->theme_location ] );
|
619 |
|
620 |
// get the first menu that has items if we still can't find a menu
|
621 |
+
if ( ! $menu && ! $args->theme_location ) {
|
622 |
$menus = wp_get_nav_menus();
|
623 |
foreach ( $menus as $menu_maybe ) {
|
624 |
+
if ( $menu_items = wp_get_nav_menu_items( $menu_maybe->term_id ) ) {
|
625 |
$menu = $menu_maybe;
|
626 |
break;
|
627 |
}
|
628 |
}
|
629 |
}
|
630 |
|
631 |
+
// If the menu exists, get its items.
|
632 |
+
if ( $menu && ! is_wp_error( $menu ) && ! isset( $menu_items ) )
|
633 |
+
$menu_items = wp_get_nav_menu_items( $menu->term_id );
|
634 |
+
|
635 |
+
// If no menu was found or if the menu has no items and no location was requested, call the fallback_cb if it exists
|
636 |
+
if ( ( ! $menu || is_wp_error( $menu ) || ( isset( $menu_items ) && empty( $menu_items ) && ! $args->theme_location ) ) )
|
637 |
+
return false;
|
638 |
+
|
639 |
+
// If no fallback function was specified and the menu doesn't exists, bail.
|
640 |
+
if ( ! $menu || is_wp_error( $menu ) || empty( $menu_items ) )
|
641 |
+
return false;
|
642 |
+
|
643 |
return (bool) $menu;
|
644 |
}
|
645 |
|
1340 |
// Mostly the same conditions used for posts, but restricted to items with a post type of "wpsc-product "
|
1341 |
|
1342 |
if ( '' != $permalink_structure && !in_array( $post->post_status, array( 'draft', 'pending' ) ) ) {
|
1343 |
+
$product_categories = wpsc_get_product_terms( $post_id, 'wpsc_product_category' );
|
1344 |
$product_category_slugs = array( );
|
1345 |
foreach ( $product_categories as $product_category ) {
|
1346 |
$product_category_slugs[] = $product_category->slug;
|
1503 |
*/
|
1504 |
function wpsc_force_ssl() {
|
1505 |
global $wp_query;
|
1506 |
+
if ( '1' == get_option( 'wpsc_force_ssl' ) &&
|
1507 |
+
! is_ssl() &&
|
1508 |
+
! empty ( $wp_query->post->post_content ) &&
|
1509 |
+
false !== strpos( $wp_query->post->post_content, '[shoppingcart]' ) ) {
|
1510 |
$sslurl = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
|
1511 |
wp_redirect( $sslurl );
|
1512 |
exit;
|
1830 |
return delete_user_meta( $id, "_wpsc_{$blog_prefix}customer_profile" );
|
1831 |
else
|
1832 |
return delete_transient( "wpsc_customer_meta_{$blog_prefix}{$id}" );
|
1833 |
+
}
|
1834 |
+
|
1835 |
+
/**
|
1836 |
+
* Updates permalink slugs
|
1837 |
+
*
|
1838 |
+
* @since 3.8.9
|
1839 |
+
* @return type
|
1840 |
+
*/
|
1841 |
+
function wpsc_update_permalink_slugs() {
|
1842 |
+
global $wpdb;
|
1843 |
+
|
1844 |
+
$wpsc_pageurl_option = array(
|
1845 |
+
'product_list_url' => '[productspage]',
|
1846 |
+
'shopping_cart_url' => '[shoppingcart]',
|
1847 |
+
'checkout_url' => '[shoppingcart]',
|
1848 |
+
'transact_url' => '[transactionresults]',
|
1849 |
+
'user_account_url' => '[userlog]'
|
1850 |
+
);
|
1851 |
+
|
1852 |
+
$ids = array();
|
1853 |
+
|
1854 |
+
foreach ( $wpsc_pageurl_option as $option_key => $page_string ) {
|
1855 |
+
$id = $wpdb->get_var( "SELECT `ID` FROM `{$wpdb->posts}` WHERE `post_type` = 'page' AND `post_content` LIKE '%$page_string%' LIMIT 1" );
|
1856 |
+
|
1857 |
+
if ( ! $id )
|
1858 |
+
continue;
|
1859 |
+
|
1860 |
+
$ids[$page_string] = $id;
|
1861 |
+
|
1862 |
+
$the_new_link = get_page_link( $id );
|
1863 |
+
|
1864 |
+
if ( stristr( get_option( $option_key ), "https://" ) )
|
1865 |
+
$the_new_link = str_replace( 'http://', "https://", $the_new_link );
|
1866 |
+
|
1867 |
+
if ( $option_key == 'shopping_cart_url' )
|
1868 |
+
update_option( 'checkout_url', $the_new_link );
|
1869 |
+
|
1870 |
+
update_option( $option_key, $the_new_link );
|
1871 |
+
}
|
1872 |
+
|
1873 |
+
update_option( 'wpsc_shortcode_page_ids', $ids );
|
1874 |
+
}
|
1875 |
+
|
1876 |
+
/**
|
1877 |
+
* Return an array of terms assigned to a product.
|
1878 |
+
*
|
1879 |
+
* This function is basically a wrapper for get_the_terms(), and should be used
|
1880 |
+
* instead of get_the_terms() and wp_get_object_terms() because of two reasons:
|
1881 |
+
*
|
1882 |
+
* - wp_get_object_terms() doesn't utilize object cache.
|
1883 |
+
* - get_the_terms() returns false when no terms are found. We want something
|
1884 |
+
* that returns an empty array instead.
|
1885 |
+
*
|
1886 |
+
* @since 3.8.10
|
1887 |
+
* @param int $product_id Product ID
|
1888 |
+
* @param string $tax Taxonomy
|
1889 |
+
* @param string $field If you want to return only an array of a certain field, specify it here.
|
1890 |
+
* @return stdObject[]
|
1891 |
+
*/
|
1892 |
+
function wpsc_get_product_terms( $product_id, $tax, $field = '' ) {
|
1893 |
+
$terms = get_the_terms( $product_id, $tax );
|
1894 |
+
|
1895 |
+
if ( ! $terms )
|
1896 |
+
$terms = array();
|
1897 |
+
|
1898 |
+
if ( $field )
|
1899 |
+
$terms = wp_list_pluck( $terms, $field );
|
1900 |
+
|
1901 |
+
// remove the redundant array keys, could cause issues in loops with iterator
|
1902 |
+
$terms = array_values( $terms );
|
1903 |
+
return $terms;
|
1904 |
+
}
|
1905 |
+
|
wpsc-core/wpsc-includes.php
CHANGED
@@ -28,6 +28,7 @@ require_once( WPSC_FILE_PATH . '/wpsc-includes/currency.helpers.php'
|
|
28 |
require_once( WPSC_FILE_PATH . '/wpsc-includes/purchase-log.helpers.php' );
|
29 |
require_once( WPSC_FILE_PATH . '/wpsc-includes/purchase-log-notification.class.php' );
|
30 |
require_once( WPSC_FILE_PATH . '/wpsc-includes/purchase-log.class.php' );
|
|
|
31 |
require_once( WPSC_FILE_PATH . '/wpsc-includes/checkout-form-data.class.php' );
|
32 |
|
33 |
// Taxes
|
28 |
require_once( WPSC_FILE_PATH . '/wpsc-includes/purchase-log.helpers.php' );
|
29 |
require_once( WPSC_FILE_PATH . '/wpsc-includes/purchase-log-notification.class.php' );
|
30 |
require_once( WPSC_FILE_PATH . '/wpsc-includes/purchase-log.class.php' );
|
31 |
+
require_once( WPSC_FILE_PATH . '/wpsc-includes/checkout-form.class.php' );
|
32 |
require_once( WPSC_FILE_PATH . '/wpsc-includes/checkout-form-data.class.php' );
|
33 |
|
34 |
// Taxes
|
wpsc-core/wpsc-installer.php
CHANGED
@@ -268,6 +268,8 @@ You ordered these items:
|
|
268 |
//unset products page
|
269 |
unset($pages['products-page']);
|
270 |
|
|
|
|
|
271 |
//create other pages
|
272 |
foreach( (array)$pages as $page ){
|
273 |
//check if page exists and get it's ID
|
@@ -298,11 +300,10 @@ You ordered these items:
|
|
298 |
//if we have created any new pages, then flush... do we need to do this? probably should be removed
|
299 |
if ( $newpages ) {
|
300 |
wp_cache_delete( 'all_page_ids', 'pages' );
|
301 |
-
|
302 |
}
|
303 |
// Product categories, temporarily register them to create first default category if none exist
|
304 |
// @todo: investigate those require once lines and move them to right place (not from here, but from their original location, which seems to be wrong, since i cant access wpsc_register_post_types and wpsc_update_categorymeta here) - Vales <v.bakaitis@gmail.com>
|
305 |
-
require_once( WPSC_FILE_PATH . '/wpsc-core/wpsc-functions.php' );
|
306 |
wpsc_core_load_page_titles();
|
307 |
wpsc_register_post_types();
|
308 |
$category_list = get_terms( 'wpsc_product_category', 'hide_empty=0&parent=0' );
|
@@ -314,7 +315,6 @@ You ordered these items:
|
|
314 |
$term = get_term_by( 'id', $new_category['term_id'], 'wpsc_product_category' );
|
315 |
$url_name = $term->slug;
|
316 |
|
317 |
-
$wp_rewrite->flush_rules();
|
318 |
wpsc_update_categorymeta( $category_id, 'nice-name', $url_name );
|
319 |
wpsc_update_categorymeta( $category_id, 'description', __( "This is a description", 'wpsc' ) );
|
320 |
wpsc_update_categorymeta( $category_id, 'image', '' );
|
268 |
//unset products page
|
269 |
unset($pages['products-page']);
|
270 |
|
271 |
+
require_once( WPSC_FILE_PATH . '/wpsc-core/wpsc-functions.php' );
|
272 |
+
|
273 |
//create other pages
|
274 |
foreach( (array)$pages as $page ){
|
275 |
//check if page exists and get it's ID
|
300 |
//if we have created any new pages, then flush... do we need to do this? probably should be removed
|
301 |
if ( $newpages ) {
|
302 |
wp_cache_delete( 'all_page_ids', 'pages' );
|
303 |
+
wpsc_update_permalink_slugs();
|
304 |
}
|
305 |
// Product categories, temporarily register them to create first default category if none exist
|
306 |
// @todo: investigate those require once lines and move them to right place (not from here, but from their original location, which seems to be wrong, since i cant access wpsc_register_post_types and wpsc_update_categorymeta here) - Vales <v.bakaitis@gmail.com>
|
|
|
307 |
wpsc_core_load_page_titles();
|
308 |
wpsc_register_post_types();
|
309 |
$category_list = get_terms( 'wpsc_product_category', 'hide_empty=0&parent=0' );
|
315 |
$term = get_term_by( 'id', $new_category['term_id'], 'wpsc_product_category' );
|
316 |
$url_name = $term->slug;
|
317 |
|
|
|
318 |
wpsc_update_categorymeta( $category_id, 'nice-name', $url_name );
|
319 |
wpsc_update_categorymeta( $category_id, 'description', __( "This is a description", 'wpsc' ) );
|
320 |
wpsc_update_categorymeta( $category_id, 'image', '' );
|
wpsc-includes/ajax.functions.php
CHANGED
@@ -38,7 +38,7 @@ function wpsc_add_to_cart() {
|
|
38 |
$permitted_post_statuses = current_user_can( $post_type_object->cap->edit_posts ) ? array( 'private', 'draft', 'pending', 'publish' ) : array( 'publish' );
|
39 |
|
40 |
/// sanitise submitted values
|
41 |
-
$product_id = apply_filters( 'wpsc_add_to_cart_product_id', (int)$_POST['product_id'] );
|
42 |
|
43 |
$product = get_post( $product_id );
|
44 |
|
@@ -51,25 +51,28 @@ function wpsc_add_to_cart() {
|
|
51 |
}
|
52 |
|
53 |
if(isset($_POST['variation'])){
|
54 |
-
foreach ( (array)$_POST['variation'] as $key => $variation )
|
55 |
-
$provided_parameters['variation_values'][(int)$key] = (int)$variation;
|
|
|
56 |
|
57 |
if ( count( $provided_parameters['variation_values'] ) > 0 ) {
|
58 |
$variation_product_id = wpsc_get_child_object_in_terms( $product_id, $provided_parameters['variation_values'], 'wpsc-variation' );
|
59 |
-
if ( $variation_product_id > 0 )
|
60 |
$product_id = $variation_product_id;
|
|
|
61 |
}
|
62 |
|
63 |
}
|
64 |
|
65 |
-
if ((isset($_POST['quantity']) && $_POST['quantity'] > 0) && (!isset( $_POST['wpsc_quantity_update'] )) ) {
|
66 |
-
$provided_parameters['quantity'] = (int)$_POST['quantity'];
|
67 |
} else if ( isset( $_POST['wpsc_quantity_update'] ) ) {
|
68 |
$wpsc_cart->remove_item( $_POST['key'] );
|
69 |
-
$provided_parameters['quantity'] = (int)$_POST['wpsc_quantity_update'];
|
70 |
}
|
71 |
|
72 |
-
if (isset( $_POST['is_customisable']) &&
|
|
|
73 |
$provided_parameters['is_customisable'] = true;
|
74 |
|
75 |
if ( isset( $_POST['custom_text'] ) ) {
|
@@ -79,10 +82,12 @@ function wpsc_add_to_cart() {
|
|
79 |
$provided_parameters['file_data'] = $_FILES['custom_file'];
|
80 |
}
|
81 |
}
|
82 |
-
|
83 |
-
|
|
|
84 |
}
|
85 |
-
|
|
|
86 |
|
87 |
$cart_item = $wpsc_cart->set_item( $product_id, $parameters );
|
88 |
|
@@ -100,7 +105,7 @@ function wpsc_add_to_cart() {
|
|
100 |
}
|
101 |
}
|
102 |
|
103 |
-
if ( isset($_GET['ajax']) && $_GET['ajax'] == 'true' ) {
|
104 |
if ( ($product_id != null) && (get_option( 'fancy_notifications' ) == 1) ) {
|
105 |
echo "if(jQuery('#fancy_notification_content')) {\n\r";
|
106 |
echo " jQuery('#fancy_notification_content').html(\"" . str_replace( array( "\n", "\r" ), array( '\n', '\r' ), addslashes( fancy_notification_content( $cart_messages ) ) ) . "\");\n\r";
|
@@ -455,10 +460,10 @@ function wpsc_update_product_price() {
|
|
455 |
$price = wpsc_calculate_price( $product_id, $variations, true );
|
456 |
$response += array(
|
457 |
'old_price' => wpsc_currency_display( $old_price, array( 'display_as_html' => false ) ),
|
458 |
-
'numeric_old_price' => (float)
|
459 |
'you_save' => wpsc_currency_display( $you_save_amount, array( 'display_as_html' => false ) ) . "! (" . $you_save_percentage . "%)",
|
460 |
'price' => $from . wpsc_currency_display( $price, array( 'display_as_html' => false ) ),
|
461 |
-
'numeric_price' => (float)
|
462 |
);
|
463 |
}
|
464 |
}
|
@@ -550,6 +555,11 @@ if ( isset( $_REQUEST['wpsc_action'] ) && ($_REQUEST['wpsc_action'] == 'cart_htm
|
|
550 |
add_action( 'init', 'wpsc_cart_html_page', 110 );
|
551 |
}
|
552 |
|
|
|
|
|
|
|
|
|
|
|
553 |
/**
|
554 |
* submit checkout function, used through ajax and in normal page loading.
|
555 |
* No parameters, returns nothing
|
@@ -689,36 +699,11 @@ function wpsc_submit_checkout( $collected_data = true ) {
|
|
689 |
$wpsc_checkout->save_forms_to_db( $purchase_log_id );
|
690 |
$wpsc_cart->save_to_db( $purchase_log_id );
|
691 |
$wpsc_cart->submit_stock_claims( $purchase_log_id );
|
692 |
-
if ( get_option( 'wpsc_also_bought' ) == 1 )
|
693 |
-
wpsc_populate_also_bought_list();
|
694 |
if( !isset( $our_user_id ) && isset( $user_ID ))
|
695 |
$our_user_id = $user_ID;
|
696 |
$wpsc_cart->log_id = $purchase_log_id;
|
697 |
do_action( 'wpsc_submit_checkout', array( "purchase_log_id" => $purchase_log_id, "our_user_id" => $our_user_id ) );
|
698 |
-
|
699 |
-
$separator = "?";
|
700 |
-
else
|
701 |
-
$separator = "&";
|
702 |
-
|
703 |
-
// submit to gateway
|
704 |
-
$current_gateway_data = &$wpsc_gateways[$submitted_gateway];
|
705 |
-
if ( isset( $current_gateway_data['api_version'] ) && $current_gateway_data['api_version'] >= 2.0 ) {
|
706 |
-
$merchant_instance = new $current_gateway_data['class_name']( $purchase_log_id );
|
707 |
-
$merchant_instance->construct_value_array();
|
708 |
-
do_action_ref_array( 'wpsc_pre_submit_gateway', array( &$merchant_instance ) );
|
709 |
-
$merchant_instance->submit();
|
710 |
-
} elseif ( ($current_gateway_data['internalname'] == $submitted_gateway) && ($current_gateway_data['internalname'] != 'google') ) {
|
711 |
-
$gateway_used = $current_gateway_data['internalname'];
|
712 |
-
$purchase_log->set( 'gateway', $gateway_used );
|
713 |
-
$purchase_log->save();
|
714 |
-
$current_gateway_data['function']( $separator, $sessionid );
|
715 |
-
} elseif ( ($current_gateway_data['internalname'] == 'google') && ($current_gateway_data['internalname'] == $submitted_gateway) ) {
|
716 |
-
$gateway_used = $current_gateway_data['internalname'];
|
717 |
-
$purchase_log->set( 'gateway', $gateway_used );
|
718 |
-
wpsc_update_customer_meta( 'google_checkout', 'google' );
|
719 |
-
wp_redirect(get_option( 'shopping_cart_url' ));
|
720 |
-
exit;
|
721 |
-
}
|
722 |
}
|
723 |
}
|
724 |
|
@@ -1109,9 +1094,6 @@ function wpsc_download_file() {
|
|
1109 |
wpsc_update_purchase_log_status( $download_data['purchid'], 4 );
|
1110 |
}
|
1111 |
|
1112 |
-
|
1113 |
-
|
1114 |
-
do_action( 'wpsc_alter_download_action', $file_id );
|
1115 |
_wpsc_force_download_file( $file_id );
|
1116 |
} else {
|
1117 |
exit( _e( 'This download is no longer valid, Please contact the site administrator for more information.', 'wpsc' ) );
|
@@ -1121,6 +1103,7 @@ function wpsc_download_file() {
|
|
1121 |
add_action( 'init', 'wpsc_download_file' );
|
1122 |
|
1123 |
function _wpsc_force_download_file( $file_id ) {
|
|
|
1124 |
$file_data = get_post( $file_id );
|
1125 |
if ( ! $file_data )
|
1126 |
wp_die( __( 'Invalid file ID.', 'wpsc' ) );
|
@@ -1247,4 +1230,4 @@ function wpsc_update_shipping_quotes_on_shipping_same_as_billing() {
|
|
1247 |
|
1248 |
}
|
1249 |
|
1250 |
-
?>
|
38 |
$permitted_post_statuses = current_user_can( $post_type_object->cap->edit_posts ) ? array( 'private', 'draft', 'pending', 'publish' ) : array( 'publish' );
|
39 |
|
40 |
/// sanitise submitted values
|
41 |
+
$product_id = apply_filters( 'wpsc_add_to_cart_product_id', (int) $_POST['product_id'] );
|
42 |
|
43 |
$product = get_post( $product_id );
|
44 |
|
51 |
}
|
52 |
|
53 |
if(isset($_POST['variation'])){
|
54 |
+
foreach ( (array) $_POST['variation'] as $key => $variation ) {
|
55 |
+
$provided_parameters['variation_values'][ (int) $key ] = (int) $variation;
|
56 |
+
}
|
57 |
|
58 |
if ( count( $provided_parameters['variation_values'] ) > 0 ) {
|
59 |
$variation_product_id = wpsc_get_child_object_in_terms( $product_id, $provided_parameters['variation_values'], 'wpsc-variation' );
|
60 |
+
if ( $variation_product_id > 0 ) {
|
61 |
$product_id = $variation_product_id;
|
62 |
+
}
|
63 |
}
|
64 |
|
65 |
}
|
66 |
|
67 |
+
if ( (isset( $_POST['quantity'] ) && $_POST['quantity'] > 0) && (!isset( $_POST['wpsc_quantity_update'] )) ) {
|
68 |
+
$provided_parameters['quantity'] = (int) $_POST['quantity'];
|
69 |
} else if ( isset( $_POST['wpsc_quantity_update'] ) ) {
|
70 |
$wpsc_cart->remove_item( $_POST['key'] );
|
71 |
+
$provided_parameters['quantity'] = (int) $_POST['wpsc_quantity_update'];
|
72 |
}
|
73 |
|
74 |
+
if ( isset( $_POST['is_customisable'] ) &&
|
75 |
+
'true' == $_POST['is_customisable'] ) {
|
76 |
$provided_parameters['is_customisable'] = true;
|
77 |
|
78 |
if ( isset( $_POST['custom_text'] ) ) {
|
82 |
$provided_parameters['file_data'] = $_FILES['custom_file'];
|
83 |
}
|
84 |
}
|
85 |
+
|
86 |
+
if ( isset( $_POST['donation_price'] ) && ( (float) $_POST['donation_price'] > 0 ) ) {
|
87 |
+
$provided_parameters['provided_price'] = (float) $_POST['donation_price'];
|
88 |
}
|
89 |
+
|
90 |
+
$parameters = array_merge( $default_parameters, (array) $provided_parameters );
|
91 |
|
92 |
$cart_item = $wpsc_cart->set_item( $product_id, $parameters );
|
93 |
|
105 |
}
|
106 |
}
|
107 |
|
108 |
+
if ( isset( $_GET['ajax'] ) && $_GET['ajax'] == 'true' ) {
|
109 |
if ( ($product_id != null) && (get_option( 'fancy_notifications' ) == 1) ) {
|
110 |
echo "if(jQuery('#fancy_notification_content')) {\n\r";
|
111 |
echo " jQuery('#fancy_notification_content').html(\"" . str_replace( array( "\n", "\r" ), array( '\n', '\r' ), addslashes( fancy_notification_content( $cart_messages ) ) ) . "\");\n\r";
|
460 |
$price = wpsc_calculate_price( $product_id, $variations, true );
|
461 |
$response += array(
|
462 |
'old_price' => wpsc_currency_display( $old_price, array( 'display_as_html' => false ) ),
|
463 |
+
'numeric_old_price' => (float) $old_price,
|
464 |
'you_save' => wpsc_currency_display( $you_save_amount, array( 'display_as_html' => false ) ) . "! (" . $you_save_percentage . "%)",
|
465 |
'price' => $from . wpsc_currency_display( $price, array( 'display_as_html' => false ) ),
|
466 |
+
'numeric_price' => (float) $price,
|
467 |
);
|
468 |
}
|
469 |
}
|
555 |
add_action( 'init', 'wpsc_cart_html_page', 110 );
|
556 |
}
|
557 |
|
558 |
+
// Populate Also Bought products on checkout
|
559 |
+
if ( get_option( 'wpsc_also_bought' ) == 1 )
|
560 |
+
add_action( 'wpsc_submit_checkout', 'wpsc_populate_also_bought_list' );
|
561 |
+
|
562 |
+
|
563 |
/**
|
564 |
* submit checkout function, used through ajax and in normal page loading.
|
565 |
* No parameters, returns nothing
|
699 |
$wpsc_checkout->save_forms_to_db( $purchase_log_id );
|
700 |
$wpsc_cart->save_to_db( $purchase_log_id );
|
701 |
$wpsc_cart->submit_stock_claims( $purchase_log_id );
|
|
|
|
|
702 |
if( !isset( $our_user_id ) && isset( $user_ID ))
|
703 |
$our_user_id = $user_ID;
|
704 |
$wpsc_cart->log_id = $purchase_log_id;
|
705 |
do_action( 'wpsc_submit_checkout', array( "purchase_log_id" => $purchase_log_id, "our_user_id" => $our_user_id ) );
|
706 |
+
do_action( 'wpsc_submit_checkout_gateway', $submitted_gateway, $purchase_log );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
707 |
}
|
708 |
}
|
709 |
|
1094 |
wpsc_update_purchase_log_status( $download_data['purchid'], 4 );
|
1095 |
}
|
1096 |
|
|
|
|
|
|
|
1097 |
_wpsc_force_download_file( $file_id );
|
1098 |
} else {
|
1099 |
exit( _e( 'This download is no longer valid, Please contact the site administrator for more information.', 'wpsc' ) );
|
1103 |
add_action( 'init', 'wpsc_download_file' );
|
1104 |
|
1105 |
function _wpsc_force_download_file( $file_id ) {
|
1106 |
+
do_action( 'wpsc_alter_download_action', $file_id );
|
1107 |
$file_data = get_post( $file_id );
|
1108 |
if ( ! $file_data )
|
1109 |
wp_die( __( 'Invalid file ID.', 'wpsc' ) );
|
1230 |
|
1231 |
}
|
1232 |
|
1233 |
+
?>
|
wpsc-includes/breadcrumbs.class.php
CHANGED
@@ -173,7 +173,7 @@ class wpsc_breadcrumbs {
|
|
173 |
);
|
174 |
}
|
175 |
if( is_single() ){
|
176 |
-
$categories =
|
177 |
//if product is associated w more than one category
|
178 |
if(count($categories) > 1 && isset($wpsc_query->query_vars['wpsc_product_category']))
|
179 |
$query_data['category'] = $wpsc_query->query_vars['wpsc_product_category'];
|
173 |
);
|
174 |
}
|
175 |
if( is_single() ){
|
176 |
+
$categories = wpsc_get_product_terms( $wp_query->post->ID , 'wpsc_product_category' );
|
177 |
//if product is associated w more than one category
|
178 |
if(count($categories) > 1 && isset($wpsc_query->query_vars['wpsc_product_category']))
|
179 |
$query_data['category'] = $wpsc_query->query_vars['wpsc_product_category'];
|
wpsc-includes/cart.class.php
CHANGED
@@ -278,6 +278,67 @@ function wpsc_cart_item_quantity_single_prod($id) {
|
|
278 |
global $wpsc_cart;
|
279 |
return $wpsc_cart;
|
280 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
281 |
/**
|
282 |
* cart item price function, no parameters
|
283 |
* @return string the cart item price multiplied by the quantity, with a currency sign
|
@@ -341,7 +402,7 @@ function wpsc_cart_item_image( $width = 31, $height = 31 ) {
|
|
341 |
if( is_ssl() )
|
342 |
$cart_image = str_replace( 'http://', 'https://', $cart_image );
|
343 |
|
344 |
-
return $cart_image;
|
345 |
}
|
346 |
|
347 |
/**
|
@@ -1388,7 +1449,7 @@ class wpsc_cart {
|
|
1388 |
* @return string a price with a currency sign
|
1389 |
*/
|
1390 |
function process_as_currency($price) {
|
1391 |
-
|
1392 |
return wpsc_currency_display($price);
|
1393 |
}
|
1394 |
|
278 |
global $wpsc_cart;
|
279 |
return $wpsc_cart;
|
280 |
}
|
281 |
+
|
282 |
+
/**
|
283 |
+
* Product Maximum Cart Quantity
|
284 |
+
*
|
285 |
+
* @since 3.8.10
|
286 |
+
* @access public
|
287 |
+
*
|
288 |
+
* @param int $prod_id Optional. Product ID.
|
289 |
+
* @return int The maximum quantity that can be added to the cart.
|
290 |
+
*
|
291 |
+
* @uses apply_filters Calls 'wpsc_product_max_cart_quantity' passing product ID.
|
292 |
+
*/
|
293 |
+
function wpsc_product_max_cart_quantity( $product_id = 0 ) {
|
294 |
+
$product_id = absint( $product_id );
|
295 |
+
return apply_filters( 'wpsc_product_max_cart_quantity', 10000, $product_id );
|
296 |
+
}
|
297 |
+
|
298 |
+
/**
|
299 |
+
* Validate Product Cart Quantity
|
300 |
+
* Checks that the quantity is within the permitted bounds and return a valid quantity.
|
301 |
+
*
|
302 |
+
* @since 3.8.10
|
303 |
+
* @access public
|
304 |
+
*
|
305 |
+
* @param int $quantity Cart item product quantity.
|
306 |
+
* @param int $prod_id Optional. Product ID.
|
307 |
+
* @return int The maximum quantity that can be added to the cart.
|
308 |
+
*
|
309 |
+
* @uses wpsc_product_max_cart_quantity Gets the maximum product cart quantity.
|
310 |
+
*/
|
311 |
+
function wpsc_validate_product_cart_quantity( $quantity, $product_id = 0 ) {
|
312 |
+
$max_quantity = wpsc_product_max_cart_quantity( $product_id );
|
313 |
+
if ( $quantity > $max_quantity )
|
314 |
+
return $max_quantity;
|
315 |
+
return $quantity;
|
316 |
+
}
|
317 |
+
|
318 |
+
/**
|
319 |
+
* Validate Cart Product Quantity
|
320 |
+
* Triggered by 'wpsc_add_item' and 'wpsc_edit_item' actions when products are added to the cart.
|
321 |
+
*
|
322 |
+
* @since 3.8.10
|
323 |
+
* @access private
|
324 |
+
*
|
325 |
+
* @param int $product_id Cart product ID.
|
326 |
+
* @param array $parameters Cart item parameters.
|
327 |
+
* @param object $cart Cart object.
|
328 |
+
*
|
329 |
+
* @uses wpsc_validate_product_cart_quantity Filters and restricts the product cart quantity.
|
330 |
+
*/
|
331 |
+
function _wpsc_validate_cart_product_quantity( $product_id, $parameters, $cart ) {
|
332 |
+
foreach ( $cart->cart_items as $key => $cart_item ) {
|
333 |
+
if ( $cart_item->product_id == $product_id ) {
|
334 |
+
$cart->cart_items[$key]->quantity = wpsc_validate_product_cart_quantity( $cart->cart_items[$key]->quantity, $product_id );
|
335 |
+
$cart->cart_items[$key]->refresh_item();
|
336 |
+
}
|
337 |
+
}
|
338 |
+
}
|
339 |
+
add_action( 'wpsc_add_item', '_wpsc_validate_cart_product_quantity', 10, 3 );
|
340 |
+
add_action( 'wpsc_edit_item', '_wpsc_validate_cart_product_quantity', 10, 3 );
|
341 |
+
|
342 |
/**
|
343 |
* cart item price function, no parameters
|
344 |
* @return string the cart item price multiplied by the quantity, with a currency sign
|
402 |
if( is_ssl() )
|
403 |
$cart_image = str_replace( 'http://', 'https://', $cart_image );
|
404 |
|
405 |
+
return apply_filters( 'wpsc_cart_item_image', $cart_image, $wpsc_cart->cart_item->product_id );
|
406 |
}
|
407 |
|
408 |
/**
|
1449 |
* @return string a price with a currency sign
|
1450 |
*/
|
1451 |
function process_as_currency($price) {
|
1452 |
+
_wpsc_deprecated_function( __FUNCTION__, '3.8', 'wpsc_currency_display');
|
1453 |
return wpsc_currency_display($price);
|
1454 |
}
|
1455 |
|
wpsc-includes/checkout-form-data.class.php
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class WPSC_Checkout_Form_Data
|
4 |
-
{
|
5 |
private $data = array();
|
6 |
private $raw_data = array();
|
7 |
private $gateway_data = array();
|
@@ -24,7 +23,7 @@ class WPSC_Checkout_Form_Data
|
|
24 |
$sql = $wpdb->prepare( $sql, $log_id );
|
25 |
$this->raw_data = $wpdb->get_results( $sql );
|
26 |
|
27 |
-
wp_cache_set( $log_id, $this->
|
28 |
}
|
29 |
|
30 |
// At the moment, only core fields have unique_name. In the future, all fields will have
|
1 |
<?php
|
2 |
|
3 |
+
class WPSC_Checkout_Form_Data {
|
|
|
4 |
private $data = array();
|
5 |
private $raw_data = array();
|
6 |
private $gateway_data = array();
|
23 |
$sql = $wpdb->prepare( $sql, $log_id );
|
24 |
$this->raw_data = $wpdb->get_results( $sql );
|
25 |
|
26 |
+
wp_cache_set( $log_id, $this->raw_data, 'wpsc_checkout_form_raw_data' );
|
27 |
}
|
28 |
|
29 |
// At the moment, only core fields have unique_name. In the future, all fields will have
|
wpsc-includes/checkout-form.class.php
ADDED
@@ -0,0 +1,160 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class WPSC_Checkout_Form {
|
4 |
+
/**
|
5 |
+
* Contains an array of created instances of type WPSC_Checkout_Form
|
6 |
+
*
|
7 |
+
* @access private
|
8 |
+
* @static
|
9 |
+
* @since 3.9
|
10 |
+
*
|
11 |
+
* @var array
|
12 |
+
*/
|
13 |
+
private static $instances = array();
|
14 |
+
|
15 |
+
/**
|
16 |
+
* Contains an array of form id => form names
|
17 |
+
*
|
18 |
+
* @access private
|
19 |
+
* @static
|
20 |
+
* @since 3.9
|
21 |
+
*
|
22 |
+
* @var array
|
23 |
+
*/
|
24 |
+
private static $form_titles = array();
|
25 |
+
|
26 |
+
/**
|
27 |
+
* ID of the form instance
|
28 |
+
*
|
29 |
+
* @access private
|
30 |
+
* @since 3.9
|
31 |
+
*
|
32 |
+
* @var int
|
33 |
+
*/
|
34 |
+
private $id = 0;
|
35 |
+
|
36 |
+
/**
|
37 |
+
* Contains an array of form fields
|
38 |
+
*
|
39 |
+
* @access private
|
40 |
+
* @since 3.9
|
41 |
+
*
|
42 |
+
* @var array
|
43 |
+
*/
|
44 |
+
private $fields;
|
45 |
+
|
46 |
+
/**
|
47 |
+
* Contains an array of field_id => field_unique_name
|
48 |
+
*
|
49 |
+
* @access private
|
50 |
+
* @since 3.9
|
51 |
+
*
|
52 |
+
* @var array
|
53 |
+
*/
|
54 |
+
private $field_unique_name_id;
|
55 |
+
|
56 |
+
/**
|
57 |
+
* Returns an instance of the form with a particular ID
|
58 |
+
*
|
59 |
+
* @access public
|
60 |
+
* @static
|
61 |
+
* @since 3.9
|
62 |
+
*
|
63 |
+
* @param int $id Optional. Defaults to 0. The ID of the form
|
64 |
+
* @return WPSC_Checkout_Form
|
65 |
+
*/
|
66 |
+
public static function &get( $id = 0 ) {
|
67 |
+
if ( ! self::$instances )
|
68 |
+
self::$instances[$id] = new WPSC_Checkout_Form( $id );
|
69 |
+
|
70 |
+
self::$form_titles = get_option( 'wpsc_checkout_form_sets' );
|
71 |
+
|
72 |
+
return self::$instances[$id];
|
73 |
+
}
|
74 |
+
|
75 |
+
/**
|
76 |
+
* Constructor of an WPSC_Checkout_Form instance. Cannot be called publicly
|
77 |
+
*
|
78 |
+
* @access private
|
79 |
+
* @since 3.9
|
80 |
+
*
|
81 |
+
* @param string $id Optional. Defaults to 0.
|
82 |
+
*/
|
83 |
+
private function __construct( $id = 0 ) {
|
84 |
+
$this->id = $id;
|
85 |
+
$this->get_fields();
|
86 |
+
}
|
87 |
+
|
88 |
+
/**
|
89 |
+
* Outputs the list of form field options
|
90 |
+
*
|
91 |
+
* @access public
|
92 |
+
* @since 3.9
|
93 |
+
*
|
94 |
+
* @param string $selected_id Optional. Defaults to false. The ID of the field
|
95 |
+
* currently being selected
|
96 |
+
* @return void
|
97 |
+
*/
|
98 |
+
public function field_drop_down_options( $selected_id = false ) {
|
99 |
+
?>
|
100 |
+
<option value=""><?php _e( 'Please select', 'wpsc' ); ?></option>
|
101 |
+
<?php
|
102 |
+
|
103 |
+
foreach ( $this->get_fields() as $field ) {
|
104 |
+
?>
|
105 |
+
<option <?php if ( $field->type == 'heading' ) echo 'disabled="disabled"'; ?> <?php selected( $field->id, $selected_id ) ?> value="<?php echo esc_attr( $field->id ) ?>"><?php echo esc_html( $field->name ); ?></option>
|
106 |
+
<?php
|
107 |
+
}
|
108 |
+
}
|
109 |
+
|
110 |
+
/**
|
111 |
+
* Returns the field ID based on unique name
|
112 |
+
*
|
113 |
+
* @access public
|
114 |
+
* @since 3.9
|
115 |
+
*
|
116 |
+
* @param string $unique_name Unique name of the field
|
117 |
+
* @return mixed False if not found, (int) ID if found.
|
118 |
+
*/
|
119 |
+
public function get_field_id_by_unique_name( $unique_name ) {
|
120 |
+
if ( is_null( $this->field_unique_name_id ) ) {
|
121 |
+
$this->field_unique_name_id = array();
|
122 |
+
foreach ( $this->get_fields() as $field ) {
|
123 |
+
$this->field_unique_name_id[$field->unique_name] = $field->id;
|
124 |
+
}
|
125 |
+
}
|
126 |
+
return isset( $this->field_unique_name_id[$unique_name] ) ? $this->field_unique_name_id[$unique_name] : false;
|
127 |
+
}
|
128 |
+
|
129 |
+
/**
|
130 |
+
* Returns an array containing the fields of the form
|
131 |
+
*
|
132 |
+
* @access public
|
133 |
+
* @since 3.9
|
134 |
+
*
|
135 |
+
* @param bool $exclude_heading Optional. Defaults to false. Whether to exclude heading
|
136 |
+
* fields from the output
|
137 |
+
* @return array
|
138 |
+
*/
|
139 |
+
public function get_fields( $exclude_heading = false) {
|
140 |
+
if ( is_null( $this->fields ) ) {
|
141 |
+
global $wpdb;
|
142 |
+
$sql = "SELECT * FROM " . WPSC_TABLE_CHECKOUT_FORMS . " WHERE checkout_set = %d AND active = 1 " . ( $exclude_heading ? "AND type != 'heading' " : '' ) . "ORDER BY checkout_order ASC";
|
143 |
+
$this->fields = $wpdb->get_results( $wpdb->prepare( $sql, $this->id ) );
|
144 |
+
$this->field_unique_name_id = null;
|
145 |
+
}
|
146 |
+
return $this->fields;
|
147 |
+
}
|
148 |
+
|
149 |
+
/**
|
150 |
+
* Returns the title of the form
|
151 |
+
*
|
152 |
+
* @access public
|
153 |
+
* @since 3.9
|
154 |
+
*
|
155 |
+
* @return string
|
156 |
+
*/
|
157 |
+
public function get_title() {
|
158 |
+
return isset( self::$form_titles[$this->id] ) ? self::$form_titles[$this->id] : '';
|
159 |
+
}
|
160 |
+
}
|
wpsc-includes/checkout.class.php
CHANGED
@@ -60,7 +60,7 @@ function wpsc_get_buyers_email($purchase_id){
|
|
60 |
|
61 |
if ( ! $email_form_field )
|
62 |
return '';
|
63 |
-
$email = $wpdb->get_var( $wpdb->prepare( "SELECT `value` FROM `" .
|
64 |
return $email;
|
65 |
}
|
66 |
|
@@ -631,9 +631,9 @@ class wpsc_checkout {
|
|
631 |
|
632 |
function form_name() {
|
633 |
if ( $this->form_name_is_required() && ($this->checkout_item->type != 'heading') )
|
634 |
-
return esc_html( $this->checkout_item->name ) . ' <span class="asterix">*</span> ';
|
635 |
else
|
636 |
-
return esc_html( $this->checkout_item->name );
|
637 |
}
|
638 |
|
639 |
function form_name_is_required() {
|
@@ -987,7 +987,7 @@ class wpsc_checkout {
|
|
987 |
|
988 |
$value = $value[0];
|
989 |
$prepared_query = $wpdb->insert(
|
990 |
-
|
991 |
array(
|
992 |
'log_id' => $purchase_id,
|
993 |
'form_id' => $form_data->id,
|
@@ -1002,7 +1002,7 @@ class wpsc_checkout {
|
|
1002 |
} else {
|
1003 |
foreach ( (array)$value as $v ) {
|
1004 |
$prepared_query = $wpdb->insert(
|
1005 |
-
|
1006 |
array(
|
1007 |
'log_id' => $purchase_id,
|
1008 |
'form_id' => $form_data->id,
|
@@ -1018,7 +1018,7 @@ class wpsc_checkout {
|
|
1018 |
}
|
1019 |
} else {
|
1020 |
$prepared_query = $wpdb->insert(
|
1021 |
-
|
1022 |
array(
|
1023 |
'log_id' => $purchase_id,
|
1024 |
'form_id' => $form_data->id,
|
@@ -1035,7 +1035,7 @@ class wpsc_checkout {
|
|
1035 |
|
1036 |
// update the states
|
1037 |
$wpdb->insert(
|
1038 |
-
|
1039 |
array(
|
1040 |
'log_id' => $purchase_id,
|
1041 |
'form_id' => $shipping_state_id,
|
@@ -1048,7 +1048,7 @@ class wpsc_checkout {
|
|
1048 |
)
|
1049 |
);
|
1050 |
$wpdb->insert(
|
1051 |
-
|
1052 |
array(
|
1053 |
'log_id' => $purchase_id,
|
1054 |
'form_id' => $billing_state_id,
|
@@ -1114,241 +1114,29 @@ class wpsc_checkout {
|
|
1114 |
|
1115 |
}
|
1116 |
|
1117 |
-
|
1118 |
-
|
1119 |
-
*/
|
1120 |
-
function wpsc_gateway_count() {
|
1121 |
-
global $wpsc_gateway;
|
1122 |
-
return $wpsc_gateway->gateway_count;
|
1123 |
}
|
1124 |
|
1125 |
-
function
|
1126 |
-
|
1127 |
-
return $wpsc_gateway->have_gateways();
|
1128 |
}
|
1129 |
|
1130 |
-
function
|
1131 |
-
|
1132 |
-
return $wpsc_gateway->the_gateway();
|
1133 |
-
}
|
1134 |
-
|
1135 |
-
//return true only when gateway has image set
|
1136 |
-
function wpsc_show_gateway_image(){
|
1137 |
-
global $wpsc_gateway;
|
1138 |
-
if( isset($wpsc_gateway->gateway['image']) && !empty($wpsc_gateway->gateway['image']) )
|
1139 |
-
return true;
|
1140 |
-
else
|
1141 |
-
return false;
|
1142 |
-
}
|
1143 |
-
|
1144 |
-
|
1145 |
-
//return gateway image url (string) or false if none.
|
1146 |
-
function wpsc_gateway_image_url(){
|
1147 |
-
global $wpsc_gateway;
|
1148 |
-
if( wpsc_show_gateway_image() )
|
1149 |
-
return $wpsc_gateway->gateway['image'];
|
1150 |
-
else
|
1151 |
-
return false;
|
1152 |
-
}
|
1153 |
-
|
1154 |
-
function wpsc_gateway_name() {
|
1155 |
-
global $wpsc_gateway;
|
1156 |
-
$display_name = '';
|
1157 |
-
|
1158 |
-
$payment_gateway_names = get_option( 'payment_gateway_names' );
|
1159 |
-
|
1160 |
-
if ( isset( $payment_gateway_names[$wpsc_gateway->gateway['internalname']] ) && ( $payment_gateway_names[$wpsc_gateway->gateway['internalname']] != '' || wpsc_show_gateway_image() ) ) {
|
1161 |
-
$display_name = $payment_gateway_names[$wpsc_gateway->gateway['internalname']];
|
1162 |
-
} elseif ( isset( $wpsc_gateway->gateway['payment_type'] ) ) {
|
1163 |
-
switch ( $wpsc_gateway->gateway['payment_type'] ) {
|
1164 |
-
case "paypal":
|
1165 |
-
case "paypal_pro":
|
1166 |
-
case "wpsc_merchant_paypal_pro";
|
1167 |
-
$display_name = __( 'PayPal', 'wpsc' );
|
1168 |
-
break;
|
1169 |
-
|
1170 |
-
case "manual_payment":
|
1171 |
-
$display_name = __( 'Manual Payment', 'wpsc' );
|
1172 |
-
break;
|
1173 |
-
|
1174 |
-
case "google_checkout":
|
1175 |
-
$display_name = __( 'Google Wallet', 'wpsc' );
|
1176 |
-
break;
|
1177 |
-
|
1178 |
-
case "credit_card":
|
1179 |
-
default:
|
1180 |
-
$display_name = __( 'Credit Card', 'wpsc' );
|
1181 |
-
break;
|
1182 |
-
}
|
1183 |
-
}
|
1184 |
-
if ( $display_name == '' && !wpsc_show_gateway_image() ) {
|
1185 |
-
$display_name = __( 'Credit Card', 'wpsc' );
|
1186 |
-
}
|
1187 |
-
return $display_name;
|
1188 |
-
}
|
1189 |
-
|
1190 |
-
function wpsc_gateway_internal_name() {
|
1191 |
-
global $wpsc_gateway;
|
1192 |
-
return $wpsc_gateway->gateway['internalname'];
|
1193 |
-
}
|
1194 |
-
|
1195 |
-
function wpsc_gateway_is_checked() {
|
1196 |
-
global $wpsc_gateway;
|
1197 |
-
$is_checked = false;
|
1198 |
-
$selected_gateway = wpsc_get_customer_meta( 'selected_gateway' );
|
1199 |
-
if ( $selected_gateway ) {
|
1200 |
-
if ( $wpsc_gateway->gateway['internalname'] == $selected_gateway ) {
|
1201 |
-
$is_checked = true;
|
1202 |
-
}
|
1203 |
-
} else {
|
1204 |
-
if ( $wpsc_gateway->current_gateway == 0 ) {
|
1205 |
-
$is_checked = true;
|
1206 |
-
}
|
1207 |
-
}
|
1208 |
-
if ( $is_checked == true ) {
|
1209 |
-
$output = 'checked="checked"';
|
1210 |
-
} else {
|
1211 |
-
$output = '';
|
1212 |
-
}
|
1213 |
-
return $output;
|
1214 |
-
}
|
1215 |
-
|
1216 |
-
function wpsc_gateway_cc_check() {
|
1217 |
-
|
1218 |
}
|
1219 |
|
1220 |
-
function
|
1221 |
-
|
1222 |
-
|
1223 |
-
|
1224 |
-
|
1225 |
-
$error = array(
|
1226 |
-
'card_number' => empty( $messages['card_number'] ) ? '' : $messages['card_number'],
|
1227 |
-
'expdate' => empty( $messages['expdate'] ) ? '' : $messages['expdate'],
|
1228 |
-
'card_code' => empty( $messages['card_code'] ) ? '' : $messages['card_code'],
|
1229 |
-
'cctype' => empty( $messages['cctype'] ) ? '' : $messages['cctype'],
|
1230 |
);
|
1231 |
|
1232 |
-
// Match fields to gateway
|
1233 |
-
switch ( $wpsc_gateway->gateway['internalname'] ) {
|
1234 |
-
|
1235 |
-
case 'paypal_pro' : // legacy
|
1236 |
-
case 'wpsc_merchant_paypal_pro' :
|
1237 |
-
$output = sprintf( $gateway_checkout_form_fields[$wpsc_gateway->gateway['internalname']], wpsc_the_checkout_CC_validation_class(), $error['card_number'],
|
1238 |
-
wpsc_the_checkout_CCexpiry_validation_class(), $error['expdate'],
|
1239 |
-
wpsc_the_checkout_CCcvv_validation_class(), $error['card_code'],
|
1240 |
-
wpsc_the_checkout_CCtype_validation_class(), $error['cctype']
|
1241 |
-
);
|
1242 |
-
break;
|
1243 |
-
|
1244 |
-
case 'authorize' :
|
1245 |
-
case 'paypal_payflow' :
|
1246 |
-
$output = @sprintf( $gateway_checkout_form_fields[$wpsc_gateway->gateway['internalname']], wpsc_the_checkout_CC_validation_class(), $error['card_number'],
|
1247 |
-
wpsc_the_checkout_CCexpiry_validation_class(), $error['expdate'],
|
1248 |
-
wpsc_the_checkout_CCcvv_validation_class(), $error['card_code']
|
1249 |
-
);
|
1250 |
-
break;
|
1251 |
-
|
1252 |
-
case 'eway' :
|
1253 |
-
case 'bluepay' :
|
1254 |
-
$output = sprintf( $gateway_checkout_form_fields[$wpsc_gateway->gateway['internalname']], wpsc_the_checkout_CC_validation_class(), $error['card_number'],
|
1255 |
-
wpsc_the_checkout_CCexpiry_validation_class(), $error['expdate']
|
1256 |
-
);
|
1257 |
-
break;
|
1258 |
-
case 'linkpoint' :
|
1259 |
-
$output = sprintf( $gateway_checkout_form_fields[$wpsc_gateway->gateway['internalname']], wpsc_the_checkout_CC_validation_class(), $error['card_number'],
|
1260 |
-
wpsc_the_checkout_CCexpiry_validation_class(), $error['expdate']
|
1261 |
-
);
|
1262 |
-
break;
|
1263 |
-
|
1264 |
-
}
|
1265 |
-
|
1266 |
-
if ( isset( $output ) && !empty( $output ) )
|
1267 |
-
return $output;
|
1268 |
-
elseif ( isset( $gateway_checkout_form_fields[$wpsc_gateway->gateway['internalname']] ) )
|
1269 |
-
return $gateway_checkout_form_fields[$wpsc_gateway->gateway['internalname']];
|
1270 |
-
}
|
1271 |
-
|
1272 |
-
function wpsc_gateway_form_field_style() {
|
1273 |
-
global $wpsc_gateway;
|
1274 |
-
$is_checked = false;
|
1275 |
-
$selected_gateway = wpsc_get_customer_meta( 'selected_gateway' );
|
1276 |
-
if ( $selected_gateway ) {
|
1277 |
-
if ( $wpsc_gateway->gateway['internalname'] == $selected_gateway ) {
|
1278 |
-
$is_checked = true;
|
1279 |
-
}
|
1280 |
-
} else {
|
1281 |
-
if ( $wpsc_gateway->current_gateway == 0 ) {
|
1282 |
-
$is_checked = true;
|
1283 |
-
}
|
1284 |
-
}
|
1285 |
-
if ( $is_checked == true ) {
|
1286 |
-
$output = 'checkout_forms';
|
1287 |
-
} else {
|
1288 |
-
$output = 'checkout_forms_hidden';
|
1289 |
-
}
|
1290 |
return $output;
|
1291 |
}
|
1292 |
|
1293 |
-
|
1294 |
-
|
1295 |
-
|
1296 |
-
|
1297 |
-
|
1298 |
-
var $wpsc_gateways;
|
1299 |
-
var $gateway;
|
1300 |
-
var $gateway_count = 0;
|
1301 |
-
var $current_gateway = -1;
|
1302 |
-
var $in_the_loop = false;
|
1303 |
-
|
1304 |
-
function wpsc_gateways() {
|
1305 |
-
global $nzshpcrt_gateways;
|
1306 |
-
|
1307 |
-
$gateway_options = get_option( 'custom_gateway_options' );
|
1308 |
-
foreach ( $nzshpcrt_gateways as $gateway ) {
|
1309 |
-
if ( array_search( $gateway['internalname'], (array)$gateway_options ) !== false ) {
|
1310 |
-
$this->wpsc_gateways[] = $gateway;
|
1311 |
-
}
|
1312 |
-
}
|
1313 |
-
$this->gateway_count = count( $this->wpsc_gateways );
|
1314 |
-
}
|
1315 |
-
|
1316 |
-
/**
|
1317 |
-
* checkout loop methods
|
1318 |
-
*/
|
1319 |
-
function next_gateway() {
|
1320 |
-
$this->current_gateway++;
|
1321 |
-
$this->gateway = $this->wpsc_gateways[$this->current_gateway];
|
1322 |
-
return $this->gateway;
|
1323 |
-
}
|
1324 |
-
|
1325 |
-
function the_gateway() {
|
1326 |
-
$this->in_the_loop = true;
|
1327 |
-
$this->gateway = $this->next_gateway();
|
1328 |
-
if ( $this->current_gateway == 0 ) // loop has just started
|
1329 |
-
do_action( 'wpsc_checkout_loop_start' );
|
1330 |
-
}
|
1331 |
-
|
1332 |
-
function have_gateways() {
|
1333 |
-
if ( $this->current_gateway + 1 < $this->gateway_count ) {
|
1334 |
-
return true;
|
1335 |
-
} else if ( $this->current_gateway + 1 == $this->gateway_count && $this->gateway_count > 0 ) {
|
1336 |
-
do_action( 'wpsc_checkout_loop_end' );
|
1337 |
-
// Do some cleaning up after the loop,
|
1338 |
-
$this->rewind_gateways();
|
1339 |
-
}
|
1340 |
-
|
1341 |
-
$this->in_the_loop = false;
|
1342 |
-
return false;
|
1343 |
-
}
|
1344 |
-
|
1345 |
-
function rewind_gateways() {
|
1346 |
-
$this->current_gateway = -1;
|
1347 |
-
if ( $this->gateway_count > 0 ) {
|
1348 |
-
$this->gateway = $this->wpsc_gateways[0];
|
1349 |
-
}
|
1350 |
-
}
|
1351 |
-
|
1352 |
-
}
|
1353 |
-
|
1354 |
-
?>
|
60 |
|
61 |
if ( ! $email_form_field )
|
62 |
return '';
|
63 |
+
$email = $wpdb->get_var( $wpdb->prepare( "SELECT `value` FROM `" . WPSC_TABLE_SUBMITTED_FORM_DATA . "` WHERE `log_id` = %d AND `form_id` = %d LIMIT 1", $purchase_id, $email_form_field ) );
|
64 |
return $email;
|
65 |
}
|
66 |
|
631 |
|
632 |
function form_name() {
|
633 |
if ( $this->form_name_is_required() && ($this->checkout_item->type != 'heading') )
|
634 |
+
return esc_html( apply_filters( 'wpsc_checkout_field_name', $this->checkout_item->name ) ) . ' <span class="asterix">*</span> ';
|
635 |
else
|
636 |
+
return esc_html( apply_filters( 'wpsc_checkout_field_name', $this->checkout_item->name ) );
|
637 |
}
|
638 |
|
639 |
function form_name_is_required() {
|
987 |
|
988 |
$value = $value[0];
|
989 |
$prepared_query = $wpdb->insert(
|
990 |
+
WPSC_TABLE_SUBMITTED_FORM_DATA,
|
991 |
array(
|
992 |
'log_id' => $purchase_id,
|
993 |
'form_id' => $form_data->id,
|
1002 |
} else {
|
1003 |
foreach ( (array)$value as $v ) {
|
1004 |
$prepared_query = $wpdb->insert(
|
1005 |
+
WPSC_TABLE_SUBMITTED_FORM_DATA,
|
1006 |
array(
|
1007 |
'log_id' => $purchase_id,
|
1008 |
'form_id' => $form_data->id,
|
1018 |
}
|
1019 |
} else {
|
1020 |
$prepared_query = $wpdb->insert(
|
1021 |
+
WPSC_TABLE_SUBMITTED_FORM_DATA,
|
1022 |
array(
|
1023 |
'log_id' => $purchase_id,
|
1024 |
'form_id' => $form_data->id,
|
1035 |
|
1036 |
// update the states
|
1037 |
$wpdb->insert(
|
1038 |
+
WPSC_TABLE_SUBMITTED_FORM_DATA,
|
1039 |
array(
|
1040 |
'log_id' => $purchase_id,
|
1041 |
'form_id' => $shipping_state_id,
|
1048 |
)
|
1049 |
);
|
1050 |
$wpdb->insert(
|
1051 |
+
WPSC_TABLE_SUBMITTED_FORM_DATA,
|
1052 |
array(
|
1053 |
'log_id' => $purchase_id,
|
1054 |
'form_id' => $billing_state_id,
|
1114 |
|
1115 |
}
|
1116 |
|
1117 |
+
function wpsc_get_gateway_list() {
|
1118 |
+
return apply_filters( 'wpsc_get_gateway_list', '' );
|
|
|
|
|
|
|
|
|
1119 |
}
|
1120 |
|
1121 |
+
function wpsc_gateway_list() {
|
1122 |
+
echo wpsc_get_gateway_list();
|
|
|
1123 |
}
|
1124 |
|
1125 |
+
function wpsc_gateway_count() {
|
1126 |
+
return apply_filters( 'wpsc_gateway_count', 0 );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1127 |
}
|
1128 |
|
1129 |
+
function wpsc_get_gateway_hidden_field() {
|
1130 |
+
$output = sprintf(
|
1131 |
+
'<input name="custom_gateway" value="%s" type="hidden" />',
|
1132 |
+
apply_filters( 'wpsc_gateway_hidden_field_value', '' )
|
|
|
|
|
|
|
|
|
|
|
|
|
1133 |
);
|
1134 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1135 |
return $output;
|
1136 |
}
|
1137 |
|
1138 |
+
function wpsc_gateway_hidden_field() {
|
1139 |
+
do_action( 'wpsc_before_gateway_hidden_field' );
|
1140 |
+
echo wpsc_get_gateway_hidden_field();
|
1141 |
+
do_action( 'wpsc_after_gateway_hidden_field' );
|
1142 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/country.class.php
CHANGED
File without changes
|
wpsc-includes/coupons.class.php
CHANGED
@@ -79,8 +79,6 @@ class wpsc_coupons {
|
|
79 |
'is-used' => '',
|
80 |
'active' => '',
|
81 |
'use-once' => '',
|
82 |
-
'use-x-times' => '',
|
83 |
-
'free-shipping' => '',
|
84 |
'start' => '',
|
85 |
'expiry' => '',
|
86 |
'every_product' => ''
|
@@ -111,8 +109,7 @@ class wpsc_coupons {
|
|
111 |
* @return bool True if coupon is not expried, used and still active, False otherwise.
|
112 |
*/
|
113 |
function validate_coupon() {
|
114 |
-
$now =
|
115 |
-
$now = strtotime($now);
|
116 |
|
117 |
if ( ($this->active=='1') && !(($this->use_once == '1') && ($this->is_used=='1'))){
|
118 |
if ((strtotime($this->start_date) < $now)&&(strtotime($this->end_date) > $now)){
|
@@ -579,9 +576,9 @@ class wpsc_coupons {
|
|
579 |
|
580 |
case 'category'://Checks if the product category is the condition value
|
581 |
if ( $product_data->post_parent ) {
|
582 |
-
$categories =
|
583 |
} else {
|
584 |
-
$categories =
|
585 |
}
|
586 |
foreach ( $categories as $cat ) {
|
587 |
if ( strtolower( $cat->name ) == strtolower( $c['value'] ) )
|
79 |
'is-used' => '',
|
80 |
'active' => '',
|
81 |
'use-once' => '',
|
|
|
|
|
82 |
'start' => '',
|
83 |
'expiry' => '',
|
84 |
'every_product' => ''
|
109 |
* @return bool True if coupon is not expried, used and still active, False otherwise.
|
110 |
*/
|
111 |
function validate_coupon() {
|
112 |
+
$now = current_time( 'timestamp', true );
|
|
|
113 |
|
114 |
if ( ($this->active=='1') && !(($this->use_once == '1') && ($this->is_used=='1'))){
|
115 |
if ((strtotime($this->start_date) < $now)&&(strtotime($this->end_date) > $now)){
|
576 |
|
577 |
case 'category'://Checks if the product category is the condition value
|
578 |
if ( $product_data->post_parent ) {
|
579 |
+
$categories = wpsc_get_product_terms( $product_data->post_parent, 'wpsc_product_category' );
|
580 |
} else {
|
581 |
+
$categories = wpsc_get_product_terms( $product_data->ID, 'wpsc_product_category' );
|
582 |
}
|
583 |
foreach ( $categories as $cat ) {
|
584 |
if ( strtolower( $cat->name ) == strtolower( $c['value'] ) )
|
wpsc-includes/cron.php
CHANGED
File without changes
|
wpsc-includes/currency.helpers.php
CHANGED
@@ -38,8 +38,38 @@ function wpsc_convert_currency( $amt, $from, $to ) {
|
|
38 |
}
|
39 |
|
40 |
function wpsc_string_to_float( $string ) {
|
41 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
$string = preg_replace( '/[^0-9\\' . $decimal_separator . ']/', '', $string );
|
43 |
$string = str_replace( $decimal_separator, '.', $string );
|
|
|
44 |
return (float) $string;
|
45 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
}
|
39 |
|
40 |
function wpsc_string_to_float( $string ) {
|
41 |
+
global $wp_locale;
|
42 |
+
|
43 |
+
$decimal_separator = get_option(
|
44 |
+
'wpsc_decimal_separator',
|
45 |
+
$wp_locale->number_format['decimal_point']
|
46 |
+
);
|
47 |
+
|
48 |
$string = preg_replace( '/[^0-9\\' . $decimal_separator . ']/', '', $string );
|
49 |
$string = str_replace( $decimal_separator, '.', $string );
|
50 |
+
|
51 |
return (float) $string;
|
52 |
}
|
53 |
+
|
54 |
+
function wpsc_format_number( $number, $decimals = 2 ) {
|
55 |
+
global $wp_locale;
|
56 |
+
|
57 |
+
$decimal_separator = get_option(
|
58 |
+
'wpsc_decimal_separator',
|
59 |
+
$wp_locale->number_format['decimal_point']
|
60 |
+
);
|
61 |
+
|
62 |
+
$thousands_separator = get_option(
|
63 |
+
'wpsc_thousands_separator',
|
64 |
+
$wp_locale->number_format['thousands_sep']
|
65 |
+
);
|
66 |
+
|
67 |
+
$formatted = number_format(
|
68 |
+
(float) $number,
|
69 |
+
$decimals,
|
70 |
+
$decimal_separator,
|
71 |
+
$thousands_separator
|
72 |
+
);
|
73 |
+
|
74 |
+
return $formatted;
|
75 |
+
}
|
wpsc-includes/display.functions.php
CHANGED
@@ -60,60 +60,69 @@ function wpsc_buy_now_button( $product_id, $replaced_shortcode = false ) {
|
|
60 |
return ob_get_clean();
|
61 |
}
|
62 |
|
|
|
|
|
|
|
|
|
63 |
function wpsc_also_bought( $product_id ) {
|
64 |
-
/*
|
65 |
-
* Displays products that were bought aling with the product defined by $product_id
|
66 |
-
* most of it scarcely needs describing
|
67 |
-
*/
|
68 |
global $wpdb;
|
69 |
|
70 |
if ( get_option( 'wpsc_also_bought' ) == 0 ) {
|
71 |
-
//returns nothing if this is off
|
72 |
return '';
|
73 |
}
|
74 |
-
|
75 |
-
|
76 |
-
// to be made customiseable in a future release
|
77 |
$also_bought_limit = 3;
|
78 |
$element_widths = 96;
|
79 |
$image_display_height = 96;
|
80 |
$image_display_width = 96;
|
81 |
-
|
82 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
$also_bought = $wpdb->get_results( $wpdb->prepare( "SELECT `" . $wpdb->posts . "`.* FROM `" . WPSC_TABLE_ALSO_BOUGHT . "`, `" . $wpdb->posts . "` WHERE `selected_product`= %d AND `" . WPSC_TABLE_ALSO_BOUGHT . "`.`associated_product` = `" . $wpdb->posts . "`.`id` AND `" . $wpdb->posts . "`.`post_status` IN('publish','protected') ORDER BY `" . WPSC_TABLE_ALSO_BOUGHT . "`.`quantity` DESC LIMIT $also_bought_limit", $product_id ), ARRAY_A );
|
84 |
-
if ( count( $also_bought ) > 0 ) {
|
85 |
-
$output .=
|
86 |
-
$output .=
|
87 |
-
foreach (
|
88 |
-
$output .=
|
89 |
if ( get_option( 'show_thumbnails' ) == 1 ) {
|
90 |
-
$image_path = wpsc_the_product_thumbnail( $image_display_width, $image_display_height, $also_bought_data['ID']);
|
91 |
-
if($image_path){
|
92 |
-
$output .=
|
93 |
-
$output .=
|
94 |
-
$output .=
|
95 |
} else {
|
96 |
if ( get_option( 'product_image_width' ) != '' ) {
|
97 |
-
$
|
98 |
} else {
|
99 |
-
$
|
100 |
}
|
|
|
101 |
}
|
102 |
}
|
103 |
|
104 |
-
$output .=
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
$
|
109 |
-
|
110 |
-
|
111 |
-
|
|
|
|
|
|
|
112 |
}
|
113 |
-
$output .=
|
114 |
}
|
115 |
-
$output .=
|
116 |
-
$output .=
|
117 |
}
|
118 |
return $output;
|
119 |
}
|
@@ -263,47 +272,6 @@ function wpsc_refresh_page_urls( $post_id, $post ) {
|
|
263 |
|
264 |
add_action( 'save_post', 'wpsc_refresh_page_urls', 10, 2 );
|
265 |
|
266 |
-
/**
|
267 |
-
* Updates permalink slugs
|
268 |
-
*
|
269 |
-
* @since 3.8.9
|
270 |
-
* @return type
|
271 |
-
*/
|
272 |
-
function wpsc_update_permalink_slugs() {
|
273 |
-
global $wpdb;
|
274 |
-
|
275 |
-
$wpsc_pageurl_option = array(
|
276 |
-
'product_list_url' => '[productspage]',
|
277 |
-
'shopping_cart_url' => '[shoppingcart]',
|
278 |
-
'checkout_url' => '[shoppingcart]',
|
279 |
-
'transact_url' => '[transactionresults]',
|
280 |
-
'user_account_url' => '[userlog]'
|
281 |
-
);
|
282 |
-
|
283 |
-
$ids = array();
|
284 |
-
|
285 |
-
foreach ( $wpsc_pageurl_option as $option_key => $page_string ) {
|
286 |
-
$id = $wpdb->get_var( "SELECT `ID` FROM `{$wpdb->posts}` WHERE `post_type` = 'page' AND `post_content` LIKE '%$page_string%' LIMIT 1" );
|
287 |
-
|
288 |
-
if ( ! $id )
|
289 |
-
continue;
|
290 |
-
|
291 |
-
$ids[$page_string] = $id;
|
292 |
-
|
293 |
-
$the_new_link = get_page_link( $id );
|
294 |
-
|
295 |
-
if ( stristr( get_option( $option_key ), "https://" ) )
|
296 |
-
$the_new_link = str_replace( 'http://', "https://", $the_new_link );
|
297 |
-
|
298 |
-
if ( $option_key == 'shopping_cart_url' )
|
299 |
-
update_option( 'checkout_url', $the_new_link );
|
300 |
-
|
301 |
-
update_option( $option_key, $the_new_link );
|
302 |
-
}
|
303 |
-
|
304 |
-
update_option( 'wpsc_shortcode_page_ids', $ids );
|
305 |
-
}
|
306 |
-
|
307 |
/**
|
308 |
* wpsc_obtain_the_title function, for replaacing the page title with the category or product
|
309 |
* @return string - the new page title
|
60 |
return ob_get_clean();
|
61 |
}
|
62 |
|
63 |
+
/**
|
64 |
+
* Displays products that were bought along with the product defined by $product_id.
|
65 |
+
* This functionality will be deprecated and be provided by a plugin in a future version.
|
66 |
+
*/
|
67 |
function wpsc_also_bought( $product_id ) {
|
|
|
|
|
|
|
|
|
68 |
global $wpdb;
|
69 |
|
70 |
if ( get_option( 'wpsc_also_bought' ) == 0 ) {
|
|
|
71 |
return '';
|
72 |
}
|
73 |
+
|
74 |
+
// To be made customiseable in a future release
|
|
|
75 |
$also_bought_limit = 3;
|
76 |
$element_widths = 96;
|
77 |
$image_display_height = 96;
|
78 |
$image_display_width = 96;
|
79 |
+
|
80 |
+
// Filter will be used by a plugin to provide 'Also Bought' functionality when this is deprecated from core.
|
81 |
+
// Filter is currently private and should not be used by plugin/theme devs as it may only be temporary.
|
82 |
+
$output = apply_filters( '_wpsc_also_bought', '', $product_id );
|
83 |
+
if ( ! empty( $output ) ) {
|
84 |
+
return $output;
|
85 |
+
}
|
86 |
+
|
87 |
+
// If above filter returns output then the following is ignore and can be deprecated in future.
|
88 |
$also_bought = $wpdb->get_results( $wpdb->prepare( "SELECT `" . $wpdb->posts . "`.* FROM `" . WPSC_TABLE_ALSO_BOUGHT . "`, `" . $wpdb->posts . "` WHERE `selected_product`= %d AND `" . WPSC_TABLE_ALSO_BOUGHT . "`.`associated_product` = `" . $wpdb->posts . "`.`id` AND `" . $wpdb->posts . "`.`post_status` IN('publish','protected') ORDER BY `" . WPSC_TABLE_ALSO_BOUGHT . "`.`quantity` DESC LIMIT $also_bought_limit", $product_id ), ARRAY_A );
|
89 |
+
if ( is_array( $also_bought ) && count( $also_bought ) > 0 ) {
|
90 |
+
$output .= '<h2 class="prodtitles wpsc_also_bought">' . __( 'People who bought this item also bought', 'wpsc' ) . '</h2>';
|
91 |
+
$output .= '<div class="wpsc_also_bought">';
|
92 |
+
foreach ( $also_bought as $also_bought_data ) {
|
93 |
+
$output .= '<div class="wpsc_also_bought_item" style="width: ' . $element_widths . 'px;">';
|
94 |
if ( get_option( 'show_thumbnails' ) == 1 ) {
|
95 |
+
$image_path = wpsc_the_product_thumbnail( $image_display_width, $image_display_height, $also_bought_data['ID'] );
|
96 |
+
if ( $image_path ) {
|
97 |
+
$output .= '<a href="' . esc_attr( get_permalink( $also_bought_data['ID'] ) ) . '" class="preview_link" rel="' . esc_attr( sanitize_html_class( get_the_title( $also_bought_data['ID'] ) ) ) . '">';
|
98 |
+
$output .= '<img src="' . esc_attr( $image_path ) . '" id="product_image_' . $also_bought_data['ID'] . '" class="product_image" />';
|
99 |
+
$output .= '</a>';
|
100 |
} else {
|
101 |
if ( get_option( 'product_image_width' ) != '' ) {
|
102 |
+
$width_and_height = 'width="' . $image_display_height . '" height="' . $image_display_height . '" ';
|
103 |
} else {
|
104 |
+
$width_and_height = '';
|
105 |
}
|
106 |
+
$output .= '<img src="' . WPSC_CORE_THEME_URL . '/wpsc-images/noimage.png" title="' . esc_attr( get_the_title( $also_bought_data['ID'] ) ) . '" alt="' . esc_attr( get_the_title( $also_bought_data['ID'] ) ) . '" id="product_image_' . $also_bought_data['ID'] . '" class="product_image" ' . $width_and_height . '/>';
|
107 |
}
|
108 |
}
|
109 |
|
110 |
+
$output .= '<a class="wpsc_product_name" href="' . get_permalink( $also_bought_data['ID'] ) . '">' . get_the_title( $also_bought_data['ID'] ) . '</a>';
|
111 |
+
if ( ! wpsc_product_is_donation( $also_bought_data['ID'] ) ) {
|
112 |
+
// Ideally use the wpsc_the_product_price_display() function here but needs some tweaking
|
113 |
+
$price = get_product_meta( $also_bought_data['ID'], 'price', true );
|
114 |
+
$special_price = get_product_meta( $also_bought_data['ID'], 'special_price', true );
|
115 |
+
if ( ! empty( $special_price ) ) {
|
116 |
+
$output .= '<span style="text-decoration: line-through;">' . wpsc_currency_display( $price ) . '</span>';
|
117 |
+
$output .= wpsc_currency_display( $special_price );
|
118 |
+
} else {
|
119 |
+
$output .= wpsc_currency_display( $price );
|
120 |
+
}
|
121 |
}
|
122 |
+
$output .= '</div>';
|
123 |
}
|
124 |
+
$output .= '</div>';
|
125 |
+
$output .= '<br clear="all" />';
|
126 |
}
|
127 |
return $output;
|
128 |
}
|
272 |
|
273 |
add_action( 'save_post', 'wpsc_refresh_page_urls', 10, 2 );
|
274 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
275 |
/**
|
276 |
* wpsc_obtain_the_title function, for replaacing the page title with the category or product
|
277 |
* @return string - the new page title
|
wpsc-includes/fpdf/font/courier.php
DELETED
@@ -1,7 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
for($i=0;$i<=255;$i++)
|
3 |
-
$fpdf_charwidths['courier'][chr($i)]=600;
|
4 |
-
$fpdf_charwidths['courierB']=$fpdf_charwidths['courier'];
|
5 |
-
$fpdf_charwidths['courierI']=$fpdf_charwidths['courier'];
|
6 |
-
$fpdf_charwidths['courierBI']=$fpdf_charwidths['courier'];
|
7 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/font/desktop.ini
DELETED
@@ -1,4 +0,0 @@
|
|
1 |
-
[ViewState]
|
2 |
-
Mode=
|
3 |
-
Vid=
|
4 |
-
FolderType=NotSpecified
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/font/helvetica.php
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
$fpdf_charwidths['helvetica']=array(
|
3 |
-
chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
|
4 |
-
chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>278,'"'=>355,'#'=>556,'$'=>556,'%'=>889,'&'=>667,'\''=>191,'('=>333,')'=>333,'*'=>389,'+'=>584,
|
5 |
-
','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>278,';'=>278,'<'=>584,'='=>584,'>'=>584,'?'=>556,'@'=>1015,'A'=>667,
|
6 |
-
'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>500,'K'=>667,'L'=>556,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
|
7 |
-
'X'=>667,'Y'=>667,'Z'=>611,'['=>278,'\\'=>278,']'=>278,'^'=>469,'_'=>556,'`'=>333,'a'=>556,'b'=>556,'c'=>500,'d'=>556,'e'=>556,'f'=>278,'g'=>556,'h'=>556,'i'=>222,'j'=>222,'k'=>500,'l'=>222,'m'=>833,
|
8 |
-
'n'=>556,'o'=>556,'p'=>556,'q'=>556,'r'=>333,'s'=>500,'t'=>278,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>500,'{'=>334,'|'=>260,'}'=>334,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>222,chr(131)=>556,
|
9 |
-
chr(132)=>333,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>222,chr(146)=>222,chr(147)=>333,chr(148)=>333,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
|
10 |
-
chr(154)=>500,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>260,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
|
11 |
-
chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>556,chr(182)=>537,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667,
|
12 |
-
chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
13 |
-
chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556,
|
14 |
-
chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500);
|
15 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/font/helveticab.php
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
$fpdf_charwidths['helveticaB']=array(
|
3 |
-
chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
|
4 |
-
chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>333,'"'=>474,'#'=>556,'$'=>556,'%'=>889,'&'=>722,'\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584,
|
5 |
-
','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722,
|
6 |
-
'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
|
7 |
-
'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889,
|
8 |
-
'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>278,chr(131)=>556,
|
9 |
-
chr(132)=>500,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>278,chr(146)=>278,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
|
10 |
-
chr(154)=>556,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>280,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
|
11 |
-
chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>611,chr(182)=>556,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
|
12 |
-
chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
13 |
-
chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611,
|
14 |
-
chr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556);
|
15 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/font/helveticabi.php
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
$fpdf_charwidths['helveticaBI']=array(
|
3 |
-
chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
|
4 |
-
chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>333,'"'=>474,'#'=>556,'$'=>556,'%'=>889,'&'=>722,'\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584,
|
5 |
-
','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722,
|
6 |
-
'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
|
7 |
-
'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889,
|
8 |
-
'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>278,chr(131)=>556,
|
9 |
-
chr(132)=>500,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>278,chr(146)=>278,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
|
10 |
-
chr(154)=>556,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>280,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
|
11 |
-
chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>611,chr(182)=>556,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
|
12 |
-
chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
13 |
-
chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611,
|
14 |
-
chr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556);
|
15 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/font/helveticai.php
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
$fpdf_charwidths['helveticaI']=array(
|
3 |
-
chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
|
4 |
-
chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>278,'"'=>355,'#'=>556,'$'=>556,'%'=>889,'&'=>667,'\''=>191,'('=>333,')'=>333,'*'=>389,'+'=>584,
|
5 |
-
','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>278,';'=>278,'<'=>584,'='=>584,'>'=>584,'?'=>556,'@'=>1015,'A'=>667,
|
6 |
-
'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>500,'K'=>667,'L'=>556,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
|
7 |
-
'X'=>667,'Y'=>667,'Z'=>611,'['=>278,'\\'=>278,']'=>278,'^'=>469,'_'=>556,'`'=>333,'a'=>556,'b'=>556,'c'=>500,'d'=>556,'e'=>556,'f'=>278,'g'=>556,'h'=>556,'i'=>222,'j'=>222,'k'=>500,'l'=>222,'m'=>833,
|
8 |
-
'n'=>556,'o'=>556,'p'=>556,'q'=>556,'r'=>333,'s'=>500,'t'=>278,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>500,'{'=>334,'|'=>260,'}'=>334,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>222,chr(131)=>556,
|
9 |
-
chr(132)=>333,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>222,chr(146)=>222,chr(147)=>333,chr(148)=>333,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
|
10 |
-
chr(154)=>500,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>260,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
|
11 |
-
chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>556,chr(182)=>537,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667,
|
12 |
-
chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
13 |
-
chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556,
|
14 |
-
chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500);
|
15 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/font/makefont/cp1250.map
DELETED
@@ -1,251 +0,0 @@
|
|
1 |
-
!00 U+0000 .notdef
|
2 |
-
!01 U+0001 .notdef
|
3 |
-
!02 U+0002 .notdef
|
4 |
-
!03 U+0003 .notdef
|
5 |
-
!04 U+0004 .notdef
|
6 |
-
!05 U+0005 .notdef
|
7 |
-
!06 U+0006 .notdef
|
8 |
-
!07 U+0007 .notdef
|
9 |
-
!08 U+0008 .notdef
|
10 |
-
!09 U+0009 .notdef
|
11 |
-
!0A U+000A .notdef
|
12 |
-
!0B U+000B .notdef
|
13 |
-
!0C U+000C .notdef
|
14 |
-
!0D U+000D .notdef
|
15 |
-
!0E U+000E .notdef
|
16 |
-
!0F U+000F .notdef
|
17 |
-
!10 U+0010 .notdef
|
18 |
-
!11 U+0011 .notdef
|
19 |
-
!12 U+0012 .notdef
|
20 |
-
!13 U+0013 .notdef
|
21 |
-
!14 U+0014 .notdef
|
22 |
-
!15 U+0015 .notdef
|
23 |
-
!16 U+0016 .notdef
|
24 |
-
!17 U+0017 .notdef
|
25 |
-
!18 U+0018 .notdef
|
26 |
-
!19 U+0019 .notdef
|
27 |
-
!1A U+001A .notdef
|
28 |
-
!1B U+001B .notdef
|
29 |
-
!1C U+001C .notdef
|
30 |
-
!1D U+001D .notdef
|
31 |
-
!1E U+001E .notdef
|
32 |
-
!1F U+001F .notdef
|
33 |
-
!20 U+0020 space
|
34 |
-
!21 U+0021 exclam
|
35 |
-
!22 U+0022 quotedbl
|
36 |
-
!23 U+0023 numbersign
|
37 |
-
!24 U+0024 dollar
|
38 |
-
!25 U+0025 percent
|
39 |
-
!26 U+0026 ampersand
|
40 |
-
!27 U+0027 quotesingle
|
41 |
-
!28 U+0028 parenleft
|
42 |
-
!29 U+0029 parenright
|
43 |
-
!2A U+002A asterisk
|
44 |
-
!2B U+002B plus
|
45 |
-
!2C U+002C comma
|
46 |
-
!2D U+002D hyphen
|
47 |
-
!2E U+002E period
|
48 |
-
!2F U+002F slash
|
49 |
-
!30 U+0030 zero
|
50 |
-
!31 U+0031 one
|
51 |
-
!32 U+0032 two
|
52 |
-
!33 U+0033 three
|
53 |
-
!34 U+0034 four
|
54 |
-
!35 U+0035 five
|
55 |
-
!36 U+0036 six
|
56 |
-
!37 U+0037 seven
|
57 |
-
!38 U+0038 eight
|
58 |
-
!39 U+0039 nine
|
59 |
-
!3A U+003A colon
|
60 |
-
!3B U+003B semicolon
|
61 |
-
!3C U+003C less
|
62 |
-
!3D U+003D equal
|
63 |
-
!3E U+003E greater
|
64 |
-
!3F U+003F question
|
65 |
-
!40 U+0040 at
|
66 |
-
!41 U+0041 A
|
67 |
-
!42 U+0042 B
|
68 |
-
!43 U+0043 C
|
69 |
-
!44 U+0044 D
|
70 |
-
!45 U+0045 E
|
71 |
-
!46 U+0046 F
|
72 |
-
!47 U+0047 G
|
73 |
-
!48 U+0048 H
|
74 |
-
!49 U+0049 I
|
75 |
-
!4A U+004A J
|
76 |
-
!4B U+004B K
|
77 |
-
!4C U+004C L
|
78 |
-
!4D U+004D M
|
79 |
-
!4E U+004E N
|
80 |
-
!4F U+004F O
|
81 |
-
!50 U+0050 P
|
82 |
-
!51 U+0051 Q
|
83 |
-
!52 U+0052 R
|
84 |
-
!53 U+0053 S
|
85 |
-
!54 U+0054 T
|
86 |
-
!55 U+0055 U
|
87 |
-
!56 U+0056 V
|
88 |
-
!57 U+0057 W
|
89 |
-
!58 U+0058 X
|
90 |
-
!59 U+0059 Y
|
91 |
-
!5A U+005A Z
|
92 |
-
!5B U+005B bracketleft
|
93 |
-
!5C U+005C backslash
|
94 |
-
!5D U+005D bracketright
|
95 |
-
!5E U+005E asciicircum
|
96 |
-
!5F U+005F underscore
|
97 |
-
!60 U+0060 grave
|
98 |
-
!61 U+0061 a
|
99 |
-
!62 U+0062 b
|
100 |
-
!63 U+0063 c
|
101 |
-
!64 U+0064 d
|
102 |
-
!65 U+0065 e
|
103 |
-
!66 U+0066 f
|
104 |
-
!67 U+0067 g
|
105 |
-
!68 U+0068 h
|
106 |
-
!69 U+0069 i
|
107 |
-
!6A U+006A j
|
108 |
-
!6B U+006B k
|
109 |
-
!6C U+006C l
|
110 |
-
!6D U+006D m
|
111 |
-
!6E U+006E n
|
112 |
-
!6F U+006F o
|
113 |
-
!70 U+0070 p
|
114 |
-
!71 U+0071 q
|
115 |
-
!72 U+0072 r
|
116 |
-
!73 U+0073 s
|
117 |
-
!74 U+0074 t
|
118 |
-
!75 U+0075 u
|
119 |
-
!76 U+0076 v
|
120 |
-
!77 U+0077 w
|
121 |
-
!78 U+0078 x
|
122 |
-
!79 U+0079 y
|
123 |
-
!7A U+007A z
|
124 |
-
!7B U+007B braceleft
|
125 |
-
!7C U+007C bar
|
126 |
-
!7D U+007D braceright
|
127 |
-
!7E U+007E asciitilde
|
128 |
-
!7F U+007F .notdef
|
129 |
-
!80 U+20AC Euro
|
130 |
-
!82 U+201A quotesinglbase
|
131 |
-
!84 U+201E quotedblbase
|
132 |
-
!85 U+2026 ellipsis
|
133 |
-
!86 U+2020 dagger
|
134 |
-
!87 U+2021 daggerdbl
|
135 |
-
!89 U+2030 perthousand
|
136 |
-
!8A U+0160 Scaron
|
137 |
-
!8B U+2039 guilsinglleft
|
138 |
-
!8C U+015A Sacute
|
139 |
-
!8D U+0164 Tcaron
|
140 |
-
!8E U+017D Zcaron
|
141 |
-
!8F U+0179 Zacute
|
142 |
-
!91 U+2018 quoteleft
|
143 |
-
!92 U+2019 quoteright
|
144 |
-
!93 U+201C quotedblleft
|
145 |
-
!94 U+201D quotedblright
|
146 |
-
!95 U+2022 bullet
|
147 |
-
!96 U+2013 endash
|
148 |
-
!97 U+2014 emdash
|
149 |
-
!99 U+2122 trademark
|
150 |
-
!9A U+0161 scaron
|
151 |
-
!9B U+203A guilsinglright
|
152 |
-
!9C U+015B sacute
|
153 |
-
!9D U+0165 tcaron
|
154 |
-
!9E U+017E zcaron
|
155 |
-
!9F U+017A zacute
|
156 |
-
!A0 U+00A0 space
|
157 |
-
!A1 U+02C7 caron
|
158 |
-
!A2 U+02D8 breve
|
159 |
-
!A3 U+0141 Lslash
|
160 |
-
!A4 U+00A4 currency
|
161 |
-
!A5 U+0104 Aogonek
|
162 |
-
!A6 U+00A6 brokenbar
|
163 |
-
!A7 U+00A7 section
|
164 |
-
!A8 U+00A8 dieresis
|
165 |
-
!A9 U+00A9 copyright
|
166 |
-
!AA U+015E Scedilla
|
167 |
-
!AB U+00AB guillemotleft
|
168 |
-
!AC U+00AC logicalnot
|
169 |
-
!AD U+00AD hyphen
|
170 |
-
!AE U+00AE registered
|
171 |
-
!AF U+017B Zdotaccent
|
172 |
-
!B0 U+00B0 degree
|
173 |
-
!B1 U+00B1 plusminus
|
174 |
-
!B2 U+02DB ogonek
|
175 |
-
!B3 U+0142 lslash
|
176 |
-
!B4 U+00B4 acute
|
177 |
-
!B5 U+00B5 mu
|
178 |
-
!B6 U+00B6 paragraph
|
179 |
-
!B7 U+00B7 periodcentered
|
180 |
-
!B8 U+00B8 cedilla
|
181 |
-
!B9 U+0105 aogonek
|
182 |
-
!BA U+015F scedilla
|
183 |
-
!BB U+00BB guillemotright
|
184 |
-
!BC U+013D Lcaron
|
185 |
-
!BD U+02DD hungarumlaut
|
186 |
-
!BE U+013E lcaron
|
187 |
-
!BF U+017C zdotaccent
|
188 |
-
!C0 U+0154 Racute
|
189 |
-
!C1 U+00C1 Aacute
|
190 |
-
!C2 U+00C2 Acircumflex
|
191 |
-
!C3 U+0102 Abreve
|
192 |
-
!C4 U+00C4 Adieresis
|
193 |
-
!C5 U+0139 Lacute
|
194 |
-
!C6 U+0106 Cacute
|
195 |
-
!C7 U+00C7 Ccedilla
|
196 |
-
!C8 U+010C Ccaron
|
197 |
-
!C9 U+00C9 Eacute
|
198 |
-
!CA U+0118 Eogonek
|
199 |
-
!CB U+00CB Edieresis
|
200 |
-
!CC U+011A Ecaron
|
201 |
-
!CD U+00CD Iacute
|
202 |
-
!CE U+00CE Icircumflex
|
203 |
-
!CF U+010E Dcaron
|
204 |
-
!D0 U+0110 Dcroat
|
205 |
-
!D1 U+0143 Nacute
|
206 |
-
!D2 U+0147 Ncaron
|
207 |
-
!D3 U+00D3 Oacute
|
208 |
-
!D4 U+00D4 Ocircumflex
|
209 |
-
!D5 U+0150 Ohungarumlaut
|
210 |
-
!D6 U+00D6 Odieresis
|
211 |
-
!D7 U+00D7 multiply
|
212 |
-
!D8 U+0158 Rcaron
|
213 |
-
!D9 U+016E Uring
|
214 |
-
!DA U+00DA Uacute
|
215 |
-
!DB U+0170 Uhungarumlaut
|
216 |
-
!DC U+00DC Udieresis
|
217 |
-
!DD U+00DD Yacute
|
218 |
-
!DE U+0162 Tcommaaccent
|
219 |
-
!DF U+00DF germandbls
|
220 |
-
!E0 U+0155 racute
|
221 |
-
!E1 U+00E1 aacute
|
222 |
-
!E2 U+00E2 acircumflex
|
223 |
-
!E3 U+0103 abreve
|
224 |
-
!E4 U+00E4 adieresis
|
225 |
-
!E5 U+013A lacute
|
226 |
-
!E6 U+0107 cacute
|
227 |
-
!E7 U+00E7 ccedilla
|
228 |
-
!E8 U+010D ccaron
|
229 |
-
!E9 U+00E9 eacute
|
230 |
-
!EA U+0119 eogonek
|
231 |
-
!EB U+00EB edieresis
|
232 |
-
!EC U+011B ecaron
|
233 |
-
!ED U+00ED iacute
|
234 |
-
!EE U+00EE icircumflex
|
235 |
-
!EF U+010F dcaron
|
236 |
-
!F0 U+0111 dcroat
|
237 |
-
!F1 U+0144 nacute
|
238 |
-
!F2 U+0148 ncaron
|
239 |
-
!F3 U+00F3 oacute
|
240 |
-
!F4 U+00F4 ocircumflex
|
241 |
-
!F5 U+0151 ohungarumlaut
|
242 |
-
!F6 U+00F6 odieresis
|
243 |
-
!F7 U+00F7 divide
|
244 |
-
!F8 U+0159 rcaron
|
245 |
-
!F9 U+016F uring
|
246 |
-
!FA U+00FA uacute
|
247 |
-
!FB U+0171 uhungarumlaut
|
248 |
-
!FC U+00FC udieresis
|
249 |
-
!FD U+00FD yacute
|
250 |
-
!FE U+0163 tcommaaccent
|
251 |
-
!FF U+02D9 dotaccent
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/font/makefont/cp1251.map
DELETED
@@ -1,255 +0,0 @@
|
|
1 |
-
!00 U+0000 .notdef
|
2 |
-
!01 U+0001 .notdef
|
3 |
-
!02 U+0002 .notdef
|
4 |
-
!03 U+0003 .notdef
|
5 |
-
!04 U+0004 .notdef
|
6 |
-
!05 U+0005 .notdef
|
7 |
-
!06 U+0006 .notdef
|
8 |
-
!07 U+0007 .notdef
|
9 |
-
!08 U+0008 .notdef
|
10 |
-
!09 U+0009 .notdef
|
11 |
-
!0A U+000A .notdef
|
12 |
-
!0B U+000B .notdef
|
13 |
-
!0C U+000C .notdef
|
14 |
-
!0D U+000D .notdef
|
15 |
-
!0E U+000E .notdef
|
16 |
-
!0F U+000F .notdef
|
17 |
-
!10 U+0010 .notdef
|
18 |
-
!11 U+0011 .notdef
|
19 |
-
!12 U+0012 .notdef
|
20 |
-
!13 U+0013 .notdef
|
21 |
-
!14 U+0014 .notdef
|
22 |
-
!15 U+0015 .notdef
|
23 |
-
!16 U+0016 .notdef
|
24 |
-
!17 U+0017 .notdef
|
25 |
-
!18 U+0018 .notdef
|
26 |
-
!19 U+0019 .notdef
|
27 |
-
!1A U+001A .notdef
|
28 |
-
!1B U+001B .notdef
|
29 |
-
!1C U+001C .notdef
|
30 |
-
!1D U+001D .notdef
|
31 |
-
!1E U+001E .notdef
|
32 |
-
!1F U+001F .notdef
|
33 |
-
!20 U+0020 space
|
34 |
-
!21 U+0021 exclam
|
35 |
-
!22 U+0022 quotedbl
|
36 |
-
!23 U+0023 numbersign
|
37 |
-
!24 U+0024 dollar
|
38 |
-
!25 U+0025 percent
|
39 |
-
!26 U+0026 ampersand
|
40 |
-
!27 U+0027 quotesingle
|
41 |
-
!28 U+0028 parenleft
|
42 |
-
!29 U+0029 parenright
|
43 |
-
!2A U+002A asterisk
|
44 |
-
!2B U+002B plus
|
45 |
-
!2C U+002C comma
|
46 |
-
!2D U+002D hyphen
|
47 |
-
!2E U+002E period
|
48 |
-
!2F U+002F slash
|
49 |
-
!30 U+0030 zero
|
50 |
-
!31 U+0031 one
|
51 |
-
!32 U+0032 two
|
52 |
-
!33 U+0033 three
|
53 |
-
!34 U+0034 four
|
54 |
-
!35 U+0035 five
|
55 |
-
!36 U+0036 six
|
56 |
-
!37 U+0037 seven
|
57 |
-
!38 U+0038 eight
|
58 |
-
!39 U+0039 nine
|
59 |
-
!3A U+003A colon
|
60 |
-
!3B U+003B semicolon
|
61 |
-
!3C U+003C less
|
62 |
-
!3D U+003D equal
|
63 |
-
!3E U+003E greater
|
64 |
-
!3F U+003F question
|
65 |
-
!40 U+0040 at
|
66 |
-
!41 U+0041 A
|
67 |
-
!42 U+0042 B
|
68 |
-
!43 U+0043 C
|
69 |
-
!44 U+0044 D
|
70 |
-
!45 U+0045 E
|
71 |
-
!46 U+0046 F
|
72 |
-
!47 U+0047 G
|
73 |
-
!48 U+0048 H
|
74 |
-
!49 U+0049 I
|
75 |
-
!4A U+004A J
|
76 |
-
!4B U+004B K
|
77 |
-
!4C U+004C L
|
78 |
-
!4D U+004D M
|
79 |
-
!4E U+004E N
|
80 |
-
!4F U+004F O
|
81 |
-
!50 U+0050 P
|
82 |
-
!51 U+0051 Q
|
83 |
-
!52 U+0052 R
|
84 |
-
!53 U+0053 S
|
85 |
-
!54 U+0054 T
|
86 |
-
!55 U+0055 U
|
87 |
-
!56 U+0056 V
|
88 |
-
!57 U+0057 W
|
89 |
-
!58 U+0058 X
|
90 |
-
!59 U+0059 Y
|
91 |
-
!5A U+005A Z
|
92 |
-
!5B U+005B bracketleft
|
93 |
-
!5C U+005C backslash
|
94 |
-
!5D U+005D bracketright
|
95 |
-
!5E U+005E asciicircum
|
96 |
-
!5F U+005F underscore
|
97 |
-
!60 U+0060 grave
|
98 |
-
!61 U+0061 a
|
99 |
-
!62 U+0062 b
|
100 |
-
!63 U+0063 c
|
101 |
-
!64 U+0064 d
|
102 |
-
!65 U+0065 e
|
103 |
-
!66 U+0066 f
|
104 |
-
!67 U+0067 g
|
105 |
-
!68 U+0068 h
|
106 |
-
!69 U+0069 i
|
107 |
-
!6A U+006A j
|
108 |
-
!6B U+006B k
|
109 |
-
!6C U+006C l
|
110 |
-
!6D U+006D m
|
111 |
-
!6E U+006E n
|
112 |
-
!6F U+006F o
|
113 |
-
!70 U+0070 p
|
114 |
-
!71 U+0071 q
|
115 |
-
!72 U+0072 r
|
116 |
-
!73 U+0073 s
|
117 |
-
!74 U+0074 t
|
118 |
-
!75 U+0075 u
|
119 |
-
!76 U+0076 v
|
120 |
-
!77 U+0077 w
|
121 |
-
!78 U+0078 x
|
122 |
-
!79 U+0079 y
|
123 |
-
!7A U+007A z
|
124 |
-
!7B U+007B braceleft
|
125 |
-
!7C U+007C bar
|
126 |
-
!7D U+007D braceright
|
127 |
-
!7E U+007E asciitilde
|
128 |
-
!7F U+007F .notdef
|
129 |
-
!80 U+0402 afii10051
|
130 |
-
!81 U+0403 afii10052
|
131 |
-
!82 U+201A quotesinglbase
|
132 |
-
!83 U+0453 afii10100
|
133 |
-
!84 U+201E quotedblbase
|
134 |
-
!85 U+2026 ellipsis
|
135 |
-
!86 U+2020 dagger
|
136 |
-
!87 U+2021 daggerdbl
|
137 |
-
!88 U+20AC Euro
|
138 |
-
!89 U+2030 perthousand
|
139 |
-
!8A U+0409 afii10058
|
140 |
-
!8B U+2039 guilsinglleft
|
141 |
-
!8C U+040A afii10059
|
142 |
-
!8D U+040C afii10061
|
143 |
-
!8E U+040B afii10060
|
144 |
-
!8F U+040F afii10145
|
145 |
-
!90 U+0452 afii10099
|
146 |
-
!91 U+2018 quoteleft
|
147 |
-
!92 U+2019 quoteright
|
148 |
-
!93 U+201C quotedblleft
|
149 |
-
!94 U+201D quotedblright
|
150 |
-
!95 U+2022 bullet
|
151 |
-
!96 U+2013 endash
|
152 |
-
!97 U+2014 emdash
|
153 |
-
!99 U+2122 trademark
|
154 |
-
!9A U+0459 afii10106
|
155 |
-
!9B U+203A guilsinglright
|
156 |
-
!9C U+045A afii10107
|
157 |
-
!9D U+045C afii10109
|
158 |
-
!9E U+045B afii10108
|
159 |
-
!9F U+045F afii10193
|
160 |
-
!A0 U+00A0 space
|
161 |
-
!A1 U+040E afii10062
|
162 |
-
!A2 U+045E afii10110
|
163 |
-
!A3 U+0408 afii10057
|
164 |
-
!A4 U+00A4 currency
|
165 |
-
!A5 U+0490 afii10050
|
166 |
-
!A6 U+00A6 brokenbar
|
167 |
-
!A7 U+00A7 section
|
168 |
-
!A8 U+0401 afii10023
|
169 |
-
!A9 U+00A9 copyright
|
170 |
-
!AA U+0404 afii10053
|
171 |
-
!AB U+00AB guillemotleft
|
172 |
-
!AC U+00AC logicalnot
|
173 |
-
!AD U+00AD hyphen
|
174 |
-
!AE U+00AE registered
|
175 |
-
!AF U+0407 afii10056
|
176 |
-
!B0 U+00B0 degree
|
177 |
-
!B1 U+00B1 plusminus
|
178 |
-
!B2 U+0406 afii10055
|
179 |
-
!B3 U+0456 afii10103
|
180 |
-
!B4 U+0491 afii10098
|
181 |
-
!B5 U+00B5 mu
|
182 |
-
!B6 U+00B6 paragraph
|
183 |
-
!B7 U+00B7 periodcentered
|
184 |
-
!B8 U+0451 afii10071
|
185 |
-
!B9 U+2116 afii61352
|
186 |
-
!BA U+0454 afii10101
|
187 |
-
!BB U+00BB guillemotright
|
188 |
-
!BC U+0458 afii10105
|
189 |
-
!BD U+0405 afii10054
|
190 |
-
!BE U+0455 afii10102
|
191 |
-
!BF U+0457 afii10104
|
192 |
-
!C0 U+0410 afii10017
|
193 |
-
!C1 U+0411 afii10018
|
194 |
-
!C2 U+0412 afii10019
|
195 |
-
!C3 U+0413 afii10020
|
196 |
-
!C4 U+0414 afii10021
|
197 |
-
!C5 U+0415 afii10022
|
198 |
-
!C6 U+0416 afii10024
|
199 |
-
!C7 U+0417 afii10025
|
200 |
-
!C8 U+0418 afii10026
|
201 |
-
!C9 U+0419 afii10027
|
202 |
-
!CA U+041A afii10028
|
203 |
-
!CB U+041B afii10029
|
204 |
-
!CC U+041C afii10030
|
205 |
-
!CD U+041D afii10031
|
206 |
-
!CE U+041E afii10032
|
207 |
-
!CF U+041F afii10033
|
208 |
-
!D0 U+0420 afii10034
|
209 |
-
!D1 U+0421 afii10035
|
210 |
-
!D2 U+0422 afii10036
|
211 |
-
!D3 U+0423 afii10037
|
212 |
-
!D4 U+0424 afii10038
|
213 |
-
!D5 U+0425 afii10039
|
214 |
-
!D6 U+0426 afii10040
|
215 |
-
!D7 U+0427 afii10041
|
216 |
-
!D8 U+0428 afii10042
|
217 |
-
!D9 U+0429 afii10043
|
218 |
-
!DA U+042A afii10044
|
219 |
-
!DB U+042B afii10045
|
220 |
-
!DC U+042C afii10046
|
221 |
-
!DD U+042D afii10047
|
222 |
-
!DE U+042E afii10048
|
223 |
-
!DF U+042F afii10049
|
224 |
-
!E0 U+0430 afii10065
|
225 |
-
!E1 U+0431 afii10066
|
226 |
-
!E2 U+0432 afii10067
|
227 |
-
!E3 U+0433 afii10068
|
228 |
-
!E4 U+0434 afii10069
|
229 |
-
!E5 U+0435 afii10070
|
230 |
-
!E6 U+0436 afii10072
|
231 |
-
!E7 U+0437 afii10073
|
232 |
-
!E8 U+0438 afii10074
|
233 |
-
!E9 U+0439 afii10075
|
234 |
-
!EA U+043A afii10076
|
235 |
-
!EB U+043B afii10077
|
236 |
-
!EC U+043C afii10078
|
237 |
-
!ED U+043D afii10079
|
238 |
-
!EE U+043E afii10080
|
239 |
-
!EF U+043F afii10081
|
240 |
-
!F0 U+0440 afii10082
|
241 |
-
!F1 U+0441 afii10083
|
242 |
-
!F2 U+0442 afii10084
|
243 |
-
!F3 U+0443 afii10085
|
244 |
-
!F4 U+0444 afii10086
|
245 |
-
!F5 U+0445 afii10087
|
246 |
-
!F6 U+0446 afii10088
|
247 |
-
!F7 U+0447 afii10089
|
248 |
-
!F8 U+0448 afii10090
|
249 |
-
!F9 U+0449 afii10091
|
250 |
-
!FA U+044A afii10092
|
251 |
-
!FB U+044B afii10093
|
252 |
-
!FC U+044C afii10094
|
253 |
-
!FD U+044D afii10095
|
254 |
-
!FE U+044E afii10096
|
255 |
-
!FF U+044F afii10097
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/font/makefont/cp1252.map
DELETED
@@ -1,251 +0,0 @@
|
|
1 |
-
!00 U+0000 .notdef
|
2 |
-
!01 U+0001 .notdef
|
3 |
-
!02 U+0002 .notdef
|
4 |
-
!03 U+0003 .notdef
|
5 |
-
!04 U+0004 .notdef
|
6 |
-
!05 U+0005 .notdef
|
7 |
-
!06 U+0006 .notdef
|
8 |
-
!07 U+0007 .notdef
|
9 |
-
!08 U+0008 .notdef
|
10 |
-
!09 U+0009 .notdef
|
11 |
-
!0A U+000A .notdef
|
12 |
-
!0B U+000B .notdef
|
13 |
-
!0C U+000C .notdef
|
14 |
-
!0D U+000D .notdef
|
15 |
-
!0E U+000E .notdef
|
16 |
-
!0F U+000F .notdef
|
17 |
-
!10 U+0010 .notdef
|
18 |
-
!11 U+0011 .notdef
|
19 |
-
!12 U+0012 .notdef
|
20 |
-
!13 U+0013 .notdef
|
21 |
-
!14 U+0014 .notdef
|
22 |
-
!15 U+0015 .notdef
|
23 |
-
!16 U+0016 .notdef
|
24 |
-
!17 U+0017 .notdef
|
25 |
-
!18 U+0018 .notdef
|
26 |
-
!19 U+0019 .notdef
|
27 |
-
!1A U+001A .notdef
|
28 |
-
!1B U+001B .notdef
|
29 |
-
!1C U+001C .notdef
|
30 |
-
!1D U+001D .notdef
|
31 |
-
!1E U+001E .notdef
|
32 |
-
!1F U+001F .notdef
|
33 |
-
!20 U+0020 space
|
34 |
-
!21 U+0021 exclam
|
35 |
-
!22 U+0022 quotedbl
|
36 |
-
!23 U+0023 numbersign
|
37 |
-
!24 U+0024 dollar
|
38 |
-
!25 U+0025 percent
|
39 |
-
!26 U+0026 ampersand
|
40 |
-
!27 U+0027 quotesingle
|
41 |
-
!28 U+0028 parenleft
|
42 |
-
!29 U+0029 parenright
|
43 |
-
!2A U+002A asterisk
|
44 |
-
!2B U+002B plus
|
45 |
-
!2C U+002C comma
|
46 |
-
!2D U+002D hyphen
|
47 |
-
!2E U+002E period
|
48 |
-
!2F U+002F slash
|
49 |
-
!30 U+0030 zero
|
50 |
-
!31 U+0031 one
|
51 |
-
!32 U+0032 two
|
52 |
-
!33 U+0033 three
|
53 |
-
!34 U+0034 four
|
54 |
-
!35 U+0035 five
|
55 |
-
!36 U+0036 six
|
56 |
-
!37 U+0037 seven
|
57 |
-
!38 U+0038 eight
|
58 |
-
!39 U+0039 nine
|
59 |
-
!3A U+003A colon
|
60 |
-
!3B U+003B semicolon
|
61 |
-
!3C U+003C less
|
62 |
-
!3D U+003D equal
|
63 |
-
!3E U+003E greater
|
64 |
-
!3F U+003F question
|
65 |
-
!40 U+0040 at
|
66 |
-
!41 U+0041 A
|
67 |
-
!42 U+0042 B
|
68 |
-
!43 U+0043 C
|
69 |
-
!44 U+0044 D
|
70 |
-
!45 U+0045 E
|
71 |
-
!46 U+0046 F
|
72 |
-
!47 U+0047 G
|
73 |
-
!48 U+0048 H
|
74 |
-
!49 U+0049 I
|
75 |
-
!4A U+004A J
|
76 |
-
!4B U+004B K
|
77 |
-
!4C U+004C L
|
78 |
-
!4D U+004D M
|
79 |
-
!4E U+004E N
|
80 |
-
!4F U+004F O
|
81 |
-
!50 U+0050 P
|
82 |
-
!51 U+0051 Q
|
83 |
-
!52 U+0052 R
|
84 |
-
!53 U+0053 S
|
85 |
-
!54 U+0054 T
|
86 |
-
!55 U+0055 U
|
87 |
-
!56 U+0056 V
|
88 |
-
!57 U+0057 W
|
89 |
-
!58 U+0058 X
|
90 |
-
!59 U+0059 Y
|
91 |
-
!5A U+005A Z
|
92 |
-
!5B U+005B bracketleft
|
93 |
-
!5C U+005C backslash
|
94 |
-
!5D U+005D bracketright
|
95 |
-
!5E U+005E asciicircum
|
96 |
-
!5F U+005F underscore
|
97 |
-
!60 U+0060 grave
|
98 |
-
!61 U+0061 a
|
99 |
-
!62 U+0062 b
|
100 |
-
!63 U+0063 c
|
101 |
-
!64 U+0064 d
|
102 |
-
!65 U+0065 e
|
103 |
-
!66 U+0066 f
|
104 |
-
!67 U+0067 g
|
105 |
-
!68 U+0068 h
|
106 |
-
!69 U+0069 i
|
107 |
-
!6A U+006A j
|
108 |
-
!6B U+006B k
|
109 |
-
!6C U+006C l
|
110 |
-
!6D U+006D m
|
111 |
-
!6E U+006E n
|
112 |
-
!6F U+006F o
|
113 |
-
!70 U+0070 p
|
114 |
-
!71 U+0071 q
|
115 |
-
!72 U+0072 r
|
116 |
-
!73 U+0073 s
|
117 |
-
!74 U+0074 t
|
118 |
-
!75 U+0075 u
|
119 |
-
!76 U+0076 v
|
120 |
-
!77 U+0077 w
|
121 |
-
!78 U+0078 x
|
122 |
-
!79 U+0079 y
|
123 |
-
!7A U+007A z
|
124 |
-
!7B U+007B braceleft
|
125 |
-
!7C U+007C bar
|
126 |
-
!7D U+007D braceright
|
127 |
-
!7E U+007E asciitilde
|
128 |
-
!7F U+007F .notdef
|
129 |
-
!80 U+20AC Euro
|
130 |
-
!82 U+201A quotesinglbase
|
131 |
-
!83 U+0192 florin
|
132 |
-
!84 U+201E quotedblbase
|
133 |
-
!85 U+2026 ellipsis
|
134 |
-
!86 U+2020 dagger
|
135 |
-
!87 U+2021 daggerdbl
|
136 |
-
!88 U+02C6 circumflex
|
137 |
-
!89 U+2030 perthousand
|
138 |
-
!8A U+0160 Scaron
|
139 |
-
!8B U+2039 guilsinglleft
|
140 |
-
!8C U+0152 OE
|
141 |
-
!8E U+017D Zcaron
|
142 |
-
!91 U+2018 quoteleft
|
143 |
-
!92 U+2019 quoteright
|
144 |
-
!93 U+201C quotedblleft
|
145 |
-
!94 U+201D quotedblright
|
146 |
-
!95 U+2022 bullet
|
147 |
-
!96 U+2013 endash
|
148 |
-
!97 U+2014 emdash
|
149 |
-
!98 U+02DC tilde
|
150 |
-
!99 U+2122 trademark
|
151 |
-
!9A U+0161 scaron
|
152 |
-
!9B U+203A guilsinglright
|
153 |
-
!9C U+0153 oe
|
154 |
-
!9E U+017E zcaron
|
155 |
-
!9F U+0178 Ydieresis
|
156 |
-
!A0 U+00A0 space
|
157 |
-
!A1 U+00A1 exclamdown
|
158 |
-
!A2 U+00A2 cent
|
159 |
-
!A3 U+00A3 sterling
|
160 |
-
!A4 U+00A4 currency
|
161 |
-
!A5 U+00A5 yen
|
162 |
-
!A6 U+00A6 brokenbar
|
163 |
-
!A7 U+00A7 section
|
164 |
-
!A8 U+00A8 dieresis
|
165 |
-
!A9 U+00A9 copyright
|
166 |
-
!AA U+00AA ordfeminine
|
167 |
-
!AB U+00AB guillemotleft
|
168 |
-
!AC U+00AC logicalnot
|
169 |
-
!AD U+00AD hyphen
|
170 |
-
!AE U+00AE registered
|
171 |
-
!AF U+00AF macron
|
172 |
-
!B0 U+00B0 degree
|
173 |
-
!B1 U+00B1 plusminus
|
174 |
-
!B2 U+00B2 twosuperior
|
175 |
-
!B3 U+00B3 threesuperior
|
176 |
-
!B4 U+00B4 acute
|
177 |
-
!B5 U+00B5 mu
|
178 |
-
!B6 U+00B6 paragraph
|
179 |
-
!B7 U+00B7 periodcentered
|
180 |
-
!B8 U+00B8 cedilla
|
181 |
-
!B9 U+00B9 onesuperior
|
182 |
-
!BA U+00BA ordmasculine
|
183 |
-
!BB U+00BB guillemotright
|
184 |
-
!BC U+00BC onequarter
|
185 |
-
!BD U+00BD onehalf
|
186 |
-
!BE U+00BE threequarters
|
187 |
-
!BF U+00BF questiondown
|
188 |
-
!C0 U+00C0 Agrave
|
189 |
-
!C1 U+00C1 Aacute
|
190 |
-
!C2 U+00C2 Acircumflex
|
191 |
-
!C3 U+00C3 Atilde
|
192 |
-
!C4 U+00C4 Adieresis
|
193 |
-
!C5 U+00C5 Aring
|
194 |
-
!C6 U+00C6 AE
|
195 |
-
!C7 U+00C7 Ccedilla
|
196 |
-
!C8 U+00C8 Egrave
|
197 |
-
!C9 U+00C9 Eacute
|
198 |
-
!CA U+00CA Ecircumflex
|
199 |
-
!CB U+00CB Edieresis
|
200 |
-
!CC U+00CC Igrave
|
201 |
-
!CD U+00CD Iacute
|
202 |
-
!CE U+00CE Icircumflex
|
203 |
-
!CF U+00CF Idieresis
|
204 |
-
!D0 U+00D0 Eth
|
205 |
-
!D1 U+00D1 Ntilde
|
206 |
-
!D2 U+00D2 Ograve
|
207 |
-
!D3 U+00D3 Oacute
|
208 |
-
!D4 U+00D4 Ocircumflex
|
209 |
-
!D5 U+00D5 Otilde
|
210 |
-
!D6 U+00D6 Odieresis
|
211 |
-
!D7 U+00D7 multiply
|
212 |
-
!D8 U+00D8 Oslash
|
213 |
-
!D9 U+00D9 Ugrave
|
214 |
-
!DA U+00DA Uacute
|
215 |
-
!DB U+00DB Ucircumflex
|
216 |
-
!DC U+00DC Udieresis
|
217 |
-
!DD U+00DD Yacute
|
218 |
-
!DE U+00DE Thorn
|
219 |
-
!DF U+00DF germandbls
|
220 |
-
!E0 U+00E0 agrave
|
221 |
-
!E1 U+00E1 aacute
|
222 |
-
!E2 U+00E2 acircumflex
|
223 |
-
!E3 U+00E3 atilde
|
224 |
-
!E4 U+00E4 adieresis
|
225 |
-
!E5 U+00E5 aring
|
226 |
-
!E6 U+00E6 ae
|
227 |
-
!E7 U+00E7 ccedilla
|
228 |
-
!E8 U+00E8 egrave
|
229 |
-
!E9 U+00E9 eacute
|
230 |
-
!EA U+00EA ecircumflex
|
231 |
-
!EB U+00EB edieresis
|
232 |
-
!EC U+00EC igrave
|
233 |
-
!ED U+00ED iacute
|
234 |
-
!EE U+00EE icircumflex
|
235 |
-
!EF U+00EF idieresis
|
236 |
-
!F0 U+00F0 eth
|
237 |
-
!F1 U+00F1 ntilde
|
238 |
-
!F2 U+00F2 ograve
|
239 |
-
!F3 U+00F3 oacute
|
240 |
-
!F4 U+00F4 ocircumflex
|
241 |
-
!F5 U+00F5 otilde
|
242 |
-
!F6 U+00F6 odieresis
|
243 |
-
!F7 U+00F7 divide
|
244 |
-
!F8 U+00F8 oslash
|
245 |
-
!F9 U+00F9 ugrave
|
246 |
-
!FA U+00FA uacute
|
247 |
-
!FB U+00FB ucircumflex
|
248 |
-
!FC U+00FC udieresis
|
249 |
-
!FD U+00FD yacute
|
250 |
-
!FE U+00FE thorn
|
251 |
-
!FF U+00FF ydieresis
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/font/makefont/cp1253.map
DELETED
@@ -1,239 +0,0 @@
|
|
1 |
-
!00 U+0000 .notdef
|
2 |
-
!01 U+0001 .notdef
|
3 |
-
!02 U+0002 .notdef
|
4 |
-
!03 U+0003 .notdef
|
5 |
-
!04 U+0004 .notdef
|
6 |
-
!05 U+0005 .notdef
|
7 |
-
!06 U+0006 .notdef
|
8 |
-
!07 U+0007 .notdef
|
9 |
-
!08 U+0008 .notdef
|
10 |
-
!09 U+0009 .notdef
|
11 |
-
!0A U+000A .notdef
|
12 |
-
!0B U+000B .notdef
|
13 |
-
!0C U+000C .notdef
|
14 |
-
!0D U+000D .notdef
|
15 |
-
!0E U+000E .notdef
|
16 |
-
!0F U+000F .notdef
|
17 |
-
!10 U+0010 .notdef
|
18 |
-
!11 U+0011 .notdef
|
19 |
-
!12 U+0012 .notdef
|
20 |
-
!13 U+0013 .notdef
|
21 |
-
!14 U+0014 .notdef
|
22 |
-
!15 U+0015 .notdef
|
23 |
-
!16 U+0016 .notdef
|
24 |
-
!17 U+0017 .notdef
|
25 |
-
!18 U+0018 .notdef
|
26 |
-
!19 U+0019 .notdef
|
27 |
-
!1A U+001A .notdef
|
28 |
-
!1B U+001B .notdef
|
29 |
-
!1C U+001C .notdef
|
30 |
-
!1D U+001D .notdef
|
31 |
-
!1E U+001E .notdef
|
32 |
-
!1F U+001F .notdef
|
33 |
-
!20 U+0020 space
|
34 |
-
!21 U+0021 exclam
|
35 |
-
!22 U+0022 quotedbl
|
36 |
-
!23 U+0023 numbersign
|
37 |
-
!24 U+0024 dollar
|
38 |
-
!25 U+0025 percent
|
39 |
-
!26 U+0026 ampersand
|
40 |
-
!27 U+0027 quotesingle
|
41 |
-
!28 U+0028 parenleft
|
42 |
-
!29 U+0029 parenright
|
43 |
-
!2A U+002A asterisk
|
44 |
-
!2B U+002B plus
|
45 |
-
!2C U+002C comma
|
46 |
-
!2D U+002D hyphen
|
47 |
-
!2E U+002E period
|
48 |
-
!2F U+002F slash
|
49 |
-
!30 U+0030 zero
|
50 |
-
!31 U+0031 one
|
51 |
-
!32 U+0032 two
|
52 |
-
!33 U+0033 three
|
53 |
-
!34 U+0034 four
|
54 |
-
!35 U+0035 five
|
55 |
-
!36 U+0036 six
|
56 |
-
!37 U+0037 seven
|
57 |
-
!38 U+0038 eight
|
58 |
-
!39 U+0039 nine
|
59 |
-
!3A U+003A colon
|
60 |
-
!3B U+003B semicolon
|
61 |
-
!3C U+003C less
|
62 |
-
!3D U+003D equal
|
63 |
-
!3E U+003E greater
|
64 |
-
!3F U+003F question
|
65 |
-
!40 U+0040 at
|
66 |
-
!41 U+0041 A
|
67 |
-
!42 U+0042 B
|
68 |
-
!43 U+0043 C
|
69 |
-
!44 U+0044 D
|
70 |
-
!45 U+0045 E
|
71 |
-
!46 U+0046 F
|
72 |
-
!47 U+0047 G
|
73 |
-
!48 U+0048 H
|
74 |
-
!49 U+0049 I
|
75 |
-
!4A U+004A J
|
76 |
-
!4B U+004B K
|
77 |
-
!4C U+004C L
|
78 |
-
!4D U+004D M
|
79 |
-
!4E U+004E N
|
80 |
-
!4F U+004F O
|
81 |
-
!50 U+0050 P
|
82 |
-
!51 U+0051 Q
|
83 |
-
!52 U+0052 R
|
84 |
-
!53 U+0053 S
|
85 |
-
!54 U+0054 T
|
86 |
-
!55 U+0055 U
|
87 |
-
!56 U+0056 V
|
88 |
-
!57 U+0057 W
|
89 |
-
!58 U+0058 X
|
90 |
-
!59 U+0059 Y
|
91 |
-
!5A U+005A Z
|
92 |
-
!5B U+005B bracketleft
|
93 |
-
!5C U+005C backslash
|
94 |
-
!5D U+005D bracketright
|
95 |
-
!5E U+005E asciicircum
|
96 |
-
!5F U+005F underscore
|
97 |
-
!60 U+0060 grave
|
98 |
-
!61 U+0061 a
|
99 |
-
!62 U+0062 b
|
100 |
-
!63 U+0063 c
|
101 |
-
!64 U+0064 d
|
102 |
-
!65 U+0065 e
|
103 |
-
!66 U+0066 f
|
104 |
-
!67 U+0067 g
|
105 |
-
!68 U+0068 h
|
106 |
-
!69 U+0069 i
|
107 |
-
!6A U+006A j
|
108 |
-
!6B U+006B k
|
109 |
-
!6C U+006C l
|
110 |
-
!6D U+006D m
|
111 |
-
!6E U+006E n
|
112 |
-
!6F U+006F o
|
113 |
-
!70 U+0070 p
|
114 |
-
!71 U+0071 q
|
115 |
-
!72 U+0072 r
|
116 |
-
!73 U+0073 s
|
117 |
-
!74 U+0074 t
|
118 |
-
!75 U+0075 u
|
119 |
-
!76 U+0076 v
|
120 |
-
!77 U+0077 w
|
121 |
-
!78 U+0078 x
|
122 |
-
!79 U+0079 y
|
123 |
-
!7A U+007A z
|
124 |
-
!7B U+007B braceleft
|
125 |
-
!7C U+007C bar
|
126 |
-
!7D U+007D braceright
|
127 |
-
!7E U+007E asciitilde
|
128 |
-
!7F U+007F .notdef
|
129 |
-
!80 U+20AC Euro
|
130 |
-
!82 U+201A quotesinglbase
|
131 |
-
!83 U+0192 florin
|
132 |
-
!84 U+201E quotedblbase
|
133 |
-
!85 U+2026 ellipsis
|
134 |
-
!86 U+2020 dagger
|
135 |
-
!87 U+2021 daggerdbl
|
136 |
-
!89 U+2030 perthousand
|
137 |
-
!8B U+2039 guilsinglleft
|
138 |
-
!91 U+2018 quoteleft
|
139 |
-
!92 U+2019 quoteright
|
140 |
-
!93 U+201C quotedblleft
|
141 |
-
!94 U+201D quotedblright
|
142 |
-
!95 U+2022 bullet
|
143 |
-
!96 U+2013 endash
|
144 |
-
!97 U+2014 emdash
|
145 |
-
!99 U+2122 trademark
|
146 |
-
!9B U+203A guilsinglright
|
147 |
-
!A0 U+00A0 space
|
148 |
-
!A1 U+0385 dieresistonos
|
149 |
-
!A2 U+0386 Alphatonos
|
150 |
-
!A3 U+00A3 sterling
|
151 |
-
!A4 U+00A4 currency
|
152 |
-
!A5 U+00A5 yen
|
153 |
-
!A6 U+00A6 brokenbar
|
154 |
-
!A7 U+00A7 section
|
155 |
-
!A8 U+00A8 dieresis
|
156 |
-
!A9 U+00A9 copyright
|
157 |
-
!AB U+00AB guillemotleft
|
158 |
-
!AC U+00AC logicalnot
|
159 |
-
!AD U+00AD hyphen
|
160 |
-
!AE U+00AE registered
|
161 |
-
!AF U+2015 afii00208
|
162 |
-
!B0 U+00B0 degree
|
163 |
-
!B1 U+00B1 plusminus
|
164 |
-
!B2 U+00B2 twosuperior
|
165 |
-
!B3 U+00B3 threesuperior
|
166 |
-
!B4 U+0384 tonos
|
167 |
-
!B5 U+00B5 mu
|
168 |
-
!B6 U+00B6 paragraph
|
169 |
-
!B7 U+00B7 periodcentered
|
170 |
-
!B8 U+0388 Epsilontonos
|
171 |
-
!B9 U+0389 Etatonos
|
172 |
-
!BA U+038A Iotatonos
|
173 |
-
!BB U+00BB guillemotright
|
174 |
-
!BC U+038C Omicrontonos
|
175 |
-
!BD U+00BD onehalf
|
176 |
-
!BE U+038E Upsilontonos
|
177 |
-
!BF U+038F Omegatonos
|
178 |
-
!C0 U+0390 iotadieresistonos
|
179 |
-
!C1 U+0391 Alpha
|
180 |
-
!C2 U+0392 Beta
|
181 |
-
!C3 U+0393 Gamma
|
182 |
-
!C4 U+0394 Delta
|
183 |
-
!C5 U+0395 Epsilon
|
184 |
-
!C6 U+0396 Zeta
|
185 |
-
!C7 U+0397 Eta
|
186 |
-
!C8 U+0398 Theta
|
187 |
-
!C9 U+0399 Iota
|
188 |
-
!CA U+039A Kappa
|
189 |
-
!CB U+039B Lambda
|
190 |
-
!CC U+039C Mu
|
191 |
-
!CD U+039D Nu
|
192 |
-
!CE U+039E Xi
|
193 |
-
!CF U+039F Omicron
|
194 |
-
!D0 U+03A0 Pi
|
195 |
-
!D1 U+03A1 Rho
|
196 |
-
!D3 U+03A3 Sigma
|
197 |
-
!D4 U+03A4 Tau
|
198 |
-
!D5 U+03A5 Upsilon
|
199 |
-
!D6 U+03A6 Phi
|
200 |
-
!D7 U+03A7 Chi
|
201 |
-
!D8 U+03A8 Psi
|
202 |
-
!D9 U+03A9 Omega
|
203 |
-
!DA U+03AA Iotadieresis
|
204 |
-
!DB U+03AB Upsilondieresis
|
205 |
-
!DC U+03AC alphatonos
|
206 |
-
!DD U+03AD epsilontonos
|
207 |
-
!DE U+03AE etatonos
|
208 |
-
!DF U+03AF iotatonos
|
209 |
-
!E0 U+03B0 upsilondieresistonos
|
210 |
-
!E1 U+03B1 alpha
|
211 |
-
!E2 U+03B2 beta
|
212 |
-
!E3 U+03B3 gamma
|
213 |
-
!E4 U+03B4 delta
|
214 |
-
!E5 U+03B5 epsilon
|
215 |
-
!E6 U+03B6 zeta
|
216 |
-
!E7 U+03B7 eta
|
217 |
-
!E8 U+03B8 theta
|
218 |
-
!E9 U+03B9 iota
|
219 |
-
!EA U+03BA kappa
|
220 |
-
!EB U+03BB lambda
|
221 |
-
!EC U+03BC mu
|
222 |
-
!ED U+03BD nu
|
223 |
-
!EE U+03BE xi
|
224 |
-
!EF U+03BF omicron
|
225 |
-
!F0 U+03C0 pi
|
226 |
-
!F1 U+03C1 rho
|
227 |
-
!F2 U+03C2 sigma1
|
228 |
-
!F3 U+03C3 sigma
|
229 |
-
!F4 U+03C4 tau
|
230 |
-
!F5 U+03C5 upsilon
|
231 |
-
!F6 U+03C6 phi
|
232 |
-
!F7 U+03C7 chi
|
233 |
-
!F8 U+03C8 psi
|
234 |
-
!F9 U+03C9 omega
|
235 |
-
!FA U+03CA iotadieresis
|
236 |
-
!FB U+03CB upsilondieresis
|
237 |
-
!FC U+03CC omicrontonos
|
238 |
-
!FD U+03CD upsilontonos
|
239 |
-
!FE U+03CE omegatonos
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/font/makefont/cp1254.map
DELETED
@@ -1,249 +0,0 @@
|
|
1 |
-
!00 U+0000 .notdef
|
2 |
-
!01 U+0001 .notdef
|
3 |
-
!02 U+0002 .notdef
|
4 |
-
!03 U+0003 .notdef
|
5 |
-
!04 U+0004 .notdef
|
6 |
-
!05 U+0005 .notdef
|
7 |
-
!06 U+0006 .notdef
|
8 |
-
!07 U+0007 .notdef
|
9 |
-
!08 U+0008 .notdef
|
10 |
-
!09 U+0009 .notdef
|
11 |
-
!0A U+000A .notdef
|
12 |
-
!0B U+000B .notdef
|
13 |
-
!0C U+000C .notdef
|
14 |
-
!0D U+000D .notdef
|
15 |
-
!0E U+000E .notdef
|
16 |
-
!0F U+000F .notdef
|
17 |
-
!10 U+0010 .notdef
|
18 |
-
!11 U+0011 .notdef
|
19 |
-
!12 U+0012 .notdef
|
20 |
-
!13 U+0013 .notdef
|
21 |
-
!14 U+0014 .notdef
|
22 |
-
!15 U+0015 .notdef
|
23 |
-
!16 U+0016 .notdef
|
24 |
-
!17 U+0017 .notdef
|
25 |
-
!18 U+0018 .notdef
|
26 |
-
!19 U+0019 .notdef
|
27 |
-
!1A U+001A .notdef
|
28 |
-
!1B U+001B .notdef
|
29 |
-
!1C U+001C .notdef
|
30 |
-
!1D U+001D .notdef
|
31 |
-
!1E U+001E .notdef
|
32 |
-
!1F U+001F .notdef
|
33 |
-
!20 U+0020 space
|
34 |
-
!21 U+0021 exclam
|
35 |
-
!22 U+0022 quotedbl
|
36 |
-
!23 U+0023 numbersign
|
37 |
-
!24 U+0024 dollar
|
38 |
-
!25 U+0025 percent
|
39 |
-
!26 U+0026 ampersand
|
40 |
-
!27 U+0027 quotesingle
|
41 |
-
!28 U+0028 parenleft
|
42 |
-
!29 U+0029 parenright
|
43 |
-
!2A U+002A asterisk
|
44 |
-
!2B U+002B plus
|
45 |
-
!2C U+002C comma
|
46 |
-
!2D U+002D hyphen
|
47 |
-
!2E U+002E period
|
48 |
-
!2F U+002F slash
|
49 |
-
!30 U+0030 zero
|
50 |
-
!31 U+0031 one
|
51 |
-
!32 U+0032 two
|
52 |
-
!33 U+0033 three
|
53 |
-
!34 U+0034 four
|
54 |
-
!35 U+0035 five
|
55 |
-
!36 U+0036 six
|
56 |
-
!37 U+0037 seven
|
57 |
-
!38 U+0038 eight
|
58 |
-
!39 U+0039 nine
|
59 |
-
!3A U+003A colon
|
60 |
-
!3B U+003B semicolon
|
61 |
-
!3C U+003C less
|
62 |
-
!3D U+003D equal
|
63 |
-
!3E U+003E greater
|
64 |
-
!3F U+003F question
|
65 |
-
!40 U+0040 at
|
66 |
-
!41 U+0041 A
|
67 |
-
!42 U+0042 B
|
68 |
-
!43 U+0043 C
|
69 |
-
!44 U+0044 D
|
70 |
-
!45 U+0045 E
|
71 |
-
!46 U+0046 F
|
72 |
-
!47 U+0047 G
|
73 |
-
!48 U+0048 H
|
74 |
-
!49 U+0049 I
|
75 |
-
!4A U+004A J
|
76 |
-
!4B U+004B K
|
77 |
-
!4C U+004C L
|
78 |
-
!4D U+004D M
|
79 |
-
!4E U+004E N
|
80 |
-
!4F U+004F O
|
81 |
-
!50 U+0050 P
|
82 |
-
!51 U+0051 Q
|
83 |
-
!52 U+0052 R
|
84 |
-
!53 U+0053 S
|
85 |
-
!54 U+0054 T
|
86 |
-
!55 U+0055 U
|
87 |
-
!56 U+0056 V
|
88 |
-
!57 U+0057 W
|
89 |
-
!58 U+0058 X
|
90 |
-
!59 U+0059 Y
|
91 |
-
!5A U+005A Z
|
92 |
-
!5B U+005B bracketleft
|
93 |
-
!5C U+005C backslash
|
94 |
-
!5D U+005D bracketright
|
95 |
-
!5E U+005E asciicircum
|
96 |
-
!5F U+005F underscore
|
97 |
-
!60 U+0060 grave
|
98 |
-
!61 U+0061 a
|
99 |
-
!62 U+0062 b
|
100 |
-
!63 U+0063 c
|
101 |
-
!64 U+0064 d
|
102 |
-
!65 U+0065 e
|
103 |
-
!66 U+0066 f
|
104 |
-
!67 U+0067 g
|
105 |
-
!68 U+0068 h
|
106 |
-
!69 U+0069 i
|
107 |
-
!6A U+006A j
|
108 |
-
!6B U+006B k
|
109 |
-
!6C U+006C l
|
110 |
-
!6D U+006D m
|
111 |
-
!6E U+006E n
|
112 |
-
!6F U+006F o
|
113 |
-
!70 U+0070 p
|
114 |
-
!71 U+0071 q
|
115 |
-
!72 U+0072 r
|
116 |
-
!73 U+0073 s
|
117 |
-
!74 U+0074 t
|
118 |
-
!75 U+0075 u
|
119 |
-
!76 U+0076 v
|
120 |
-
!77 U+0077 w
|
121 |
-
!78 U+0078 x
|
122 |
-
!79 U+0079 y
|
123 |
-
!7A U+007A z
|
124 |
-
!7B U+007B braceleft
|
125 |
-
!7C U+007C bar
|
126 |
-
!7D U+007D braceright
|
127 |
-
!7E U+007E asciitilde
|
128 |
-
!7F U+007F .notdef
|
129 |
-
!80 U+20AC Euro
|
130 |
-
!82 U+201A quotesinglbase
|
131 |
-
!83 U+0192 florin
|
132 |
-
!84 U+201E quotedblbase
|
133 |
-
!85 U+2026 ellipsis
|
134 |
-
!86 U+2020 dagger
|
135 |
-
!87 U+2021 daggerdbl
|
136 |
-
!88 U+02C6 circumflex
|
137 |
-
!89 U+2030 perthousand
|
138 |
-
!8A U+0160 Scaron
|
139 |
-
!8B U+2039 guilsinglleft
|
140 |
-
!8C U+0152 OE
|
141 |
-
!91 U+2018 quoteleft
|
142 |
-
!92 U+2019 quoteright
|
143 |
-
!93 U+201C quotedblleft
|
144 |
-
!94 U+201D quotedblright
|
145 |
-
!95 U+2022 bullet
|
146 |
-
!96 U+2013 endash
|
147 |
-
!97 U+2014 emdash
|
148 |
-
!98 U+02DC tilde
|
149 |
-
!99 U+2122 trademark
|
150 |
-
!9A U+0161 scaron
|
151 |
-
!9B U+203A guilsinglright
|
152 |
-
!9C U+0153 oe
|
153 |
-
!9F U+0178 Ydieresis
|
154 |
-
!A0 U+00A0 space
|
155 |
-
!A1 U+00A1 exclamdown
|
156 |
-
!A2 U+00A2 cent
|
157 |
-
!A3 U+00A3 sterling
|
158 |
-
!A4 U+00A4 currency
|
159 |
-
!A5 U+00A5 yen
|
160 |
-
!A6 U+00A6 brokenbar
|
161 |
-
!A7 U+00A7 section
|
162 |
-
!A8 U+00A8 dieresis
|
163 |
-
!A9 U+00A9 copyright
|
164 |
-
!AA U+00AA ordfeminine
|
165 |
-
!AB U+00AB guillemotleft
|
166 |
-
!AC U+00AC logicalnot
|
167 |
-
!AD U+00AD hyphen
|
168 |
-
!AE U+00AE registered
|
169 |
-
!AF U+00AF macron
|
170 |
-
!B0 U+00B0 degree
|
171 |
-
!B1 U+00B1 plusminus
|
172 |
-
!B2 U+00B2 twosuperior
|
173 |
-
!B3 U+00B3 threesuperior
|
174 |
-
!B4 U+00B4 acute
|
175 |
-
!B5 U+00B5 mu
|
176 |
-
!B6 U+00B6 paragraph
|
177 |
-
!B7 U+00B7 periodcentered
|
178 |
-
!B8 U+00B8 cedilla
|
179 |
-
!B9 U+00B9 onesuperior
|
180 |
-
!BA U+00BA ordmasculine
|
181 |
-
!BB U+00BB guillemotright
|
182 |
-
!BC U+00BC onequarter
|
183 |
-
!BD U+00BD onehalf
|
184 |
-
!BE U+00BE threequarters
|
185 |
-
!BF U+00BF questiondown
|
186 |
-
!C0 U+00C0 Agrave
|
187 |
-
!C1 U+00C1 Aacute
|
188 |
-
!C2 U+00C2 Acircumflex
|
189 |
-
!C3 U+00C3 Atilde
|
190 |
-
!C4 U+00C4 Adieresis
|
191 |
-
!C5 U+00C5 Aring
|
192 |
-
!C6 U+00C6 AE
|
193 |
-
!C7 U+00C7 Ccedilla
|
194 |
-
!C8 U+00C8 Egrave
|
195 |
-
!C9 U+00C9 Eacute
|
196 |
-
!CA U+00CA Ecircumflex
|
197 |
-
!CB U+00CB Edieresis
|
198 |
-
!CC U+00CC Igrave
|
199 |
-
!CD U+00CD Iacute
|
200 |
-
!CE U+00CE Icircumflex
|
201 |
-
!CF U+00CF Idieresis
|
202 |
-
!D0 U+011E Gbreve
|
203 |
-
!D1 U+00D1 Ntilde
|
204 |
-
!D2 U+00D2 Ograve
|
205 |
-
!D3 U+00D3 Oacute
|
206 |
-
!D4 U+00D4 Ocircumflex
|
207 |
-
!D5 U+00D5 Otilde
|
208 |
-
!D6 U+00D6 Odieresis
|
209 |
-
!D7 U+00D7 multiply
|
210 |
-
!D8 U+00D8 Oslash
|
211 |
-
!D9 U+00D9 Ugrave
|
212 |
-
!DA U+00DA Uacute
|
213 |
-
!DB U+00DB Ucircumflex
|
214 |
-
!DC U+00DC Udieresis
|
215 |
-
!DD U+0130 Idotaccent
|
216 |
-
!DE U+015E Scedilla
|
217 |
-
!DF U+00DF germandbls
|
218 |
-
!E0 U+00E0 agrave
|
219 |
-
!E1 U+00E1 aacute
|
220 |
-
!E2 U+00E2 acircumflex
|
221 |
-
!E3 U+00E3 atilde
|
222 |
-
!E4 U+00E4 adieresis
|
223 |
-
!E5 U+00E5 aring
|
224 |
-
!E6 U+00E6 ae
|
225 |
-
!E7 U+00E7 ccedilla
|
226 |
-
!E8 U+00E8 egrave
|
227 |
-
!E9 U+00E9 eacute
|
228 |
-
!EA U+00EA ecircumflex
|
229 |
-
!EB U+00EB edieresis
|
230 |
-
!EC U+00EC igrave
|
231 |
-
!ED U+00ED iacute
|
232 |
-
!EE U+00EE icircumflex
|
233 |
-
!EF U+00EF idieresis
|
234 |
-
!F0 U+011F gbreve
|
235 |
-
!F1 U+00F1 ntilde
|
236 |
-
!F2 U+00F2 ograve
|
237 |
-
!F3 U+00F3 oacute
|
238 |
-
!F4 U+00F4 ocircumflex
|
239 |
-
!F5 U+00F5 otilde
|
240 |
-
!F6 U+00F6 odieresis
|
241 |
-
!F7 U+00F7 divide
|
242 |
-
!F8 U+00F8 oslash
|
243 |
-
!F9 U+00F9 ugrave
|
244 |
-
!FA U+00FA uacute
|
245 |
-
!FB U+00FB ucircumflex
|
246 |
-
!FC U+00FC udieresis
|
247 |
-
!FD U+0131 dotlessi
|
248 |
-
!FE U+015F scedilla
|
249 |
-
!FF U+00FF ydieresis
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/font/makefont/cp1255.map
DELETED
@@ -1,233 +0,0 @@
|
|
1 |
-
!00 U+0000 .notdef
|
2 |
-
!01 U+0001 .notdef
|
3 |
-
!02 U+0002 .notdef
|
4 |
-
!03 U+0003 .notdef
|
5 |
-
!04 U+0004 .notdef
|
6 |
-
!05 U+0005 .notdef
|
7 |
-
!06 U+0006 .notdef
|
8 |
-
!07 U+0007 .notdef
|
9 |
-
!08 U+0008 .notdef
|
10 |
-
!09 U+0009 .notdef
|
11 |
-
!0A U+000A .notdef
|
12 |
-
!0B U+000B .notdef
|
13 |
-
!0C U+000C .notdef
|
14 |
-
!0D U+000D .notdef
|
15 |
-
!0E U+000E .notdef
|
16 |
-
!0F U+000F .notdef
|
17 |
-
!10 U+0010 .notdef
|
18 |
-
!11 U+0011 .notdef
|
19 |
-
!12 U+0012 .notdef
|
20 |
-
!13 U+0013 .notdef
|
21 |
-
!14 U+0014 .notdef
|
22 |
-
!15 U+0015 .notdef
|
23 |
-
!16 U+0016 .notdef
|
24 |
-
!17 U+0017 .notdef
|
25 |
-
!18 U+0018 .notdef
|
26 |
-
!19 U+0019 .notdef
|
27 |
-
!1A U+001A .notdef
|
28 |
-
!1B U+001B .notdef
|
29 |
-
!1C U+001C .notdef
|
30 |
-
!1D U+001D .notdef
|
31 |
-
!1E U+001E .notdef
|
32 |
-
!1F U+001F .notdef
|
33 |
-
!20 U+0020 space
|
34 |
-
!21 U+0021 exclam
|
35 |
-
!22 U+0022 quotedbl
|
36 |
-
!23 U+0023 numbersign
|
37 |
-
!24 U+0024 dollar
|
38 |
-
!25 U+0025 percent
|
39 |
-
!26 U+0026 ampersand
|
40 |
-
!27 U+0027 quotesingle
|
41 |
-
!28 U+0028 parenleft
|
42 |
-
!29 U+0029 parenright
|
43 |
-
!2A U+002A asterisk
|
44 |
-
!2B U+002B plus
|
45 |
-
!2C U+002C comma
|
46 |
-
!2D U+002D hyphen
|
47 |
-
!2E U+002E period
|
48 |
-
!2F U+002F slash
|
49 |
-
!30 U+0030 zero
|
50 |
-
!31 U+0031 one
|
51 |
-
!32 U+0032 two
|
52 |
-
!33 U+0033 three
|
53 |
-
!34 U+0034 four
|
54 |
-
!35 U+0035 five
|
55 |
-
!36 U+0036 six
|
56 |
-
!37 U+0037 seven
|
57 |
-
!38 U+0038 eight
|
58 |
-
!39 U+0039 nine
|
59 |
-
!3A U+003A colon
|
60 |
-
!3B U+003B semicolon
|
61 |
-
!3C U+003C less
|
62 |
-
!3D U+003D equal
|
63 |
-
!3E U+003E greater
|
64 |
-
!3F U+003F question
|
65 |
-
!40 U+0040 at
|
66 |
-
!41 U+0041 A
|
67 |
-
!42 U+0042 B
|
68 |
-
!43 U+0043 C
|
69 |
-
!44 U+0044 D
|
70 |
-
!45 U+0045 E
|
71 |
-
!46 U+0046 F
|
72 |
-
!47 U+0047 G
|
73 |
-
!48 U+0048 H
|
74 |
-
!49 U+0049 I
|
75 |
-
!4A U+004A J
|
76 |
-
!4B U+004B K
|
77 |
-
!4C U+004C L
|
78 |
-
!4D U+004D M
|
79 |
-
!4E U+004E N
|
80 |
-
!4F U+004F O
|
81 |
-
!50 U+0050 P
|
82 |
-
!51 U+0051 Q
|
83 |
-
!52 U+0052 R
|
84 |
-
!53 U+0053 S
|
85 |
-
!54 U+0054 T
|
86 |
-
!55 U+0055 U
|
87 |
-
!56 U+0056 V
|
88 |
-
!57 U+0057 W
|
89 |
-
!58 U+0058 X
|
90 |
-
!59 U+0059 Y
|
91 |
-
!5A U+005A Z
|
92 |
-
!5B U+005B bracketleft
|
93 |
-
!5C U+005C backslash
|
94 |
-
!5D U+005D bracketright
|
95 |
-
!5E U+005E asciicircum
|
96 |
-
!5F U+005F underscore
|
97 |
-
!60 U+0060 grave
|
98 |
-
!61 U+0061 a
|
99 |
-
!62 U+0062 b
|
100 |
-
!63 U+0063 c
|
101 |
-
!64 U+0064 d
|
102 |
-
!65 U+0065 e
|
103 |
-
!66 U+0066 f
|
104 |
-
!67 U+0067 g
|
105 |
-
!68 U+0068 h
|
106 |
-
!69 U+0069 i
|
107 |
-
!6A U+006A j
|
108 |
-
!6B U+006B k
|
109 |
-
!6C U+006C l
|
110 |
-
!6D U+006D m
|
111 |
-
!6E U+006E n
|
112 |
-
!6F U+006F o
|
113 |
-
!70 U+0070 p
|
114 |
-
!71 U+0071 q
|
115 |
-
!72 U+0072 r
|
116 |
-
!73 U+0073 s
|
117 |
-
!74 U+0074 t
|
118 |
-
!75 U+0075 u
|
119 |
-
!76 U+0076 v
|
120 |
-
!77 U+0077 w
|
121 |
-
!78 U+0078 x
|
122 |
-
!79 U+0079 y
|
123 |
-
!7A U+007A z
|
124 |
-
!7B U+007B braceleft
|
125 |
-
!7C U+007C bar
|
126 |
-
!7D U+007D braceright
|
127 |
-
!7E U+007E asciitilde
|
128 |
-
!7F U+007F .notdef
|
129 |
-
!80 U+20AC Euro
|
130 |
-
!82 U+201A quotesinglbase
|
131 |
-
!83 U+0192 florin
|
132 |
-
!84 U+201E quotedblbase
|
133 |
-
!85 U+2026 ellipsis
|
134 |
-
!86 U+2020 dagger
|
135 |
-
!87 U+2021 daggerdbl
|
136 |
-
!88 U+02C6 circumflex
|
137 |
-
!89 U+2030 perthousand
|
138 |
-
!8B U+2039 guilsinglleft
|
139 |
-
!91 U+2018 quoteleft
|
140 |
-
!92 U+2019 quoteright
|
141 |
-
!93 U+201C quotedblleft
|
142 |
-
!94 U+201D quotedblright
|
143 |
-
!95 U+2022 bullet
|
144 |
-
!96 U+2013 endash
|
145 |
-
!97 U+2014 emdash
|
146 |
-
!98 U+02DC tilde
|
147 |
-
!99 U+2122 trademark
|
148 |
-
!9B U+203A guilsinglright
|
149 |
-
!A0 U+00A0 space
|
150 |
-
!A1 U+00A1 exclamdown
|
151 |
-
!A2 U+00A2 cent
|
152 |
-
!A3 U+00A3 sterling
|
153 |
-
!A4 U+20AA afii57636
|
154 |
-
!A5 U+00A5 yen
|
155 |
-
!A6 U+00A6 brokenbar
|
156 |
-
!A7 U+00A7 section
|
157 |
-
!A8 U+00A8 dieresis
|
158 |
-
!A9 U+00A9 copyright
|
159 |
-
!AA U+00D7 multiply
|
160 |
-
!AB U+00AB guillemotleft
|
161 |
-
!AC U+00AC logicalnot
|
162 |
-
!AD U+00AD sfthyphen
|
163 |
-
!AE U+00AE registered
|
164 |
-
!AF U+00AF macron
|
165 |
-
!B0 U+00B0 degree
|
166 |
-
!B1 U+00B1 plusminus
|
167 |
-
!B2 U+00B2 twosuperior
|
168 |
-
!B3 U+00B3 threesuperior
|
169 |
-
!B4 U+00B4 acute
|
170 |
-
!B5 U+00B5 mu
|
171 |
-
!B6 U+00B6 paragraph
|
172 |
-
!B7 U+00B7 middot
|
173 |
-
!B8 U+00B8 cedilla
|
174 |
-
!B9 U+00B9 onesuperior
|
175 |
-
!BA U+00F7 divide
|
176 |
-
!BB U+00BB guillemotright
|
177 |
-
!BC U+00BC onequarter
|
178 |
-
!BD U+00BD onehalf
|
179 |
-
!BE U+00BE threequarters
|
180 |
-
!BF U+00BF questiondown
|
181 |
-
!C0 U+05B0 afii57799
|
182 |
-
!C1 U+05B1 afii57801
|
183 |
-
!C2 U+05B2 afii57800
|
184 |
-
!C3 U+05B3 afii57802
|
185 |
-
!C4 U+05B4 afii57793
|
186 |
-
!C5 U+05B5 afii57794
|
187 |
-
!C6 U+05B6 afii57795
|
188 |
-
!C7 U+05B7 afii57798
|
189 |
-
!C8 U+05B8 afii57797
|
190 |
-
!C9 U+05B9 afii57806
|
191 |
-
!CB U+05BB afii57796
|
192 |
-
!CC U+05BC afii57807
|
193 |
-
!CD U+05BD afii57839
|
194 |
-
!CE U+05BE afii57645
|
195 |
-
!CF U+05BF afii57841
|
196 |
-
!D0 U+05C0 afii57842
|
197 |
-
!D1 U+05C1 afii57804
|
198 |
-
!D2 U+05C2 afii57803
|
199 |
-
!D3 U+05C3 afii57658
|
200 |
-
!D4 U+05F0 afii57716
|
201 |
-
!D5 U+05F1 afii57717
|
202 |
-
!D6 U+05F2 afii57718
|
203 |
-
!D7 U+05F3 gereshhebrew
|
204 |
-
!D8 U+05F4 gershayimhebrew
|
205 |
-
!E0 U+05D0 afii57664
|
206 |
-
!E1 U+05D1 afii57665
|
207 |
-
!E2 U+05D2 afii57666
|
208 |
-
!E3 U+05D3 afii57667
|
209 |
-
!E4 U+05D4 afii57668
|
210 |
-
!E5 U+05D5 afii57669
|
211 |
-
!E6 U+05D6 afii57670
|
212 |
-
!E7 U+05D7 afii57671
|
213 |
-
!E8 U+05D8 afii57672
|
214 |
-
!E9 U+05D9 afii57673
|
215 |
-
!EA U+05DA afii57674
|
216 |
-
!EB U+05DB afii57675
|
217 |
-
!EC U+05DC afii57676
|
218 |
-
!ED U+05DD afii57677
|
219 |
-
!EE U+05DE afii57678
|
220 |
-
!EF U+05DF afii57679
|
221 |
-
!F0 U+05E0 afii57680
|
222 |
-
!F1 U+05E1 afii57681
|
223 |
-
!F2 U+05E2 afii57682
|
224 |
-
!F3 U+05E3 afii57683
|
225 |
-
!F4 U+05E4 afii57684
|
226 |
-
!F5 U+05E5 afii57685
|
227 |
-
!F6 U+05E6 afii57686
|
228 |
-
!F7 U+05E7 afii57687
|
229 |
-
!F8 U+05E8 afii57688
|
230 |
-
!F9 U+05E9 afii57689
|
231 |
-
!FA U+05EA afii57690
|
232 |
-
!FD U+200E afii299
|
233 |
-
!FE U+200F afii300
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/font/makefont/cp1257.map
DELETED
@@ -1,244 +0,0 @@
|
|
1 |
-
!00 U+0000 .notdef
|
2 |
-
!01 U+0001 .notdef
|
3 |
-
!02 U+0002 .notdef
|
4 |
-
!03 U+0003 .notdef
|
5 |
-
!04 U+0004 .notdef
|
6 |
-
!05 U+0005 .notdef
|
7 |
-
!06 U+0006 .notdef
|
8 |
-
!07 U+0007 .notdef
|
9 |
-
!08 U+0008 .notdef
|
10 |
-
!09 U+0009 .notdef
|
11 |
-
!0A U+000A .notdef
|
12 |
-
!0B U+000B .notdef
|
13 |
-
!0C U+000C .notdef
|
14 |
-
!0D U+000D .notdef
|
15 |
-
!0E U+000E .notdef
|
16 |
-
!0F U+000F .notdef
|
17 |
-
!10 U+0010 .notdef
|
18 |
-
!11 U+0011 .notdef
|
19 |
-
!12 U+0012 .notdef
|
20 |
-
!13 U+0013 .notdef
|
21 |
-
!14 U+0014 .notdef
|
22 |
-
!15 U+0015 .notdef
|
23 |
-
!16 U+0016 .notdef
|
24 |
-
!17 U+0017 .notdef
|
25 |
-
!18 U+0018 .notdef
|
26 |
-
!19 U+0019 .notdef
|
27 |
-
!1A U+001A .notdef
|
28 |
-
!1B U+001B .notdef
|
29 |
-
!1C U+001C .notdef
|
30 |
-
!1D U+001D .notdef
|
31 |
-
!1E U+001E .notdef
|
32 |
-
!1F U+001F .notdef
|
33 |
-
!20 U+0020 space
|
34 |
-
!21 U+0021 exclam
|
35 |
-
!22 U+0022 quotedbl
|
36 |
-
!23 U+0023 numbersign
|
37 |
-
!24 U+0024 dollar
|
38 |
-
!25 U+0025 percent
|
39 |
-
!26 U+0026 ampersand
|
40 |
-
!27 U+0027 quotesingle
|
41 |
-
!28 U+0028 parenleft
|
42 |
-
!29 U+0029 parenright
|
43 |
-
!2A U+002A asterisk
|
44 |
-
!2B U+002B plus
|
45 |
-
!2C U+002C comma
|
46 |
-
!2D U+002D hyphen
|
47 |
-
!2E U+002E period
|
48 |
-
!2F U+002F slash
|
49 |
-
!30 U+0030 zero
|
50 |
-
!31 U+0031 one
|
51 |
-
!32 U+0032 two
|
52 |
-
!33 U+0033 three
|
53 |
-
!34 U+0034 four
|
54 |
-
!35 U+0035 five
|
55 |
-
!36 U+0036 six
|
56 |
-
!37 U+0037 seven
|
57 |
-
!38 U+0038 eight
|
58 |
-
!39 U+0039 nine
|
59 |
-
!3A U+003A colon
|
60 |
-
!3B U+003B semicolon
|
61 |
-
!3C U+003C less
|
62 |
-
!3D U+003D equal
|
63 |
-
!3E U+003E greater
|
64 |
-
!3F U+003F question
|
65 |
-
!40 U+0040 at
|
66 |
-
!41 U+0041 A
|
67 |
-
!42 U+0042 B
|
68 |
-
!43 U+0043 C
|
69 |
-
!44 U+0044 D
|
70 |
-
!45 U+0045 E
|
71 |
-
!46 U+0046 F
|
72 |
-
!47 U+0047 G
|
73 |
-
!48 U+0048 H
|
74 |
-
!49 U+0049 I
|
75 |
-
!4A U+004A J
|
76 |
-
!4B U+004B K
|
77 |
-
!4C U+004C L
|
78 |
-
!4D U+004D M
|
79 |
-
!4E U+004E N
|
80 |
-
!4F U+004F O
|
81 |
-
!50 U+0050 P
|
82 |
-
!51 U+0051 Q
|
83 |
-
!52 U+0052 R
|
84 |
-
!53 U+0053 S
|
85 |
-
!54 U+0054 T
|
86 |
-
!55 U+0055 U
|
87 |
-
!56 U+0056 V
|
88 |
-
!57 U+0057 W
|
89 |
-
!58 U+0058 X
|
90 |
-
!59 U+0059 Y
|
91 |
-
!5A U+005A Z
|
92 |
-
!5B U+005B bracketleft
|
93 |
-
!5C U+005C backslash
|
94 |
-
!5D U+005D bracketright
|
95 |
-
!5E U+005E asciicircum
|
96 |
-
!5F U+005F underscore
|
97 |
-
!60 U+0060 grave
|
98 |
-
!61 U+0061 a
|
99 |
-
!62 U+0062 b
|
100 |
-
!63 U+0063 c
|
101 |
-
!64 U+0064 d
|
102 |
-
!65 U+0065 e
|
103 |
-
!66 U+0066 f
|
104 |
-
!67 U+0067 g
|
105 |
-
!68 U+0068 h
|
106 |
-
!69 U+0069 i
|
107 |
-
!6A U+006A j
|
108 |
-
!6B U+006B k
|
109 |
-
!6C U+006C l
|
110 |
-
!6D U+006D m
|
111 |
-
!6E U+006E n
|
112 |
-
!6F U+006F o
|
113 |
-
!70 U+0070 p
|
114 |
-
!71 U+0071 q
|
115 |
-
!72 U+0072 r
|
116 |
-
!73 U+0073 s
|
117 |
-
!74 U+0074 t
|
118 |
-
!75 U+0075 u
|
119 |
-
!76 U+0076 v
|
120 |
-
!77 U+0077 w
|
121 |
-
!78 U+0078 x
|
122 |
-
!79 U+0079 y
|
123 |
-
!7A U+007A z
|
124 |
-
!7B U+007B braceleft
|
125 |
-
!7C U+007C bar
|
126 |
-
!7D U+007D braceright
|
127 |
-
!7E U+007E asciitilde
|
128 |
-
!7F U+007F .notdef
|
129 |
-
!80 U+20AC Euro
|
130 |
-
!82 U+201A quotesinglbase
|
131 |
-
!84 U+201E quotedblbase
|
132 |
-
!85 U+2026 ellipsis
|
133 |
-
!86 U+2020 dagger
|
134 |
-
!87 U+2021 daggerdbl
|
135 |
-
!89 U+2030 perthousand
|
136 |
-
!8B U+2039 guilsinglleft
|
137 |
-
!8D U+00A8 dieresis
|
138 |
-
!8E U+02C7 caron
|
139 |
-
!8F U+00B8 cedilla
|
140 |
-
!91 U+2018 quoteleft
|
141 |
-
!92 U+2019 quoteright
|
142 |
-
!93 U+201C quotedblleft
|
143 |
-
!94 U+201D quotedblright
|
144 |
-
!95 U+2022 bullet
|
145 |
-
!96 U+2013 endash
|
146 |
-
!97 U+2014 emdash
|
147 |
-
!99 U+2122 trademark
|
148 |
-
!9B U+203A guilsinglright
|
149 |
-
!9D U+00AF macron
|
150 |
-
!9E U+02DB ogonek
|
151 |
-
!A0 U+00A0 space
|
152 |
-
!A2 U+00A2 cent
|
153 |
-
!A3 U+00A3 sterling
|
154 |
-
!A4 U+00A4 currency
|
155 |
-
!A6 U+00A6 brokenbar
|
156 |
-
!A7 U+00A7 section
|
157 |
-
!A8 U+00D8 Oslash
|
158 |
-
!A9 U+00A9 copyright
|
159 |
-
!AA U+0156 Rcommaaccent
|
160 |
-
!AB U+00AB guillemotleft
|
161 |
-
!AC U+00AC logicalnot
|
162 |
-
!AD U+00AD hyphen
|
163 |
-
!AE U+00AE registered
|
164 |
-
!AF U+00C6 AE
|
165 |
-
!B0 U+00B0 degree
|
166 |
-
!B1 U+00B1 plusminus
|
167 |
-
!B2 U+00B2 twosuperior
|
168 |
-
!B3 U+00B3 threesuperior
|
169 |
-
!B4 U+00B4 acute
|
170 |
-
!B5 U+00B5 mu
|
171 |
-
!B6 U+00B6 paragraph
|
172 |
-
!B7 U+00B7 periodcentered
|
173 |
-
!B8 U+00F8 oslash
|
174 |
-
!B9 U+00B9 onesuperior
|
175 |
-
!BA U+0157 rcommaaccent
|
176 |
-
!BB U+00BB guillemotright
|
177 |
-
!BC U+00BC onequarter
|
178 |
-
!BD U+00BD onehalf
|
179 |
-
!BE U+00BE threequarters
|
180 |
-
!BF U+00E6 ae
|
181 |
-
!C0 U+0104 Aogonek
|
182 |
-
!C1 U+012E Iogonek
|
183 |
-
!C2 U+0100 Amacron
|
184 |
-
!C3 U+0106 Cacute
|
185 |
-
!C4 U+00C4 Adieresis
|
186 |
-
!C5 U+00C5 Aring
|
187 |
-
!C6 U+0118 Eogonek
|
188 |
-
!C7 U+0112 Emacron
|
189 |
-
!C8 U+010C Ccaron
|
190 |
-
!C9 U+00C9 Eacute
|
191 |
-
!CA U+0179 Zacute
|
192 |
-
!CB U+0116 Edotaccent
|
193 |
-
!CC U+0122 Gcommaaccent
|
194 |
-
!CD U+0136 Kcommaaccent
|
195 |
-
!CE U+012A Imacron
|
196 |
-
!CF U+013B Lcommaaccent
|
197 |
-
!D0 U+0160 Scaron
|
198 |
-
!D1 U+0143 Nacute
|
199 |
-
!D2 U+0145 Ncommaaccent
|
200 |
-
!D3 U+00D3 Oacute
|
201 |
-
!D4 U+014C Omacron
|
202 |
-
!D5 U+00D5 Otilde
|
203 |
-
!D6 U+00D6 Odieresis
|
204 |
-
!D7 U+00D7 multiply
|
205 |
-
!D8 U+0172 Uogonek
|
206 |
-
!D9 U+0141 Lslash
|
207 |
-
!DA U+015A Sacute
|
208 |
-
!DB U+016A Umacron
|
209 |
-
!DC U+00DC Udieresis
|
210 |
-
!DD U+017B Zdotaccent
|
211 |
-
!DE U+017D Zcaron
|
212 |
-
!DF U+00DF germandbls
|
213 |
-
!E0 U+0105 aogonek
|
214 |
-
!E1 U+012F iogonek
|
215 |
-
!E2 U+0101 amacron
|
216 |
-
!E3 U+0107 cacute
|
217 |
-
!E4 U+00E4 adieresis
|
218 |
-
!E5 U+00E5 aring
|
219 |
-
!E6 U+0119 eogonek
|
220 |
-
!E7 U+0113 emacron
|
221 |
-
!E8 U+010D ccaron
|
222 |
-
!E9 U+00E9 eacute
|
223 |
-
!EA U+017A zacute
|
224 |
-
!EB U+0117 edotaccent
|
225 |
-
!EC U+0123 gcommaaccent
|
226 |
-
!ED U+0137 kcommaaccent
|
227 |
-
!EE U+012B imacron
|
228 |
-
!EF U+013C lcommaaccent
|
229 |
-
!F0 U+0161 scaron
|
230 |
-
!F1 U+0144 nacute
|
231 |
-
!F2 U+0146 ncommaaccent
|
232 |
-
!F3 U+00F3 oacute
|
233 |
-
!F4 U+014D omacron
|
234 |
-
!F5 U+00F5 otilde
|
235 |
-
!F6 U+00F6 odieresis
|
236 |
-
!F7 U+00F7 divide
|
237 |
-
!F8 U+0173 uogonek
|
238 |
-
!F9 U+0142 lslash
|
239 |
-
!FA U+015B sacute
|
240 |
-
!FB U+016B umacron
|
241 |
-
!FC U+00FC udieresis
|
242 |
-
!FD U+017C zdotaccent
|
243 |
-
!FE U+017E zcaron
|
244 |
-
!FF U+02D9 dotaccent
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/font/makefont/cp1258.map
DELETED
@@ -1,247 +0,0 @@
|
|
1 |
-
!00 U+0000 .notdef
|
2 |
-
!01 U+0001 .notdef
|
3 |
-
!02 U+0002 .notdef
|
4 |
-
!03 U+0003 .notdef
|
5 |
-
!04 U+0004 .notdef
|
6 |
-
!05 U+0005 .notdef
|
7 |
-
!06 U+0006 .notdef
|
8 |
-
!07 U+0007 .notdef
|
9 |
-
!08 U+0008 .notdef
|
10 |
-
!09 U+0009 .notdef
|
11 |
-
!0A U+000A .notdef
|
12 |
-
!0B U+000B .notdef
|
13 |
-
!0C U+000C .notdef
|
14 |
-
!0D U+000D .notdef
|
15 |
-
!0E U+000E .notdef
|
16 |
-
!0F U+000F .notdef
|
17 |
-
!10 U+0010 .notdef
|
18 |
-
!11 U+0011 .notdef
|
19 |
-
!12 U+0012 .notdef
|
20 |
-
!13 U+0013 .notdef
|
21 |
-
!14 U+0014 .notdef
|
22 |
-
!15 U+0015 .notdef
|
23 |
-
!16 U+0016 .notdef
|
24 |
-
!17 U+0017 .notdef
|
25 |
-
!18 U+0018 .notdef
|
26 |
-
!19 U+0019 .notdef
|
27 |
-
!1A U+001A .notdef
|
28 |
-
!1B U+001B .notdef
|
29 |
-
!1C U+001C .notdef
|
30 |
-
!1D U+001D .notdef
|
31 |
-
!1E U+001E .notdef
|
32 |
-
!1F U+001F .notdef
|
33 |
-
!20 U+0020 space
|
34 |
-
!21 U+0021 exclam
|
35 |
-
!22 U+0022 quotedbl
|
36 |
-
!23 U+0023 numbersign
|
37 |
-
!24 U+0024 dollar
|
38 |
-
!25 U+0025 percent
|
39 |
-
!26 U+0026 ampersand
|
40 |
-
!27 U+0027 quotesingle
|
41 |
-
!28 U+0028 parenleft
|
42 |
-
!29 U+0029 parenright
|
43 |
-
!2A U+002A asterisk
|
44 |
-
!2B U+002B plus
|
45 |
-
!2C U+002C comma
|
46 |
-
!2D U+002D hyphen
|
47 |
-
!2E U+002E period
|
48 |
-
!2F U+002F slash
|
49 |
-
!30 U+0030 zero
|
50 |
-
!31 U+0031 one
|
51 |
-
!32 U+0032 two
|
52 |
-
!33 U+0033 three
|
53 |
-
!34 U+0034 four
|
54 |
-
!35 U+0035 five
|
55 |
-
!36 U+0036 six
|
56 |
-
!37 U+0037 seven
|
57 |
-
!38 U+0038 eight
|
58 |
-
!39 U+0039 nine
|
59 |
-
!3A U+003A colon
|
60 |
-
!3B U+003B semicolon
|
61 |
-
!3C U+003C less
|
62 |
-
!3D U+003D equal
|
63 |
-
!3E U+003E greater
|
64 |
-
!3F U+003F question
|
65 |
-
!40 U+0040 at
|
66 |
-
!41 U+0041 A
|
67 |
-
!42 U+0042 B
|
68 |
-
!43 U+0043 C
|
69 |
-
!44 U+0044 D
|
70 |
-
!45 U+0045 E
|
71 |
-
!46 U+0046 F
|
72 |
-
!47 U+0047 G
|
73 |
-
!48 U+0048 H
|
74 |
-
!49 U+0049 I
|
75 |
-
!4A U+004A J
|
76 |
-
!4B U+004B K
|
77 |
-
!4C U+004C L
|
78 |
-
!4D U+004D M
|
79 |
-
!4E U+004E N
|
80 |
-
!4F U+004F O
|
81 |
-
!50 U+0050 P
|
82 |
-
!51 U+0051 Q
|
83 |
-
!52 U+0052 R
|
84 |
-
!53 U+0053 S
|
85 |
-
!54 U+0054 T
|
86 |
-
!55 U+0055 U
|
87 |
-
!56 U+0056 V
|
88 |
-
!57 U+0057 W
|
89 |
-
!58 U+0058 X
|
90 |
-
!59 U+0059 Y
|
91 |
-
!5A U+005A Z
|
92 |
-
!5B U+005B bracketleft
|
93 |
-
!5C U+005C backslash
|
94 |
-
!5D U+005D bracketright
|
95 |
-
!5E U+005E asciicircum
|
96 |
-
!5F U+005F underscore
|
97 |
-
!60 U+0060 grave
|
98 |
-
!61 U+0061 a
|
99 |
-
!62 U+0062 b
|
100 |
-
!63 U+0063 c
|
101 |
-
!64 U+0064 d
|
102 |
-
!65 U+0065 e
|
103 |
-
!66 U+0066 f
|
104 |
-
!67 U+0067 g
|
105 |
-
!68 U+0068 h
|
106 |
-
!69 U+0069 i
|
107 |
-
!6A U+006A j
|
108 |
-
!6B U+006B k
|
109 |
-
!6C U+006C l
|
110 |
-
!6D U+006D m
|
111 |
-
!6E U+006E n
|
112 |
-
!6F U+006F o
|
113 |
-
!70 U+0070 p
|
114 |
-
!71 U+0071 q
|
115 |
-
!72 U+0072 r
|
116 |
-
!73 U+0073 s
|
117 |
-
!74 U+0074 t
|
118 |
-
!75 U+0075 u
|
119 |
-
!76 U+0076 v
|
120 |
-
!77 U+0077 w
|
121 |
-
!78 U+0078 x
|
122 |
-
!79 U+0079 y
|
123 |
-
!7A U+007A z
|
124 |
-
!7B U+007B braceleft
|
125 |
-
!7C U+007C bar
|
126 |
-
!7D U+007D braceright
|
127 |
-
!7E U+007E asciitilde
|
128 |
-
!7F U+007F .notdef
|
129 |
-
!80 U+20AC Euro
|
130 |
-
!82 U+201A quotesinglbase
|
131 |
-
!83 U+0192 florin
|
132 |
-
!84 U+201E quotedblbase
|
133 |
-
!85 U+2026 ellipsis
|
134 |
-
!86 U+2020 dagger
|
135 |
-
!87 U+2021 daggerdbl
|
136 |
-
!88 U+02C6 circumflex
|
137 |
-
!89 U+2030 perthousand
|
138 |
-
!8B U+2039 guilsinglleft
|
139 |
-
!8C U+0152 OE
|
140 |
-
!91 U+2018 quoteleft
|
141 |
-
!92 U+2019 quoteright
|
142 |
-
!93 U+201C quotedblleft
|
143 |
-
!94 U+201D quotedblright
|
144 |
-
!95 U+2022 bullet
|
145 |
-
!96 U+2013 endash
|
146 |
-
!97 U+2014 emdash
|
147 |
-
!98 U+02DC tilde
|
148 |
-
!99 U+2122 trademark
|
149 |
-
!9B U+203A guilsinglright
|
150 |
-
!9C U+0153 oe
|
151 |
-
!9F U+0178 Ydieresis
|
152 |
-
!A0 U+00A0 space
|
153 |
-
!A1 U+00A1 exclamdown
|
154 |
-
!A2 U+00A2 cent
|
155 |
-
!A3 U+00A3 sterling
|
156 |
-
!A4 U+00A4 currency
|
157 |
-
!A5 U+00A5 yen
|
158 |
-
!A6 U+00A6 brokenbar
|
159 |
-
!A7 U+00A7 section
|
160 |
-
!A8 U+00A8 dieresis
|
161 |
-
!A9 U+00A9 copyright
|
162 |
-
!AA U+00AA ordfeminine
|
163 |
-
!AB U+00AB guillemotleft
|
164 |
-
!AC U+00AC logicalnot
|
165 |
-
!AD U+00AD hyphen
|
166 |
-
!AE U+00AE registered
|
167 |
-
!AF U+00AF macron
|
168 |
-
!B0 U+00B0 degree
|
169 |
-
!B1 U+00B1 plusminus
|
170 |
-
!B2 U+00B2 twosuperior
|
171 |
-
!B3 U+00B3 threesuperior
|
172 |
-
!B4 U+00B4 acute
|
173 |
-
!B5 U+00B5 mu
|
174 |
-
!B6 U+00B6 paragraph
|
175 |
-
!B7 U+00B7 periodcentered
|
176 |
-
!B8 U+00B8 cedilla
|
177 |
-
!B9 U+00B9 onesuperior
|
178 |
-
!BA U+00BA ordmasculine
|
179 |
-
!BB U+00BB guillemotright
|
180 |
-
!BC U+00BC onequarter
|
181 |
-
!BD U+00BD onehalf
|
182 |
-
!BE U+00BE threequarters
|
183 |
-
!BF U+00BF questiondown
|
184 |
-
!C0 U+00C0 Agrave
|
185 |
-
!C1 U+00C1 Aacute
|
186 |
-
!C2 U+00C2 Acircumflex
|
187 |
-
!C3 U+0102 Abreve
|
188 |
-
!C4 U+00C4 Adieresis
|
189 |
-
!C5 U+00C5 Aring
|
190 |
-
!C6 U+00C6 AE
|
191 |
-
!C7 U+00C7 Ccedilla
|
192 |
-
!C8 U+00C8 Egrave
|
193 |
-
!C9 U+00C9 Eacute
|
194 |
-
!CA U+00CA Ecircumflex
|
195 |
-
!CB U+00CB Edieresis
|
196 |
-
!CC U+0300 gravecomb
|
197 |
-
!CD U+00CD Iacute
|
198 |
-
!CE U+00CE Icircumflex
|
199 |
-
!CF U+00CF Idieresis
|
200 |
-
!D0 U+0110 Dcroat
|
201 |
-
!D1 U+00D1 Ntilde
|
202 |
-
!D2 U+0309 hookabovecomb
|
203 |
-
!D3 U+00D3 Oacute
|
204 |
-
!D4 U+00D4 Ocircumflex
|
205 |
-
!D5 U+01A0 Ohorn
|
206 |
-
!D6 U+00D6 Odieresis
|
207 |
-
!D7 U+00D7 multiply
|
208 |
-
!D8 U+00D8 Oslash
|
209 |
-
!D9 U+00D9 Ugrave
|
210 |
-
!DA U+00DA Uacute
|
211 |
-
!DB U+00DB Ucircumflex
|
212 |
-
!DC U+00DC Udieresis
|
213 |
-
!DD U+01AF Uhorn
|
214 |
-
!DE U+0303 tildecomb
|
215 |
-
!DF U+00DF germandbls
|
216 |
-
!E0 U+00E0 agrave
|
217 |
-
!E1 U+00E1 aacute
|
218 |
-
!E2 U+00E2 acircumflex
|
219 |
-
!E3 U+0103 abreve
|
220 |
-
!E4 U+00E4 adieresis
|
221 |
-
!E5 U+00E5 aring
|
222 |
-
!E6 U+00E6 ae
|
223 |
-
!E7 U+00E7 ccedilla
|
224 |
-
!E8 U+00E8 egrave
|
225 |
-
!E9 U+00E9 eacute
|
226 |
-
!EA U+00EA ecircumflex
|
227 |
-
!EB U+00EB edieresis
|
228 |
-
!EC U+0301 acutecomb
|
229 |
-
!ED U+00ED iacute
|
230 |
-
!EE U+00EE icircumflex
|
231 |
-
!EF U+00EF idieresis
|
232 |
-
!F0 U+0111 dcroat
|
233 |
-
!F1 U+00F1 ntilde
|
234 |
-
!F2 U+0323 dotbelowcomb
|
235 |
-
!F3 U+00F3 oacute
|
236 |
-
!F4 U+00F4 ocircumflex
|
237 |
-
!F5 U+01A1 ohorn
|
238 |
-
!F6 U+00F6 odieresis
|
239 |
-
!F7 U+00F7 divide
|
240 |
-
!F8 U+00F8 oslash
|
241 |
-
!F9 U+00F9 ugrave
|
242 |
-
!FA U+00FA uacute
|
243 |
-
!FB U+00FB ucircumflex
|
244 |
-
!FC U+00FC udieresis
|
245 |
-
!FD U+01B0 uhorn
|
246 |
-
!FE U+20AB dong
|
247 |
-
!FF U+00FF ydieresis
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/font/makefont/cp874.map
DELETED
@@ -1,225 +0,0 @@
|
|
1 |
-
!00 U+0000 .notdef
|
2 |
-
!01 U+0001 .notdef
|
3 |
-
!02 U+0002 .notdef
|
4 |
-
!03 U+0003 .notdef
|
5 |
-
!04 U+0004 .notdef
|
6 |
-
!05 U+0005 .notdef
|
7 |
-
!06 U+0006 .notdef
|
8 |
-
!07 U+0007 .notdef
|
9 |
-
!08 U+0008 .notdef
|
10 |
-
!09 U+0009 .notdef
|
11 |
-
!0A U+000A .notdef
|
12 |
-
!0B U+000B .notdef
|
13 |
-
!0C U+000C .notdef
|
14 |
-
!0D U+000D .notdef
|
15 |
-
!0E U+000E .notdef
|
16 |
-
!0F U+000F .notdef
|
17 |
-
!10 U+0010 .notdef
|
18 |
-
!11 U+0011 .notdef
|
19 |
-
!12 U+0012 .notdef
|
20 |
-
!13 U+0013 .notdef
|
21 |
-
!14 U+0014 .notdef
|
22 |
-
!15 U+0015 .notdef
|
23 |
-
!16 U+0016 .notdef
|
24 |
-
!17 U+0017 .notdef
|
25 |
-
!18 U+0018 .notdef
|
26 |
-
!19 U+0019 .notdef
|
27 |
-
!1A U+001A .notdef
|
28 |
-
!1B U+001B .notdef
|
29 |
-
!1C U+001C .notdef
|
30 |
-
!1D U+001D .notdef
|
31 |
-
!1E U+001E .notdef
|
32 |
-
!1F U+001F .notdef
|
33 |
-
!20 U+0020 space
|
34 |
-
!21 U+0021 exclam
|
35 |
-
!22 U+0022 quotedbl
|
36 |
-
!23 U+0023 numbersign
|
37 |
-
!24 U+0024 dollar
|
38 |
-
!25 U+0025 percent
|
39 |
-
!26 U+0026 ampersand
|
40 |
-
!27 U+0027 quotesingle
|
41 |
-
!28 U+0028 parenleft
|
42 |
-
!29 U+0029 parenright
|
43 |
-
!2A U+002A asterisk
|
44 |
-
!2B U+002B plus
|
45 |
-
!2C U+002C comma
|
46 |
-
!2D U+002D hyphen
|
47 |
-
!2E U+002E period
|
48 |
-
!2F U+002F slash
|
49 |
-
!30 U+0030 zero
|
50 |
-
!31 U+0031 one
|
51 |
-
!32 U+0032 two
|
52 |
-
!33 U+0033 three
|
53 |
-
!34 U+0034 four
|
54 |
-
!35 U+0035 five
|
55 |
-
!36 U+0036 six
|
56 |
-
!37 U+0037 seven
|
57 |
-
!38 U+0038 eight
|
58 |
-
!39 U+0039 nine
|
59 |
-
!3A U+003A colon
|
60 |
-
!3B U+003B semicolon
|
61 |
-
!3C U+003C less
|
62 |
-
!3D U+003D equal
|
63 |
-
!3E U+003E greater
|
64 |
-
!3F U+003F question
|
65 |
-
!40 U+0040 at
|
66 |
-
!41 U+0041 A
|
67 |
-
!42 U+0042 B
|
68 |
-
!43 U+0043 C
|
69 |
-
!44 U+0044 D
|
70 |
-
!45 U+0045 E
|
71 |
-
!46 U+0046 F
|
72 |
-
!47 U+0047 G
|
73 |
-
!48 U+0048 H
|
74 |
-
!49 U+0049 I
|
75 |
-
!4A U+004A J
|
76 |
-
!4B U+004B K
|
77 |
-
!4C U+004C L
|
78 |
-
!4D U+004D M
|
79 |
-
!4E U+004E N
|
80 |
-
!4F U+004F O
|
81 |
-
!50 U+0050 P
|
82 |
-
!51 U+0051 Q
|
83 |
-
!52 U+0052 R
|
84 |
-
!53 U+0053 S
|
85 |
-
!54 U+0054 T
|
86 |
-
!55 U+0055 U
|
87 |
-
!56 U+0056 V
|
88 |
-
!57 U+0057 W
|
89 |
-
!58 U+0058 X
|
90 |
-
!59 U+0059 Y
|
91 |
-
!5A U+005A Z
|
92 |
-
!5B U+005B bracketleft
|
93 |
-
!5C U+005C backslash
|
94 |
-
!5D U+005D bracketright
|
95 |
-
!5E U+005E asciicircum
|
96 |
-
!5F U+005F underscore
|
97 |
-
!60 U+0060 grave
|
98 |
-
!61 U+0061 a
|
99 |
-
!62 U+0062 b
|
100 |
-
!63 U+0063 c
|
101 |
-
!64 U+0064 d
|
102 |
-
!65 U+0065 e
|
103 |
-
!66 U+0066 f
|
104 |
-
!67 U+0067 g
|
105 |
-
!68 U+0068 h
|
106 |
-
!69 U+0069 i
|
107 |
-
!6A U+006A j
|
108 |
-
!6B U+006B k
|
109 |
-
!6C U+006C l
|
110 |
-
!6D U+006D m
|
111 |
-
!6E U+006E n
|
112 |
-
!6F U+006F o
|
113 |
-
!70 U+0070 p
|
114 |
-
!71 U+0071 q
|
115 |
-
!72 U+0072 r
|
116 |
-
!73 U+0073 s
|
117 |
-
!74 U+0074 t
|
118 |
-
!75 U+0075 u
|
119 |
-
!76 U+0076 v
|
120 |
-
!77 U+0077 w
|
121 |
-
!78 U+0078 x
|
122 |
-
!79 U+0079 y
|
123 |
-
!7A U+007A z
|
124 |
-
!7B U+007B braceleft
|
125 |
-
!7C U+007C bar
|
126 |
-
!7D U+007D braceright
|
127 |
-
!7E U+007E asciitilde
|
128 |
-
!7F U+007F .notdef
|
129 |
-
!80 U+20AC Euro
|
130 |
-
!85 U+2026 ellipsis
|
131 |
-
!91 U+2018 quoteleft
|
132 |
-
!92 U+2019 quoteright
|
133 |
-
!93 U+201C quotedblleft
|
134 |
-
!94 U+201D quotedblright
|
135 |
-
!95 U+2022 bullet
|
136 |
-
!96 U+2013 endash
|
137 |
-
!97 U+2014 emdash
|
138 |
-
!A0 U+00A0 space
|
139 |
-
!A1 U+0E01 kokaithai
|
140 |
-
!A2 U+0E02 khokhaithai
|
141 |
-
!A3 U+0E03 khokhuatthai
|
142 |
-
!A4 U+0E04 khokhwaithai
|
143 |
-
!A5 U+0E05 khokhonthai
|
144 |
-
!A6 U+0E06 khorakhangthai
|
145 |
-
!A7 U+0E07 ngonguthai
|
146 |
-
!A8 U+0E08 chochanthai
|
147 |
-
!A9 U+0E09 chochingthai
|
148 |
-
!AA U+0E0A chochangthai
|
149 |
-
!AB U+0E0B sosothai
|
150 |
-
!AC U+0E0C chochoethai
|
151 |
-
!AD U+0E0D yoyingthai
|
152 |
-
!AE U+0E0E dochadathai
|
153 |
-
!AF U+0E0F topatakthai
|
154 |
-
!B0 U+0E10 thothanthai
|
155 |
-
!B1 U+0E11 thonangmonthothai
|
156 |
-
!B2 U+0E12 thophuthaothai
|
157 |
-
!B3 U+0E13 nonenthai
|
158 |
-
!B4 U+0E14 dodekthai
|
159 |
-
!B5 U+0E15 totaothai
|
160 |
-
!B6 U+0E16 thothungthai
|
161 |
-
!B7 U+0E17 thothahanthai
|
162 |
-
!B8 U+0E18 thothongthai
|
163 |
-
!B9 U+0E19 nonuthai
|
164 |
-
!BA U+0E1A bobaimaithai
|
165 |
-
!BB U+0E1B poplathai
|
166 |
-
!BC U+0E1C phophungthai
|
167 |
-
!BD U+0E1D fofathai
|
168 |
-
!BE U+0E1E phophanthai
|
169 |
-
!BF U+0E1F fofanthai
|
170 |
-
!C0 U+0E20 phosamphaothai
|
171 |
-
!C1 U+0E21 momathai
|
172 |
-
!C2 U+0E22 yoyakthai
|
173 |
-
!C3 U+0E23 roruathai
|
174 |
-
!C4 U+0E24 ruthai
|
175 |
-
!C5 U+0E25 lolingthai
|
176 |
-
!C6 U+0E26 luthai
|
177 |
-
!C7 U+0E27 wowaenthai
|
178 |
-
!C8 U+0E28 sosalathai
|
179 |
-
!C9 U+0E29 sorusithai
|
180 |
-
!CA U+0E2A sosuathai
|
181 |
-
!CB U+0E2B hohipthai
|
182 |
-
!CC U+0E2C lochulathai
|
183 |
-
!CD U+0E2D oangthai
|
184 |
-
!CE U+0E2E honokhukthai
|
185 |
-
!CF U+0E2F paiyannoithai
|
186 |
-
!D0 U+0E30 saraathai
|
187 |
-
!D1 U+0E31 maihanakatthai
|
188 |
-
!D2 U+0E32 saraaathai
|
189 |
-
!D3 U+0E33 saraamthai
|
190 |
-
!D4 U+0E34 saraithai
|
191 |
-
!D5 U+0E35 saraiithai
|
192 |
-
!D6 U+0E36 sarauethai
|
193 |
-
!D7 U+0E37 saraueethai
|
194 |
-
!D8 U+0E38 sarauthai
|
195 |
-
!D9 U+0E39 sarauuthai
|
196 |
-
!DA U+0E3A phinthuthai
|
197 |
-
!DF U+0E3F bahtthai
|
198 |
-
!E0 U+0E40 saraethai
|
199 |
-
!E1 U+0E41 saraaethai
|
200 |
-
!E2 U+0E42 saraothai
|
201 |
-
!E3 U+0E43 saraaimaimuanthai
|
202 |
-
!E4 U+0E44 saraaimaimalaithai
|
203 |
-
!E5 U+0E45 lakkhangyaothai
|
204 |
-
!E6 U+0E46 maiyamokthai
|
205 |
-
!E7 U+0E47 maitaikhuthai
|
206 |
-
!E8 U+0E48 maiekthai
|
207 |
-
!E9 U+0E49 maithothai
|
208 |
-
!EA U+0E4A maitrithai
|
209 |
-
!EB U+0E4B maichattawathai
|
210 |
-
!EC U+0E4C thanthakhatthai
|
211 |
-
!ED U+0E4D nikhahitthai
|
212 |
-
!EE U+0E4E yamakkanthai
|
213 |
-
!EF U+0E4F fongmanthai
|
214 |
-
!F0 U+0E50 zerothai
|
215 |
-
!F1 U+0E51 onethai
|
216 |
-
!F2 U+0E52 twothai
|
217 |
-
!F3 U+0E53 threethai
|
218 |
-
!F4 U+0E54 fourthai
|
219 |
-
!F5 U+0E55 fivethai
|
220 |
-
!F6 U+0E56 sixthai
|
221 |
-
!F7 U+0E57 seventhai
|
222 |
-
!F8 U+0E58 eightthai
|
223 |
-
!F9 U+0E59 ninethai
|
224 |
-
!FA U+0E5A angkhankhuthai
|
225 |
-
!FB U+0E5B khomutthai
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/font/makefont/iso-8859-1.map
DELETED
@@ -1,256 +0,0 @@
|
|
1 |
-
!00 U+0000 .notdef
|
2 |
-
!01 U+0001 .notdef
|
3 |
-
!02 U+0002 .notdef
|
4 |
-
!03 U+0003 .notdef
|
5 |
-
!04 U+0004 .notdef
|
6 |
-
!05 U+0005 .notdef
|
7 |
-
!06 U+0006 .notdef
|
8 |
-
!07 U+0007 .notdef
|
9 |
-
!08 U+0008 .notdef
|
10 |
-
!09 U+0009 .notdef
|
11 |
-
!0A U+000A .notdef
|
12 |
-
!0B U+000B .notdef
|
13 |
-
!0C U+000C .notdef
|
14 |
-
!0D U+000D .notdef
|
15 |
-
!0E U+000E .notdef
|
16 |
-
!0F U+000F .notdef
|
17 |
-
!10 U+0010 .notdef
|
18 |
-
!11 U+0011 .notdef
|
19 |
-
!12 U+0012 .notdef
|
20 |
-
!13 U+0013 .notdef
|
21 |
-
!14 U+0014 .notdef
|
22 |
-
!15 U+0015 .notdef
|
23 |
-
!16 U+0016 .notdef
|
24 |
-
!17 U+0017 .notdef
|
25 |
-
!18 U+0018 .notdef
|
26 |
-
!19 U+0019 .notdef
|
27 |
-
!1A U+001A .notdef
|
28 |
-
!1B U+001B .notdef
|
29 |
-
!1C U+001C .notdef
|
30 |
-
!1D U+001D .notdef
|
31 |
-
!1E U+001E .notdef
|
32 |
-
!1F U+001F .notdef
|
33 |
-
!20 U+0020 space
|
34 |
-
!21 U+0021 exclam
|
35 |
-
!22 U+0022 quotedbl
|
36 |
-
!23 U+0023 numbersign
|
37 |
-
!24 U+0024 dollar
|
38 |
-
!25 U+0025 percent
|
39 |
-
!26 U+0026 ampersand
|
40 |
-
!27 U+0027 quotesingle
|
41 |
-
!28 U+0028 parenleft
|
42 |
-
!29 U+0029 parenright
|
43 |
-
!2A U+002A asterisk
|
44 |
-
!2B U+002B plus
|
45 |
-
!2C U+002C comma
|
46 |
-
!2D U+002D hyphen
|
47 |
-
!2E U+002E period
|
48 |
-
!2F U+002F slash
|
49 |
-
!30 U+0030 zero
|
50 |
-
!31 U+0031 one
|
51 |
-
!32 U+0032 two
|
52 |
-
!33 U+0033 three
|
53 |
-
!34 U+0034 four
|
54 |
-
!35 U+0035 five
|
55 |
-
!36 U+0036 six
|
56 |
-
!37 U+0037 seven
|
57 |
-
!38 U+0038 eight
|
58 |
-
!39 U+0039 nine
|
59 |
-
!3A U+003A colon
|
60 |
-
!3B U+003B semicolon
|
61 |
-
!3C U+003C less
|
62 |
-
!3D U+003D equal
|
63 |
-
!3E U+003E greater
|
64 |
-
!3F U+003F question
|
65 |
-
!40 U+0040 at
|
66 |
-
!41 U+0041 A
|
67 |
-
!42 U+0042 B
|
68 |
-
!43 U+0043 C
|
69 |
-
!44 U+0044 D
|
70 |
-
!45 U+0045 E
|
71 |
-
!46 U+0046 F
|
72 |
-
!47 U+0047 G
|
73 |
-
!48 U+0048 H
|
74 |
-
!49 U+0049 I
|
75 |
-
!4A U+004A J
|
76 |
-
!4B U+004B K
|
77 |
-
!4C U+004C L
|
78 |
-
!4D U+004D M
|
79 |
-
!4E U+004E N
|
80 |
-
!4F U+004F O
|
81 |
-
!50 U+0050 P
|
82 |
-
!51 U+0051 Q
|
83 |
-
!52 U+0052 R
|
84 |
-
!53 U+0053 S
|
85 |
-
!54 U+0054 T
|
86 |
-
!55 U+0055 U
|
87 |
-
!56 U+0056 V
|
88 |
-
!57 U+0057 W
|
89 |
-
!58 U+0058 X
|
90 |
-
!59 U+0059 Y
|
91 |
-
!5A U+005A Z
|
92 |
-
!5B U+005B bracketleft
|
93 |
-
!5C U+005C backslash
|
94 |
-
!5D U+005D bracketright
|
95 |
-
!5E U+005E asciicircum
|
96 |
-
!5F U+005F underscore
|
97 |
-
!60 U+0060 grave
|
98 |
-
!61 U+0061 a
|
99 |
-
!62 U+0062 b
|
100 |
-
!63 U+0063 c
|
101 |
-
!64 U+0064 d
|
102 |
-
!65 U+0065 e
|
103 |
-
!66 U+0066 f
|
104 |
-
!67 U+0067 g
|
105 |
-
!68 U+0068 h
|
106 |
-
!69 U+0069 i
|
107 |
-
!6A U+006A j
|
108 |
-
!6B U+006B k
|
109 |
-
!6C U+006C l
|
110 |
-
!6D U+006D m
|
111 |
-
!6E U+006E n
|
112 |
-
!6F U+006F o
|
113 |
-
!70 U+0070 p
|
114 |
-
!71 U+0071 q
|
115 |
-
!72 U+0072 r
|
116 |
-
!73 U+0073 s
|
117 |
-
!74 U+0074 t
|
118 |
-
!75 U+0075 u
|
119 |
-
!76 U+0076 v
|
120 |
-
!77 U+0077 w
|
121 |
-
!78 U+0078 x
|
122 |
-
!79 U+0079 y
|
123 |
-
!7A U+007A z
|
124 |
-
!7B U+007B braceleft
|
125 |
-
!7C U+007C bar
|
126 |
-
!7D U+007D braceright
|
127 |
-
!7E U+007E asciitilde
|
128 |
-
!7F U+007F .notdef
|
129 |
-
!80 U+0080 .notdef
|
130 |
-
!81 U+0081 .notdef
|
131 |
-
!82 U+0082 .notdef
|
132 |
-
!83 U+0083 .notdef
|
133 |
-
!84 U+0084 .notdef
|
134 |
-
!85 U+0085 .notdef
|
135 |
-
!86 U+0086 .notdef
|
136 |
-
!87 U+0087 .notdef
|
137 |
-
!88 U+0088 .notdef
|
138 |
-
!89 U+0089 .notdef
|
139 |
-
!8A U+008A .notdef
|
140 |
-
!8B U+008B .notdef
|
141 |
-
!8C U+008C .notdef
|
142 |
-
!8D U+008D .notdef
|
143 |
-
!8E U+008E .notdef
|
144 |
-
!8F U+008F .notdef
|
145 |
-
!90 U+0090 .notdef
|
146 |
-
!91 U+0091 .notdef
|
147 |
-
!92 U+0092 .notdef
|
148 |
-
!93 U+0093 .notdef
|
149 |
-
!94 U+0094 .notdef
|
150 |
-
!95 U+0095 .notdef
|
151 |
-
!96 U+0096 .notdef
|
152 |
-
!97 U+0097 .notdef
|
153 |
-
!98 U+0098 .notdef
|
154 |
-
!99 U+0099 .notdef
|
155 |
-
!9A U+009A .notdef
|
156 |
-
!9B U+009B .notdef
|
157 |
-
!9C U+009C .notdef
|
158 |
-
!9D U+009D .notdef
|
159 |
-
!9E U+009E .notdef
|
160 |
-
!9F U+009F .notdef
|
161 |
-
!A0 U+00A0 space
|
162 |
-
!A1 U+00A1 exclamdown
|
163 |
-
!A2 U+00A2 cent
|
164 |
-
!A3 U+00A3 sterling
|
165 |
-
!A4 U+00A4 currency
|
166 |
-
!A5 U+00A5 yen
|
167 |
-
!A6 U+00A6 brokenbar
|
168 |
-
!A7 U+00A7 section
|
169 |
-
!A8 U+00A8 dieresis
|
170 |
-
!A9 U+00A9 copyright
|
171 |
-
!AA U+00AA ordfeminine
|
172 |
-
!AB U+00AB guillemotleft
|
173 |
-
!AC U+00AC logicalnot
|
174 |
-
!AD U+00AD hyphen
|
175 |
-
!AE U+00AE registered
|
176 |
-
!AF U+00AF macron
|
177 |
-
!B0 U+00B0 degree
|
178 |
-
!B1 U+00B1 plusminus
|
179 |
-
!B2 U+00B2 twosuperior
|
180 |
-
!B3 U+00B3 threesuperior
|
181 |
-
!B4 U+00B4 acute
|
182 |
-
!B5 U+00B5 mu
|
183 |
-
!B6 U+00B6 paragraph
|
184 |
-
!B7 U+00B7 periodcentered
|
185 |
-
!B8 U+00B8 cedilla
|
186 |
-
!B9 U+00B9 onesuperior
|
187 |
-
!BA U+00BA ordmasculine
|
188 |
-
!BB U+00BB guillemotright
|
189 |
-
!BC U+00BC onequarter
|
190 |
-
!BD U+00BD onehalf
|
191 |
-
!BE U+00BE threequarters
|
192 |
-
!BF U+00BF questiondown
|
193 |
-
!C0 U+00C0 Agrave
|
194 |
-
!C1 U+00C1 Aacute
|
195 |
-
!C2 U+00C2 Acircumflex
|
196 |
-
!C3 U+00C3 Atilde
|
197 |
-
!C4 U+00C4 Adieresis
|
198 |
-
!C5 U+00C5 Aring
|
199 |
-
!C6 U+00C6 AE
|
200 |
-
!C7 U+00C7 Ccedilla
|
201 |
-
!C8 U+00C8 Egrave
|
202 |
-
!C9 U+00C9 Eacute
|
203 |
-
!CA U+00CA Ecircumflex
|
204 |
-
!CB U+00CB Edieresis
|
205 |
-
!CC U+00CC Igrave
|
206 |
-
!CD U+00CD Iacute
|
207 |
-
!CE U+00CE Icircumflex
|
208 |
-
!CF U+00CF Idieresis
|
209 |
-
!D0 U+00D0 Eth
|
210 |
-
!D1 U+00D1 Ntilde
|
211 |
-
!D2 U+00D2 Ograve
|
212 |
-
!D3 U+00D3 Oacute
|
213 |
-
!D4 U+00D4 Ocircumflex
|
214 |
-
!D5 U+00D5 Otilde
|
215 |
-
!D6 U+00D6 Odieresis
|
216 |
-
!D7 U+00D7 multiply
|
217 |
-
!D8 U+00D8 Oslash
|
218 |
-
!D9 U+00D9 Ugrave
|
219 |
-
!DA U+00DA Uacute
|
220 |
-
!DB U+00DB Ucircumflex
|
221 |
-
!DC U+00DC Udieresis
|
222 |
-
!DD U+00DD Yacute
|
223 |
-
!DE U+00DE Thorn
|
224 |
-
!DF U+00DF germandbls
|
225 |
-
!E0 U+00E0 agrave
|
226 |
-
!E1 U+00E1 aacute
|
227 |
-
!E2 U+00E2 acircumflex
|
228 |
-
!E3 U+00E3 atilde
|
229 |
-
!E4 U+00E4 adieresis
|
230 |
-
!E5 U+00E5 aring
|
231 |
-
!E6 U+00E6 ae
|
232 |
-
!E7 U+00E7 ccedilla
|
233 |
-
!E8 U+00E8 egrave
|
234 |
-
!E9 U+00E9 eacute
|
235 |
-
!EA U+00EA ecircumflex
|
236 |
-
!EB U+00EB edieresis
|
237 |
-
!EC U+00EC igrave
|
238 |
-
!ED U+00ED iacute
|
239 |
-
!EE U+00EE icircumflex
|
240 |
-
!EF U+00EF idieresis
|
241 |
-
!F0 U+00F0 eth
|
242 |
-
!F1 U+00F1 ntilde
|
243 |
-
!F2 U+00F2 ograve
|
244 |
-
!F3 U+00F3 oacute
|
245 |
-
!F4 U+00F4 ocircumflex
|
246 |
-
!F5 U+00F5 otilde
|
247 |
-
!F6 U+00F6 odieresis
|
248 |
-
!F7 U+00F7 divide
|
249 |
-
!F8 U+00F8 oslash
|
250 |
-
!F9 U+00F9 ugrave
|
251 |
-
!FA U+00FA uacute
|
252 |
-
!FB U+00FB ucircumflex
|
253 |
-
!FC U+00FC udieresis
|
254 |
-
!FD U+00FD yacute
|
255 |
-
!FE U+00FE thorn
|
256 |
-
!FF U+00FF ydieresis
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/font/makefont/iso-8859-11.map
DELETED
@@ -1,248 +0,0 @@
|
|
1 |
-
!00 U+0000 .notdef
|
2 |
-
!01 U+0001 .notdef
|
3 |
-
!02 U+0002 .notdef
|
4 |
-
!03 U+0003 .notdef
|
5 |
-
!04 U+0004 .notdef
|
6 |
-
!05 U+0005 .notdef
|
7 |
-
!06 U+0006 .notdef
|
8 |
-
!07 U+0007 .notdef
|
9 |
-
!08 U+0008 .notdef
|
10 |
-
!09 U+0009 .notdef
|
11 |
-
!0A U+000A .notdef
|
12 |
-
!0B U+000B .notdef
|
13 |
-
!0C U+000C .notdef
|
14 |
-
!0D U+000D .notdef
|
15 |
-
!0E U+000E .notdef
|
16 |
-
!0F U+000F .notdef
|
17 |
-
!10 U+0010 .notdef
|
18 |
-
!11 U+0011 .notdef
|
19 |
-
!12 U+0012 .notdef
|
20 |
-
!13 U+0013 .notdef
|
21 |
-
!14 U+0014 .notdef
|
22 |
-
!15 U+0015 .notdef
|
23 |
-
!16 U+0016 .notdef
|
24 |
-
!17 U+0017 .notdef
|
25 |
-
!18 U+0018 .notdef
|
26 |
-
!19 U+0019 .notdef
|
27 |
-
!1A U+001A .notdef
|
28 |
-
!1B U+001B .notdef
|
29 |
-
!1C U+001C .notdef
|
30 |
-
!1D U+001D .notdef
|
31 |
-
!1E U+001E .notdef
|
32 |
-
!1F U+001F .notdef
|
33 |
-
!20 U+0020 space
|
34 |
-
!21 U+0021 exclam
|
35 |
-
!22 U+0022 quotedbl
|
36 |
-
!23 U+0023 numbersign
|
37 |
-
!24 U+0024 dollar
|
38 |
-
!25 U+0025 percent
|
39 |
-
!26 U+0026 ampersand
|
40 |
-
!27 U+0027 quotesingle
|
41 |
-
!28 U+0028 parenleft
|
42 |
-
!29 U+0029 parenright
|
43 |
-
!2A U+002A asterisk
|
44 |
-
!2B U+002B plus
|
45 |
-
!2C U+002C comma
|
46 |
-
!2D U+002D hyphen
|
47 |
-
!2E U+002E period
|
48 |
-
!2F U+002F slash
|
49 |
-
!30 U+0030 zero
|
50 |
-
!31 U+0031 one
|
51 |
-
!32 U+0032 two
|
52 |
-
!33 U+0033 three
|
53 |
-
!34 U+0034 four
|
54 |
-
!35 U+0035 five
|
55 |
-
!36 U+0036 six
|
56 |
-
!37 U+0037 seven
|
57 |
-
!38 U+0038 eight
|
58 |
-
!39 U+0039 nine
|
59 |
-
!3A U+003A colon
|
60 |
-
!3B U+003B semicolon
|
61 |
-
!3C U+003C less
|
62 |
-
!3D U+003D equal
|
63 |
-
!3E U+003E greater
|
64 |
-
!3F U+003F question
|
65 |
-
!40 U+0040 at
|
66 |
-
!41 U+0041 A
|
67 |
-
!42 U+0042 B
|
68 |
-
!43 U+0043 C
|
69 |
-
!44 U+0044 D
|
70 |
-
!45 U+0045 E
|
71 |
-
!46 U+0046 F
|
72 |
-
!47 U+0047 G
|
73 |
-
!48 U+0048 H
|
74 |
-
!49 U+0049 I
|
75 |
-
!4A U+004A J
|
76 |
-
!4B U+004B K
|
77 |
-
!4C U+004C L
|
78 |
-
!4D U+004D M
|
79 |
-
!4E U+004E N
|
80 |
-
!4F U+004F O
|
81 |
-
!50 U+0050 P
|
82 |
-
!51 U+0051 Q
|
83 |
-
!52 U+0052 R
|
84 |
-
!53 U+0053 S
|
85 |
-
!54 U+0054 T
|
86 |
-
!55 U+0055 U
|
87 |
-
!56 U+0056 V
|
88 |
-
!57 U+0057 W
|
89 |
-
!58 U+0058 X
|
90 |
-
!59 U+0059 Y
|
91 |
-
!5A U+005A Z
|
92 |
-
!5B U+005B bracketleft
|
93 |
-
!5C U+005C backslash
|
94 |
-
!5D U+005D bracketright
|
95 |
-
!5E U+005E asciicircum
|
96 |
-
!5F U+005F underscore
|
97 |
-
!60 U+0060 grave
|
98 |
-
!61 U+0061 a
|
99 |
-
!62 U+0062 b
|
100 |
-
!63 U+0063 c
|
101 |
-
!64 U+0064 d
|
102 |
-
!65 U+0065 e
|
103 |
-
!66 U+0066 f
|
104 |
-
!67 U+0067 g
|
105 |
-
!68 U+0068 h
|
106 |
-
!69 U+0069 i
|
107 |
-
!6A U+006A j
|
108 |
-
!6B U+006B k
|
109 |
-
!6C U+006C l
|
110 |
-
!6D U+006D m
|
111 |
-
!6E U+006E n
|
112 |
-
!6F U+006F o
|
113 |
-
!70 U+0070 p
|
114 |
-
!71 U+0071 q
|
115 |
-
!72 U+0072 r
|
116 |
-
!73 U+0073 s
|
117 |
-
!74 U+0074 t
|
118 |
-
!75 U+0075 u
|
119 |
-
!76 U+0076 v
|
120 |
-
!77 U+0077 w
|
121 |
-
!78 U+0078 x
|
122 |
-
!79 U+0079 y
|
123 |
-
!7A U+007A z
|
124 |
-
!7B U+007B braceleft
|
125 |
-
!7C U+007C bar
|
126 |
-
!7D U+007D braceright
|
127 |
-
!7E U+007E asciitilde
|
128 |
-
!7F U+007F .notdef
|
129 |
-
!80 U+0080 .notdef
|
130 |
-
!81 U+0081 .notdef
|
131 |
-
!82 U+0082 .notdef
|
132 |
-
!83 U+0083 .notdef
|
133 |
-
!84 U+0084 .notdef
|
134 |
-
!85 U+0085 .notdef
|
135 |
-
!86 U+0086 .notdef
|
136 |
-
!87 U+0087 .notdef
|
137 |
-
!88 U+0088 .notdef
|
138 |
-
!89 U+0089 .notdef
|
139 |
-
!8A U+008A .notdef
|
140 |
-
!8B U+008B .notdef
|
141 |
-
!8C U+008C .notdef
|
142 |
-
!8D U+008D .notdef
|
143 |
-
!8E U+008E .notdef
|
144 |
-
!8F U+008F .notdef
|
145 |
-
!90 U+0090 .notdef
|
146 |
-
!91 U+0091 .notdef
|
147 |
-
!92 U+0092 .notdef
|
148 |
-
!93 U+0093 .notdef
|
149 |
-
!94 U+0094 .notdef
|
150 |
-
!95 U+0095 .notdef
|
151 |
-
!96 U+0096 .notdef
|
152 |
-
!97 U+0097 .notdef
|
153 |
-
!98 U+0098 .notdef
|
154 |
-
!99 U+0099 .notdef
|
155 |
-
!9A U+009A .notdef
|
156 |
-
!9B U+009B .notdef
|
157 |
-
!9C U+009C .notdef
|
158 |
-
!9D U+009D .notdef
|
159 |
-
!9E U+009E .notdef
|
160 |
-
!9F U+009F .notdef
|
161 |
-
!A0 U+00A0 space
|
162 |
-
!A1 U+0E01 kokaithai
|
163 |
-
!A2 U+0E02 khokhaithai
|
164 |
-
!A3 U+0E03 khokhuatthai
|
165 |
-
!A4 U+0E04 khokhwaithai
|
166 |
-
!A5 U+0E05 khokhonthai
|
167 |
-
!A6 U+0E06 khorakhangthai
|
168 |
-
!A7 U+0E07 ngonguthai
|
169 |
-
!A8 U+0E08 chochanthai
|
170 |
-
!A9 U+0E09 chochingthai
|
171 |
-
!AA U+0E0A chochangthai
|
172 |
-
!AB U+0E0B sosothai
|
173 |
-
!AC U+0E0C chochoethai
|
174 |
-
!AD U+0E0D yoyingthai
|
175 |
-
!AE U+0E0E dochadathai
|
176 |
-
!AF U+0E0F topatakthai
|
177 |
-
!B0 U+0E10 thothanthai
|
178 |
-
!B1 U+0E11 thonangmonthothai
|
179 |
-
!B2 U+0E12 thophuthaothai
|
180 |
-
!B3 U+0E13 nonenthai
|
181 |
-
!B4 U+0E14 dodekthai
|
182 |
-
!B5 U+0E15 totaothai
|
183 |
-
!B6 U+0E16 thothungthai
|
184 |
-
!B7 U+0E17 thothahanthai
|
185 |
-
!B8 U+0E18 thothongthai
|
186 |
-
!B9 U+0E19 nonuthai
|
187 |
-
!BA U+0E1A bobaimaithai
|
188 |
-
!BB U+0E1B poplathai
|
189 |
-
!BC U+0E1C phophungthai
|
190 |
-
!BD U+0E1D fofathai
|
191 |
-
!BE U+0E1E phophanthai
|
192 |
-
!BF U+0E1F fofanthai
|
193 |
-
!C0 U+0E20 phosamphaothai
|
194 |
-
!C1 U+0E21 momathai
|
195 |
-
!C2 U+0E22 yoyakthai
|
196 |
-
!C3 U+0E23 roruathai
|
197 |
-
!C4 U+0E24 ruthai
|
198 |
-
!C5 U+0E25 lolingthai
|
199 |
-
!C6 U+0E26 luthai
|
200 |
-
!C7 U+0E27 wowaenthai
|
201 |
-
!C8 U+0E28 sosalathai
|
202 |
-
!C9 U+0E29 sorusithai
|
203 |
-
!CA U+0E2A sosuathai
|
204 |
-
!CB U+0E2B hohipthai
|
205 |
-
!CC U+0E2C lochulathai
|
206 |
-
!CD U+0E2D oangthai
|
207 |
-
!CE U+0E2E honokhukthai
|
208 |
-
!CF U+0E2F paiyannoithai
|
209 |
-
!D0 U+0E30 saraathai
|
210 |
-
!D1 U+0E31 maihanakatthai
|
211 |
-
!D2 U+0E32 saraaathai
|
212 |
-
!D3 U+0E33 saraamthai
|
213 |
-
!D4 U+0E34 saraithai
|
214 |
-
!D5 U+0E35 saraiithai
|
215 |
-
!D6 U+0E36 sarauethai
|
216 |
-
!D7 U+0E37 saraueethai
|
217 |
-
!D8 U+0E38 sarauthai
|
218 |
-
!D9 U+0E39 sarauuthai
|
219 |
-
!DA U+0E3A phinthuthai
|
220 |
-
!DF U+0E3F bahtthai
|
221 |
-
!E0 U+0E40 saraethai
|
222 |
-
!E1 U+0E41 saraaethai
|
223 |
-
!E2 U+0E42 saraothai
|
224 |
-
!E3 U+0E43 saraaimaimuanthai
|
225 |
-
!E4 U+0E44 saraaimaimalaithai
|
226 |
-
!E5 U+0E45 lakkhangyaothai
|
227 |
-
!E6 U+0E46 maiyamokthai
|
228 |
-
!E7 U+0E47 maitaikhuthai
|
229 |
-
!E8 U+0E48 maiekthai
|
230 |
-
!E9 U+0E49 maithothai
|
231 |
-
!EA U+0E4A maitrithai
|
232 |
-
!EB U+0E4B maichattawathai
|
233 |
-
!EC U+0E4C thanthakhatthai
|
234 |
-
!ED U+0E4D nikhahitthai
|
235 |
-
!EE U+0E4E yamakkanthai
|
236 |
-
!EF U+0E4F fongmanthai
|
237 |
-
!F0 U+0E50 zerothai
|
238 |
-
!F1 U+0E51 onethai
|
239 |
-
!F2 U+0E52 twothai
|
240 |
-
!F3 U+0E53 threethai
|
241 |
-
!F4 U+0E54 fourthai
|
242 |
-
!F5 U+0E55 fivethai
|
243 |
-
!F6 U+0E56 sixthai
|
244 |
-
!F7 U+0E57 seventhai
|
245 |
-
!F8 U+0E58 eightthai
|
246 |
-
!F9 U+0E59 ninethai
|
247 |
-
!FA U+0E5A angkhankhuthai
|
248 |
-
!FB U+0E5B khomutthai
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/font/makefont/iso-8859-15.map
DELETED
@@ -1,256 +0,0 @@
|
|
1 |
-
!00 U+0000 .notdef
|
2 |
-
!01 U+0001 .notdef
|
3 |
-
!02 U+0002 .notdef
|
4 |
-
!03 U+0003 .notdef
|
5 |
-
!04 U+0004 .notdef
|
6 |
-
!05 U+0005 .notdef
|
7 |
-
!06 U+0006 .notdef
|
8 |
-
!07 U+0007 .notdef
|
9 |
-
!08 U+0008 .notdef
|
10 |
-
!09 U+0009 .notdef
|
11 |
-
!0A U+000A .notdef
|
12 |
-
!0B U+000B .notdef
|
13 |
-
!0C U+000C .notdef
|
14 |
-
!0D U+000D .notdef
|
15 |
-
!0E U+000E .notdef
|
16 |
-
!0F U+000F .notdef
|
17 |
-
!10 U+0010 .notdef
|
18 |
-
!11 U+0011 .notdef
|
19 |
-
!12 U+0012 .notdef
|
20 |
-
!13 U+0013 .notdef
|
21 |
-
!14 U+0014 .notdef
|
22 |
-
!15 U+0015 .notdef
|
23 |
-
!16 U+0016 .notdef
|
24 |
-
!17 U+0017 .notdef
|
25 |
-
!18 U+0018 .notdef
|
26 |
-
!19 U+0019 .notdef
|
27 |
-
!1A U+001A .notdef
|
28 |
-
!1B U+001B .notdef
|
29 |
-
!1C U+001C .notdef
|
30 |
-
!1D U+001D .notdef
|
31 |
-
!1E U+001E .notdef
|
32 |
-
!1F U+001F .notdef
|
33 |
-
!20 U+0020 space
|
34 |
-
!21 U+0021 exclam
|
35 |
-
!22 U+0022 quotedbl
|
36 |
-
!23 U+0023 numbersign
|
37 |
-
!24 U+0024 dollar
|
38 |
-
!25 U+0025 percent
|
39 |
-
!26 U+0026 ampersand
|
40 |
-
!27 U+0027 quotesingle
|
41 |
-
!28 U+0028 parenleft
|
42 |
-
!29 U+0029 parenright
|
43 |
-
!2A U+002A asterisk
|
44 |
-
!2B U+002B plus
|
45 |
-
!2C U+002C comma
|
46 |
-
!2D U+002D hyphen
|
47 |
-
!2E U+002E period
|
48 |
-
!2F U+002F slash
|
49 |
-
!30 U+0030 zero
|
50 |
-
!31 U+0031 one
|
51 |
-
!32 U+0032 two
|
52 |
-
!33 U+0033 three
|
53 |
-
!34 U+0034 four
|
54 |
-
!35 U+0035 five
|
55 |
-
!36 U+0036 six
|
56 |
-
!37 U+0037 seven
|
57 |
-
!38 U+0038 eight
|
58 |
-
!39 U+0039 nine
|
59 |
-
!3A U+003A colon
|
60 |
-
!3B U+003B semicolon
|
61 |
-
!3C U+003C less
|
62 |
-
!3D U+003D equal
|
63 |
-
!3E U+003E greater
|
64 |
-
!3F U+003F question
|
65 |
-
!40 U+0040 at
|
66 |
-
!41 U+0041 A
|
67 |
-
!42 U+0042 B
|
68 |
-
!43 U+0043 C
|
69 |
-
!44 U+0044 D
|
70 |
-
!45 U+0045 E
|
71 |
-
!46 U+0046 F
|
72 |
-
!47 U+0047 G
|
73 |
-
!48 U+0048 H
|
74 |
-
!49 U+0049 I
|
75 |
-
!4A U+004A J
|
76 |
-
!4B U+004B K
|
77 |
-
!4C U+004C L
|
78 |
-
!4D U+004D M
|
79 |
-
!4E U+004E N
|
80 |
-
!4F U+004F O
|
81 |
-
!50 U+0050 P
|
82 |
-
!51 U+0051 Q
|
83 |
-
!52 U+0052 R
|
84 |
-
!53 U+0053 S
|
85 |
-
!54 U+0054 T
|
86 |
-
!55 U+0055 U
|
87 |
-
!56 U+0056 V
|
88 |
-
!57 U+0057 W
|
89 |
-
!58 U+0058 X
|
90 |
-
!59 U+0059 Y
|
91 |
-
!5A U+005A Z
|
92 |
-
!5B U+005B bracketleft
|
93 |
-
!5C U+005C backslash
|
94 |
-
!5D U+005D bracketright
|
95 |
-
!5E U+005E asciicircum
|
96 |
-
!5F U+005F underscore
|
97 |
-
!60 U+0060 grave
|
98 |
-
!61 U+0061 a
|
99 |
-
!62 U+0062 b
|
100 |
-
!63 U+0063 c
|
101 |
-
!64 U+0064 d
|
102 |
-
!65 U+0065 e
|
103 |
-
!66 U+0066 f
|
104 |
-
!67 U+0067 g
|
105 |
-
!68 U+0068 h
|
106 |
-
!69 U+0069 i
|
107 |
-
!6A U+006A j
|
108 |
-
!6B U+006B k
|
109 |
-
!6C U+006C l
|
110 |
-
!6D U+006D m
|
111 |
-
!6E U+006E n
|
112 |
-
!6F U+006F o
|
113 |
-
!70 U+0070 p
|
114 |
-
!71 U+0071 q
|
115 |
-
!72 U+0072 r
|
116 |
-
!73 U+0073 s
|
117 |
-
!74 U+0074 t
|
118 |
-
!75 U+0075 u
|
119 |
-
!76 U+0076 v
|
120 |
-
!77 U+0077 w
|
121 |
-
!78 U+0078 x
|
122 |
-
!79 U+0079 y
|
123 |
-
!7A U+007A z
|
124 |
-
!7B U+007B braceleft
|
125 |
-
!7C U+007C bar
|
126 |
-
!7D U+007D braceright
|
127 |
-
!7E U+007E asciitilde
|
128 |
-
!7F U+007F .notdef
|
129 |
-
!80 U+0080 .notdef
|
130 |
-
!81 U+0081 .notdef
|
131 |
-
!82 U+0082 .notdef
|
132 |
-
!83 U+0083 .notdef
|
133 |
-
!84 U+0084 .notdef
|
134 |
-
!85 U+0085 .notdef
|
135 |
-
!86 U+0086 .notdef
|
136 |
-
!87 U+0087 .notdef
|
137 |
-
!88 U+0088 .notdef
|
138 |
-
!89 U+0089 .notdef
|
139 |
-
!8A U+008A .notdef
|
140 |
-
!8B U+008B .notdef
|
141 |
-
!8C U+008C .notdef
|
142 |
-
!8D U+008D .notdef
|
143 |
-
!8E U+008E .notdef
|
144 |
-
!8F U+008F .notdef
|
145 |
-
!90 U+0090 .notdef
|
146 |
-
!91 U+0091 .notdef
|
147 |
-
!92 U+0092 .notdef
|
148 |
-
!93 U+0093 .notdef
|
149 |
-
!94 U+0094 .notdef
|
150 |
-
!95 U+0095 .notdef
|
151 |
-
!96 U+0096 .notdef
|
152 |
-
!97 U+0097 .notdef
|
153 |
-
!98 U+0098 .notdef
|
154 |
-
!99 U+0099 .notdef
|
155 |
-
!9A U+009A .notdef
|
156 |
-
!9B U+009B .notdef
|
157 |
-
!9C U+009C .notdef
|
158 |
-
!9D U+009D .notdef
|
159 |
-
!9E U+009E .notdef
|
160 |
-
!9F U+009F .notdef
|
161 |
-
!A0 U+00A0 space
|
162 |
-
!A1 U+00A1 exclamdown
|
163 |
-
!A2 U+00A2 cent
|
164 |
-
!A3 U+00A3 sterling
|
165 |
-
!A4 U+20AC Euro
|
166 |
-
!A5 U+00A5 yen
|
167 |
-
!A6 U+0160 Scaron
|
168 |
-
!A7 U+00A7 section
|
169 |
-
!A8 U+0161 scaron
|
170 |
-
!A9 U+00A9 copyright
|
171 |
-
!AA U+00AA ordfeminine
|
172 |
-
!AB U+00AB guillemotleft
|
173 |
-
!AC U+00AC logicalnot
|
174 |
-
!AD U+00AD hyphen
|
175 |
-
!AE U+00AE registered
|
176 |
-
!AF U+00AF macron
|
177 |
-
!B0 U+00B0 degree
|
178 |
-
!B1 U+00B1 plusminus
|
179 |
-
!B2 U+00B2 twosuperior
|
180 |
-
!B3 U+00B3 threesuperior
|
181 |
-
!B4 U+017D Zcaron
|
182 |
-
!B5 U+00B5 mu
|
183 |
-
!B6 U+00B6 paragraph
|
184 |
-
!B7 U+00B7 periodcentered
|
185 |
-
!B8 U+017E zcaron
|
186 |
-
!B9 U+00B9 onesuperior
|
187 |
-
!BA U+00BA ordmasculine
|
188 |
-
!BB U+00BB guillemotright
|
189 |
-
!BC U+0152 OE
|
190 |
-
!BD U+0153 oe
|
191 |
-
!BE U+0178 Ydieresis
|
192 |
-
!BF U+00BF questiondown
|
193 |
-
!C0 U+00C0 Agrave
|
194 |
-
!C1 U+00C1 Aacute
|
195 |
-
!C2 U+00C2 Acircumflex
|
196 |
-
!C3 U+00C3 Atilde
|
197 |
-
!C4 U+00C4 Adieresis
|
198 |
-
!C5 U+00C5 Aring
|
199 |
-
!C6 U+00C6 AE
|
200 |
-
!C7 U+00C7 Ccedilla
|
201 |
-
!C8 U+00C8 Egrave
|
202 |
-
!C9 U+00C9 Eacute
|
203 |
-
!CA U+00CA Ecircumflex
|
204 |
-
!CB U+00CB Edieresis
|
205 |
-
!CC U+00CC Igrave
|
206 |
-
!CD U+00CD Iacute
|
207 |
-
!CE U+00CE Icircumflex
|
208 |
-
!CF U+00CF Idieresis
|
209 |
-
!D0 U+00D0 Eth
|
210 |
-
!D1 U+00D1 Ntilde
|
211 |
-
!D2 U+00D2 Ograve
|
212 |
-
!D3 U+00D3 Oacute
|
213 |
-
!D4 U+00D4 Ocircumflex
|
214 |
-
!D5 U+00D5 Otilde
|
215 |
-
!D6 U+00D6 Odieresis
|
216 |
-
!D7 U+00D7 multiply
|
217 |
-
!D8 U+00D8 Oslash
|
218 |
-
!D9 U+00D9 Ugrave
|
219 |
-
!DA U+00DA Uacute
|
220 |
-
!DB U+00DB Ucircumflex
|
221 |
-
!DC U+00DC Udieresis
|
222 |
-
!DD U+00DD Yacute
|
223 |
-
!DE U+00DE Thorn
|
224 |
-
!DF U+00DF germandbls
|
225 |
-
!E0 U+00E0 agrave
|
226 |
-
!E1 U+00E1 aacute
|
227 |
-
!E2 U+00E2 acircumflex
|
228 |
-
!E3 U+00E3 atilde
|
229 |
-
!E4 U+00E4 adieresis
|
230 |
-
!E5 U+00E5 aring
|
231 |
-
!E6 U+00E6 ae
|
232 |
-
!E7 U+00E7 ccedilla
|
233 |
-
!E8 U+00E8 egrave
|
234 |
-
!E9 U+00E9 eacute
|
235 |
-
!EA U+00EA ecircumflex
|
236 |
-
!EB U+00EB edieresis
|
237 |
-
!EC U+00EC igrave
|
238 |
-
!ED U+00ED iacute
|
239 |
-
!EE U+00EE icircumflex
|
240 |
-
!EF U+00EF idieresis
|
241 |
-
!F0 U+00F0 eth
|
242 |
-
!F1 U+00F1 ntilde
|
243 |
-
!F2 U+00F2 ograve
|
244 |
-
!F3 U+00F3 oacute
|
245 |
-
!F4 U+00F4 ocircumflex
|
246 |
-
!F5 U+00F5 otilde
|
247 |
-
!F6 U+00F6 odieresis
|
248 |
-
!F7 U+00F7 divide
|
249 |
-
!F8 U+00F8 oslash
|
250 |
-
!F9 U+00F9 ugrave
|
251 |
-
!FA U+00FA uacute
|
252 |
-
!FB U+00FB ucircumflex
|
253 |
-
!FC U+00FC udieresis
|
254 |
-
!FD U+00FD yacute
|
255 |
-
!FE U+00FE thorn
|
256 |
-
!FF U+00FF ydieresis
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/font/makefont/iso-8859-16.map
DELETED
@@ -1,256 +0,0 @@
|
|
1 |
-
!00 U+0000 .notdef
|
2 |
-
!01 U+0001 .notdef
|
3 |
-
!02 U+0002 .notdef
|
4 |
-
!03 U+0003 .notdef
|
5 |
-
!04 U+0004 .notdef
|
6 |
-
!05 U+0005 .notdef
|
7 |
-
!06 U+0006 .notdef
|
8 |
-
!07 U+0007 .notdef
|
9 |
-
!08 U+0008 .notdef
|
10 |
-
!09 U+0009 .notdef
|
11 |
-
!0A U+000A .notdef
|
12 |
-
!0B U+000B .notdef
|
13 |
-
!0C U+000C .notdef
|
14 |
-
!0D U+000D .notdef
|
15 |
-
!0E U+000E .notdef
|
16 |
-
!0F U+000F .notdef
|
17 |
-
!10 U+0010 .notdef
|
18 |
-
!11 U+0011 .notdef
|
19 |
-
!12 U+0012 .notdef
|
20 |
-
!13 U+0013 .notdef
|
21 |
-
!14 U+0014 .notdef
|
22 |
-
!15 U+0015 .notdef
|
23 |
-
!16 U+0016 .notdef
|
24 |
-
!17 U+0017 .notdef
|
25 |
-
!18 U+0018 .notdef
|
26 |
-
!19 U+0019 .notdef
|
27 |
-
!1A U+001A .notdef
|
28 |
-
!1B U+001B .notdef
|
29 |
-
!1C U+001C .notdef
|
30 |
-
!1D U+001D .notdef
|
31 |
-
!1E U+001E .notdef
|
32 |
-
!1F U+001F .notdef
|
33 |
-
!20 U+0020 space
|
34 |
-
!21 U+0021 exclam
|
35 |
-
!22 U+0022 quotedbl
|
36 |
-
!23 U+0023 numbersign
|
37 |
-
!24 U+0024 dollar
|
38 |
-
!25 U+0025 percent
|
39 |
-
!26 U+0026 ampersand
|
40 |
-
!27 U+0027 quotesingle
|
41 |
-
!28 U+0028 parenleft
|
42 |
-
!29 U+0029 parenright
|
43 |
-
!2A U+002A asterisk
|
44 |
-
!2B U+002B plus
|
45 |
-
!2C U+002C comma
|
46 |
-
!2D U+002D hyphen
|
47 |
-
!2E U+002E period
|
48 |
-
!2F U+002F slash
|
49 |
-
!30 U+0030 zero
|
50 |
-
!31 U+0031 one
|
51 |
-
!32 U+0032 two
|
52 |
-
!33 U+0033 three
|
53 |
-
!34 U+0034 four
|
54 |
-
!35 U+0035 five
|
55 |
-
!36 U+0036 six
|
56 |
-
!37 U+0037 seven
|
57 |
-
!38 U+0038 eight
|
58 |
-
!39 U+0039 nine
|
59 |
-
!3A U+003A colon
|
60 |
-
!3B U+003B semicolon
|
61 |
-
!3C U+003C less
|
62 |
-
!3D U+003D equal
|
63 |
-
!3E U+003E greater
|
64 |
-
!3F U+003F question
|
65 |
-
!40 U+0040 at
|
66 |
-
!41 U+0041 A
|
67 |
-
!42 U+0042 B
|
68 |
-
!43 U+0043 C
|
69 |
-
!44 U+0044 D
|
70 |
-
!45 U+0045 E
|
71 |
-
!46 U+0046 F
|
72 |
-
!47 U+0047 G
|
73 |
-
!48 U+0048 H
|
74 |
-
!49 U+0049 I
|
75 |
-
!4A U+004A J
|
76 |
-
!4B U+004B K
|
77 |
-
!4C U+004C L
|
78 |
-
!4D U+004D M
|
79 |
-
!4E U+004E N
|
80 |
-
!4F U+004F O
|
81 |
-
!50 U+0050 P
|
82 |
-
!51 U+0051 Q
|
83 |
-
!52 U+0052 R
|
84 |
-
!53 U+0053 S
|
85 |
-
!54 U+0054 T
|
86 |
-
!55 U+0055 U
|
87 |
-
!56 U+0056 V
|
88 |
-
!57 U+0057 W
|
89 |
-
!58 U+0058 X
|
90 |
-
!59 U+0059 Y
|
91 |
-
!5A U+005A Z
|
92 |
-
!5B U+005B bracketleft
|
93 |
-
!5C U+005C backslash
|
94 |
-
!5D U+005D bracketright
|
95 |
-
!5E U+005E asciicircum
|
96 |
-
!5F U+005F underscore
|
97 |
-
!60 U+0060 grave
|
98 |
-
!61 U+0061 a
|
99 |
-
!62 U+0062 b
|
100 |
-
!63 U+0063 c
|
101 |
-
!64 U+0064 d
|
102 |
-
!65 U+0065 e
|
103 |
-
!66 U+0066 f
|
104 |
-
!67 U+0067 g
|
105 |
-
!68 U+0068 h
|
106 |
-
!69 U+0069 i
|
107 |
-
!6A U+006A j
|
108 |
-
!6B U+006B k
|
109 |
-
!6C U+006C l
|
110 |
-
!6D U+006D m
|
111 |
-
!6E U+006E n
|
112 |
-
!6F U+006F o
|
113 |
-
!70 U+0070 p
|
114 |
-
!71 U+0071 q
|
115 |
-
!72 U+0072 r
|
116 |
-
!73 U+0073 s
|
117 |
-
!74 U+0074 t
|
118 |
-
!75 U+0075 u
|
119 |
-
!76 U+0076 v
|
120 |
-
!77 U+0077 w
|
121 |
-
!78 U+0078 x
|
122 |
-
!79 U+0079 y
|
123 |
-
!7A U+007A z
|
124 |
-
!7B U+007B braceleft
|
125 |
-
!7C U+007C bar
|
126 |
-
!7D U+007D braceright
|
127 |
-
!7E U+007E asciitilde
|
128 |
-
!7F U+007F .notdef
|
129 |
-
!80 U+0080 .notdef
|
130 |
-
!81 U+0081 .notdef
|
131 |
-
!82 U+0082 .notdef
|
132 |
-
!83 U+0083 .notdef
|
133 |
-
!84 U+0084 .notdef
|
134 |
-
!85 U+0085 .notdef
|
135 |
-
!86 U+0086 .notdef
|
136 |
-
!87 U+0087 .notdef
|
137 |
-
!88 U+0088 .notdef
|
138 |
-
!89 U+0089 .notdef
|
139 |
-
!8A U+008A .notdef
|
140 |
-
!8B U+008B .notdef
|
141 |
-
!8C U+008C .notdef
|
142 |
-
!8D U+008D .notdef
|
143 |
-
!8E U+008E .notdef
|
144 |
-
!8F U+008F .notdef
|
145 |
-
!90 U+0090 .notdef
|
146 |
-
!91 U+0091 .notdef
|
147 |
-
!92 U+0092 .notdef
|
148 |
-
!93 U+0093 .notdef
|
149 |
-
!94 U+0094 .notdef
|
150 |
-
!95 U+0095 .notdef
|
151 |
-
!96 U+0096 .notdef
|
152 |
-
!97 U+0097 .notdef
|
153 |
-
!98 U+0098 .notdef
|
154 |
-
!99 U+0099 .notdef
|
155 |
-
!9A U+009A .notdef
|
156 |
-
!9B U+009B .notdef
|
157 |
-
!9C U+009C .notdef
|
158 |
-
!9D U+009D .notdef
|
159 |
-
!9E U+009E .notdef
|
160 |
-
!9F U+009F .notdef
|
161 |
-
!A0 U+00A0 space
|
162 |
-
!A1 U+0104 Aogonek
|
163 |
-
!A2 U+0105 aogonek
|
164 |
-
!A3 U+0141 Lslash
|
165 |
-
!A4 U+20AC Euro
|
166 |
-
!A5 U+201E quotedblbase
|
167 |
-
!A6 U+0160 Scaron
|
168 |
-
!A7 U+00A7 section
|
169 |
-
!A8 U+0161 scaron
|
170 |
-
!A9 U+00A9 copyright
|
171 |
-
!AA U+0218 Scommaaccent
|
172 |
-
!AB U+00AB guillemotleft
|
173 |
-
!AC U+0179 Zacute
|
174 |
-
!AD U+00AD hyphen
|
175 |
-
!AE U+017A zacute
|
176 |
-
!AF U+017B Zdotaccent
|
177 |
-
!B0 U+00B0 degree
|
178 |
-
!B1 U+00B1 plusminus
|
179 |
-
!B2 U+010C Ccaron
|
180 |
-
!B3 U+0142 lslash
|
181 |
-
!B4 U+017D Zcaron
|
182 |
-
!B5 U+201D quotedblright
|
183 |
-
!B6 U+00B6 paragraph
|
184 |
-
!B7 U+00B7 periodcentered
|
185 |
-
!B8 U+017E zcaron
|
186 |
-
!B9 U+010D ccaron
|
187 |
-
!BA U+0219 scommaaccent
|
188 |
-
!BB U+00BB guillemotright
|
189 |
-
!BC U+0152 OE
|
190 |
-
!BD U+0153 oe
|
191 |
-
!BE U+0178 Ydieresis
|
192 |
-
!BF U+017C zdotaccent
|
193 |
-
!C0 U+00C0 Agrave
|
194 |
-
!C1 U+00C1 Aacute
|
195 |
-
!C2 U+00C2 Acircumflex
|
196 |
-
!C3 U+0102 Abreve
|
197 |
-
!C4 U+00C4 Adieresis
|
198 |
-
!C5 U+0106 Cacute
|
199 |
-
!C6 U+00C6 AE
|
200 |
-
!C7 U+00C7 Ccedilla
|
201 |
-
!C8 U+00C8 Egrave
|
202 |
-
!C9 U+00C9 Eacute
|
203 |
-
!CA U+00CA Ecircumflex
|
204 |
-
!CB U+00CB Edieresis
|
205 |
-
!CC U+00CC Igrave
|
206 |
-
!CD U+00CD Iacute
|
207 |
-
!CE U+00CE Icircumflex
|
208 |
-
!CF U+00CF Idieresis
|
209 |
-
!D0 U+0110 Dcroat
|
210 |
-
!D1 U+0143 Nacute
|
211 |
-
!D2 U+00D2 Ograve
|
212 |
-
!D3 U+00D3 Oacute
|
213 |
-
!D4 U+00D4 Ocircumflex
|
214 |
-
!D5 U+0150 Ohungarumlaut
|
215 |
-
!D6 U+00D6 Odieresis
|
216 |
-
!D7 U+015A Sacute
|
217 |
-
!D8 U+0170 Uhungarumlaut
|
218 |
-
!D9 U+00D9 Ugrave
|
219 |
-
!DA U+00DA Uacute
|
220 |
-
!DB U+00DB Ucircumflex
|
221 |
-
!DC U+00DC Udieresis
|
222 |
-
!DD U+0118 Eogonek
|
223 |
-
!DE U+021A Tcommaaccent
|
224 |
-
!DF U+00DF germandbls
|
225 |
-
!E0 U+00E0 agrave
|
226 |
-
!E1 U+00E1 aacute
|
227 |
-
!E2 U+00E2 acircumflex
|
228 |
-
!E3 U+0103 abreve
|
229 |
-
!E4 U+00E4 adieresis
|
230 |
-
!E5 U+0107 cacute
|
231 |
-
!E6 U+00E6 ae
|
232 |
-
!E7 U+00E7 ccedilla
|
233 |
-
!E8 U+00E8 egrave
|
234 |
-
!E9 U+00E9 eacute
|
235 |
-
!EA U+00EA ecircumflex
|
236 |
-
!EB U+00EB edieresis
|
237 |
-
!EC U+00EC igrave
|
238 |
-
!ED U+00ED iacute
|
239 |
-
!EE U+00EE icircumflex
|
240 |
-
!EF U+00EF idieresis
|
241 |
-
!F0 U+0111 dcroat
|
242 |
-
!F1 U+0144 nacute
|
243 |
-
!F2 U+00F2 ograve
|
244 |
-
!F3 U+00F3 oacute
|
245 |
-
!F4 U+00F4 ocircumflex
|
246 |
-
!F5 U+0151 ohungarumlaut
|
247 |
-
!F6 U+00F6 odieresis
|
248 |
-
!F7 U+015B sacute
|
249 |
-
!F8 U+0171 uhungarumlaut
|
250 |
-
!F9 U+00F9 ugrave
|
251 |
-
!FA U+00FA uacute
|
252 |
-
!FB U+00FB ucircumflex
|
253 |
-
!FC U+00FC udieresis
|
254 |
-
!FD U+0119 eogonek
|
255 |
-
!FE U+021B tcommaaccent
|
256 |
-
!FF U+00FF ydieresis
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/font/makefont/iso-8859-2.map
DELETED
@@ -1,256 +0,0 @@
|
|
1 |
-
!00 U+0000 .notdef
|
2 |
-
!01 U+0001 .notdef
|
3 |
-
!02 U+0002 .notdef
|
4 |
-
!03 U+0003 .notdef
|
5 |
-
!04 U+0004 .notdef
|
6 |
-
!05 U+0005 .notdef
|
7 |
-
!06 U+0006 .notdef
|
8 |
-
!07 U+0007 .notdef
|
9 |
-
!08 U+0008 .notdef
|
10 |
-
!09 U+0009 .notdef
|
11 |
-
!0A U+000A .notdef
|
12 |
-
!0B U+000B .notdef
|
13 |
-
!0C U+000C .notdef
|
14 |
-
!0D U+000D .notdef
|
15 |
-
!0E U+000E .notdef
|
16 |
-
!0F U+000F .notdef
|
17 |
-
!10 U+0010 .notdef
|
18 |
-
!11 U+0011 .notdef
|
19 |
-
!12 U+0012 .notdef
|
20 |
-
!13 U+0013 .notdef
|
21 |
-
!14 U+0014 .notdef
|
22 |
-
!15 U+0015 .notdef
|
23 |
-
!16 U+0016 .notdef
|
24 |
-
!17 U+0017 .notdef
|
25 |
-
!18 U+0018 .notdef
|
26 |
-
!19 U+0019 .notdef
|
27 |
-
!1A U+001A .notdef
|
28 |
-
!1B U+001B .notdef
|
29 |
-
!1C U+001C .notdef
|
30 |
-
!1D U+001D .notdef
|
31 |
-
!1E U+001E .notdef
|
32 |
-
!1F U+001F .notdef
|
33 |
-
!20 U+0020 space
|
34 |
-
!21 U+0021 exclam
|
35 |
-
!22 U+0022 quotedbl
|
36 |
-
!23 U+0023 numbersign
|
37 |
-
!24 U+0024 dollar
|
38 |
-
!25 U+0025 percent
|
39 |
-
!26 U+0026 ampersand
|
40 |
-
!27 U+0027 quotesingle
|
41 |
-
!28 U+0028 parenleft
|
42 |
-
!29 U+0029 parenright
|
43 |
-
!2A U+002A asterisk
|
44 |
-
!2B U+002B plus
|
45 |
-
!2C U+002C comma
|
46 |
-
!2D U+002D hyphen
|
47 |
-
!2E U+002E period
|
48 |
-
!2F U+002F slash
|
49 |
-
!30 U+0030 zero
|
50 |
-
!31 U+0031 one
|
51 |
-
!32 U+0032 two
|
52 |
-
!33 U+0033 three
|
53 |
-
!34 U+0034 four
|
54 |
-
!35 U+0035 five
|
55 |
-
!36 U+0036 six
|
56 |
-
!37 U+0037 seven
|
57 |
-
!38 U+0038 eight
|
58 |
-
!39 U+0039 nine
|
59 |
-
!3A U+003A colon
|
60 |
-
!3B U+003B semicolon
|
61 |
-
!3C U+003C less
|
62 |
-
!3D U+003D equal
|
63 |
-
!3E U+003E greater
|
64 |
-
!3F U+003F question
|
65 |
-
!40 U+0040 at
|
66 |
-
!41 U+0041 A
|
67 |
-
!42 U+0042 B
|
68 |
-
!43 U+0043 C
|
69 |
-
!44 U+0044 D
|
70 |
-
!45 U+0045 E
|
71 |
-
!46 U+0046 F
|
72 |
-
!47 U+0047 G
|
73 |
-
!48 U+0048 H
|
74 |
-
!49 U+0049 I
|
75 |
-
!4A U+004A J
|
76 |
-
!4B U+004B K
|
77 |
-
!4C U+004C L
|
78 |
-
!4D U+004D M
|
79 |
-
!4E U+004E N
|
80 |
-
!4F U+004F O
|
81 |
-
!50 U+0050 P
|
82 |
-
!51 U+0051 Q
|
83 |
-
!52 U+0052 R
|
84 |
-
!53 U+0053 S
|
85 |
-
!54 U+0054 T
|
86 |
-
!55 U+0055 U
|
87 |
-
!56 U+0056 V
|
88 |
-
!57 U+0057 W
|
89 |
-
!58 U+0058 X
|
90 |
-
!59 U+0059 Y
|
91 |
-
!5A U+005A Z
|
92 |
-
!5B U+005B bracketleft
|
93 |
-
!5C U+005C backslash
|
94 |
-
!5D U+005D bracketright
|
95 |
-
!5E U+005E asciicircum
|
96 |
-
!5F U+005F underscore
|
97 |
-
!60 U+0060 grave
|
98 |
-
!61 U+0061 a
|
99 |
-
!62 U+0062 b
|
100 |
-
!63 U+0063 c
|
101 |
-
!64 U+0064 d
|
102 |
-
!65 U+0065 e
|
103 |
-
!66 U+0066 f
|
104 |
-
!67 U+0067 g
|
105 |
-
!68 U+0068 h
|
106 |
-
!69 U+0069 i
|
107 |
-
!6A U+006A j
|
108 |
-
!6B U+006B k
|
109 |
-
!6C U+006C l
|
110 |
-
!6D U+006D m
|
111 |
-
!6E U+006E n
|
112 |
-
!6F U+006F o
|
113 |
-
!70 U+0070 p
|
114 |
-
!71 U+0071 q
|
115 |
-
!72 U+0072 r
|
116 |
-
!73 U+0073 s
|
117 |
-
!74 U+0074 t
|
118 |
-
!75 U+0075 u
|
119 |
-
!76 U+0076 v
|
120 |
-
!77 U+0077 w
|
121 |
-
!78 U+0078 x
|
122 |
-
!79 U+0079 y
|
123 |
-
!7A U+007A z
|
124 |
-
!7B U+007B braceleft
|
125 |
-
!7C U+007C bar
|
126 |
-
!7D U+007D braceright
|
127 |
-
!7E U+007E asciitilde
|
128 |
-
!7F U+007F .notdef
|
129 |
-
!80 U+0080 .notdef
|
130 |
-
!81 U+0081 .notdef
|
131 |
-
!82 U+0082 .notdef
|
132 |
-
!83 U+0083 .notdef
|
133 |
-
!84 U+0084 .notdef
|
134 |
-
!85 U+0085 .notdef
|
135 |
-
!86 U+0086 .notdef
|
136 |
-
!87 U+0087 .notdef
|
137 |
-
!88 U+0088 .notdef
|
138 |
-
!89 U+0089 .notdef
|
139 |
-
!8A U+008A .notdef
|
140 |
-
!8B U+008B .notdef
|
141 |
-
!8C U+008C .notdef
|
142 |
-
!8D U+008D .notdef
|
143 |
-
!8E U+008E .notdef
|
144 |
-
!8F U+008F .notdef
|
145 |
-
!90 U+0090 .notdef
|
146 |
-
!91 U+0091 .notdef
|
147 |
-
!92 U+0092 .notdef
|
148 |
-
!93 U+0093 .notdef
|
149 |
-
!94 U+0094 .notdef
|
150 |
-
!95 U+0095 .notdef
|
151 |
-
!96 U+0096 .notdef
|
152 |
-
!97 U+0097 .notdef
|
153 |
-
!98 U+0098 .notdef
|
154 |
-
!99 U+0099 .notdef
|
155 |
-
!9A U+009A .notdef
|
156 |
-
!9B U+009B .notdef
|
157 |
-
!9C U+009C .notdef
|
158 |
-
!9D U+009D .notdef
|
159 |
-
!9E U+009E .notdef
|
160 |
-
!9F U+009F .notdef
|
161 |
-
!A0 U+00A0 space
|
162 |
-
!A1 U+0104 Aogonek
|
163 |
-
!A2 U+02D8 breve
|
164 |
-
!A3 U+0141 Lslash
|
165 |
-
!A4 U+00A4 currency
|
166 |
-
!A5 U+013D Lcaron
|
167 |
-
!A6 U+015A Sacute
|
168 |
-
!A7 U+00A7 section
|
169 |
-
!A8 U+00A8 dieresis
|
170 |
-
!A9 U+0160 Scaron
|
171 |
-
!AA U+015E Scedilla
|
172 |
-
!AB U+0164 Tcaron
|
173 |
-
!AC U+0179 Zacute
|
174 |
-
!AD U+00AD hyphen
|
175 |
-
!AE U+017D Zcaron
|
176 |
-
!AF U+017B Zdotaccent
|
177 |
-
!B0 U+00B0 degree
|
178 |
-
!B1 U+0105 aogonek
|
179 |
-
!B2 U+02DB ogonek
|
180 |
-
!B3 U+0142 lslash
|
181 |
-
!B4 U+00B4 acute
|
182 |
-
!B5 U+013E lcaron
|
183 |
-
!B6 U+015B sacute
|
184 |
-
!B7 U+02C7 caron
|
185 |
-
!B8 U+00B8 cedilla
|
186 |
-
!B9 U+0161 scaron
|
187 |
-
!BA U+015F scedilla
|
188 |
-
!BB U+0165 tcaron
|
189 |
-
!BC U+017A zacute
|
190 |
-
!BD U+02DD hungarumlaut
|
191 |
-
!BE U+017E zcaron
|
192 |
-
!BF U+017C zdotaccent
|
193 |
-
!C0 U+0154 Racute
|
194 |
-
!C1 U+00C1 Aacute
|
195 |
-
!C2 U+00C2 Acircumflex
|
196 |
-
!C3 U+0102 Abreve
|
197 |
-
!C4 U+00C4 Adieresis
|
198 |
-
!C5 U+0139 Lacute
|
199 |
-
!C6 U+0106 Cacute
|
200 |
-
!C7 U+00C7 Ccedilla
|
201 |
-
!C8 U+010C Ccaron
|
202 |
-
!C9 U+00C9 Eacute
|
203 |
-
!CA U+0118 Eogonek
|
204 |
-
!CB U+00CB Edieresis
|
205 |
-
!CC U+011A Ecaron
|
206 |
-
!CD U+00CD Iacute
|
207 |
-
!CE U+00CE Icircumflex
|
208 |
-
!CF U+010E Dcaron
|
209 |
-
!D0 U+0110 Dcroat
|
210 |
-
!D1 U+0143 Nacute
|
211 |
-
!D2 U+0147 Ncaron
|
212 |
-
!D3 U+00D3 Oacute
|
213 |
-
!D4 U+00D4 Ocircumflex
|
214 |
-
!D5 U+0150 Ohungarumlaut
|
215 |
-
!D6 U+00D6 Odieresis
|
216 |
-
!D7 U+00D7 multiply
|
217 |
-
!D8 U+0158 Rcaron
|
218 |
-
!D9 U+016E Uring
|
219 |
-
!DA U+00DA Uacute
|
220 |
-
!DB U+0170 Uhungarumlaut
|
221 |
-
!DC U+00DC Udieresis
|
222 |
-
!DD U+00DD Yacute
|
223 |
-
!DE U+0162 Tcommaaccent
|
224 |
-
!DF U+00DF germandbls
|
225 |
-
!E0 U+0155 racute
|
226 |
-
!E1 U+00E1 aacute
|
227 |
-
!E2 U+00E2 acircumflex
|
228 |
-
!E3 U+0103 abreve
|
229 |
-
!E4 U+00E4 adieresis
|
230 |
-
!E5 U+013A lacute
|
231 |
-
!E6 U+0107 cacute
|
232 |
-
!E7 U+00E7 ccedilla
|
233 |
-
!E8 U+010D ccaron
|
234 |
-
!E9 U+00E9 eacute
|
235 |
-
!EA U+0119 eogonek
|
236 |
-
!EB U+00EB edieresis
|
237 |
-
!EC U+011B ecaron
|
238 |
-
!ED U+00ED iacute
|
239 |
-
!EE U+00EE icircumflex
|
240 |
-
!EF U+010F dcaron
|
241 |
-
!F0 U+0111 dcroat
|
242 |
-
!F1 U+0144 nacute
|
243 |
-
!F2 U+0148 ncaron
|
244 |
-
!F3 U+00F3 oacute
|
245 |
-
!F4 U+00F4 ocircumflex
|
246 |
-
!F5 U+0151 ohungarumlaut
|
247 |
-
!F6 U+00F6 odieresis
|
248 |
-
!F7 U+00F7 divide
|
249 |
-
!F8 U+0159 rcaron
|
250 |
-
!F9 U+016F uring
|
251 |
-
!FA U+00FA uacute
|
252 |
-
!FB U+0171 uhungarumlaut
|
253 |
-
!FC U+00FC udieresis
|
254 |
-
!FD U+00FD yacute
|
255 |
-
!FE U+0163 tcommaaccent
|
256 |
-
!FF U+02D9 dotaccent
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/font/makefont/iso-8859-4.map
DELETED
@@ -1,256 +0,0 @@
|
|
1 |
-
!00 U+0000 .notdef
|
2 |
-
!01 U+0001 .notdef
|
3 |
-
!02 U+0002 .notdef
|
4 |
-
!03 U+0003 .notdef
|
5 |
-
!04 U+0004 .notdef
|
6 |
-
!05 U+0005 .notdef
|
7 |
-
!06 U+0006 .notdef
|
8 |
-
!07 U+0007 .notdef
|
9 |
-
!08 U+0008 .notdef
|
10 |
-
!09 U+0009 .notdef
|
11 |
-
!0A U+000A .notdef
|
12 |
-
!0B U+000B .notdef
|
13 |
-
!0C U+000C .notdef
|
14 |
-
!0D U+000D .notdef
|
15 |
-
!0E U+000E .notdef
|
16 |
-
!0F U+000F .notdef
|
17 |
-
!10 U+0010 .notdef
|
18 |
-
!11 U+0011 .notdef
|
19 |
-
!12 U+0012 .notdef
|
20 |
-
!13 U+0013 .notdef
|
21 |
-
!14 U+0014 .notdef
|
22 |
-
!15 U+0015 .notdef
|
23 |
-
!16 U+0016 .notdef
|
24 |
-
!17 U+0017 .notdef
|
25 |
-
!18 U+0018 .notdef
|
26 |
-
!19 U+0019 .notdef
|
27 |
-
!1A U+001A .notdef
|
28 |
-
!1B U+001B .notdef
|
29 |
-
!1C U+001C .notdef
|
30 |
-
!1D U+001D .notdef
|
31 |
-
!1E U+001E .notdef
|
32 |
-
!1F U+001F .notdef
|
33 |
-
!20 U+0020 space
|
34 |
-
!21 U+0021 exclam
|
35 |
-
!22 U+0022 quotedbl
|
36 |
-
!23 U+0023 numbersign
|
37 |
-
!24 U+0024 dollar
|
38 |
-
!25 U+0025 percent
|
39 |
-
!26 U+0026 ampersand
|
40 |
-
!27 U+0027 quotesingle
|
41 |
-
!28 U+0028 parenleft
|
42 |
-
!29 U+0029 parenright
|
43 |
-
!2A U+002A asterisk
|
44 |
-
!2B U+002B plus
|
45 |
-
!2C U+002C comma
|
46 |
-
!2D U+002D hyphen
|
47 |
-
!2E U+002E period
|
48 |
-
!2F U+002F slash
|
49 |
-
!30 U+0030 zero
|
50 |
-
!31 U+0031 one
|
51 |
-
!32 U+0032 two
|
52 |
-
!33 U+0033 three
|
53 |
-
!34 U+0034 four
|
54 |
-
!35 U+0035 five
|
55 |
-
!36 U+0036 six
|
56 |
-
!37 U+0037 seven
|
57 |
-
!38 U+0038 eight
|
58 |
-
!39 U+0039 nine
|
59 |
-
!3A U+003A colon
|
60 |
-
!3B U+003B semicolon
|
61 |
-
!3C U+003C less
|
62 |
-
!3D U+003D equal
|
63 |
-
!3E U+003E greater
|
64 |
-
!3F U+003F question
|
65 |
-
!40 U+0040 at
|
66 |
-
!41 U+0041 A
|
67 |
-
!42 U+0042 B
|
68 |
-
!43 U+0043 C
|
69 |
-
!44 U+0044 D
|
70 |
-
!45 U+0045 E
|
71 |
-
!46 U+0046 F
|
72 |
-
!47 U+0047 G
|
73 |
-
!48 U+0048 H
|
74 |
-
!49 U+0049 I
|
75 |
-
!4A U+004A J
|
76 |
-
!4B U+004B K
|
77 |
-
!4C U+004C L
|
78 |
-
!4D U+004D M
|
79 |
-
!4E U+004E N
|
80 |
-
!4F U+004F O
|
81 |
-
!50 U+0050 P
|
82 |
-
!51 U+0051 Q
|
83 |
-
!52 U+0052 R
|
84 |
-
!53 U+0053 S
|
85 |
-
!54 U+0054 T
|
86 |
-
!55 U+0055 U
|
87 |
-
!56 U+0056 V
|
88 |
-
!57 U+0057 W
|
89 |
-
!58 U+0058 X
|
90 |
-
!59 U+0059 Y
|
91 |
-
!5A U+005A Z
|
92 |
-
!5B U+005B bracketleft
|
93 |
-
!5C U+005C backslash
|
94 |
-
!5D U+005D bracketright
|
95 |
-
!5E U+005E asciicircum
|
96 |
-
!5F U+005F underscore
|
97 |
-
!60 U+0060 grave
|
98 |
-
!61 U+0061 a
|
99 |
-
!62 U+0062 b
|
100 |
-
!63 U+0063 c
|
101 |
-
!64 U+0064 d
|
102 |
-
!65 U+0065 e
|
103 |
-
!66 U+0066 f
|
104 |
-
!67 U+0067 g
|
105 |
-
!68 U+0068 h
|
106 |
-
!69 U+0069 i
|
107 |
-
!6A U+006A j
|
108 |
-
!6B U+006B k
|
109 |
-
!6C U+006C l
|
110 |
-
!6D U+006D m
|
111 |
-
!6E U+006E n
|
112 |
-
!6F U+006F o
|
113 |
-
!70 U+0070 p
|
114 |
-
!71 U+0071 q
|
115 |
-
!72 U+0072 r
|
116 |
-
!73 U+0073 s
|
117 |
-
!74 U+0074 t
|
118 |
-
!75 U+0075 u
|
119 |
-
!76 U+0076 v
|
120 |
-
!77 U+0077 w
|
121 |
-
!78 U+0078 x
|
122 |
-
!79 U+0079 y
|
123 |
-
!7A U+007A z
|
124 |
-
!7B U+007B braceleft
|
125 |
-
!7C U+007C bar
|
126 |
-
!7D U+007D braceright
|
127 |
-
!7E U+007E asciitilde
|
128 |
-
!7F U+007F .notdef
|
129 |
-
!80 U+0080 .notdef
|
130 |
-
!81 U+0081 .notdef
|
131 |
-
!82 U+0082 .notdef
|
132 |
-
!83 U+0083 .notdef
|
133 |
-
!84 U+0084 .notdef
|
134 |
-
!85 U+0085 .notdef
|
135 |
-
!86 U+0086 .notdef
|
136 |
-
!87 U+0087 .notdef
|
137 |
-
!88 U+0088 .notdef
|
138 |
-
!89 U+0089 .notdef
|
139 |
-
!8A U+008A .notdef
|
140 |
-
!8B U+008B .notdef
|
141 |
-
!8C U+008C .notdef
|
142 |
-
!8D U+008D .notdef
|
143 |
-
!8E U+008E .notdef
|
144 |
-
!8F U+008F .notdef
|
145 |
-
!90 U+0090 .notdef
|
146 |
-
!91 U+0091 .notdef
|
147 |
-
!92 U+0092 .notdef
|
148 |
-
!93 U+0093 .notdef
|
149 |
-
!94 U+0094 .notdef
|
150 |
-
!95 U+0095 .notdef
|
151 |
-
!96 U+0096 .notdef
|
152 |
-
!97 U+0097 .notdef
|
153 |
-
!98 U+0098 .notdef
|
154 |
-
!99 U+0099 .notdef
|
155 |
-
!9A U+009A .notdef
|
156 |
-
!9B U+009B .notdef
|
157 |
-
!9C U+009C .notdef
|
158 |
-
!9D U+009D .notdef
|
159 |
-
!9E U+009E .notdef
|
160 |
-
!9F U+009F .notdef
|
161 |
-
!A0 U+00A0 space
|
162 |
-
!A1 U+0104 Aogonek
|
163 |
-
!A2 U+0138 kgreenlandic
|
164 |
-
!A3 U+0156 Rcommaaccent
|
165 |
-
!A4 U+00A4 currency
|
166 |
-
!A5 U+0128 Itilde
|
167 |
-
!A6 U+013B Lcommaaccent
|
168 |
-
!A7 U+00A7 section
|
169 |
-
!A8 U+00A8 dieresis
|
170 |
-
!A9 U+0160 Scaron
|
171 |
-
!AA U+0112 Emacron
|
172 |
-
!AB U+0122 Gcommaaccent
|
173 |
-
!AC U+0166 Tbar
|
174 |
-
!AD U+00AD hyphen
|
175 |
-
!AE U+017D Zcaron
|
176 |
-
!AF U+00AF macron
|
177 |
-
!B0 U+00B0 degree
|
178 |
-
!B1 U+0105 aogonek
|
179 |
-
!B2 U+02DB ogonek
|
180 |
-
!B3 U+0157 rcommaaccent
|
181 |
-
!B4 U+00B4 acute
|
182 |
-
!B5 U+0129 itilde
|
183 |
-
!B6 U+013C lcommaaccent
|
184 |
-
!B7 U+02C7 caron
|
185 |
-
!B8 U+00B8 cedilla
|
186 |
-
!B9 U+0161 scaron
|
187 |
-
!BA U+0113 emacron
|
188 |
-
!BB U+0123 gcommaaccent
|
189 |
-
!BC U+0167 tbar
|
190 |
-
!BD U+014A Eng
|
191 |
-
!BE U+017E zcaron
|
192 |
-
!BF U+014B eng
|
193 |
-
!C0 U+0100 Amacron
|
194 |
-
!C1 U+00C1 Aacute
|
195 |
-
!C2 U+00C2 Acircumflex
|
196 |
-
!C3 U+00C3 Atilde
|
197 |
-
!C4 U+00C4 Adieresis
|
198 |
-
!C5 U+00C5 Aring
|
199 |
-
!C6 U+00C6 AE
|
200 |
-
!C7 U+012E Iogonek
|
201 |
-
!C8 U+010C Ccaron
|
202 |
-
!C9 U+00C9 Eacute
|
203 |
-
!CA U+0118 Eogonek
|
204 |
-
!CB U+00CB Edieresis
|
205 |
-
!CC U+0116 Edotaccent
|
206 |
-
!CD U+00CD Iacute
|
207 |
-
!CE U+00CE Icircumflex
|
208 |
-
!CF U+012A Imacron
|
209 |
-
!D0 U+0110 Dcroat
|
210 |
-
!D1 U+0145 Ncommaaccent
|
211 |
-
!D2 U+014C Omacron
|
212 |
-
!D3 U+0136 Kcommaaccent
|
213 |
-
!D4 U+00D4 Ocircumflex
|
214 |
-
!D5 U+00D5 Otilde
|
215 |
-
!D6 U+00D6 Odieresis
|
216 |
-
!D7 U+00D7 multiply
|
217 |
-
!D8 U+00D8 Oslash
|
218 |
-
!D9 U+0172 Uogonek
|
219 |
-
!DA U+00DA Uacute
|
220 |
-
!DB U+00DB Ucircumflex
|
221 |
-
!DC U+00DC Udieresis
|
222 |
-
!DD U+0168 Utilde
|
223 |
-
!DE U+016A Umacron
|
224 |
-
!DF U+00DF germandbls
|
225 |
-
!E0 U+0101 amacron
|
226 |
-
!E1 U+00E1 aacute
|
227 |
-
!E2 U+00E2 acircumflex
|
228 |
-
!E3 U+00E3 atilde
|
229 |
-
!E4 U+00E4 adieresis
|
230 |
-
!E5 U+00E5 aring
|
231 |
-
!E6 U+00E6 ae
|
232 |
-
!E7 U+012F iogonek
|
233 |
-
!E8 U+010D ccaron
|
234 |
-
!E9 U+00E9 eacute
|
235 |
-
!EA U+0119 eogonek
|
236 |
-
!EB U+00EB edieresis
|
237 |
-
!EC U+0117 edotaccent
|
238 |
-
!ED U+00ED iacute
|
239 |
-
!EE U+00EE icircumflex
|
240 |
-
!EF U+012B imacron
|
241 |
-
!F0 U+0111 dcroat
|
242 |
-
!F1 U+0146 ncommaaccent
|
243 |
-
!F2 U+014D omacron
|
244 |
-
!F3 U+0137 kcommaaccent
|
245 |
-
!F4 U+00F4 ocircumflex
|
246 |
-
!F5 U+00F5 otilde
|
247 |
-
!F6 U+00F6 odieresis
|
248 |
-
!F7 U+00F7 divide
|
249 |
-
!F8 U+00F8 oslash
|
250 |
-
!F9 U+0173 uogonek
|
251 |
-
!FA U+00FA uacute
|
252 |
-
!FB U+00FB ucircumflex
|
253 |
-
!FC U+00FC udieresis
|
254 |
-
!FD U+0169 utilde
|
255 |
-
!FE U+016B umacron
|
256 |
-
!FF U+02D9 dotaccent
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/font/makefont/iso-8859-5.map
DELETED
@@ -1,256 +0,0 @@
|
|
1 |
-
!00 U+0000 .notdef
|
2 |
-
!01 U+0001 .notdef
|
3 |
-
!02 U+0002 .notdef
|
4 |
-
!03 U+0003 .notdef
|
5 |
-
!04 U+0004 .notdef
|
6 |
-
!05 U+0005 .notdef
|
7 |
-
!06 U+0006 .notdef
|
8 |
-
!07 U+0007 .notdef
|
9 |
-
!08 U+0008 .notdef
|
10 |
-
!09 U+0009 .notdef
|
11 |
-
!0A U+000A .notdef
|
12 |
-
!0B U+000B .notdef
|
13 |
-
!0C U+000C .notdef
|
14 |
-
!0D U+000D .notdef
|
15 |
-
!0E U+000E .notdef
|
16 |
-
!0F U+000F .notdef
|
17 |
-
!10 U+0010 .notdef
|
18 |
-
!11 U+0011 .notdef
|
19 |
-
!12 U+0012 .notdef
|
20 |
-
!13 U+0013 .notdef
|
21 |
-
!14 U+0014 .notdef
|
22 |
-
!15 U+0015 .notdef
|
23 |
-
!16 U+0016 .notdef
|
24 |
-
!17 U+0017 .notdef
|
25 |
-
!18 U+0018 .notdef
|
26 |
-
!19 U+0019 .notdef
|
27 |
-
!1A U+001A .notdef
|
28 |
-
!1B U+001B .notdef
|
29 |
-
!1C U+001C .notdef
|
30 |
-
!1D U+001D .notdef
|
31 |
-
!1E U+001E .notdef
|
32 |
-
!1F U+001F .notdef
|
33 |
-
!20 U+0020 space
|
34 |
-
!21 U+0021 exclam
|
35 |
-
!22 U+0022 quotedbl
|
36 |
-
!23 U+0023 numbersign
|
37 |
-
!24 U+0024 dollar
|
38 |
-
!25 U+0025 percent
|
39 |
-
!26 U+0026 ampersand
|
40 |
-
!27 U+0027 quotesingle
|
41 |
-
!28 U+0028 parenleft
|
42 |
-
!29 U+0029 parenright
|
43 |
-
!2A U+002A asterisk
|
44 |
-
!2B U+002B plus
|
45 |
-
!2C U+002C comma
|
46 |
-
!2D U+002D hyphen
|
47 |
-
!2E U+002E period
|
48 |
-
!2F U+002F slash
|
49 |
-
!30 U+0030 zero
|
50 |
-
!31 U+0031 one
|
51 |
-
!32 U+0032 two
|
52 |
-
!33 U+0033 three
|
53 |
-
!34 U+0034 four
|
54 |
-
!35 U+0035 five
|
55 |
-
!36 U+0036 six
|
56 |
-
!37 U+0037 seven
|
57 |
-
!38 U+0038 eight
|
58 |
-
!39 U+0039 nine
|
59 |
-
!3A U+003A colon
|
60 |
-
!3B U+003B semicolon
|
61 |
-
!3C U+003C less
|
62 |
-
!3D U+003D equal
|
63 |
-
!3E U+003E greater
|
64 |
-
!3F U+003F question
|
65 |
-
!40 U+0040 at
|
66 |
-
!41 U+0041 A
|
67 |
-
!42 U+0042 B
|
68 |
-
!43 U+0043 C
|
69 |
-
!44 U+0044 D
|
70 |
-
!45 U+0045 E
|
71 |
-
!46 U+0046 F
|
72 |
-
!47 U+0047 G
|
73 |
-
!48 U+0048 H
|
74 |
-
!49 U+0049 I
|
75 |
-
!4A U+004A J
|
76 |
-
!4B U+004B K
|
77 |
-
!4C U+004C L
|
78 |
-
!4D U+004D M
|
79 |
-
!4E U+004E N
|
80 |
-
!4F U+004F O
|
81 |
-
!50 U+0050 P
|
82 |
-
!51 U+0051 Q
|
83 |
-
!52 U+0052 R
|
84 |
-
!53 U+0053 S
|
85 |
-
!54 U+0054 T
|
86 |
-
!55 U+0055 U
|
87 |
-
!56 U+0056 V
|
88 |
-
!57 U+0057 W
|
89 |
-
!58 U+0058 X
|
90 |
-
!59 U+0059 Y
|
91 |
-
!5A U+005A Z
|
92 |
-
!5B U+005B bracketleft
|
93 |
-
!5C U+005C backslash
|
94 |
-
!5D U+005D bracketright
|
95 |
-
!5E U+005E asciicircum
|
96 |
-
!5F U+005F underscore
|
97 |
-
!60 U+0060 grave
|
98 |
-
!61 U+0061 a
|
99 |
-
!62 U+0062 b
|
100 |
-
!63 U+0063 c
|
101 |
-
!64 U+0064 d
|
102 |
-
!65 U+0065 e
|
103 |
-
!66 U+0066 f
|
104 |
-
!67 U+0067 g
|
105 |
-
!68 U+0068 h
|
106 |
-
!69 U+0069 i
|
107 |
-
!6A U+006A j
|
108 |
-
!6B U+006B k
|
109 |
-
!6C U+006C l
|
110 |
-
!6D U+006D m
|
111 |
-
!6E U+006E n
|
112 |
-
!6F U+006F o
|
113 |
-
!70 U+0070 p
|
114 |
-
!71 U+0071 q
|
115 |
-
!72 U+0072 r
|
116 |
-
!73 U+0073 s
|
117 |
-
!74 U+0074 t
|
118 |
-
!75 U+0075 u
|
119 |
-
!76 U+0076 v
|
120 |
-
!77 U+0077 w
|
121 |
-
!78 U+0078 x
|
122 |
-
!79 U+0079 y
|
123 |
-
!7A U+007A z
|
124 |
-
!7B U+007B braceleft
|
125 |
-
!7C U+007C bar
|
126 |
-
!7D U+007D braceright
|
127 |
-
!7E U+007E asciitilde
|
128 |
-
!7F U+007F .notdef
|
129 |
-
!80 U+0080 .notdef
|
130 |
-
!81 U+0081 .notdef
|
131 |
-
!82 U+0082 .notdef
|
132 |
-
!83 U+0083 .notdef
|
133 |
-
!84 U+0084 .notdef
|
134 |
-
!85 U+0085 .notdef
|
135 |
-
!86 U+0086 .notdef
|
136 |
-
!87 U+0087 .notdef
|
137 |
-
!88 U+0088 .notdef
|
138 |
-
!89 U+0089 .notdef
|
139 |
-
!8A U+008A .notdef
|
140 |
-
!8B U+008B .notdef
|
141 |
-
!8C U+008C .notdef
|
142 |
-
!8D U+008D .notdef
|
143 |
-
!8E U+008E .notdef
|
144 |
-
!8F U+008F .notdef
|
145 |
-
!90 U+0090 .notdef
|
146 |
-
!91 U+0091 .notdef
|
147 |
-
!92 U+0092 .notdef
|
148 |
-
!93 U+0093 .notdef
|
149 |
-
!94 U+0094 .notdef
|
150 |
-
!95 U+0095 .notdef
|
151 |
-
!96 U+0096 .notdef
|
152 |
-
!97 U+0097 .notdef
|
153 |
-
!98 U+0098 .notdef
|
154 |
-
!99 U+0099 .notdef
|
155 |
-
!9A U+009A .notdef
|
156 |
-
!9B U+009B .notdef
|
157 |
-
!9C U+009C .notdef
|
158 |
-
!9D U+009D .notdef
|
159 |
-
!9E U+009E .notdef
|
160 |
-
!9F U+009F .notdef
|
161 |
-
!A0 U+00A0 space
|
162 |
-
!A1 U+0401 afii10023
|
163 |
-
!A2 U+0402 afii10051
|
164 |
-
!A3 U+0403 afii10052
|
165 |
-
!A4 U+0404 afii10053
|
166 |
-
!A5 U+0405 afii10054
|
167 |
-
!A6 U+0406 afii10055
|
168 |
-
!A7 U+0407 afii10056
|
169 |
-
!A8 U+0408 afii10057
|
170 |
-
!A9 U+0409 afii10058
|
171 |
-
!AA U+040A afii10059
|
172 |
-
!AB U+040B afii10060
|
173 |
-
!AC U+040C afii10061
|
174 |
-
!AD U+00AD hyphen
|
175 |
-
!AE U+040E afii10062
|
176 |
-
!AF U+040F afii10145
|
177 |
-
!B0 U+0410 afii10017
|
178 |
-
!B1 U+0411 afii10018
|
179 |
-
!B2 U+0412 afii10019
|
180 |
-
!B3 U+0413 afii10020
|
181 |
-
!B4 U+0414 afii10021
|
182 |
-
!B5 U+0415 afii10022
|
183 |
-
!B6 U+0416 afii10024
|
184 |
-
!B7 U+0417 afii10025
|
185 |
-
!B8 U+0418 afii10026
|
186 |
-
!B9 U+0419 afii10027
|
187 |
-
!BA U+041A afii10028
|
188 |
-
!BB U+041B afii10029
|
189 |
-
!BC U+041C afii10030
|
190 |
-
!BD U+041D afii10031
|
191 |
-
!BE U+041E afii10032
|
192 |
-
!BF U+041F afii10033
|
193 |
-
!C0 U+0420 afii10034
|
194 |
-
!C1 U+0421 afii10035
|
195 |
-
!C2 U+0422 afii10036
|
196 |
-
!C3 U+0423 afii10037
|
197 |
-
!C4 U+0424 afii10038
|
198 |
-
!C5 U+0425 afii10039
|
199 |
-
!C6 U+0426 afii10040
|
200 |
-
!C7 U+0427 afii10041
|
201 |
-
!C8 U+0428 afii10042
|
202 |
-
!C9 U+0429 afii10043
|
203 |
-
!CA U+042A afii10044
|
204 |
-
!CB U+042B afii10045
|
205 |
-
!CC U+042C afii10046
|
206 |
-
!CD U+042D afii10047
|
207 |
-
!CE U+042E afii10048
|
208 |
-
!CF U+042F afii10049
|
209 |
-
!D0 U+0430 afii10065
|
210 |
-
!D1 U+0431 afii10066
|
211 |
-
!D2 U+0432 afii10067
|
212 |
-
!D3 U+0433 afii10068
|
213 |
-
!D4 U+0434 afii10069
|
214 |
-
!D5 U+0435 afii10070
|
215 |
-
!D6 U+0436 afii10072
|
216 |
-
!D7 U+0437 afii10073
|
217 |
-
!D8 U+0438 afii10074
|
218 |
-
!D9 U+0439 afii10075
|
219 |
-
!DA U+043A afii10076
|
220 |
-
!DB U+043B afii10077
|
221 |
-
!DC U+043C afii10078
|
222 |
-
!DD U+043D afii10079
|
223 |
-
!DE U+043E afii10080
|
224 |
-
!DF U+043F afii10081
|
225 |
-
!E0 U+0440 afii10082
|
226 |
-
!E1 U+0441 afii10083
|
227 |
-
!E2 U+0442 afii10084
|
228 |
-
!E3 U+0443 afii10085
|
229 |
-
!E4 U+0444 afii10086
|
230 |
-
!E5 U+0445 afii10087
|
231 |
-
!E6 U+0446 afii10088
|
232 |
-
!E7 U+0447 afii10089
|
233 |
-
!E8 U+0448 afii10090
|
234 |
-
!E9 U+0449 afii10091
|
235 |
-
!EA U+044A afii10092
|
236 |
-
!EB U+044B afii10093
|
237 |
-
!EC U+044C afii10094
|
238 |
-
!ED U+044D afii10095
|
239 |
-
!EE U+044E afii10096
|
240 |
-
!EF U+044F afii10097
|
241 |
-
!F0 U+2116 afii61352
|
242 |
-
!F1 U+0451 afii10071
|
243 |
-
!F2 U+0452 afii10099
|
244 |
-
!F3 U+0453 afii10100
|
245 |
-
!F4 U+0454 afii10101
|
246 |
-
!F5 U+0455 afii10102
|
247 |
-
!F6 U+0456 afii10103
|
248 |
-
!F7 U+0457 afii10104
|
249 |
-
!F8 U+0458 afii10105
|
250 |
-
!F9 U+0459 afii10106
|
251 |
-
!FA U+045A afii10107
|
252 |
-
!FB U+045B afii10108
|
253 |
-
!FC U+045C afii10109
|
254 |
-
!FD U+00A7 section
|
255 |
-
!FE U+045E afii10110
|
256 |
-
!FF U+045F afii10193
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/font/makefont/iso-8859-7.map
DELETED
@@ -1,250 +0,0 @@
|
|
1 |
-
!00 U+0000 .notdef
|
2 |
-
!01 U+0001 .notdef
|
3 |
-
!02 U+0002 .notdef
|
4 |
-
!03 U+0003 .notdef
|
5 |
-
!04 U+0004 .notdef
|
6 |
-
!05 U+0005 .notdef
|
7 |
-
!06 U+0006 .notdef
|
8 |
-
!07 U+0007 .notdef
|
9 |
-
!08 U+0008 .notdef
|
10 |
-
!09 U+0009 .notdef
|
11 |
-
!0A U+000A .notdef
|
12 |
-
!0B U+000B .notdef
|
13 |
-
!0C U+000C .notdef
|
14 |
-
!0D U+000D .notdef
|
15 |
-
!0E U+000E .notdef
|
16 |
-
!0F U+000F .notdef
|
17 |
-
!10 U+0010 .notdef
|
18 |
-
!11 U+0011 .notdef
|
19 |
-
!12 U+0012 .notdef
|
20 |
-
!13 U+0013 .notdef
|
21 |
-
!14 U+0014 .notdef
|
22 |
-
!15 U+0015 .notdef
|
23 |
-
!16 U+0016 .notdef
|
24 |
-
!17 U+0017 .notdef
|
25 |
-
!18 U+0018 .notdef
|
26 |
-
!19 U+0019 .notdef
|
27 |
-
!1A U+001A .notdef
|
28 |
-
!1B U+001B .notdef
|
29 |
-
!1C U+001C .notdef
|
30 |
-
!1D U+001D .notdef
|
31 |
-
!1E U+001E .notdef
|
32 |
-
!1F U+001F .notdef
|
33 |
-
!20 U+0020 space
|
34 |
-
!21 U+0021 exclam
|
35 |
-
!22 U+0022 quotedbl
|
36 |
-
!23 U+0023 numbersign
|
37 |
-
!24 U+0024 dollar
|
38 |
-
!25 U+0025 percent
|
39 |
-
!26 U+0026 ampersand
|
40 |
-
!27 U+0027 quotesingle
|
41 |
-
!28 U+0028 parenleft
|
42 |
-
!29 U+0029 parenright
|
43 |
-
!2A U+002A asterisk
|
44 |
-
!2B U+002B plus
|
45 |
-
!2C U+002C comma
|
46 |
-
!2D U+002D hyphen
|
47 |
-
!2E U+002E period
|
48 |
-
!2F U+002F slash
|
49 |
-
!30 U+0030 zero
|
50 |
-
!31 U+0031 one
|
51 |
-
!32 U+0032 two
|
52 |
-
!33 U+0033 three
|
53 |
-
!34 U+0034 four
|
54 |
-
!35 U+0035 five
|
55 |
-
!36 U+0036 six
|
56 |
-
!37 U+0037 seven
|
57 |
-
!38 U+0038 eight
|
58 |
-
!39 U+0039 nine
|
59 |
-
!3A U+003A colon
|
60 |
-
!3B U+003B semicolon
|
61 |
-
!3C U+003C less
|
62 |
-
!3D U+003D equal
|
63 |
-
!3E U+003E greater
|
64 |
-
!3F U+003F question
|
65 |
-
!40 U+0040 at
|
66 |
-
!41 U+0041 A
|
67 |
-
!42 U+0042 B
|
68 |
-
!43 U+0043 C
|
69 |
-
!44 U+0044 D
|
70 |
-
!45 U+0045 E
|
71 |
-
!46 U+0046 F
|
72 |
-
!47 U+0047 G
|
73 |
-
!48 U+0048 H
|
74 |
-
!49 U+0049 I
|
75 |
-
!4A U+004A J
|
76 |
-
!4B U+004B K
|
77 |
-
!4C U+004C L
|
78 |
-
!4D U+004D M
|
79 |
-
!4E U+004E N
|
80 |
-
!4F U+004F O
|
81 |
-
!50 U+0050 P
|
82 |
-
!51 U+0051 Q
|
83 |
-
!52 U+0052 R
|
84 |
-
!53 U+0053 S
|
85 |
-
!54 U+0054 T
|
86 |
-
!55 U+0055 U
|
87 |
-
!56 U+0056 V
|
88 |
-
!57 U+0057 W
|
89 |
-
!58 U+0058 X
|
90 |
-
!59 U+0059 Y
|
91 |
-
!5A U+005A Z
|
92 |
-
!5B U+005B bracketleft
|
93 |
-
!5C U+005C backslash
|
94 |
-
!5D U+005D bracketright
|
95 |
-
!5E U+005E asciicircum
|
96 |
-
!5F U+005F underscore
|
97 |
-
!60 U+0060 grave
|
98 |
-
!61 U+0061 a
|
99 |
-
!62 U+0062 b
|
100 |
-
!63 U+0063 c
|
101 |
-
!64 U+0064 d
|
102 |
-
!65 U+0065 e
|
103 |
-
!66 U+0066 f
|
104 |
-
!67 U+0067 g
|
105 |
-
!68 U+0068 h
|
106 |
-
!69 U+0069 i
|
107 |
-
!6A U+006A j
|
108 |
-
!6B U+006B k
|
109 |
-
!6C U+006C l
|
110 |
-
!6D U+006D m
|
111 |
-
!6E U+006E n
|
112 |
-
!6F U+006F o
|
113 |
-
!70 U+0070 p
|
114 |
-
!71 U+0071 q
|
115 |
-
!72 U+0072 r
|
116 |
-
!73 U+0073 s
|
117 |
-
!74 U+0074 t
|
118 |
-
!75 U+0075 u
|
119 |
-
!76 U+0076 v
|
120 |
-
!77 U+0077 w
|
121 |
-
!78 U+0078 x
|
122 |
-
!79 U+0079 y
|
123 |
-
!7A U+007A z
|
124 |
-
!7B U+007B braceleft
|
125 |
-
!7C U+007C bar
|
126 |
-
!7D U+007D braceright
|
127 |
-
!7E U+007E asciitilde
|
128 |
-
!7F U+007F .notdef
|
129 |
-
!80 U+0080 .notdef
|
130 |
-
!81 U+0081 .notdef
|
131 |
-
!82 U+0082 .notdef
|
132 |
-
!83 U+0083 .notdef
|
133 |
-
!84 U+0084 .notdef
|
134 |
-
!85 U+0085 .notdef
|
135 |
-
!86 U+0086 .notdef
|
136 |
-
!87 U+0087 .notdef
|
137 |
-
!88 U+0088 .notdef
|
138 |
-
!89 U+0089 .notdef
|
139 |
-
!8A U+008A .notdef
|
140 |
-
!8B U+008B .notdef
|
141 |
-
!8C U+008C .notdef
|
142 |
-
!8D U+008D .notdef
|
143 |
-
!8E U+008E .notdef
|
144 |
-
!8F U+008F .notdef
|
145 |
-
!90 U+0090 .notdef
|
146 |
-
!91 U+0091 .notdef
|
147 |
-
!92 U+0092 .notdef
|
148 |
-
!93 U+0093 .notdef
|
149 |
-
!94 U+0094 .notdef
|
150 |
-
!95 U+0095 .notdef
|
151 |
-
!96 U+0096 .notdef
|
152 |
-
!97 U+0097 .notdef
|
153 |
-
!98 U+0098 .notdef
|
154 |
-
!99 U+0099 .notdef
|
155 |
-
!9A U+009A .notdef
|
156 |
-
!9B U+009B .notdef
|
157 |
-
!9C U+009C .notdef
|
158 |
-
!9D U+009D .notdef
|
159 |
-
!9E U+009E .notdef
|
160 |
-
!9F U+009F .notdef
|
161 |
-
!A0 U+00A0 space
|
162 |
-
!A1 U+2018 quoteleft
|
163 |
-
!A2 U+2019 quoteright
|
164 |
-
!A3 U+00A3 sterling
|
165 |
-
!A6 U+00A6 brokenbar
|
166 |
-
!A7 U+00A7 section
|
167 |
-
!A8 U+00A8 dieresis
|
168 |
-
!A9 U+00A9 copyright
|
169 |
-
!AB U+00AB guillemotleft
|
170 |
-
!AC U+00AC logicalnot
|
171 |
-
!AD U+00AD hyphen
|
172 |
-
!AF U+2015 afii00208
|
173 |
-
!B0 U+00B0 degree
|
174 |
-
!B1 U+00B1 plusminus
|
175 |
-
!B2 U+00B2 twosuperior
|
176 |
-
!B3 U+00B3 threesuperior
|
177 |
-
!B4 U+0384 tonos
|
178 |
-
!B5 U+0385 dieresistonos
|
179 |
-
!B6 U+0386 Alphatonos
|
180 |
-
!B7 U+00B7 periodcentered
|
181 |
-
!B8 U+0388 Epsilontonos
|
182 |
-
!B9 U+0389 Etatonos
|
183 |
-
!BA U+038A Iotatonos
|
184 |
-
!BB U+00BB guillemotright
|
185 |
-
!BC U+038C Omicrontonos
|
186 |
-
!BD U+00BD onehalf
|
187 |
-
!BE U+038E Upsilontonos
|
188 |
-
!BF U+038F Omegatonos
|
189 |
-
!C0 U+0390 iotadieresistonos
|
190 |
-
!C1 U+0391 Alpha
|
191 |
-
!C2 U+0392 Beta
|
192 |
-
!C3 U+0393 Gamma
|
193 |
-
!C4 U+0394 Delta
|
194 |
-
!C5 U+0395 Epsilon
|
195 |
-
!C6 U+0396 Zeta
|
196 |
-
!C7 U+0397 Eta
|
197 |
-
!C8 U+0398 Theta
|
198 |
-
!C9 U+0399 Iota
|
199 |
-
!CA U+039A Kappa
|
200 |
-
!CB U+039B Lambda
|
201 |
-
!CC U+039C Mu
|
202 |
-
!CD U+039D Nu
|
203 |
-
!CE U+039E Xi
|
204 |
-
!CF U+039F Omicron
|
205 |
-
!D0 U+03A0 Pi
|
206 |
-
!D1 U+03A1 Rho
|
207 |
-
!D3 U+03A3 Sigma
|
208 |
-
!D4 U+03A4 Tau
|
209 |
-
!D5 U+03A5 Upsilon
|
210 |
-
!D6 U+03A6 Phi
|
211 |
-
!D7 U+03A7 Chi
|
212 |
-
!D8 U+03A8 Psi
|
213 |
-
!D9 U+03A9 Omega
|
214 |
-
!DA U+03AA Iotadieresis
|
215 |
-
!DB U+03AB Upsilondieresis
|
216 |
-
!DC U+03AC alphatonos
|
217 |
-
!DD U+03AD epsilontonos
|
218 |
-
!DE U+03AE etatonos
|
219 |
-
!DF U+03AF iotatonos
|
220 |
-
!E0 U+03B0 upsilondieresistonos
|
221 |
-
!E1 U+03B1 alpha
|
222 |
-
!E2 U+03B2 beta
|
223 |
-
!E3 U+03B3 gamma
|
224 |
-
!E4 U+03B4 delta
|
225 |
-
!E5 U+03B5 epsilon
|
226 |
-
!E6 U+03B6 zeta
|
227 |
-
!E7 U+03B7 eta
|
228 |
-
!E8 U+03B8 theta
|
229 |
-
!E9 U+03B9 iota
|
230 |
-
!EA U+03BA kappa
|
231 |
-
!EB U+03BB lambda
|
232 |
-
!EC U+03BC mu
|
233 |
-
!ED U+03BD nu
|
234 |
-
!EE U+03BE xi
|
235 |
-
!EF U+03BF omicron
|
236 |
-
!F0 U+03C0 pi
|
237 |
-
!F1 U+03C1 rho
|
238 |
-
!F2 U+03C2 sigma1
|
239 |
-
!F3 U+03C3 sigma
|
240 |
-
!F4 U+03C4 tau
|
241 |
-
!F5 U+03C5 upsilon
|
242 |
-
!F6 U+03C6 phi
|
243 |
-
!F7 U+03C7 chi
|
244 |
-
!F8 U+03C8 psi
|
245 |
-
!F9 U+03C9 omega
|
246 |
-
!FA U+03CA iotadieresis
|
247 |
-
!FB U+03CB upsilondieresis
|
248 |
-
!FC U+03CC omicrontonos
|
249 |
-
!FD U+03CD upsilontonos
|
250 |
-
!FE U+03CE omegatonos
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/font/makefont/iso-8859-9.map
DELETED
@@ -1,256 +0,0 @@
|
|
1 |
-
!00 U+0000 .notdef
|
2 |
-
!01 U+0001 .notdef
|
3 |
-
!02 U+0002 .notdef
|
4 |
-
!03 U+0003 .notdef
|
5 |
-
!04 U+0004 .notdef
|
6 |
-
!05 U+0005 .notdef
|
7 |
-
!06 U+0006 .notdef
|
8 |
-
!07 U+0007 .notdef
|
9 |
-
!08 U+0008 .notdef
|
10 |
-
!09 U+0009 .notdef
|
11 |
-
!0A U+000A .notdef
|
12 |
-
!0B U+000B .notdef
|
13 |
-
!0C U+000C .notdef
|
14 |
-
!0D U+000D .notdef
|
15 |
-
!0E U+000E .notdef
|
16 |
-
!0F U+000F .notdef
|
17 |
-
!10 U+0010 .notdef
|
18 |
-
!11 U+0011 .notdef
|
19 |
-
!12 U+0012 .notdef
|
20 |
-
!13 U+0013 .notdef
|
21 |
-
!14 U+0014 .notdef
|
22 |
-
!15 U+0015 .notdef
|
23 |
-
!16 U+0016 .notdef
|
24 |
-
!17 U+0017 .notdef
|
25 |
-
!18 U+0018 .notdef
|
26 |
-
!19 U+0019 .notdef
|
27 |
-
!1A U+001A .notdef
|
28 |
-
!1B U+001B .notdef
|
29 |
-
!1C U+001C .notdef
|
30 |
-
!1D U+001D .notdef
|
31 |
-
!1E U+001E .notdef
|
32 |
-
!1F U+001F .notdef
|
33 |
-
!20 U+0020 space
|
34 |
-
!21 U+0021 exclam
|
35 |
-
!22 U+0022 quotedbl
|
36 |
-
!23 U+0023 numbersign
|
37 |
-
!24 U+0024 dollar
|
38 |
-
!25 U+0025 percent
|
39 |
-
!26 U+0026 ampersand
|
40 |
-
!27 U+0027 quotesingle
|
41 |
-
!28 U+0028 parenleft
|
42 |
-
!29 U+0029 parenright
|
43 |
-
!2A U+002A asterisk
|
44 |
-
!2B U+002B plus
|
45 |
-
!2C U+002C comma
|
46 |
-
!2D U+002D hyphen
|
47 |
-
!2E U+002E period
|
48 |
-
!2F U+002F slash
|
49 |
-
!30 U+0030 zero
|
50 |
-
!31 U+0031 one
|
51 |
-
!32 U+0032 two
|
52 |
-
!33 U+0033 three
|
53 |
-
!34 U+0034 four
|
54 |
-
!35 U+0035 five
|
55 |
-
!36 U+0036 six
|
56 |
-
!37 U+0037 seven
|
57 |
-
!38 U+0038 eight
|
58 |
-
!39 U+0039 nine
|
59 |
-
!3A U+003A colon
|
60 |
-
!3B U+003B semicolon
|
61 |
-
!3C U+003C less
|
62 |
-
!3D U+003D equal
|
63 |
-
!3E U+003E greater
|
64 |
-
!3F U+003F question
|
65 |
-
!40 U+0040 at
|
66 |
-
!41 U+0041 A
|
67 |
-
!42 U+0042 B
|
68 |
-
!43 U+0043 C
|
69 |
-
!44 U+0044 D
|
70 |
-
!45 U+0045 E
|
71 |
-
!46 U+0046 F
|
72 |
-
!47 U+0047 G
|
73 |
-
!48 U+0048 H
|
74 |
-
!49 U+0049 I
|
75 |
-
!4A U+004A J
|
76 |
-
!4B U+004B K
|
77 |
-
!4C U+004C L
|
78 |
-
!4D U+004D M
|
79 |
-
!4E U+004E N
|
80 |
-
!4F U+004F O
|
81 |
-
!50 U+0050 P
|
82 |
-
!51 U+0051 Q
|
83 |
-
!52 U+0052 R
|
84 |
-
!53 U+0053 S
|
85 |
-
!54 U+0054 T
|
86 |
-
!55 U+0055 U
|
87 |
-
!56 U+0056 V
|
88 |
-
!57 U+0057 W
|
89 |
-
!58 U+0058 X
|
90 |
-
!59 U+0059 Y
|
91 |
-
!5A U+005A Z
|
92 |
-
!5B U+005B bracketleft
|
93 |
-
!5C U+005C backslash
|
94 |
-
!5D U+005D bracketright
|
95 |
-
!5E U+005E asciicircum
|
96 |
-
!5F U+005F underscore
|
97 |
-
!60 U+0060 grave
|
98 |
-
!61 U+0061 a
|
99 |
-
!62 U+0062 b
|
100 |
-
!63 U+0063 c
|
101 |
-
!64 U+0064 d
|
102 |
-
!65 U+0065 e
|
103 |
-
!66 U+0066 f
|
104 |
-
!67 U+0067 g
|
105 |
-
!68 U+0068 h
|
106 |
-
!69 U+0069 i
|
107 |
-
!6A U+006A j
|
108 |
-
!6B U+006B k
|
109 |
-
!6C U+006C l
|
110 |
-
!6D U+006D m
|
111 |
-
!6E U+006E n
|
112 |
-
!6F U+006F o
|
113 |
-
!70 U+0070 p
|
114 |
-
!71 U+0071 q
|
115 |
-
!72 U+0072 r
|
116 |
-
!73 U+0073 s
|
117 |
-
!74 U+0074 t
|
118 |
-
!75 U+0075 u
|
119 |
-
!76 U+0076 v
|
120 |
-
!77 U+0077 w
|
121 |
-
!78 U+0078 x
|
122 |
-
!79 U+0079 y
|
123 |
-
!7A U+007A z
|
124 |
-
!7B U+007B braceleft
|
125 |
-
!7C U+007C bar
|
126 |
-
!7D U+007D braceright
|
127 |
-
!7E U+007E asciitilde
|
128 |
-
!7F U+007F .notdef
|
129 |
-
!80 U+0080 .notdef
|
130 |
-
!81 U+0081 .notdef
|
131 |
-
!82 U+0082 .notdef
|
132 |
-
!83 U+0083 .notdef
|
133 |
-
!84 U+0084 .notdef
|
134 |
-
!85 U+0085 .notdef
|
135 |
-
!86 U+0086 .notdef
|
136 |
-
!87 U+0087 .notdef
|
137 |
-
!88 U+0088 .notdef
|
138 |
-
!89 U+0089 .notdef
|
139 |
-
!8A U+008A .notdef
|
140 |
-
!8B U+008B .notdef
|
141 |
-
!8C U+008C .notdef
|
142 |
-
!8D U+008D .notdef
|
143 |
-
!8E U+008E .notdef
|
144 |
-
!8F U+008F .notdef
|
145 |
-
!90 U+0090 .notdef
|
146 |
-
!91 U+0091 .notdef
|
147 |
-
!92 U+0092 .notdef
|
148 |
-
!93 U+0093 .notdef
|
149 |
-
!94 U+0094 .notdef
|
150 |
-
!95 U+0095 .notdef
|
151 |
-
!96 U+0096 .notdef
|
152 |
-
!97 U+0097 .notdef
|
153 |
-
!98 U+0098 .notdef
|
154 |
-
!99 U+0099 .notdef
|
155 |
-
!9A U+009A .notdef
|
156 |
-
!9B U+009B .notdef
|
157 |
-
!9C U+009C .notdef
|
158 |
-
!9D U+009D .notdef
|
159 |
-
!9E U+009E .notdef
|
160 |
-
!9F U+009F .notdef
|
161 |
-
!A0 U+00A0 space
|
162 |
-
!A1 U+00A1 exclamdown
|
163 |
-
!A2 U+00A2 cent
|
164 |
-
!A3 U+00A3 sterling
|
165 |
-
!A4 U+00A4 currency
|
166 |
-
!A5 U+00A5 yen
|
167 |
-
!A6 U+00A6 brokenbar
|
168 |
-
!A7 U+00A7 section
|
169 |
-
!A8 U+00A8 dieresis
|
170 |
-
!A9 U+00A9 copyright
|
171 |
-
!AA U+00AA ordfeminine
|
172 |
-
!AB U+00AB guillemotleft
|
173 |
-
!AC U+00AC logicalnot
|
174 |
-
!AD U+00AD hyphen
|
175 |
-
!AE U+00AE registered
|
176 |
-
!AF U+00AF macron
|
177 |
-
!B0 U+00B0 degree
|
178 |
-
!B1 U+00B1 plusminus
|
179 |
-
!B2 U+00B2 twosuperior
|
180 |
-
!B3 U+00B3 threesuperior
|
181 |
-
!B4 U+00B4 acute
|
182 |
-
!B5 U+00B5 mu
|
183 |
-
!B6 U+00B6 paragraph
|
184 |
-
!B7 U+00B7 periodcentered
|
185 |
-
!B8 U+00B8 cedilla
|
186 |
-
!B9 U+00B9 onesuperior
|
187 |
-
!BA U+00BA ordmasculine
|
188 |
-
!BB U+00BB guillemotright
|
189 |
-
!BC U+00BC onequarter
|
190 |
-
!BD U+00BD onehalf
|
191 |
-
!BE U+00BE threequarters
|
192 |
-
!BF U+00BF questiondown
|
193 |
-
!C0 U+00C0 Agrave
|
194 |
-
!C1 U+00C1 Aacute
|
195 |
-
!C2 U+00C2 Acircumflex
|
196 |
-
!C3 U+00C3 Atilde
|
197 |
-
!C4 U+00C4 Adieresis
|
198 |
-
!C5 U+00C5 Aring
|
199 |
-
!C6 U+00C6 AE
|
200 |
-
!C7 U+00C7 Ccedilla
|
201 |
-
!C8 U+00C8 Egrave
|
202 |
-
!C9 U+00C9 Eacute
|
203 |
-
!CA U+00CA Ecircumflex
|
204 |
-
!CB U+00CB Edieresis
|
205 |
-
!CC U+00CC Igrave
|
206 |
-
!CD U+00CD Iacute
|
207 |
-
!CE U+00CE Icircumflex
|
208 |
-
!CF U+00CF Idieresis
|
209 |
-
!D0 U+011E Gbreve
|
210 |
-
!D1 U+00D1 Ntilde
|
211 |
-
!D2 U+00D2 Ograve
|
212 |
-
!D3 U+00D3 Oacute
|
213 |
-
!D4 U+00D4 Ocircumflex
|
214 |
-
!D5 U+00D5 Otilde
|
215 |
-
!D6 U+00D6 Odieresis
|
216 |
-
!D7 U+00D7 multiply
|
217 |
-
!D8 U+00D8 Oslash
|
218 |
-
!D9 U+00D9 Ugrave
|
219 |
-
!DA U+00DA Uacute
|
220 |
-
!DB U+00DB Ucircumflex
|
221 |
-
!DC U+00DC Udieresis
|
222 |
-
!DD U+0130 Idotaccent
|
223 |
-
!DE U+015E Scedilla
|
224 |
-
!DF U+00DF germandbls
|
225 |
-
!E0 U+00E0 agrave
|
226 |
-
!E1 U+00E1 aacute
|
227 |
-
!E2 U+00E2 acircumflex
|
228 |
-
!E3 U+00E3 atilde
|
229 |
-
!E4 U+00E4 adieresis
|
230 |
-
!E5 U+00E5 aring
|
231 |
-
!E6 U+00E6 ae
|
232 |
-
!E7 U+00E7 ccedilla
|
233 |
-
!E8 U+00E8 egrave
|
234 |
-
!E9 U+00E9 eacute
|
235 |
-
!EA U+00EA ecircumflex
|
236 |
-
!EB U+00EB edieresis
|
237 |
-
!EC U+00EC igrave
|
238 |
-
!ED U+00ED iacute
|
239 |
-
!EE U+00EE icircumflex
|
240 |
-
!EF U+00EF idieresis
|
241 |
-
!F0 U+011F gbreve
|
242 |
-
!F1 U+00F1 ntilde
|
243 |
-
!F2 U+00F2 ograve
|
244 |
-
!F3 U+00F3 oacute
|
245 |
-
!F4 U+00F4 ocircumflex
|
246 |
-
!F5 U+00F5 otilde
|
247 |
-
!F6 U+00F6 odieresis
|
248 |
-
!F7 U+00F7 divide
|
249 |
-
!F8 U+00F8 oslash
|
250 |
-
!F9 U+00F9 ugrave
|
251 |
-
!FA U+00FA uacute
|
252 |
-
!FB U+00FB ucircumflex
|
253 |
-
!FC U+00FC udieresis
|
254 |
-
!FD U+0131 dotlessi
|
255 |
-
!FE U+015F scedilla
|
256 |
-
!FF U+00FF ydieresis
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/font/makefont/koi8-r.map
DELETED
@@ -1,256 +0,0 @@
|
|
1 |
-
!00 U+0000 .notdef
|
2 |
-
!01 U+0001 .notdef
|
3 |
-
!02 U+0002 .notdef
|
4 |
-
!03 U+0003 .notdef
|
5 |
-
!04 U+0004 .notdef
|
6 |
-
!05 U+0005 .notdef
|
7 |
-
!06 U+0006 .notdef
|
8 |
-
!07 U+0007 .notdef
|
9 |
-
!08 U+0008 .notdef
|
10 |
-
!09 U+0009 .notdef
|
11 |
-
!0A U+000A .notdef
|
12 |
-
!0B U+000B .notdef
|
13 |
-
!0C U+000C .notdef
|
14 |
-
!0D U+000D .notdef
|
15 |
-
!0E U+000E .notdef
|
16 |
-
!0F U+000F .notdef
|
17 |
-
!10 U+0010 .notdef
|
18 |
-
!11 U+0011 .notdef
|
19 |
-
!12 U+0012 .notdef
|
20 |
-
!13 U+0013 .notdef
|
21 |
-
!14 U+0014 .notdef
|
22 |
-
!15 U+0015 .notdef
|
23 |
-
!16 U+0016 .notdef
|
24 |
-
!17 U+0017 .notdef
|
25 |
-
!18 U+0018 .notdef
|
26 |
-
!19 U+0019 .notdef
|
27 |
-
!1A U+001A .notdef
|
28 |
-
!1B U+001B .notdef
|
29 |
-
!1C U+001C .notdef
|
30 |
-
!1D U+001D .notdef
|
31 |
-
!1E U+001E .notdef
|
32 |
-
!1F U+001F .notdef
|
33 |
-
!20 U+0020 space
|
34 |
-
!21 U+0021 exclam
|
35 |
-
!22 U+0022 quotedbl
|
36 |
-
!23 U+0023 numbersign
|
37 |
-
!24 U+0024 dollar
|
38 |
-
!25 U+0025 percent
|
39 |
-
!26 U+0026 ampersand
|
40 |
-
!27 U+0027 quotesingle
|
41 |
-
!28 U+0028 parenleft
|
42 |
-
!29 U+0029 parenright
|
43 |
-
!2A U+002A asterisk
|
44 |
-
!2B U+002B plus
|
45 |
-
!2C U+002C comma
|
46 |
-
!2D U+002D hyphen
|
47 |
-
!2E U+002E period
|
48 |
-
!2F U+002F slash
|
49 |
-
!30 U+0030 zero
|
50 |
-
!31 U+0031 one
|
51 |
-
!32 U+0032 two
|
52 |
-
!33 U+0033 three
|
53 |
-
!34 U+0034 four
|
54 |
-
!35 U+0035 five
|
55 |
-
!36 U+0036 six
|
56 |
-
!37 U+0037 seven
|
57 |
-
!38 U+0038 eight
|
58 |
-
!39 U+0039 nine
|
59 |
-
!3A U+003A colon
|
60 |
-
!3B U+003B semicolon
|
61 |
-
!3C U+003C less
|
62 |
-
!3D U+003D equal
|
63 |
-
!3E U+003E greater
|
64 |
-
!3F U+003F question
|
65 |
-
!40 U+0040 at
|
66 |
-
!41 U+0041 A
|
67 |
-
!42 U+0042 B
|
68 |
-
!43 U+0043 C
|
69 |
-
!44 U+0044 D
|
70 |
-
!45 U+0045 E
|
71 |
-
!46 U+0046 F
|
72 |
-
!47 U+0047 G
|
73 |
-
!48 U+0048 H
|
74 |
-
!49 U+0049 I
|
75 |
-
!4A U+004A J
|
76 |
-
!4B U+004B K
|
77 |
-
!4C U+004C L
|
78 |
-
!4D U+004D M
|
79 |
-
!4E U+004E N
|
80 |
-
!4F U+004F O
|
81 |
-
!50 U+0050 P
|
82 |
-
!51 U+0051 Q
|
83 |
-
!52 U+0052 R
|
84 |
-
!53 U+0053 S
|
85 |
-
!54 U+0054 T
|
86 |
-
!55 U+0055 U
|
87 |
-
!56 U+0056 V
|
88 |
-
!57 U+0057 W
|
89 |
-
!58 U+0058 X
|
90 |
-
!59 U+0059 Y
|
91 |
-
!5A U+005A Z
|
92 |
-
!5B U+005B bracketleft
|
93 |
-
!5C U+005C backslash
|
94 |
-
!5D U+005D bracketright
|
95 |
-
!5E U+005E asciicircum
|
96 |
-
!5F U+005F underscore
|
97 |
-
!60 U+0060 grave
|
98 |
-
!61 U+0061 a
|
99 |
-
!62 U+0062 b
|
100 |
-
!63 U+0063 c
|
101 |
-
!64 U+0064 d
|
102 |
-
!65 U+0065 e
|
103 |
-
!66 U+0066 f
|
104 |
-
!67 U+0067 g
|
105 |
-
!68 U+0068 h
|
106 |
-
!69 U+0069 i
|
107 |
-
!6A U+006A j
|
108 |
-
!6B U+006B k
|
109 |
-
!6C U+006C l
|
110 |
-
!6D U+006D m
|
111 |
-
!6E U+006E n
|
112 |
-
!6F U+006F o
|
113 |
-
!70 U+0070 p
|
114 |
-
!71 U+0071 q
|
115 |
-
!72 U+0072 r
|
116 |
-
!73 U+0073 s
|
117 |
-
!74 U+0074 t
|
118 |
-
!75 U+0075 u
|
119 |
-
!76 U+0076 v
|
120 |
-
!77 U+0077 w
|
121 |
-
!78 U+0078 x
|
122 |
-
!79 U+0079 y
|
123 |
-
!7A U+007A z
|
124 |
-
!7B U+007B braceleft
|
125 |
-
!7C U+007C bar
|
126 |
-
!7D U+007D braceright
|
127 |
-
!7E U+007E asciitilde
|
128 |
-
!7F U+007F .notdef
|
129 |
-
!80 U+2500 SF100000
|
130 |
-
!81 U+2502 SF110000
|
131 |
-
!82 U+250C SF010000
|
132 |
-
!83 U+2510 SF030000
|
133 |
-
!84 U+2514 SF020000
|
134 |
-
!85 U+2518 SF040000
|
135 |
-
!86 U+251C SF080000
|
136 |
-
!87 U+2524 SF090000
|
137 |
-
!88 U+252C SF060000
|
138 |
-
!89 U+2534 SF070000
|
139 |
-
!8A U+253C SF050000
|
140 |
-
!8B U+2580 upblock
|
141 |
-
!8C U+2584 dnblock
|
142 |
-
!8D U+2588 block
|
143 |
-
!8E U+258C lfblock
|
144 |
-
!8F U+2590 rtblock
|
145 |
-
!90 U+2591 ltshade
|
146 |
-
!91 U+2592 shade
|
147 |
-
!92 U+2593 dkshade
|
148 |
-
!93 U+2320 integraltp
|
149 |
-
!94 U+25A0 filledbox
|
150 |
-
!95 U+2219 periodcentered
|
151 |
-
!96 U+221A radical
|
152 |
-
!97 U+2248 approxequal
|
153 |
-
!98 U+2264 lessequal
|
154 |
-
!99 U+2265 greaterequal
|
155 |
-
!9A U+00A0 space
|
156 |
-
!9B U+2321 integralbt
|
157 |
-
!9C U+00B0 degree
|
158 |
-
!9D U+00B2 twosuperior
|
159 |
-
!9E U+00B7 periodcentered
|
160 |
-
!9F U+00F7 divide
|
161 |
-
!A0 U+2550 SF430000
|
162 |
-
!A1 U+2551 SF240000
|
163 |
-
!A2 U+2552 SF510000
|
164 |
-
!A3 U+0451 afii10071
|
165 |
-
!A4 U+2553 SF520000
|
166 |
-
!A5 U+2554 SF390000
|
167 |
-
!A6 U+2555 SF220000
|
168 |
-
!A7 U+2556 SF210000
|
169 |
-
!A8 U+2557 SF250000
|
170 |
-
!A9 U+2558 SF500000
|
171 |
-
!AA U+2559 SF490000
|
172 |
-
!AB U+255A SF380000
|
173 |
-
!AC U+255B SF280000
|
174 |
-
!AD U+255C SF270000
|
175 |
-
!AE U+255D SF260000
|
176 |
-
!AF U+255E SF360000
|
177 |
-
!B0 U+255F SF370000
|
178 |
-
!B1 U+2560 SF420000
|
179 |
-
!B2 U+2561 SF190000
|
180 |
-
!B3 U+0401 afii10023
|
181 |
-
!B4 U+2562 SF200000
|
182 |
-
!B5 U+2563 SF230000
|
183 |
-
!B6 U+2564 SF470000
|
184 |
-
!B7 U+2565 SF480000
|
185 |
-
!B8 U+2566 SF410000
|
186 |
-
!B9 U+2567 SF450000
|
187 |
-
!BA U+2568 SF460000
|
188 |
-
!BB U+2569 SF400000
|
189 |
-
!BC U+256A SF540000
|
190 |
-
!BD U+256B SF530000
|
191 |
-
!BE U+256C SF440000
|
192 |
-
!BF U+00A9 copyright
|
193 |
-
!C0 U+044E afii10096
|
194 |
-
!C1 U+0430 afii10065
|
195 |
-
!C2 U+0431 afii10066
|
196 |
-
!C3 U+0446 afii10088
|
197 |
-
!C4 U+0434 afii10069
|
198 |
-
!C5 U+0435 afii10070
|
199 |
-
!C6 U+0444 afii10086
|
200 |
-
!C7 U+0433 afii10068
|
201 |
-
!C8 U+0445 afii10087
|
202 |
-
!C9 U+0438 afii10074
|
203 |
-
!CA U+0439 afii10075
|
204 |
-
!CB U+043A afii10076
|
205 |
-
!CC U+043B afii10077
|
206 |
-
!CD U+043C afii10078
|
207 |
-
!CE U+043D afii10079
|
208 |
-
!CF U+043E afii10080
|
209 |
-
!D0 U+043F afii10081
|
210 |
-
!D1 U+044F afii10097
|
211 |
-
!D2 U+0440 afii10082
|
212 |
-
!D3 U+0441 afii10083
|
213 |
-
!D4 U+0442 afii10084
|
214 |
-
!D5 U+0443 afii10085
|
215 |
-
!D6 U+0436 afii10072
|
216 |
-
!D7 U+0432 afii10067
|
217 |
-
!D8 U+044C afii10094
|
218 |
-
!D9 U+044B afii10093
|
219 |
-
!DA U+0437 afii10073
|
220 |
-
!DB U+0448 afii10090
|
221 |
-
!DC U+044D afii10095
|
222 |
-
!DD U+0449 afii10091
|
223 |
-
!DE U+0447 afii10089
|
224 |
-
!DF U+044A afii10092
|
225 |
-
!E0 U+042E afii10048
|
226 |
-
!E1 U+0410 afii10017
|
227 |
-
!E2 U+0411 afii10018
|
228 |
-
!E3 U+0426 afii10040
|
229 |
-
!E4 U+0414 afii10021
|
230 |
-
!E5 U+0415 afii10022
|
231 |
-
!E6 U+0424 afii10038
|
232 |
-
!E7 U+0413 afii10020
|
233 |
-
!E8 U+0425 afii10039
|
234 |
-
!E9 U+0418 afii10026
|
235 |
-
!EA U+0419 afii10027
|
236 |
-
!EB U+041A afii10028
|
237 |
-
!EC U+041B afii10029
|
238 |
-
!ED U+041C afii10030
|
239 |
-
!EE U+041D afii10031
|
240 |
-
!EF U+041E afii10032
|
241 |
-
!F0 U+041F afii10033
|
242 |
-
!F1 U+042F afii10049
|
243 |
-
!F2 U+0420 afii10034
|
244 |
-
!F3 U+0421 afii10035
|
245 |
-
!F4 U+0422 afii10036
|
246 |
-
!F5 U+0423 afii10037
|
247 |
-
!F6 U+0416 afii10024
|
248 |
-
!F7 U+0412 afii10019
|
249 |
-
!F8 U+042C afii10046
|
250 |
-
!F9 U+042B afii10045
|
251 |
-
!FA U+0417 afii10025
|
252 |
-
!FB U+0428 afii10042
|
253 |
-
!FC U+042D afii10047
|
254 |
-
!FD U+0429 afii10043
|
255 |
-
!FE U+0427 afii10041
|
256 |
-
!FF U+042A afii10044
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/font/makefont/koi8-u.map
DELETED
@@ -1,256 +0,0 @@
|
|
1 |
-
!00 U+0000 .notdef
|
2 |
-
!01 U+0001 .notdef
|
3 |
-
!02 U+0002 .notdef
|
4 |
-
!03 U+0003 .notdef
|
5 |
-
!04 U+0004 .notdef
|
6 |
-
!05 U+0005 .notdef
|
7 |
-
!06 U+0006 .notdef
|
8 |
-
!07 U+0007 .notdef
|
9 |
-
!08 U+0008 .notdef
|
10 |
-
!09 U+0009 .notdef
|
11 |
-
!0A U+000A .notdef
|
12 |
-
!0B U+000B .notdef
|
13 |
-
!0C U+000C .notdef
|
14 |
-
!0D U+000D .notdef
|
15 |
-
!0E U+000E .notdef
|
16 |
-
!0F U+000F .notdef
|
17 |
-
!10 U+0010 .notdef
|
18 |
-
!11 U+0011 .notdef
|
19 |
-
!12 U+0012 .notdef
|
20 |
-
!13 U+0013 .notdef
|
21 |
-
!14 U+0014 .notdef
|
22 |
-
!15 U+0015 .notdef
|
23 |
-
!16 U+0016 .notdef
|
24 |
-
!17 U+0017 .notdef
|
25 |
-
!18 U+0018 .notdef
|
26 |
-
!19 U+0019 .notdef
|
27 |
-
!1A U+001A .notdef
|
28 |
-
!1B U+001B .notdef
|
29 |
-
!1C U+001C .notdef
|
30 |
-
!1D U+001D .notdef
|
31 |
-
!1E U+001E .notdef
|
32 |
-
!1F U+001F .notdef
|
33 |
-
!20 U+0020 space
|
34 |
-
!21 U+0021 exclam
|
35 |
-
!22 U+0022 quotedbl
|
36 |
-
!23 U+0023 numbersign
|
37 |
-
!24 U+0024 dollar
|
38 |
-
!25 U+0025 percent
|
39 |
-
!26 U+0026 ampersand
|
40 |
-
!27 U+0027 quotesingle
|
41 |
-
!28 U+0028 parenleft
|
42 |
-
!29 U+0029 parenright
|
43 |
-
!2A U+002A asterisk
|
44 |
-
!2B U+002B plus
|
45 |
-
!2C U+002C comma
|
46 |
-
!2D U+002D hyphen
|
47 |
-
!2E U+002E period
|
48 |
-
!2F U+002F slash
|
49 |
-
!30 U+0030 zero
|
50 |
-
!31 U+0031 one
|
51 |
-
!32 U+0032 two
|
52 |
-
!33 U+0033 three
|
53 |
-
!34 U+0034 four
|
54 |
-
!35 U+0035 five
|
55 |
-
!36 U+0036 six
|
56 |
-
!37 U+0037 seven
|
57 |
-
!38 U+0038 eight
|
58 |
-
!39 U+0039 nine
|
59 |
-
!3A U+003A colon
|
60 |
-
!3B U+003B semicolon
|
61 |
-
!3C U+003C less
|
62 |
-
!3D U+003D equal
|
63 |
-
!3E U+003E greater
|
64 |
-
!3F U+003F question
|
65 |
-
!40 U+0040 at
|
66 |
-
!41 U+0041 A
|
67 |
-
!42 U+0042 B
|
68 |
-
!43 U+0043 C
|
69 |
-
!44 U+0044 D
|
70 |
-
!45 U+0045 E
|
71 |
-
!46 U+0046 F
|
72 |
-
!47 U+0047 G
|
73 |
-
!48 U+0048 H
|
74 |
-
!49 U+0049 I
|
75 |
-
!4A U+004A J
|
76 |
-
!4B U+004B K
|
77 |
-
!4C U+004C L
|
78 |
-
!4D U+004D M
|
79 |
-
!4E U+004E N
|
80 |
-
!4F U+004F O
|
81 |
-
!50 U+0050 P
|
82 |
-
!51 U+0051 Q
|
83 |
-
!52 U+0052 R
|
84 |
-
!53 U+0053 S
|
85 |
-
!54 U+0054 T
|
86 |
-
!55 U+0055 U
|
87 |
-
!56 U+0056 V
|
88 |
-
!57 U+0057 W
|
89 |
-
!58 U+0058 X
|
90 |
-
!59 U+0059 Y
|
91 |
-
!5A U+005A Z
|
92 |
-
!5B U+005B bracketleft
|
93 |
-
!5C U+005C backslash
|
94 |
-
!5D U+005D bracketright
|
95 |
-
!5E U+005E asciicircum
|
96 |
-
!5F U+005F underscore
|
97 |
-
!60 U+0060 grave
|
98 |
-
!61 U+0061 a
|
99 |
-
!62 U+0062 b
|
100 |
-
!63 U+0063 c
|
101 |
-
!64 U+0064 d
|
102 |
-
!65 U+0065 e
|
103 |
-
!66 U+0066 f
|
104 |
-
!67 U+0067 g
|
105 |
-
!68 U+0068 h
|
106 |
-
!69 U+0069 i
|
107 |
-
!6A U+006A j
|
108 |
-
!6B U+006B k
|
109 |
-
!6C U+006C l
|
110 |
-
!6D U+006D m
|
111 |
-
!6E U+006E n
|
112 |
-
!6F U+006F o
|
113 |
-
!70 U+0070 p
|
114 |
-
!71 U+0071 q
|
115 |
-
!72 U+0072 r
|
116 |
-
!73 U+0073 s
|
117 |
-
!74 U+0074 t
|
118 |
-
!75 U+0075 u
|
119 |
-
!76 U+0076 v
|
120 |
-
!77 U+0077 w
|
121 |
-
!78 U+0078 x
|
122 |
-
!79 U+0079 y
|
123 |
-
!7A U+007A z
|
124 |
-
!7B U+007B braceleft
|
125 |
-
!7C U+007C bar
|
126 |
-
!7D U+007D braceright
|
127 |
-
!7E U+007E asciitilde
|
128 |
-
!7F U+007F .notdef
|
129 |
-
!80 U+2500 SF100000
|
130 |
-
!81 U+2502 SF110000
|
131 |
-
!82 U+250C SF010000
|
132 |
-
!83 U+2510 SF030000
|
133 |
-
!84 U+2514 SF020000
|
134 |
-
!85 U+2518 SF040000
|
135 |
-
!86 U+251C SF080000
|
136 |
-
!87 U+2524 SF090000
|
137 |
-
!88 U+252C SF060000
|
138 |
-
!89 U+2534 SF070000
|
139 |
-
!8A U+253C SF050000
|
140 |
-
!8B U+2580 upblock
|
141 |
-
!8C U+2584 dnblock
|
142 |
-
!8D U+2588 block
|
143 |
-
!8E U+258C lfblock
|
144 |
-
!8F U+2590 rtblock
|
145 |
-
!90 U+2591 ltshade
|
146 |
-
!91 U+2592 shade
|
147 |
-
!92 U+2593 dkshade
|
148 |
-
!93 U+2320 integraltp
|
149 |
-
!94 U+25A0 filledbox
|
150 |
-
!95 U+2022 bullet
|
151 |
-
!96 U+221A radical
|
152 |
-
!97 U+2248 approxequal
|
153 |
-
!98 U+2264 lessequal
|
154 |
-
!99 U+2265 greaterequal
|
155 |
-
!9A U+00A0 space
|
156 |
-
!9B U+2321 integralbt
|
157 |
-
!9C U+00B0 degree
|
158 |
-
!9D U+00B2 twosuperior
|
159 |
-
!9E U+00B7 periodcentered
|
160 |
-
!9F U+00F7 divide
|
161 |
-
!A0 U+2550 SF430000
|
162 |
-
!A1 U+2551 SF240000
|
163 |
-
!A2 U+2552 SF510000
|
164 |
-
!A3 U+0451 afii10071
|
165 |
-
!A4 U+0454 afii10101
|
166 |
-
!A5 U+2554 SF390000
|
167 |
-
!A6 U+0456 afii10103
|
168 |
-
!A7 U+0457 afii10104
|
169 |
-
!A8 U+2557 SF250000
|
170 |
-
!A9 U+2558 SF500000
|
171 |
-
!AA U+2559 SF490000
|
172 |
-
!AB U+255A SF380000
|
173 |
-
!AC U+255B SF280000
|
174 |
-
!AD U+0491 afii10098
|
175 |
-
!AE U+255D SF260000
|
176 |
-
!AF U+255E SF360000
|
177 |
-
!B0 U+255F SF370000
|
178 |
-
!B1 U+2560 SF420000
|
179 |
-
!B2 U+2561 SF190000
|
180 |
-
!B3 U+0401 afii10023
|
181 |
-
!B4 U+0404 afii10053
|
182 |
-
!B5 U+2563 SF230000
|
183 |
-
!B6 U+0406 afii10055
|
184 |
-
!B7 U+0407 afii10056
|
185 |
-
!B8 U+2566 SF410000
|
186 |
-
!B9 U+2567 SF450000
|
187 |
-
!BA U+2568 SF460000
|
188 |
-
!BB U+2569 SF400000
|
189 |
-
!BC U+256A SF540000
|
190 |
-
!BD U+0490 afii10050
|
191 |
-
!BE U+256C SF440000
|
192 |
-
!BF U+00A9 copyright
|
193 |
-
!C0 U+044E afii10096
|
194 |
-
!C1 U+0430 afii10065
|
195 |
-
!C2 U+0431 afii10066
|
196 |
-
!C3 U+0446 afii10088
|
197 |
-
!C4 U+0434 afii10069
|
198 |
-
!C5 U+0435 afii10070
|
199 |
-
!C6 U+0444 afii10086
|
200 |
-
!C7 U+0433 afii10068
|
201 |
-
!C8 U+0445 afii10087
|
202 |
-
!C9 U+0438 afii10074
|
203 |
-
!CA U+0439 afii10075
|
204 |
-
!CB U+043A afii10076
|
205 |
-
!CC U+043B afii10077
|
206 |
-
!CD U+043C afii10078
|
207 |
-
!CE U+043D afii10079
|
208 |
-
!CF U+043E afii10080
|
209 |
-
!D0 U+043F afii10081
|
210 |
-
!D1 U+044F afii10097
|
211 |
-
!D2 U+0440 afii10082
|
212 |
-
!D3 U+0441 afii10083
|
213 |
-
!D4 U+0442 afii10084
|
214 |
-
!D5 U+0443 afii10085
|
215 |
-
!D6 U+0436 afii10072
|
216 |
-
!D7 U+0432 afii10067
|
217 |
-
!D8 U+044C afii10094
|
218 |
-
!D9 U+044B afii10093
|
219 |
-
!DA U+0437 afii10073
|
220 |
-
!DB U+0448 afii10090
|
221 |
-
!DC U+044D afii10095
|
222 |
-
!DD U+0449 afii10091
|
223 |
-
!DE U+0447 afii10089
|
224 |
-
!DF U+044A afii10092
|
225 |
-
!E0 U+042E afii10048
|
226 |
-
!E1 U+0410 afii10017
|
227 |
-
!E2 U+0411 afii10018
|
228 |
-
!E3 U+0426 afii10040
|
229 |
-
!E4 U+0414 afii10021
|
230 |
-
!E5 U+0415 afii10022
|
231 |
-
!E6 U+0424 afii10038
|
232 |
-
!E7 U+0413 afii10020
|
233 |
-
!E8 U+0425 afii10039
|
234 |
-
!E9 U+0418 afii10026
|
235 |
-
!EA U+0419 afii10027
|
236 |
-
!EB U+041A afii10028
|
237 |
-
!EC U+041B afii10029
|
238 |
-
!ED U+041C afii10030
|
239 |
-
!EE U+041D afii10031
|
240 |
-
!EF U+041E afii10032
|
241 |
-
!F0 U+041F afii10033
|
242 |
-
!F1 U+042F afii10049
|
243 |
-
!F2 U+0420 afii10034
|
244 |
-
!F3 U+0421 afii10035
|
245 |
-
!F4 U+0422 afii10036
|
246 |
-
!F5 U+0423 afii10037
|
247 |
-
!F6 U+0416 afii10024
|
248 |
-
!F7 U+0412 afii10019
|
249 |
-
!F8 U+042C afii10046
|
250 |
-
!F9 U+042B afii10045
|
251 |
-
!FA U+0417 afii10025
|
252 |
-
!FB U+0428 afii10042
|
253 |
-
!FC U+042D afii10047
|
254 |
-
!FD U+0429 afii10043
|
255 |
-
!FE U+0427 afii10041
|
256 |
-
!FF U+042A afii10044
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/font/makefont/makefont.php
DELETED
@@ -1,419 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*******************************************************************************
|
3 |
-
* Utility to generate font definition files *
|
4 |
-
* *
|
5 |
-
* Version: 1.14 *
|
6 |
-
* Date: 2008-08-03 *
|
7 |
-
* Author: Olivier PLATHEY *
|
8 |
-
*******************************************************************************/
|
9 |
-
|
10 |
-
function ReadMap($enc)
|
11 |
-
{
|
12 |
-
//Read a map file
|
13 |
-
$file=dirname(__FILE__).'/'.strtolower($enc).'.map';
|
14 |
-
$a=file($file);
|
15 |
-
if(empty($a))
|
16 |
-
die('<b>Error:</b> encoding not found: '.$enc);
|
17 |
-
$cc2gn=array();
|
18 |
-
foreach($a as $l)
|
19 |
-
{
|
20 |
-
if($l[0]=='!')
|
21 |
-
{
|
22 |
-
$e=preg_split('/[ \\t]+/',rtrim($l));
|
23 |
-
$cc=hexdec(substr($e[0],1));
|
24 |
-
$gn=$e[2];
|
25 |
-
$cc2gn[$cc]=$gn;
|
26 |
-
}
|
27 |
-
}
|
28 |
-
for($i=0;$i<=255;$i++)
|
29 |
-
{
|
30 |
-
if(!isset($cc2gn[$i]))
|
31 |
-
$cc2gn[$i]='.notdef';
|
32 |
-
}
|
33 |
-
return $cc2gn;
|
34 |
-
}
|
35 |
-
|
36 |
-
function ReadAFM($file, &$map)
|
37 |
-
{
|
38 |
-
//Read a font metric file
|
39 |
-
$a=file($file);
|
40 |
-
if(empty($a))
|
41 |
-
die('File not found');
|
42 |
-
$widths=array();
|
43 |
-
$fm=array();
|
44 |
-
$fix=array('Edot'=>'Edotaccent','edot'=>'edotaccent','Idot'=>'Idotaccent','Zdot'=>'Zdotaccent','zdot'=>'zdotaccent',
|
45 |
-
'Odblacute'=>'Ohungarumlaut','odblacute'=>'ohungarumlaut','Udblacute'=>'Uhungarumlaut','udblacute'=>'uhungarumlaut',
|
46 |
-
'Gcedilla'=>'Gcommaaccent','gcedilla'=>'gcommaaccent','Kcedilla'=>'Kcommaaccent','kcedilla'=>'kcommaaccent',
|
47 |
-
'Lcedilla'=>'Lcommaaccent','lcedilla'=>'lcommaaccent','Ncedilla'=>'Ncommaaccent','ncedilla'=>'ncommaaccent',
|
48 |
-
'Rcedilla'=>'Rcommaaccent','rcedilla'=>'rcommaaccent','Scedilla'=>'Scommaaccent','scedilla'=>'scommaaccent',
|
49 |
-
'Tcedilla'=>'Tcommaaccent','tcedilla'=>'tcommaaccent','Dslash'=>'Dcroat','dslash'=>'dcroat','Dmacron'=>'Dcroat','dmacron'=>'dcroat',
|
50 |
-
'combininggraveaccent'=>'gravecomb','combininghookabove'=>'hookabovecomb','combiningtildeaccent'=>'tildecomb',
|
51 |
-
'combiningacuteaccent'=>'acutecomb','combiningdotbelow'=>'dotbelowcomb','dongsign'=>'dong');
|
52 |
-
foreach($a as $l)
|
53 |
-
{
|
54 |
-
$e=explode(' ',rtrim($l));
|
55 |
-
if(count($e)<2)
|
56 |
-
continue;
|
57 |
-
$code=$e[0];
|
58 |
-
$param=$e[1];
|
59 |
-
if($code=='C')
|
60 |
-
{
|
61 |
-
//Character metrics
|
62 |
-
$cc=(int)$e[1];
|
63 |
-
$w=$e[4];
|
64 |
-
$gn=$e[7];
|
65 |
-
if(substr($gn,-4)=='20AC')
|
66 |
-
$gn='Euro';
|
67 |
-
if(isset($fix[$gn]))
|
68 |
-
{
|
69 |
-
//Fix incorrect glyph name
|
70 |
-
foreach($map as $c=>$n)
|
71 |
-
{
|
72 |
-
if($n==$fix[$gn])
|
73 |
-
$map[$c]=$gn;
|
74 |
-
}
|
75 |
-
}
|
76 |
-
if(empty($map))
|
77 |
-
{
|
78 |
-
//Symbolic font: use built-in encoding
|
79 |
-
$widths[$cc]=$w;
|
80 |
-
}
|
81 |
-
else
|
82 |
-
{
|
83 |
-
$widths[$gn]=$w;
|
84 |
-
if($gn=='X')
|
85 |
-
$fm['CapXHeight']=$e[13];
|
86 |
-
}
|
87 |
-
if($gn=='.notdef')
|
88 |
-
$fm['MissingWidth']=$w;
|
89 |
-
}
|
90 |
-
elseif($code=='FontName')
|
91 |
-
$fm['FontName']=$param;
|
92 |
-
elseif($code=='Weight')
|
93 |
-
$fm['Weight']=$param;
|
94 |
-
elseif($code=='ItalicAngle')
|
95 |
-
$fm['ItalicAngle']=(double)$param;
|
96 |
-
elseif($code=='Ascender')
|
97 |
-
$fm['Ascender']=(int)$param;
|
98 |
-
elseif($code=='Descender')
|
99 |
-
$fm['Descender']=(int)$param;
|
100 |
-
elseif($code=='UnderlineThickness')
|
101 |
-
$fm['UnderlineThickness']=(int)$param;
|
102 |
-
elseif($code=='UnderlinePosition')
|
103 |
-
$fm['UnderlinePosition']=(int)$param;
|
104 |
-
elseif($code=='IsFixedPitch')
|
105 |
-
$fm['IsFixedPitch']=($param=='true');
|
106 |
-
elseif($code=='FontBBox')
|
107 |
-
$fm['FontBBox']=array($e[1],$e[2],$e[3],$e[4]);
|
108 |
-
elseif($code=='CapHeight')
|
109 |
-
$fm['CapHeight']=(int)$param;
|
110 |
-
elseif($code=='StdVW')
|
111 |
-
$fm['StdVW']=(int)$param;
|
112 |
-
}
|
113 |
-
if(!isset($fm['FontName']))
|
114 |
-
die('FontName not found');
|
115 |
-
if(!empty($map))
|
116 |
-
{
|
117 |
-
if(!isset($widths['.notdef']))
|
118 |
-
$widths['.notdef']=600;
|
119 |
-
if(!isset($widths['Delta']) && isset($widths['increment']))
|
120 |
-
$widths['Delta']=$widths['increment'];
|
121 |
-
//Order widths according to map
|
122 |
-
for($i=0;$i<=255;$i++)
|
123 |
-
{
|
124 |
-
if(!isset($widths[$map[$i]]))
|
125 |
-
{
|
126 |
-
echo '<b>Warning:</b> character '.$map[$i].' is missing<br>';
|
127 |
-
$widths[$i]=$widths['.notdef'];
|
128 |
-
}
|
129 |
-
else
|
130 |
-
$widths[$i]=$widths[$map[$i]];
|
131 |
-
}
|
132 |
-
}
|
133 |
-
$fm['Widths']=$widths;
|
134 |
-
return $fm;
|
135 |
-
}
|
136 |
-
|
137 |
-
function MakeFontDescriptor($fm, $symbolic)
|
138 |
-
{
|
139 |
-
//Ascent
|
140 |
-
$asc=(isset($fm['Ascender']) ? $fm['Ascender'] : 1000);
|
141 |
-
$fd="array('Ascent'=>".$asc;
|
142 |
-
//Descent
|
143 |
-
$desc=(isset($fm['Descender']) ? $fm['Descender'] : -200);
|
144 |
-
$fd.=",'Descent'=>".$desc;
|
145 |
-
//CapHeight
|
146 |
-
if(isset($fm['CapHeight']))
|
147 |
-
$ch=$fm['CapHeight'];
|
148 |
-
elseif(isset($fm['CapXHeight']))
|
149 |
-
$ch=$fm['CapXHeight'];
|
150 |
-
else
|
151 |
-
$ch=$asc;
|
152 |
-
$fd.=",'CapHeight'=>".$ch;
|
153 |
-
//Flags
|
154 |
-
$flags=0;
|
155 |
-
if(isset($fm['IsFixedPitch']) && $fm['IsFixedPitch'])
|
156 |
-
$flags+=1<<0;
|
157 |
-
if($symbolic)
|
158 |
-
$flags+=1<<2;
|
159 |
-
if(!$symbolic)
|
160 |
-
$flags+=1<<5;
|
161 |
-
if(isset($fm['ItalicAngle']) && $fm['ItalicAngle']!=0)
|
162 |
-
$flags+=1<<6;
|
163 |
-
$fd.=",'Flags'=>".$flags;
|
164 |
-
//FontBBox
|
165 |
-
if(isset($fm['FontBBox']))
|
166 |
-
$fbb=$fm['FontBBox'];
|
167 |
-
else
|
168 |
-
$fbb=array(0,$desc-100,1000,$asc+100);
|
169 |
-
$fd.=",'FontBBox'=>'[".$fbb[0].' '.$fbb[1].' '.$fbb[2].' '.$fbb[3]."]'";
|
170 |
-
//ItalicAngle
|
171 |
-
$ia=(isset($fm['ItalicAngle']) ? $fm['ItalicAngle'] : 0);
|
172 |
-
$fd.=",'ItalicAngle'=>".$ia;
|
173 |
-
//StemV
|
174 |
-
if(isset($fm['StdVW']))
|
175 |
-
$stemv=$fm['StdVW'];
|
176 |
-
elseif(isset($fm['Weight']) && preg_match('/bold|black/i',$fm['Weight']))
|
177 |
-
$stemv=120;
|
178 |
-
else
|
179 |
-
$stemv=70;
|
180 |
-
$fd.=",'StemV'=>".$stemv;
|
181 |
-
//MissingWidth
|
182 |
-
if(isset($fm['MissingWidth']))
|
183 |
-
$fd.=",'MissingWidth'=>".$fm['MissingWidth'];
|
184 |
-
$fd.=')';
|
185 |
-
return $fd;
|
186 |
-
}
|
187 |
-
|
188 |
-
function MakeWidthArray($fm)
|
189 |
-
{
|
190 |
-
//Make character width array
|
191 |
-
$s="array(\n\t";
|
192 |
-
$cw=$fm['Widths'];
|
193 |
-
for($i=0;$i<=255;$i++)
|
194 |
-
{
|
195 |
-
if(chr($i)=="'")
|
196 |
-
$s.="'\\''";
|
197 |
-
elseif(chr($i)=="\\")
|
198 |
-
$s.="'\\\\'";
|
199 |
-
elseif($i>=32 && $i<=126)
|
200 |
-
$s.="'".chr($i)."'";
|
201 |
-
else
|
202 |
-
$s.="chr($i)";
|
203 |
-
$s.='=>'.$fm['Widths'][$i];
|
204 |
-
if($i<255)
|
205 |
-
$s.=',';
|
206 |
-
if(($i+1)%22==0)
|
207 |
-
$s.="\n\t";
|
208 |
-
}
|
209 |
-
$s.=')';
|
210 |
-
return $s;
|
211 |
-
}
|
212 |
-
|
213 |
-
function MakeFontEncoding($map)
|
214 |
-
{
|
215 |
-
//Build differences from reference encoding
|
216 |
-
$ref=ReadMap('cp1252');
|
217 |
-
$s='';
|
218 |
-
$last=0;
|
219 |
-
for($i=32;$i<=255;$i++)
|
220 |
-
{
|
221 |
-
if($map[$i]!=$ref[$i])
|
222 |
-
{
|
223 |
-
if($i!=$last+1)
|
224 |
-
$s.=$i.' ';
|
225 |
-
$last=$i;
|
226 |
-
$s.='/'.$map[$i].' ';
|
227 |
-
}
|
228 |
-
}
|
229 |
-
return rtrim($s);
|
230 |
-
}
|
231 |
-
|
232 |
-
function SaveToFile($file, $s, $mode)
|
233 |
-
{
|
234 |
-
$f=fopen($file,'w'.$mode);
|
235 |
-
if(!$f)
|
236 |
-
die('Can\'t write to file '.$file);
|
237 |
-
fwrite($f,$s,strlen($s));
|
238 |
-
fclose($f);
|
239 |
-
}
|
240 |
-
|
241 |
-
function ReadShort($f)
|
242 |
-
{
|
243 |
-
$a=unpack('n1n',fread($f,2));
|
244 |
-
return $a['n'];
|
245 |
-
}
|
246 |
-
|
247 |
-
function ReadLong($f)
|
248 |
-
{
|
249 |
-
$a=unpack('N1N',fread($f,4));
|
250 |
-
return $a['N'];
|
251 |
-
}
|
252 |
-
|
253 |
-
function CheckTTF($file)
|
254 |
-
{
|
255 |
-
//Check if font license allows embedding
|
256 |
-
$f=fopen($file,'rb');
|
257 |
-
if(!$f)
|
258 |
-
die('<b>Error:</b> Can\'t open '.$file);
|
259 |
-
//Extract number of tables
|
260 |
-
fseek($f,4,SEEK_CUR);
|
261 |
-
$nb=ReadShort($f);
|
262 |
-
fseek($f,6,SEEK_CUR);
|
263 |
-
//Seek OS/2 table
|
264 |
-
$found=false;
|
265 |
-
for($i=0;$i<$nb;$i++)
|
266 |
-
{
|
267 |
-
if(fread($f,4)=='OS/2')
|
268 |
-
{
|
269 |
-
$found=true;
|
270 |
-
break;
|
271 |
-
}
|
272 |
-
fseek($f,12,SEEK_CUR);
|
273 |
-
}
|
274 |
-
if(!$found)
|
275 |
-
{
|
276 |
-
fclose($f);
|
277 |
-
return;
|
278 |
-
}
|
279 |
-
fseek($f,4,SEEK_CUR);
|
280 |
-
$offset=ReadLong($f);
|
281 |
-
fseek($f,$offset,SEEK_SET);
|
282 |
-
//Extract fsType flags
|
283 |
-
fseek($f,8,SEEK_CUR);
|
284 |
-
$fsType=ReadShort($f);
|
285 |
-
$rl=($fsType & 0x02)!=0;
|
286 |
-
$pp=($fsType & 0x04)!=0;
|
287 |
-
$e=($fsType & 0x08)!=0;
|
288 |
-
fclose($f);
|
289 |
-
if($rl && !$pp && !$e)
|
290 |
-
echo '<b>Warning:</b> font license does not allow embedding';
|
291 |
-
}
|
292 |
-
|
293 |
-
/*******************************************************************************
|
294 |
-
* fontfile: path to TTF file (or empty string if not to be embedded) *
|
295 |
-
* afmfile: path to AFM file *
|
296 |
-
* enc: font encoding (or empty string for symbolic fonts) *
|
297 |
-
* patch: optional patch for encoding *
|
298 |
-
* type: font type if fontfile is empty *
|
299 |
-
*******************************************************************************/
|
300 |
-
function MakeFont($fontfile, $afmfile, $enc='cp1252', $patch=array(), $type='TrueType')
|
301 |
-
{
|
302 |
-
//Generate a font definition file
|
303 |
-
if(get_magic_quotes_runtime())
|
304 |
-
@set_magic_quotes_runtime(0);
|
305 |
-
ini_set('auto_detect_line_endings','1');
|
306 |
-
if($enc)
|
307 |
-
{
|
308 |
-
$map=ReadMap($enc);
|
309 |
-
foreach($patch as $cc=>$gn)
|
310 |
-
$map[$cc]=$gn;
|
311 |
-
}
|
312 |
-
else
|
313 |
-
$map=array();
|
314 |
-
if(!file_exists($afmfile))
|
315 |
-
die('<b>Error:</b> AFM file not found: '.$afmfile);
|
316 |
-
$fm=ReadAFM($afmfile,$map);
|
317 |
-
if($enc)
|
318 |
-
$diff=MakeFontEncoding($map);
|
319 |
-
else
|
320 |
-
$diff='';
|
321 |
-
$fd=MakeFontDescriptor($fm,empty($map));
|
322 |
-
//Find font type
|
323 |
-
if($fontfile)
|
324 |
-
{
|
325 |
-
$ext=strtolower(substr($fontfile,-3));
|
326 |
-
if($ext=='ttf')
|
327 |
-
$type='TrueType';
|
328 |
-
elseif($ext=='pfb')
|
329 |
-
$type='Type1';
|
330 |
-
else
|
331 |
-
die('<b>Error:</b> unrecognized font file extension: '.$ext);
|
332 |
-
}
|
333 |
-
else
|
334 |
-
{
|
335 |
-
if($type!='TrueType' && $type!='Type1')
|
336 |
-
die('<b>Error:</b> incorrect font type: '.$type);
|
337 |
-
}
|
338 |
-
//Start generation
|
339 |
-
$s='<?php'."\n";
|
340 |
-
$s.='$type=\''.$type."';\n";
|
341 |
-
$s.='$name=\''.$fm['FontName']."';\n";
|
342 |
-
$s.='$desc='.$fd.";\n";
|
343 |
-
if(!isset($fm['UnderlinePosition']))
|
344 |
-
$fm['UnderlinePosition']=-100;
|
345 |
-
if(!isset($fm['UnderlineThickness']))
|
346 |
-
$fm['UnderlineThickness']=50;
|
347 |
-
$s.='$up='.$fm['UnderlinePosition'].";\n";
|
348 |
-
$s.='$ut='.$fm['UnderlineThickness'].";\n";
|
349 |
-
$w=MakeWidthArray($fm);
|
350 |
-
$s.='$cw='.$w.";\n";
|
351 |
-
$s.='$enc=\''.$enc."';\n";
|
352 |
-
$s.='$diff=\''.$diff."';\n";
|
353 |
-
$basename=substr(basename($afmfile),0,-4);
|
354 |
-
if($fontfile)
|
355 |
-
{
|
356 |
-
//Embedded font
|
357 |
-
if(!file_exists($fontfile))
|
358 |
-
die('<b>Error:</b> font file not found: '.$fontfile);
|
359 |
-
if($type=='TrueType')
|
360 |
-
CheckTTF($fontfile);
|
361 |
-
$f=fopen($fontfile,'rb');
|
362 |
-
if(!$f)
|
363 |
-
die('<b>Error:</b> Can\'t open '.$fontfile);
|
364 |
-
$file=fread($f,filesize($fontfile));
|
365 |
-
fclose($f);
|
366 |
-
if($type=='Type1')
|
367 |
-
{
|
368 |
-
//Find first two sections and discard third one
|
369 |
-
$header=(ord($file[0])==128);
|
370 |
-
if($header)
|
371 |
-
{
|
372 |
-
//Strip first binary header
|
373 |
-
$file=substr($file,6);
|
374 |
-
}
|
375 |
-
$pos=strpos($file,'eexec');
|
376 |
-
if(!$pos)
|
377 |
-
die('<b>Error:</b> font file does not seem to be valid Type1');
|
378 |
-
$size1=$pos+6;
|
379 |
-
if($header && ord($file[$size1])==128)
|
380 |
-
{
|
381 |
-
//Strip second binary header
|
382 |
-
$file=substr($file,0,$size1).substr($file,$size1+6);
|
383 |
-
}
|
384 |
-
$pos=strpos($file,'00000000');
|
385 |
-
if(!$pos)
|
386 |
-
die('<b>Error:</b> font file does not seem to be valid Type1');
|
387 |
-
$size2=$pos-$size1;
|
388 |
-
$file=substr($file,0,$size1+$size2);
|
389 |
-
}
|
390 |
-
if(function_exists('gzcompress'))
|
391 |
-
{
|
392 |
-
$cmp=$basename.'.z';
|
393 |
-
SaveToFile($cmp,gzcompress($file),'b');
|
394 |
-
$s.='$file=\''.$cmp."';\n";
|
395 |
-
echo 'Font file compressed ('.$cmp.')<br>';
|
396 |
-
}
|
397 |
-
else
|
398 |
-
{
|
399 |
-
$s.='$file=\''.basename($fontfile)."';\n";
|
400 |
-
echo '<b>Notice:</b> font file could not be compressed (zlib extension not available)<br>';
|
401 |
-
}
|
402 |
-
if($type=='Type1')
|
403 |
-
{
|
404 |
-
$s.='$size1='.$size1.";\n";
|
405 |
-
$s.='$size2='.$size2.";\n";
|
406 |
-
}
|
407 |
-
else
|
408 |
-
$s.='$originalsize='.filesize($fontfile).";\n";
|
409 |
-
}
|
410 |
-
else
|
411 |
-
{
|
412 |
-
//Not embedded font
|
413 |
-
$s.='$file='."'';\n";
|
414 |
-
}
|
415 |
-
$s.="?>\n";
|
416 |
-
SaveToFile($basename.'.php',$s,'t');
|
417 |
-
echo 'Font definition file generated ('.$basename.'.php'.')<br>';
|
418 |
-
}
|
419 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/font/symbol.php
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
$fpdf_charwidths['symbol']=array(
|
3 |
-
chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
|
4 |
-
chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>713,'#'=>500,'$'=>549,'%'=>833,'&'=>778,'\''=>439,'('=>333,')'=>333,'*'=>500,'+'=>549,
|
5 |
-
','=>250,'-'=>549,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>278,';'=>278,'<'=>549,'='=>549,'>'=>549,'?'=>444,'@'=>549,'A'=>722,
|
6 |
-
'B'=>667,'C'=>722,'D'=>612,'E'=>611,'F'=>763,'G'=>603,'H'=>722,'I'=>333,'J'=>631,'K'=>722,'L'=>686,'M'=>889,'N'=>722,'O'=>722,'P'=>768,'Q'=>741,'R'=>556,'S'=>592,'T'=>611,'U'=>690,'V'=>439,'W'=>768,
|
7 |
-
'X'=>645,'Y'=>795,'Z'=>611,'['=>333,'\\'=>863,']'=>333,'^'=>658,'_'=>500,'`'=>500,'a'=>631,'b'=>549,'c'=>549,'d'=>494,'e'=>439,'f'=>521,'g'=>411,'h'=>603,'i'=>329,'j'=>603,'k'=>549,'l'=>549,'m'=>576,
|
8 |
-
'n'=>521,'o'=>549,'p'=>549,'q'=>521,'r'=>549,'s'=>603,'t'=>439,'u'=>576,'v'=>713,'w'=>686,'x'=>493,'y'=>686,'z'=>494,'{'=>480,'|'=>200,'}'=>480,'~'=>549,chr(127)=>0,chr(128)=>0,chr(129)=>0,chr(130)=>0,chr(131)=>0,
|
9 |
-
chr(132)=>0,chr(133)=>0,chr(134)=>0,chr(135)=>0,chr(136)=>0,chr(137)=>0,chr(138)=>0,chr(139)=>0,chr(140)=>0,chr(141)=>0,chr(142)=>0,chr(143)=>0,chr(144)=>0,chr(145)=>0,chr(146)=>0,chr(147)=>0,chr(148)=>0,chr(149)=>0,chr(150)=>0,chr(151)=>0,chr(152)=>0,chr(153)=>0,
|
10 |
-
chr(154)=>0,chr(155)=>0,chr(156)=>0,chr(157)=>0,chr(158)=>0,chr(159)=>0,chr(160)=>750,chr(161)=>620,chr(162)=>247,chr(163)=>549,chr(164)=>167,chr(165)=>713,chr(166)=>500,chr(167)=>753,chr(168)=>753,chr(169)=>753,chr(170)=>753,chr(171)=>1042,chr(172)=>987,chr(173)=>603,chr(174)=>987,chr(175)=>603,
|
11 |
-
chr(176)=>400,chr(177)=>549,chr(178)=>411,chr(179)=>549,chr(180)=>549,chr(181)=>713,chr(182)=>494,chr(183)=>460,chr(184)=>549,chr(185)=>549,chr(186)=>549,chr(187)=>549,chr(188)=>1000,chr(189)=>603,chr(190)=>1000,chr(191)=>658,chr(192)=>823,chr(193)=>686,chr(194)=>795,chr(195)=>987,chr(196)=>768,chr(197)=>768,
|
12 |
-
chr(198)=>823,chr(199)=>768,chr(200)=>768,chr(201)=>713,chr(202)=>713,chr(203)=>713,chr(204)=>713,chr(205)=>713,chr(206)=>713,chr(207)=>713,chr(208)=>768,chr(209)=>713,chr(210)=>790,chr(211)=>790,chr(212)=>890,chr(213)=>823,chr(214)=>549,chr(215)=>250,chr(216)=>713,chr(217)=>603,chr(218)=>603,chr(219)=>1042,
|
13 |
-
chr(220)=>987,chr(221)=>603,chr(222)=>987,chr(223)=>603,chr(224)=>494,chr(225)=>329,chr(226)=>790,chr(227)=>790,chr(228)=>786,chr(229)=>713,chr(230)=>384,chr(231)=>384,chr(232)=>384,chr(233)=>384,chr(234)=>384,chr(235)=>384,chr(236)=>494,chr(237)=>494,chr(238)=>494,chr(239)=>494,chr(240)=>0,chr(241)=>329,
|
14 |
-
chr(242)=>274,chr(243)=>686,chr(244)=>686,chr(245)=>686,chr(246)=>384,chr(247)=>384,chr(248)=>384,chr(249)=>384,chr(250)=>384,chr(251)=>384,chr(252)=>494,chr(253)=>494,chr(254)=>494,chr(255)=>0);
|
15 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/font/times.php
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
$fpdf_charwidths['times']=array(
|
3 |
-
chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
|
4 |
-
chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>408,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>180,'('=>333,')'=>333,'*'=>500,'+'=>564,
|
5 |
-
','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>278,';'=>278,'<'=>564,'='=>564,'>'=>564,'?'=>444,'@'=>921,'A'=>722,
|
6 |
-
'B'=>667,'C'=>667,'D'=>722,'E'=>611,'F'=>556,'G'=>722,'H'=>722,'I'=>333,'J'=>389,'K'=>722,'L'=>611,'M'=>889,'N'=>722,'O'=>722,'P'=>556,'Q'=>722,'R'=>667,'S'=>556,'T'=>611,'U'=>722,'V'=>722,'W'=>944,
|
7 |
-
'X'=>722,'Y'=>722,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>469,'_'=>500,'`'=>333,'a'=>444,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>333,'g'=>500,'h'=>500,'i'=>278,'j'=>278,'k'=>500,'l'=>278,'m'=>778,
|
8 |
-
'n'=>500,'o'=>500,'p'=>500,'q'=>500,'r'=>333,'s'=>389,'t'=>278,'u'=>500,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>444,'{'=>480,'|'=>200,'}'=>480,'~'=>541,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,
|
9 |
-
chr(132)=>444,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>889,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>444,chr(148)=>444,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>980,
|
10 |
-
chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>444,chr(159)=>722,chr(160)=>250,chr(161)=>333,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>200,chr(167)=>500,chr(168)=>333,chr(169)=>760,chr(170)=>276,chr(171)=>500,chr(172)=>564,chr(173)=>333,chr(174)=>760,chr(175)=>333,
|
11 |
-
chr(176)=>400,chr(177)=>564,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>500,chr(182)=>453,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>310,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>444,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
|
12 |
-
chr(198)=>889,chr(199)=>667,chr(200)=>611,chr(201)=>611,chr(202)=>611,chr(203)=>611,chr(204)=>333,chr(205)=>333,chr(206)=>333,chr(207)=>333,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>564,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
13 |
-
chr(220)=>722,chr(221)=>722,chr(222)=>556,chr(223)=>500,chr(224)=>444,chr(225)=>444,chr(226)=>444,chr(227)=>444,chr(228)=>444,chr(229)=>444,chr(230)=>667,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>500,
|
14 |
-
chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>564,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>500,chr(254)=>500,chr(255)=>500);
|
15 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/font/timesb.php
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
$fpdf_charwidths['timesB']=array(
|
3 |
-
chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
|
4 |
-
chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>555,'#'=>500,'$'=>500,'%'=>1000,'&'=>833,'\''=>278,'('=>333,')'=>333,'*'=>500,'+'=>570,
|
5 |
-
','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>570,'='=>570,'>'=>570,'?'=>500,'@'=>930,'A'=>722,
|
6 |
-
'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>778,'I'=>389,'J'=>500,'K'=>778,'L'=>667,'M'=>944,'N'=>722,'O'=>778,'P'=>611,'Q'=>778,'R'=>722,'S'=>556,'T'=>667,'U'=>722,'V'=>722,'W'=>1000,
|
7 |
-
'X'=>722,'Y'=>722,'Z'=>667,'['=>333,'\\'=>278,']'=>333,'^'=>581,'_'=>500,'`'=>333,'a'=>500,'b'=>556,'c'=>444,'d'=>556,'e'=>444,'f'=>333,'g'=>500,'h'=>556,'i'=>278,'j'=>333,'k'=>556,'l'=>278,'m'=>833,
|
8 |
-
'n'=>556,'o'=>500,'p'=>556,'q'=>556,'r'=>444,'s'=>389,'t'=>333,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>444,'{'=>394,'|'=>220,'}'=>394,'~'=>520,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,
|
9 |
-
chr(132)=>500,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>667,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
|
10 |
-
chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>444,chr(159)=>722,chr(160)=>250,chr(161)=>333,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>220,chr(167)=>500,chr(168)=>333,chr(169)=>747,chr(170)=>300,chr(171)=>500,chr(172)=>570,chr(173)=>333,chr(174)=>747,chr(175)=>333,
|
11 |
-
chr(176)=>400,chr(177)=>570,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>556,chr(182)=>540,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>330,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
|
12 |
-
chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>570,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
13 |
-
chr(220)=>722,chr(221)=>722,chr(222)=>611,chr(223)=>556,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556,
|
14 |
-
chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500);
|
15 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/font/timesbi.php
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
$fpdf_charwidths['timesBI']=array(
|
3 |
-
chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
|
4 |
-
chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>389,'"'=>555,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>278,'('=>333,')'=>333,'*'=>500,'+'=>570,
|
5 |
-
','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>570,'='=>570,'>'=>570,'?'=>500,'@'=>832,'A'=>667,
|
6 |
-
'B'=>667,'C'=>667,'D'=>722,'E'=>667,'F'=>667,'G'=>722,'H'=>778,'I'=>389,'J'=>500,'K'=>667,'L'=>611,'M'=>889,'N'=>722,'O'=>722,'P'=>611,'Q'=>722,'R'=>667,'S'=>556,'T'=>611,'U'=>722,'V'=>667,'W'=>889,
|
7 |
-
'X'=>667,'Y'=>611,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>570,'_'=>500,'`'=>333,'a'=>500,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>333,'g'=>500,'h'=>556,'i'=>278,'j'=>278,'k'=>500,'l'=>278,'m'=>778,
|
8 |
-
'n'=>556,'o'=>500,'p'=>500,'q'=>500,'r'=>389,'s'=>389,'t'=>278,'u'=>556,'v'=>444,'w'=>667,'x'=>500,'y'=>444,'z'=>389,'{'=>348,'|'=>220,'}'=>348,'~'=>570,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,
|
9 |
-
chr(132)=>500,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>944,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
|
10 |
-
chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>389,chr(159)=>611,chr(160)=>250,chr(161)=>389,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>220,chr(167)=>500,chr(168)=>333,chr(169)=>747,chr(170)=>266,chr(171)=>500,chr(172)=>606,chr(173)=>333,chr(174)=>747,chr(175)=>333,
|
11 |
-
chr(176)=>400,chr(177)=>570,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>576,chr(182)=>500,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>300,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667,
|
12 |
-
chr(198)=>944,chr(199)=>667,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>570,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
13 |
-
chr(220)=>722,chr(221)=>611,chr(222)=>611,chr(223)=>500,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556,
|
14 |
-
chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>444,chr(254)=>500,chr(255)=>444);
|
15 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/font/timesi.php
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
$fpdf_charwidths['timesI']=array(
|
3 |
-
chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
|
4 |
-
chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>420,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>214,'('=>333,')'=>333,'*'=>500,'+'=>675,
|
5 |
-
','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>675,'='=>675,'>'=>675,'?'=>500,'@'=>920,'A'=>611,
|
6 |
-
'B'=>611,'C'=>667,'D'=>722,'E'=>611,'F'=>611,'G'=>722,'H'=>722,'I'=>333,'J'=>444,'K'=>667,'L'=>556,'M'=>833,'N'=>667,'O'=>722,'P'=>611,'Q'=>722,'R'=>611,'S'=>500,'T'=>556,'U'=>722,'V'=>611,'W'=>833,
|
7 |
-
'X'=>611,'Y'=>556,'Z'=>556,'['=>389,'\\'=>278,']'=>389,'^'=>422,'_'=>500,'`'=>333,'a'=>500,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>278,'g'=>500,'h'=>500,'i'=>278,'j'=>278,'k'=>444,'l'=>278,'m'=>722,
|
8 |
-
'n'=>500,'o'=>500,'p'=>500,'q'=>500,'r'=>389,'s'=>389,'t'=>278,'u'=>500,'v'=>444,'w'=>667,'x'=>444,'y'=>444,'z'=>389,'{'=>400,'|'=>275,'}'=>400,'~'=>541,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,
|
9 |
-
chr(132)=>556,chr(133)=>889,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>500,chr(139)=>333,chr(140)=>944,chr(141)=>350,chr(142)=>556,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>556,chr(148)=>556,chr(149)=>350,chr(150)=>500,chr(151)=>889,chr(152)=>333,chr(153)=>980,
|
10 |
-
chr(154)=>389,chr(155)=>333,chr(156)=>667,chr(157)=>350,chr(158)=>389,chr(159)=>556,chr(160)=>250,chr(161)=>389,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>275,chr(167)=>500,chr(168)=>333,chr(169)=>760,chr(170)=>276,chr(171)=>500,chr(172)=>675,chr(173)=>333,chr(174)=>760,chr(175)=>333,
|
11 |
-
chr(176)=>400,chr(177)=>675,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>500,chr(182)=>523,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>310,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>611,chr(193)=>611,chr(194)=>611,chr(195)=>611,chr(196)=>611,chr(197)=>611,
|
12 |
-
chr(198)=>889,chr(199)=>667,chr(200)=>611,chr(201)=>611,chr(202)=>611,chr(203)=>611,chr(204)=>333,chr(205)=>333,chr(206)=>333,chr(207)=>333,chr(208)=>722,chr(209)=>667,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>675,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,
|
13 |
-
chr(220)=>722,chr(221)=>556,chr(222)=>611,chr(223)=>500,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>667,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>500,
|
14 |
-
chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>675,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>444,chr(254)=>500,chr(255)=>444);
|
15 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/font/zapfdingbats.php
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
$fpdf_charwidths['zapfdingbats']=array(
|
3 |
-
chr(0)=>0,chr(1)=>0,chr(2)=>0,chr(3)=>0,chr(4)=>0,chr(5)=>0,chr(6)=>0,chr(7)=>0,chr(8)=>0,chr(9)=>0,chr(10)=>0,chr(11)=>0,chr(12)=>0,chr(13)=>0,chr(14)=>0,chr(15)=>0,chr(16)=>0,chr(17)=>0,chr(18)=>0,chr(19)=>0,chr(20)=>0,chr(21)=>0,
|
4 |
-
chr(22)=>0,chr(23)=>0,chr(24)=>0,chr(25)=>0,chr(26)=>0,chr(27)=>0,chr(28)=>0,chr(29)=>0,chr(30)=>0,chr(31)=>0,' '=>278,'!'=>974,'"'=>961,'#'=>974,'$'=>980,'%'=>719,'&'=>789,'\''=>790,'('=>791,')'=>690,'*'=>960,'+'=>939,
|
5 |
-
','=>549,'-'=>855,'.'=>911,'/'=>933,'0'=>911,'1'=>945,'2'=>974,'3'=>755,'4'=>846,'5'=>762,'6'=>761,'7'=>571,'8'=>677,'9'=>763,':'=>760,';'=>759,'<'=>754,'='=>494,'>'=>552,'?'=>537,'@'=>577,'A'=>692,
|
6 |
-
'B'=>786,'C'=>788,'D'=>788,'E'=>790,'F'=>793,'G'=>794,'H'=>816,'I'=>823,'J'=>789,'K'=>841,'L'=>823,'M'=>833,'N'=>816,'O'=>831,'P'=>923,'Q'=>744,'R'=>723,'S'=>749,'T'=>790,'U'=>792,'V'=>695,'W'=>776,
|
7 |
-
'X'=>768,'Y'=>792,'Z'=>759,'['=>707,'\\'=>708,']'=>682,'^'=>701,'_'=>826,'`'=>815,'a'=>789,'b'=>789,'c'=>707,'d'=>687,'e'=>696,'f'=>689,'g'=>786,'h'=>787,'i'=>713,'j'=>791,'k'=>785,'l'=>791,'m'=>873,
|
8 |
-
'n'=>761,'o'=>762,'p'=>762,'q'=>759,'r'=>759,'s'=>892,'t'=>892,'u'=>788,'v'=>784,'w'=>438,'x'=>138,'y'=>277,'z'=>415,'{'=>392,'|'=>392,'}'=>668,'~'=>668,chr(127)=>0,chr(128)=>390,chr(129)=>390,chr(130)=>317,chr(131)=>317,
|
9 |
-
chr(132)=>276,chr(133)=>276,chr(134)=>509,chr(135)=>509,chr(136)=>410,chr(137)=>410,chr(138)=>234,chr(139)=>234,chr(140)=>334,chr(141)=>334,chr(142)=>0,chr(143)=>0,chr(144)=>0,chr(145)=>0,chr(146)=>0,chr(147)=>0,chr(148)=>0,chr(149)=>0,chr(150)=>0,chr(151)=>0,chr(152)=>0,chr(153)=>0,
|
10 |
-
chr(154)=>0,chr(155)=>0,chr(156)=>0,chr(157)=>0,chr(158)=>0,chr(159)=>0,chr(160)=>0,chr(161)=>732,chr(162)=>544,chr(163)=>544,chr(164)=>910,chr(165)=>667,chr(166)=>760,chr(167)=>760,chr(168)=>776,chr(169)=>595,chr(170)=>694,chr(171)=>626,chr(172)=>788,chr(173)=>788,chr(174)=>788,chr(175)=>788,
|
11 |
-
chr(176)=>788,chr(177)=>788,chr(178)=>788,chr(179)=>788,chr(180)=>788,chr(181)=>788,chr(182)=>788,chr(183)=>788,chr(184)=>788,chr(185)=>788,chr(186)=>788,chr(187)=>788,chr(188)=>788,chr(189)=>788,chr(190)=>788,chr(191)=>788,chr(192)=>788,chr(193)=>788,chr(194)=>788,chr(195)=>788,chr(196)=>788,chr(197)=>788,
|
12 |
-
chr(198)=>788,chr(199)=>788,chr(200)=>788,chr(201)=>788,chr(202)=>788,chr(203)=>788,chr(204)=>788,chr(205)=>788,chr(206)=>788,chr(207)=>788,chr(208)=>788,chr(209)=>788,chr(210)=>788,chr(211)=>788,chr(212)=>894,chr(213)=>838,chr(214)=>1016,chr(215)=>458,chr(216)=>748,chr(217)=>924,chr(218)=>748,chr(219)=>918,
|
13 |
-
chr(220)=>927,chr(221)=>928,chr(222)=>928,chr(223)=>834,chr(224)=>873,chr(225)=>828,chr(226)=>924,chr(227)=>924,chr(228)=>917,chr(229)=>930,chr(230)=>931,chr(231)=>463,chr(232)=>883,chr(233)=>836,chr(234)=>836,chr(235)=>867,chr(236)=>867,chr(237)=>696,chr(238)=>696,chr(239)=>874,chr(240)=>0,chr(241)=>874,
|
14 |
-
chr(242)=>760,chr(243)=>946,chr(244)=>771,chr(245)=>865,chr(246)=>771,chr(247)=>888,chr(248)=>967,chr(249)=>888,chr(250)=>831,chr(251)=>873,chr(252)=>927,chr(253)=>970,chr(254)=>918,chr(255)=>0);
|
15 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/fpdf.php
DELETED
@@ -1,1732 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*******************************************************************************
|
3 |
-
* FPDF *
|
4 |
-
* *
|
5 |
-
* Version: 1.6 *
|
6 |
-
* Date: 2008-08-03 *
|
7 |
-
* Author: Olivier PLATHEY *
|
8 |
-
*******************************************************************************/
|
9 |
-
|
10 |
-
define('FPDF_VERSION','1.6');
|
11 |
-
|
12 |
-
class FPDF
|
13 |
-
{
|
14 |
-
var $page; //current page number
|
15 |
-
var $n; //current object number
|
16 |
-
var $offsets; //array of object offsets
|
17 |
-
var $buffer; //buffer holding in-memory PDF
|
18 |
-
var $pages; //array containing pages
|
19 |
-
var $state; //current document state
|
20 |
-
var $compress; //compression flag
|
21 |
-
var $k; //scale factor (number of points in user unit)
|
22 |
-
var $DefOrientation; //default orientation
|
23 |
-
var $CurOrientation; //current orientation
|
24 |
-
var $PageFormats; //available page formats
|
25 |
-
var $DefPageFormat; //default page format
|
26 |
-
var $CurPageFormat; //current page format
|
27 |
-
var $PageSizes; //array storing non-default page sizes
|
28 |
-
var $wPt,$hPt; //dimensions of current page in points
|
29 |
-
var $w,$h; //dimensions of current page in user unit
|
30 |
-
var $lMargin; //left margin
|
31 |
-
var $tMargin; //top margin
|
32 |
-
var $rMargin; //right margin
|
33 |
-
var $bMargin; //page break margin
|
34 |
-
var $cMargin; //cell margin
|
35 |
-
var $x,$y; //current position in user unit
|
36 |
-
var $lasth; //height of last printed cell
|
37 |
-
var $LineWidth; //line width in user unit
|
38 |
-
var $CoreFonts; //array of standard font names
|
39 |
-
var $fonts; //array of used fonts
|
40 |
-
var $FontFiles; //array of font files
|
41 |
-
var $diffs; //array of encoding differences
|
42 |
-
var $FontFamily; //current font family
|
43 |
-
var $FontStyle; //current font style
|
44 |
-
var $underline; //underlining flag
|
45 |
-
var $CurrentFont; //current font info
|
46 |
-
var $FontSizePt; //current font size in points
|
47 |
-
var $FontSize; //current font size in user unit
|
48 |
-
var $DrawColor; //commands for drawing color
|
49 |
-
var $FillColor; //commands for filling color
|
50 |
-
var $TextColor; //commands for text color
|
51 |
-
var $ColorFlag; //indicates whether fill and text colors are different
|
52 |
-
var $ws; //word spacing
|
53 |
-
var $images; //array of used images
|
54 |
-
var $PageLinks; //array of links in pages
|
55 |
-
var $links; //array of internal links
|
56 |
-
var $AutoPageBreak; //automatic page breaking
|
57 |
-
var $PageBreakTrigger; //threshold used to trigger page breaks
|
58 |
-
var $InHeader; //flag set when processing header
|
59 |
-
var $InFooter; //flag set when processing footer
|
60 |
-
var $ZoomMode; //zoom display mode
|
61 |
-
var $LayoutMode; //layout display mode
|
62 |
-
var $title; //title
|
63 |
-
var $subject; //subject
|
64 |
-
var $author; //author
|
65 |
-
var $keywords; //keywords
|
66 |
-
var $creator; //creator
|
67 |
-
var $AliasNbPages; //alias for total number of pages
|
68 |
-
var $PDFVersion; //PDF version number
|
69 |
-
|
70 |
-
/*******************************************************************************
|
71 |
-
* *
|
72 |
-
* Public methods *
|
73 |
-
* *
|
74 |
-
*******************************************************************************/
|
75 |
-
function FPDF($orientation='P', $unit='mm', $format='A4')
|
76 |
-
{
|
77 |
-
//Some checks
|
78 |
-
$this->_dochecks();
|
79 |
-
//Initialization of properties
|
80 |
-
$this->page=0;
|
81 |
-
$this->n=2;
|
82 |
-
$this->buffer='';
|
83 |
-
$this->pages=array();
|
84 |
-
$this->PageSizes=array();
|
85 |
-
$this->state=0;
|
86 |
-
$this->fonts=array();
|
87 |
-
$this->FontFiles=array();
|
88 |
-
$this->diffs=array();
|
89 |
-
$this->images=array();
|
90 |
-
$this->links=array();
|
91 |
-
$this->InHeader=false;
|
92 |
-
$this->InFooter=false;
|
93 |
-
$this->lasth=0;
|
94 |
-
$this->FontFamily='';
|
95 |
-
$this->FontStyle='';
|
96 |
-
$this->FontSizePt=12;
|
97 |
-
$this->underline=false;
|
98 |
-
$this->DrawColor='0 G';
|
99 |
-
$this->FillColor='0 g';
|
100 |
-
$this->TextColor='0 g';
|
101 |
-
$this->ColorFlag=false;
|
102 |
-
$this->ws=0;
|
103 |
-
//Standard fonts
|
104 |
-
$this->CoreFonts=array('courier'=>'Courier', 'courierB'=>'Courier-Bold', 'courierI'=>'Courier-Oblique', 'courierBI'=>'Courier-BoldOblique',
|
105 |
-
'helvetica'=>'Helvetica', 'helveticaB'=>'Helvetica-Bold', 'helveticaI'=>'Helvetica-Oblique', 'helveticaBI'=>'Helvetica-BoldOblique',
|
106 |
-
'times'=>'Times-Roman', 'timesB'=>'Times-Bold', 'timesI'=>'Times-Italic', 'timesBI'=>'Times-BoldItalic',
|
107 |
-
'symbol'=>'Symbol', 'zapfdingbats'=>'ZapfDingbats');
|
108 |
-
//Scale factor
|
109 |
-
if($unit=='pt')
|
110 |
-
$this->k=1;
|
111 |
-
elseif($unit=='mm')
|
112 |
-
$this->k=72/25.4;
|
113 |
-
elseif($unit=='cm')
|
114 |
-
$this->k=72/2.54;
|
115 |
-
elseif($unit=='in')
|
116 |
-
$this->k=72;
|
117 |
-
else
|
118 |
-
$this->Error('Incorrect unit: '.$unit);
|
119 |
-
//Page format
|
120 |
-
$this->PageFormats=array('a3'=>array(841.89,1190.55), 'a4'=>array(595.28,841.89), 'a5'=>array(420.94,595.28),
|
121 |
-
'letter'=>array(612,792), 'legal'=>array(612,1008));
|
122 |
-
if(is_string($format))
|
123 |
-
$format=$this->_getpageformat($format);
|
124 |
-
$this->DefPageFormat=$format;
|
125 |
-
$this->CurPageFormat=$format;
|
126 |
-
//Page orientation
|
127 |
-
$orientation=strtolower($orientation);
|
128 |
-
if($orientation=='p' || $orientation=='portrait')
|
129 |
-
{
|
130 |
-
$this->DefOrientation='P';
|
131 |
-
$this->w=$this->DefPageFormat[0];
|
132 |
-
$this->h=$this->DefPageFormat[1];
|
133 |
-
}
|
134 |
-
elseif($orientation=='l' || $orientation=='landscape')
|
135 |
-
{
|
136 |
-
$this->DefOrientation='L';
|
137 |
-
$this->w=$this->DefPageFormat[1];
|
138 |
-
$this->h=$this->DefPageFormat[0];
|
139 |
-
}
|
140 |
-
else
|
141 |
-
$this->Error('Incorrect orientation: '.$orientation);
|
142 |
-
$this->CurOrientation=$this->DefOrientation;
|
143 |
-
$this->wPt=$this->w*$this->k;
|
144 |
-
$this->hPt=$this->h*$this->k;
|
145 |
-
//Page margins (1 cm)
|
146 |
-
$margin=28.35/$this->k;
|
147 |
-
$this->SetMargins($margin,$margin);
|
148 |
-
//Interior cell margin (1 mm)
|
149 |
-
$this->cMargin=$margin/10;
|
150 |
-
//Line width (0.2 mm)
|
151 |
-
$this->LineWidth=.567/$this->k;
|
152 |
-
//Automatic page break
|
153 |
-
$this->SetAutoPageBreak(true,2*$margin);
|
154 |
-
//Full width display mode
|
155 |
-
$this->SetDisplayMode('fullwidth');
|
156 |
-
//Enable compression
|
157 |
-
$this->SetCompression(true);
|
158 |
-
//Set default PDF version number
|
159 |
-
$this->PDFVersion='1.3';
|
160 |
-
}
|
161 |
-
|
162 |
-
function SetMargins($left, $top, $right=null)
|
163 |
-
{
|
164 |
-
//Set left, top and right margins
|
165 |
-
$this->lMargin=$left;
|
166 |
-
$this->tMargin=$top;
|
167 |
-
if($right===null)
|
168 |
-
$right=$left;
|
169 |
-
$this->rMargin=$right;
|
170 |
-
}
|
171 |
-
|
172 |
-
function SetLeftMargin($margin)
|
173 |
-
{
|
174 |
-
//Set left margin
|
175 |
-
$this->lMargin=$margin;
|
176 |
-
if($this->page>0 && $this->x<$margin)
|
177 |
-
$this->x=$margin;
|
178 |
-
}
|
179 |
-
|
180 |
-
function SetTopMargin($margin)
|
181 |
-
{
|
182 |
-
//Set top margin
|
183 |
-
$this->tMargin=$margin;
|
184 |
-
}
|
185 |
-
|
186 |
-
function SetRightMargin($margin)
|
187 |
-
{
|
188 |
-
//Set right margin
|
189 |
-
$this->rMargin=$margin;
|
190 |
-
}
|
191 |
-
|
192 |
-
function SetAutoPageBreak($auto, $margin=0)
|
193 |
-
{
|
194 |
-
//Set auto page break mode and triggering margin
|
195 |
-
$this->AutoPageBreak=$auto;
|
196 |
-
$this->bMargin=$margin;
|
197 |
-
$this->PageBreakTrigger=$this->h-$margin;
|
198 |
-
}
|
199 |
-
|
200 |
-
function SetDisplayMode($zoom, $layout='continuous')
|
201 |
-
{
|
202 |
-
//Set display mode in viewer
|
203 |
-
if($zoom=='fullpage' || $zoom=='fullwidth' || $zoom=='real' || $zoom=='default' || !is_string($zoom))
|
204 |
-
$this->ZoomMode=$zoom;
|
205 |
-
else
|
206 |
-
$this->Error('Incorrect zoom display mode: '.$zoom);
|
207 |
-
if($layout=='single' || $layout=='continuous' || $layout=='two' || $layout=='default')
|
208 |
-
$this->LayoutMode=$layout;
|
209 |
-
else
|
210 |
-
$this->Error('Incorrect layout display mode: '.$layout);
|
211 |
-
}
|
212 |
-
|
213 |
-
function SetCompression($compress)
|
214 |
-
{
|
215 |
-
//Set page compression
|
216 |
-
if(function_exists('gzcompress'))
|
217 |
-
$this->compress=$compress;
|
218 |
-
else
|
219 |
-
$this->compress=false;
|
220 |
-
}
|
221 |
-
|
222 |
-
function SetTitle($title, $isUTF8=false)
|
223 |
-
{
|
224 |
-
//Title of document
|
225 |
-
if($isUTF8)
|
226 |
-
$title=$this->_UTF8toUTF16($title);
|
227 |
-
$this->title=$title;
|
228 |
-
}
|
229 |
-
|
230 |
-
function SetSubject($subject, $isUTF8=false)
|
231 |
-
{
|
232 |
-
//Subject of document
|
233 |
-
if($isUTF8)
|
234 |
-
$subject=$this->_UTF8toUTF16($subject);
|
235 |
-
$this->subject=$subject;
|
236 |
-
}
|
237 |
-
|
238 |
-
function SetAuthor($author, $isUTF8=false)
|
239 |
-
{
|
240 |
-
//Author of document
|
241 |
-
if($isUTF8)
|
242 |
-
$author=$this->_UTF8toUTF16($author);
|
243 |
-
$this->author=$author;
|
244 |
-
}
|
245 |
-
|
246 |
-
function SetKeywords($keywords, $isUTF8=false)
|
247 |
-
{
|
248 |
-
//Keywords of document
|
249 |
-
if($isUTF8)
|
250 |
-
$keywords=$this->_UTF8toUTF16($keywords);
|
251 |
-
$this->keywords=$keywords;
|
252 |
-
}
|
253 |
-
|
254 |
-
function SetCreator($creator, $isUTF8=false)
|
255 |
-
{
|
256 |
-
//Creator of document
|
257 |
-
if($isUTF8)
|
258 |
-
$creator=$this->_UTF8toUTF16($creator);
|
259 |
-
$this->creator=$creator;
|
260 |
-
}
|
261 |
-
|
262 |
-
function AliasNbPages($alias='{nb}')
|
263 |
-
{
|
264 |
-
//Define an alias for total number of pages
|
265 |
-
$this->AliasNbPages=$alias;
|
266 |
-
}
|
267 |
-
|
268 |
-
function Error($msg)
|
269 |
-
{
|
270 |
-
//Fatal error
|
271 |
-
die('<b>FPDF error:</b> '.$msg);
|
272 |
-
}
|
273 |
-
|
274 |
-
function Open()
|
275 |
-
{
|
276 |
-
//Begin document
|
277 |
-
$this->state=1;
|
278 |
-
}
|
279 |
-
|
280 |
-
function Close()
|
281 |
-
{
|
282 |
-
//Terminate document
|
283 |
-
if($this->state==3)
|
284 |
-
return;
|
285 |
-
if($this->page==0)
|
286 |
-
$this->AddPage();
|
287 |
-
//Page footer
|
288 |
-
$this->InFooter=true;
|
289 |
-
$this->Footer();
|
290 |
-
$this->InFooter=false;
|
291 |
-
//Close page
|
292 |
-
$this->_endpage();
|
293 |
-
//Close document
|
294 |
-
$this->_enddoc();
|
295 |
-
}
|
296 |
-
|
297 |
-
function AddPage($orientation='', $format='')
|
298 |
-
{
|
299 |
-
//Start a new page
|
300 |
-
if($this->state==0)
|
301 |
-
$this->Open();
|
302 |
-
$family=$this->FontFamily;
|
303 |
-
$style=$this->FontStyle.($this->underline ? 'U' : '');
|
304 |
-
$size=$this->FontSizePt;
|
305 |
-
$lw=$this->LineWidth;
|
306 |
-
$dc=$this->DrawColor;
|
307 |
-
$fc=$this->FillColor;
|
308 |
-
$tc=$this->TextColor;
|
309 |
-
$cf=$this->ColorFlag;
|
310 |
-
if($this->page>0)
|
311 |
-
{
|
312 |
-
//Page footer
|
313 |
-
$this->InFooter=true;
|
314 |
-
$this->Footer();
|
315 |
-
$this->InFooter=false;
|
316 |
-
//Close page
|
317 |
-
$this->_endpage();
|
318 |
-
}
|
319 |
-
//Start new page
|
320 |
-
$this->_beginpage($orientation,$format);
|
321 |
-
//Set line cap style to square
|
322 |
-
$this->_out('2 J');
|
323 |
-
//Set line width
|
324 |
-
$this->LineWidth=$lw;
|
325 |
-
$this->_out(sprintf('%.2F w',$lw*$this->k));
|
326 |
-
//Set font
|
327 |
-
if($family)
|
328 |
-
$this->SetFont($family,$style,$size);
|
329 |
-
//Set colors
|
330 |
-
$this->DrawColor=$dc;
|
331 |
-
if($dc!='0 G')
|
332 |
-
$this->_out($dc);
|
333 |
-
$this->FillColor=$fc;
|
334 |
-
if($fc!='0 g')
|
335 |
-
$this->_out($fc);
|
336 |
-
$this->TextColor=$tc;
|
337 |
-
$this->ColorFlag=$cf;
|
338 |
-
//Page header
|
339 |
-
$this->InHeader=true;
|
340 |
-
$this->Header();
|
341 |
-
$this->InHeader=false;
|
342 |
-
//Restore line width
|
343 |
-
if($this->LineWidth!=$lw)
|
344 |
-
{
|
345 |
-
$this->LineWidth=$lw;
|
346 |
-
$this->_out(sprintf('%.2F w',$lw*$this->k));
|
347 |
-
}
|
348 |
-
//Restore font
|
349 |
-
if($family)
|
350 |
-
$this->SetFont($family,$style,$size);
|
351 |
-
//Restore colors
|
352 |
-
if($this->DrawColor!=$dc)
|
353 |
-
{
|
354 |
-
$this->DrawColor=$dc;
|
355 |
-
$this->_out($dc);
|
356 |
-
}
|
357 |
-
if($this->FillColor!=$fc)
|
358 |
-
{
|
359 |
-
$this->FillColor=$fc;
|
360 |
-
$this->_out($fc);
|
361 |
-
}
|
362 |
-
$this->TextColor=$tc;
|
363 |
-
$this->ColorFlag=$cf;
|
364 |
-
}
|
365 |
-
|
366 |
-
function Header()
|
367 |
-
{
|
368 |
-
//To be implemented in your own inherited class
|
369 |
-
}
|
370 |
-
|
371 |
-
function Footer()
|
372 |
-
{
|
373 |
-
//To be implemented in your own inherited class
|
374 |
-
}
|
375 |
-
|
376 |
-
function PageNo()
|
377 |
-
{
|
378 |
-
//Get current page number
|
379 |
-
return $this->page;
|
380 |
-
}
|
381 |
-
|
382 |
-
function SetDrawColor($r, $g=null, $b=null)
|
383 |
-
{
|
384 |
-
//Set color for all stroking operations
|
385 |
-
if(($r==0 && $g==0 && $b==0) || $g===null)
|
386 |
-
$this->DrawColor=sprintf('%.3F G',$r/255);
|
387 |
-
else
|
388 |
-
$this->DrawColor=sprintf('%.3F %.3F %.3F RG',$r/255,$g/255,$b/255);
|
389 |
-
if($this->page>0)
|
390 |
-
$this->_out($this->DrawColor);
|
391 |
-
}
|
392 |
-
|
393 |
-
function SetFillColor($r, $g=null, $b=null)
|
394 |
-
{
|
395 |
-
//Set color for all filling operations
|
396 |
-
if(($r==0 && $g==0 && $b==0) || $g===null)
|
397 |
-
$this->FillColor=sprintf('%.3F g',$r/255);
|
398 |
-
else
|
399 |
-
$this->FillColor=sprintf('%.3F %.3F %.3F rg',$r/255,$g/255,$b/255);
|
400 |
-
$this->ColorFlag=($this->FillColor!=$this->TextColor);
|
401 |
-
if($this->page>0)
|
402 |
-
$this->_out($this->FillColor);
|
403 |
-
}
|
404 |
-
|
405 |
-
function SetTextColor($r, $g=null, $b=null)
|
406 |
-
{
|
407 |
-
//Set color for text
|
408 |
-
if(($r==0 && $g==0 && $b==0) || $g===null)
|
409 |
-
$this->TextColor=sprintf('%.3F g',$r/255);
|
410 |
-
else
|
411 |
-
$this->TextColor=sprintf('%.3F %.3F %.3F rg',$r/255,$g/255,$b/255);
|
412 |
-
$this->ColorFlag=($this->FillColor!=$this->TextColor);
|
413 |
-
}
|
414 |
-
|
415 |
-
function GetStringWidth($s)
|
416 |
-
{
|
417 |
-
//Get width of a string in the current font
|
418 |
-
$s=(string)$s;
|
419 |
-
$cw=&$this->CurrentFont['cw'];
|
420 |
-
$w=0;
|
421 |
-
$l=strlen($s);
|
422 |
-
for($i=0;$i<$l;$i++)
|
423 |
-
$w+=$cw[$s[$i]];
|
424 |
-
return $w*$this->FontSize/1000;
|
425 |
-
}
|
426 |
-
|
427 |
-
function SetLineWidth($width)
|
428 |
-
{
|
429 |
-
//Set line width
|
430 |
-
$this->LineWidth=$width;
|
431 |
-
if($this->page>0)
|
432 |
-
$this->_out(sprintf('%.2F w',$width*$this->k));
|
433 |
-
}
|
434 |
-
|
435 |
-
function Line($x1, $y1, $x2, $y2)
|
436 |
-
{
|
437 |
-
//Draw a line
|
438 |
-
$this->_out(sprintf('%.2F %.2F m %.2F %.2F l S',$x1*$this->k,($this->h-$y1)*$this->k,$x2*$this->k,($this->h-$y2)*$this->k));
|
439 |
-
}
|
440 |
-
|
441 |
-
function Rect($x, $y, $w, $h, $style='')
|
442 |
-
{
|
443 |
-
//Draw a rectangle
|
444 |
-
if($style=='F')
|
445 |
-
$op='f';
|
446 |
-
elseif($style=='FD' || $style=='DF')
|
447 |
-
$op='B';
|
448 |
-
else
|
449 |
-
$op='S';
|
450 |
-
$this->_out(sprintf('%.2F %.2F %.2F %.2F re %s',$x*$this->k,($this->h-$y)*$this->k,$w*$this->k,-$h*$this->k,$op));
|
451 |
-
}
|
452 |
-
|
453 |
-
function AddFont($family, $style='', $file='')
|
454 |
-
{
|
455 |
-
//Add a TrueType or Type1 font
|
456 |
-
$family=strtolower($family);
|
457 |
-
if($file=='')
|
458 |
-
$file=str_replace(' ','',$family).strtolower($style).'.php';
|
459 |
-
if($family=='arial')
|
460 |
-
$family='helvetica';
|
461 |
-
$style=strtoupper($style);
|
462 |
-
if($style=='IB')
|
463 |
-
$style='BI';
|
464 |
-
$fontkey=$family.$style;
|
465 |
-
if(isset($this->fonts[$fontkey]))
|
466 |
-
return;
|
467 |
-
include($this->_getfontpath().$file);
|
468 |
-
if(!isset($name))
|
469 |
-
$this->Error('Could not include font definition file');
|
470 |
-
$i=count($this->fonts)+1;
|
471 |
-
$this->fonts[$fontkey]=array('i'=>$i, 'type'=>$type, 'name'=>$name, 'desc'=>$desc, 'up'=>$up, 'ut'=>$ut, 'cw'=>$cw, 'enc'=>$enc, 'file'=>$file);
|
472 |
-
if($diff)
|
473 |
-
{
|
474 |
-
//Search existing encodings
|
475 |
-
$d=0;
|
476 |
-
$nb=count($this->diffs);
|
477 |
-
for($i=1;$i<=$nb;$i++)
|
478 |
-
{
|
479 |
-
if($this->diffs[$i]==$diff)
|
480 |
-
{
|
481 |
-
$d=$i;
|
482 |
-
break;
|
483 |
-
}
|
484 |
-
}
|
485 |
-
if($d==0)
|
486 |
-
{
|
487 |
-
$d=$nb+1;
|
488 |
-
$this->diffs[$d]=$diff;
|
489 |
-
}
|
490 |
-
$this->fonts[$fontkey]['diff']=$d;
|
491 |
-
}
|
492 |
-
if($file)
|
493 |
-
{
|
494 |
-
if($type=='TrueType')
|
495 |
-
$this->FontFiles[$file]=array('length1'=>$originalsize);
|
496 |
-
else
|
497 |
-
$this->FontFiles[$file]=array('length1'=>$size1, 'length2'=>$size2);
|
498 |
-
}
|
499 |
-
}
|
500 |
-
|
501 |
-
function SetFont($family, $style='', $size=0)
|
502 |
-
{
|
503 |
-
//Select a font; size given in points
|
504 |
-
global $fpdf_charwidths;
|
505 |
-
|
506 |
-
$family=strtolower($family);
|
507 |
-
if($family=='')
|
508 |
-
$family=$this->FontFamily;
|
509 |
-
if($family=='arial')
|
510 |
-
$family='helvetica';
|
511 |
-
elseif($family=='symbol' || $family=='zapfdingbats')
|
512 |
-
$style='';
|
513 |
-
$style=strtoupper($style);
|
514 |
-
if(strpos($style,'U')!==false)
|
515 |
-
{
|
516 |
-
$this->underline=true;
|
517 |
-
$style=str_replace('U','',$style);
|
518 |
-
}
|
519 |
-
else
|
520 |
-
$this->underline=false;
|
521 |
-
if($style=='IB')
|
522 |
-
$style='BI';
|
523 |
-
if($size==0)
|
524 |
-
$size=$this->FontSizePt;
|
525 |
-
//Test if font is already selected
|
526 |
-
if($this->FontFamily==$family && $this->FontStyle==$style && $this->FontSizePt==$size)
|
527 |
-
return;
|
528 |
-
//Test if used for the first time
|
529 |
-
$fontkey=$family.$style;
|
530 |
-
if(!isset($this->fonts[$fontkey]))
|
531 |
-
{
|
532 |
-
//Check if one of the standard fonts
|
533 |
-
if(isset($this->CoreFonts[$fontkey]))
|
534 |
-
{
|
535 |
-
if(!isset($fpdf_charwidths[$fontkey]))
|
536 |
-
{
|
537 |
-
//Load metric file
|
538 |
-
$file=$family;
|
539 |
-
if($family=='times' || $family=='helvetica')
|
540 |
-
$file.=strtolower($style);
|
541 |
-
require_once($this->_getfontpath().$file.'.php');
|
542 |
-
if(!isset($fpdf_charwidths[$fontkey]))
|
543 |
-
$this->Error('Could not include font metric file');
|
544 |
-
}
|
545 |
-
$i=count($this->fonts)+1;
|
546 |
-
$name=$this->CoreFonts[$fontkey];
|
547 |
-
$cw=$fpdf_charwidths[$fontkey];
|
548 |
-
$this->fonts[$fontkey]=array('i'=>$i, 'type'=>'core', 'name'=>$name, 'up'=>-100, 'ut'=>50, 'cw'=>$cw);
|
549 |
-
}
|
550 |
-
else
|
551 |
-
$this->Error('Undefined font: '.$family.' '.$style);
|
552 |
-
}
|
553 |
-
//Select it
|
554 |
-
$this->FontFamily=$family;
|
555 |
-
$this->FontStyle=$style;
|
556 |
-
$this->FontSizePt=$size;
|
557 |
-
$this->FontSize=$size/$this->k;
|
558 |
-
$this->CurrentFont=&$this->fonts[$fontkey];
|
559 |
-
if($this->page>0)
|
560 |
-
$this->_out(sprintf('BT /F%d %.2F Tf ET',$this->CurrentFont['i'],$this->FontSizePt));
|
561 |
-
}
|
562 |
-
|
563 |
-
function SetFontSize($size)
|
564 |
-
{
|
565 |
-
//Set font size in points
|
566 |
-
if($this->FontSizePt==$size)
|
567 |
-
return;
|
568 |
-
$this->FontSizePt=$size;
|
569 |
-
$this->FontSize=$size/$this->k;
|
570 |
-
if($this->page>0)
|
571 |
-
$this->_out(sprintf('BT /F%d %.2F Tf ET',$this->CurrentFont['i'],$this->FontSizePt));
|
572 |
-
}
|
573 |
-
|
574 |
-
function AddLink()
|
575 |
-
{
|
576 |
-
//Create a new internal link
|
577 |
-
$n=count($this->links)+1;
|
578 |
-
$this->links[$n]=array(0, 0);
|
579 |
-
return $n;
|
580 |
-
}
|
581 |
-
|
582 |
-
function SetLink($link, $y=0, $page=-1)
|
583 |
-
{
|
584 |
-
//Set destination of internal link
|
585 |
-
if($y==-1)
|
586 |
-
$y=$this->y;
|
587 |
-
if($page==-1)
|
588 |
-
$page=$this->page;
|
589 |
-
$this->links[$link]=array($page, $y);
|
590 |
-
}
|
591 |
-
|
592 |
-
function Link($x, $y, $w, $h, $link)
|
593 |
-
{
|
594 |
-
//Put a link on the page
|
595 |
-
$this->PageLinks[$this->page][]=array($x*$this->k, $this->hPt-$y*$this->k, $w*$this->k, $h*$this->k, $link);
|
596 |
-
}
|
597 |
-
|
598 |
-
function Text($x, $y, $txt)
|
599 |
-
{
|
600 |
-
//Output a string
|
601 |
-
$s=sprintf('BT %.2F %.2F Td (%s) Tj ET',$x*$this->k,($this->h-$y)*$this->k,$this->_escape($txt));
|
602 |
-
if($this->underline && $txt!='')
|
603 |
-
$s.=' '.$this->_dounderline($x,$y,$txt);
|
604 |
-
if($this->ColorFlag)
|
605 |
-
$s='q '.$this->TextColor.' '.$s.' Q';
|
606 |
-
$this->_out($s);
|
607 |
-
}
|
608 |
-
|
609 |
-
function AcceptPageBreak()
|
610 |
-
{
|
611 |
-
//Accept automatic page break or not
|
612 |
-
return $this->AutoPageBreak;
|
613 |
-
}
|
614 |
-
|
615 |
-
function Cell($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=false, $link='')
|
616 |
-
{
|
617 |
-
//Output a cell
|
618 |
-
$k=$this->k;
|
619 |
-
if($this->y+$h>$this->PageBreakTrigger && !$this->InHeader && !$this->InFooter && $this->AcceptPageBreak())
|
620 |
-
{
|
621 |
-
//Automatic page break
|
622 |
-
$x=$this->x;
|
623 |
-
$ws=$this->ws;
|
624 |
-
if($ws>0)
|
625 |
-
{
|
626 |
-
$this->ws=0;
|
627 |
-
$this->_out('0 Tw');
|
628 |
-
}
|
629 |
-
$this->AddPage($this->CurOrientation,$this->CurPageFormat);
|
630 |
-
$this->x=$x;
|
631 |
-
if($ws>0)
|
632 |
-
{
|
633 |
-
$this->ws=$ws;
|
634 |
-
$this->_out(sprintf('%.3F Tw',$ws*$k));
|
635 |
-
}
|
636 |
-
}
|
637 |
-
if($w==0)
|
638 |
-
$w=$this->w-$this->rMargin-$this->x;
|
639 |
-
$s='';
|
640 |
-
if($fill || $border==1)
|
641 |
-
{
|
642 |
-
if($fill)
|
643 |
-
$op=($border==1) ? 'B' : 'f';
|
644 |
-
else
|
645 |
-
$op='S';
|
646 |
-
$s=sprintf('%.2F %.2F %.2F %.2F re %s ',$this->x*$k,($this->h-$this->y)*$k,$w*$k,-$h*$k,$op);
|
647 |
-
}
|
648 |
-
if(is_string($border))
|
649 |
-
{
|
650 |
-
$x=$this->x;
|
651 |
-
$y=$this->y;
|
652 |
-
if(strpos($border,'L')!==false)
|
653 |
-
$s.=sprintf('%.2F %.2F m %.2F %.2F l S ',$x*$k,($this->h-$y)*$k,$x*$k,($this->h-($y+$h))*$k);
|
654 |
-
if(strpos($border,'T')!==false)
|
655 |
-
$s.=sprintf('%.2F %.2F m %.2F %.2F l S ',$x*$k,($this->h-$y)*$k,($x+$w)*$k,($this->h-$y)*$k);
|
656 |
-
if(strpos($border,'R')!==false)
|
657 |
-
$s.=sprintf('%.2F %.2F m %.2F %.2F l S ',($x+$w)*$k,($this->h-$y)*$k,($x+$w)*$k,($this->h-($y+$h))*$k);
|
658 |
-
if(strpos($border,'B')!==false)
|
659 |
-
$s.=sprintf('%.2F %.2F m %.2F %.2F l S ',$x*$k,($this->h-($y+$h))*$k,($x+$w)*$k,($this->h-($y+$h))*$k);
|
660 |
-
}
|
661 |
-
if($txt!=='')
|
662 |
-
{
|
663 |
-
if($align=='R')
|
664 |
-
$dx=$w-$this->cMargin-$this->GetStringWidth($txt);
|
665 |
-
elseif($align=='C')
|
666 |
-
$dx=($w-$this->GetStringWidth($txt))/2;
|
667 |
-
else
|
668 |
-
$dx=$this->cMargin;
|
669 |
-
if($this->ColorFlag)
|
670 |
-
$s.='q '.$this->TextColor.' ';
|
671 |
-
$txt2=str_replace(')','\\)',str_replace('(','\\(',str_replace('\\','\\\\',$txt)));
|
672 |
-
$s.=sprintf('BT %.2F %.2F Td (%s) Tj ET',($this->x+$dx)*$k,($this->h-($this->y+.5*$h+.3*$this->FontSize))*$k,$txt2);
|
673 |
-
if($this->underline)
|
674 |
-
$s.=' '.$this->_dounderline($this->x+$dx,$this->y+.5*$h+.3*$this->FontSize,$txt);
|
675 |
-
if($this->ColorFlag)
|
676 |
-
$s.=' Q';
|
677 |
-
if($link)
|
678 |
-
$this->Link($this->x+$dx,$this->y+.5*$h-.5*$this->FontSize,$this->GetStringWidth($txt),$this->FontSize,$link);
|
679 |
-
}
|
680 |
-
if($s)
|
681 |
-
$this->_out($s);
|
682 |
-
$this->lasth=$h;
|
683 |
-
if($ln>0)
|
684 |
-
{
|
685 |
-
//Go to next line
|
686 |
-
$this->y+=$h;
|
687 |
-
if($ln==1)
|
688 |
-
$this->x=$this->lMargin;
|
689 |
-
}
|
690 |
-
else
|
691 |
-
$this->x+=$w;
|
692 |
-
}
|
693 |
-
|
694 |
-
function MultiCell($w, $h, $txt, $border=0, $align='J', $fill=false)
|
695 |
-
{
|
696 |
-
//Output text with automatic or explicit line breaks
|
697 |
-
$cw=&$this->CurrentFont['cw'];
|
698 |
-
if($w==0)
|
699 |
-
$w=$this->w-$this->rMargin-$this->x;
|
700 |
-
$wmax=($w-2*$this->cMargin)*1000/$this->FontSize;
|
701 |
-
$s=str_replace("\r",'',$txt);
|
702 |
-
$nb=strlen($s);
|
703 |
-
if($nb>0 && $s[$nb-1]=="\n")
|
704 |
-
$nb--;
|
705 |
-
$b=0;
|
706 |
-
if($border)
|
707 |
-
{
|
708 |
-
if($border==1)
|
709 |
-
{
|
710 |
-
$border='LTRB';
|
711 |
-
$b='LRT';
|
712 |
-
$b2='LR';
|
713 |
-
}
|
714 |
-
else
|
715 |
-
{
|
716 |
-
$b2='';
|
717 |
-
if(strpos($border,'L')!==false)
|
718 |
-
$b2.='L';
|
719 |
-
if(strpos($border,'R')!==false)
|
720 |
-
$b2.='R';
|
721 |
-
$b=(strpos($border,'T')!==false) ? $b2.'T' : $b2;
|
722 |
-
}
|
723 |
-
}
|
724 |
-
$sep=-1;
|
725 |
-
$i=0;
|
726 |
-
$j=0;
|
727 |
-
$l=0;
|
728 |
-
$ns=0;
|
729 |
-
$nl=1;
|
730 |
-
while($i<$nb)
|
731 |
-
{
|
732 |
-
//Get next character
|
733 |
-
$c=$s[$i];
|
734 |
-
if($c=="\n")
|
735 |
-
{
|
736 |
-
//Explicit line break
|
737 |
-
if($this->ws>0)
|
738 |
-
{
|
739 |
-
$this->ws=0;
|
740 |
-
$this->_out('0 Tw');
|
741 |
-
}
|
742 |
-
$this->Cell($w,$h,substr($s,$j,$i-$j),$b,2,$align,$fill);
|
743 |
-
$i++;
|
744 |
-
$sep=-1;
|
745 |
-
$j=$i;
|
746 |
-
$l=0;
|
747 |
-
$ns=0;
|
748 |
-
$nl++;
|
749 |
-
if($border && $nl==2)
|
750 |
-
$b=$b2;
|
751 |
-
continue;
|
752 |
-
}
|
753 |
-
if($c==' ')
|
754 |
-
{
|
755 |
-
$sep=$i;
|
756 |
-
$ls=$l;
|
757 |
-
$ns++;
|
758 |
-
}
|
759 |
-
$l+=$cw[$c];
|
760 |
-
if($l>$wmax)
|
761 |
-
{
|
762 |
-
//Automatic line break
|
763 |
-
if($sep==-1)
|
764 |
-
{
|
765 |
-
if($i==$j)
|
766 |
-
$i++;
|
767 |
-
if($this->ws>0)
|
768 |
-
{
|
769 |
-
$this->ws=0;
|
770 |
-
$this->_out('0 Tw');
|
771 |
-
}
|
772 |
-
$this->Cell($w,$h,substr($s,$j,$i-$j),$b,2,$align,$fill);
|
773 |
-
}
|
774 |
-
else
|
775 |
-
{
|
776 |
-
if($align=='J')
|
777 |
-
{
|
778 |
-
$this->ws=($ns>1) ? ($wmax-$ls)/1000*$this->FontSize/($ns-1) : 0;
|
779 |
-
$this->_out(sprintf('%.3F Tw',$this->ws*$this->k));
|
780 |
-
}
|
781 |
-
$this->Cell($w,$h,substr($s,$j,$sep-$j),$b,2,$align,$fill);
|
782 |
-
$i=$sep+1;
|
783 |
-
}
|
784 |
-
$sep=-1;
|
785 |
-
$j=$i;
|
786 |
-
$l=0;
|
787 |
-
$ns=0;
|
788 |
-
$nl++;
|
789 |
-
if($border && $nl==2)
|
790 |
-
$b=$b2;
|
791 |
-
}
|
792 |
-
else
|
793 |
-
$i++;
|
794 |
-
}
|
795 |
-
//Last chunk
|
796 |
-
if($this->ws>0)
|
797 |
-
{
|
798 |
-
$this->ws=0;
|
799 |
-
$this->_out('0 Tw');
|
800 |
-
}
|
801 |
-
if($border && strpos($border,'B')!==false)
|
802 |
-
$b.='B';
|
803 |
-
$this->Cell($w,$h,substr($s,$j,$i-$j),$b,2,$align,$fill);
|
804 |
-
$this->x=$this->lMargin;
|
805 |
-
}
|
806 |
-
|
807 |
-
function Write($h, $txt, $link='')
|
808 |
-
{
|
809 |
-
//Output text in flowing mode
|
810 |
-
$cw=&$this->CurrentFont['cw'];
|
811 |
-
$w=$this->w-$this->rMargin-$this->x;
|
812 |
-
$wmax=($w-2*$this->cMargin)*1000/$this->FontSize;
|
813 |
-
$s=str_replace("\r",'',$txt);
|
814 |
-
$nb=strlen($s);
|
815 |
-
$sep=-1;
|
816 |
-
$i=0;
|
817 |
-
$j=0;
|
818 |
-
$l=0;
|
819 |
-
$nl=1;
|
820 |
-
while($i<$nb)
|
821 |
-
{
|
822 |
-
//Get next character
|
823 |
-
$c=$s[$i];
|
824 |
-
if($c=="\n")
|
825 |
-
{
|
826 |
-
//Explicit line break
|
827 |
-
$this->Cell($w,$h,substr($s,$j,$i-$j),0,2,'',0,$link);
|
828 |
-
$i++;
|
829 |
-
$sep=-1;
|
830 |
-
$j=$i;
|
831 |
-
$l=0;
|
832 |
-
if($nl==1)
|
833 |
-
{
|
834 |
-
$this->x=$this->lMargin;
|
835 |
-
$w=$this->w-$this->rMargin-$this->x;
|
836 |
-
$wmax=($w-2*$this->cMargin)*1000/$this->FontSize;
|
837 |
-
}
|
838 |
-
$nl++;
|
839 |
-
continue;
|
840 |
-
}
|
841 |
-
if($c==' ')
|
842 |
-
$sep=$i;
|
843 |
-
$l+=$cw[$c];
|
844 |
-
if($l>$wmax)
|
845 |
-
{
|
846 |
-
//Automatic line break
|
847 |
-
if($sep==-1)
|
848 |
-
{
|
849 |
-
if($this->x>$this->lMargin)
|
850 |
-
{
|
851 |
-
//Move to next line
|
852 |
-
$this->x=$this->lMargin;
|
853 |
-
$this->y+=$h;
|
854 |
-
$w=$this->w-$this->rMargin-$this->x;
|
855 |
-
$wmax=($w-2*$this->cMargin)*1000/$this->FontSize;
|
856 |
-
$i++;
|
857 |
-
$nl++;
|
858 |
-
continue;
|
859 |
-
}
|
860 |
-
if($i==$j)
|
861 |
-
$i++;
|
862 |
-
$this->Cell($w,$h,substr($s,$j,$i-$j),0,2,'',0,$link);
|
863 |
-
}
|
864 |
-
else
|
865 |
-
{
|
866 |
-
$this->Cell($w,$h,substr($s,$j,$sep-$j),0,2,'',0,$link);
|
867 |
-
$i=$sep+1;
|
868 |
-
}
|
869 |
-
$sep=-1;
|
870 |
-
$j=$i;
|
871 |
-
$l=0;
|
872 |
-
if($nl==1)
|
873 |
-
{
|
874 |
-
$this->x=$this->lMargin;
|
875 |
-
$w=$this->w-$this->rMargin-$this->x;
|
876 |
-
$wmax=($w-2*$this->cMargin)*1000/$this->FontSize;
|
877 |
-
}
|
878 |
-
$nl++;
|
879 |
-
}
|
880 |
-
else
|
881 |
-
$i++;
|
882 |
-
}
|
883 |
-
//Last chunk
|
884 |
-
if($i!=$j)
|
885 |
-
$this->Cell($l/1000*$this->FontSize,$h,substr($s,$j),0,0,'',0,$link);
|
886 |
-
}
|
887 |
-
|
888 |
-
function Ln($h=null)
|
889 |
-
{
|
890 |
-
//Line feed; default value is last cell height
|
891 |
-
$this->x=$this->lMargin;
|
892 |
-
if($h===null)
|
893 |
-
$this->y+=$this->lasth;
|
894 |
-
else
|
895 |
-
$this->y+=$h;
|
896 |
-
}
|
897 |
-
|
898 |
-
function Image($file, $x=null, $y=null, $w=0, $h=0, $type='', $link='')
|
899 |
-
{
|
900 |
-
//Put an image on the page
|
901 |
-
if(!isset($this->images[$file]))
|
902 |
-
{
|
903 |
-
//First use of this image, get info
|
904 |
-
if($type=='')
|
905 |
-
{
|
906 |
-
$pos=strrpos($file,'.');
|
907 |
-
if(!$pos)
|
908 |
-
$this->Error('Image file has no extension and no type was specified: '.$file);
|
909 |
-
$type=substr($file,$pos+1);
|
910 |
-
}
|
911 |
-
$type=strtolower($type);
|
912 |
-
if($type=='jpeg')
|
913 |
-
$type='jpg';
|
914 |
-
$mtd='_parse'.$type;
|
915 |
-
if(!method_exists($this,$mtd))
|
916 |
-
$this->Error('Unsupported image type: '.$type);
|
917 |
-
$info=$this->$mtd($file);
|
918 |
-
$info['i']=count($this->images)+1;
|
919 |
-
$this->images[$file]=$info;
|
920 |
-
}
|
921 |
-
else
|
922 |
-
$info=$this->images[$file];
|
923 |
-
//Automatic width and height calculation if needed
|
924 |
-
if($w==0 && $h==0)
|
925 |
-
{
|
926 |
-
//Put image at 72 dpi
|
927 |
-
$w=$info['w']/$this->k;
|
928 |
-
$h=$info['h']/$this->k;
|
929 |
-
}
|
930 |
-
elseif($w==0)
|
931 |
-
$w=$h*$info['w']/$info['h'];
|
932 |
-
elseif($h==0)
|
933 |
-
$h=$w*$info['h']/$info['w'];
|
934 |
-
//Flowing mode
|
935 |
-
if($y===null)
|
936 |
-
{
|
937 |
-
if($this->y+$h>$this->PageBreakTrigger && !$this->InHeader && !$this->InFooter && $this->AcceptPageBreak())
|
938 |
-
{
|
939 |
-
//Automatic page break
|
940 |
-
$x2=$this->x;
|
941 |
-
$this->AddPage($this->CurOrientation,$this->CurPageFormat);
|
942 |
-
$this->x=$x2;
|
943 |
-
}
|
944 |
-
$y=$this->y;
|
945 |
-
$this->y+=$h;
|
946 |
-
}
|
947 |
-
if($x===null)
|
948 |
-
$x=$this->x;
|
949 |
-
$this->_out(sprintf('q %.2F 0 0 %.2F %.2F %.2F cm /I%d Do Q',$w*$this->k,$h*$this->k,$x*$this->k,($this->h-($y+$h))*$this->k,$info['i']));
|
950 |
-
if($link)
|
951 |
-
$this->Link($x,$y,$w,$h,$link);
|
952 |
-
}
|
953 |
-
|
954 |
-
function GetX()
|
955 |
-
{
|
956 |
-
//Get x position
|
957 |
-
return $this->x;
|
958 |
-
}
|
959 |
-
|
960 |
-
function SetX($x)
|
961 |
-
{
|
962 |
-
//Set x position
|
963 |
-
if($x>=0)
|
964 |
-
$this->x=$x;
|
965 |
-
else
|
966 |
-
$this->x=$this->w+$x;
|
967 |
-
}
|
968 |
-
|
969 |
-
function GetY()
|
970 |
-
{
|
971 |
-
//Get y position
|
972 |
-
return $this->y;
|
973 |
-
}
|
974 |
-
|
975 |
-
function SetY($y)
|
976 |
-
{
|
977 |
-
//Set y position and reset x
|
978 |
-
$this->x=$this->lMargin;
|
979 |
-
if($y>=0)
|
980 |
-
$this->y=$y;
|
981 |
-
else
|
982 |
-
$this->y=$this->h+$y;
|
983 |
-
}
|
984 |
-
|
985 |
-
function SetXY($x, $y)
|
986 |
-
{
|
987 |
-
//Set x and y positions
|
988 |
-
$this->SetY($y);
|
989 |
-
$this->SetX($x);
|
990 |
-
}
|
991 |
-
|
992 |
-
function Output($name='', $dest='')
|
993 |
-
{
|
994 |
-
//Output PDF to some destination
|
995 |
-
if($this->state<3)
|
996 |
-
$this->Close();
|
997 |
-
$dest=strtoupper($dest);
|
998 |
-
if($dest=='')
|
999 |
-
{
|
1000 |
-
if($name=='')
|
1001 |
-
{
|
1002 |
-
$name='doc.pdf';
|
1003 |
-
$dest='I';
|
1004 |
-
}
|
1005 |
-
else
|
1006 |
-
$dest='F';
|
1007 |
-
}
|
1008 |
-
switch($dest)
|
1009 |
-
{
|
1010 |
-
case 'I':
|
1011 |
-
//Send to standard output
|
1012 |
-
if(ob_get_length())
|
1013 |
-
$this->Error('Some data has already been output, can\'t send PDF file');
|
1014 |
-
if(php_sapi_name()!='cli')
|
1015 |
-
{
|
1016 |
-
//We send to a browser
|
1017 |
-
header('Content-Type: application/pdf');
|
1018 |
-
if(headers_sent())
|
1019 |
-
$this->Error('Some data has already been output, can\'t send PDF file');
|
1020 |
-
header('Content-Length: '.strlen($this->buffer));
|
1021 |
-
header('Content-Disposition: inline; filename="'.$name.'"');
|
1022 |
-
header('Cache-Control: private, max-age=0, must-revalidate');
|
1023 |
-
header('Pragma: public');
|
1024 |
-
ini_set('zlib.output_compression','0');
|
1025 |
-
}
|
1026 |
-
echo $this->buffer;
|
1027 |
-
break;
|
1028 |
-
case 'D':
|
1029 |
-
//Download file
|
1030 |
-
if(ob_get_length())
|
1031 |
-
$this->Error('Some data has already been output, can\'t send PDF file');
|
1032 |
-
header('Content-Type: application/x-download');
|
1033 |
-
if(headers_sent())
|
1034 |
-
$this->Error('Some data has already been output, can\'t send PDF file');
|
1035 |
-
header('Content-Length: '.strlen($this->buffer));
|
1036 |
-
header('Content-Disposition: attachment; filename="'.$name.'"');
|
1037 |
-
header('Cache-Control: private, max-age=0, must-revalidate');
|
1038 |
-
header('Pragma: public');
|
1039 |
-
ini_set('zlib.output_compression','0');
|
1040 |
-
echo $this->buffer;
|
1041 |
-
break;
|
1042 |
-
case 'F':
|
1043 |
-
//Save to local file
|
1044 |
-
$f=fopen($name,'wb');
|
1045 |
-
if(!$f)
|
1046 |
-
$this->Error('Unable to create output file: '.$name);
|
1047 |
-
fwrite($f,$this->buffer,strlen($this->buffer));
|
1048 |
-
fclose($f);
|
1049 |
-
break;
|
1050 |
-
case 'S':
|
1051 |
-
//Return as a string
|
1052 |
-
return $this->buffer;
|
1053 |
-
default:
|
1054 |
-
$this->Error('Incorrect output destination: '.$dest);
|
1055 |
-
}
|
1056 |
-
return '';
|
1057 |
-
}
|
1058 |
-
|
1059 |
-
/*******************************************************************************
|
1060 |
-
* *
|
1061 |
-
* Protected methods *
|
1062 |
-
* *
|
1063 |
-
*******************************************************************************/
|
1064 |
-
function _dochecks()
|
1065 |
-
{
|
1066 |
-
//Check availability of %F
|
1067 |
-
if(sprintf('%.1F',1.0)!='1.0')
|
1068 |
-
$this->Error('This version of PHP is not supported');
|
1069 |
-
//Check mbstring overloading
|
1070 |
-
if(ini_get('mbstring.func_overload') & 2)
|
1071 |
-
$this->Error('mbstring overloading must be disabled');
|
1072 |
-
//Disable runtime magic quotes
|
1073 |
-
if(get_magic_quotes_runtime())
|
1074 |
-
@set_magic_quotes_runtime(0);
|
1075 |
-
}
|
1076 |
-
|
1077 |
-
function _getpageformat($format)
|
1078 |
-
{
|
1079 |
-
$format=strtolower($format);
|
1080 |
-
if(!isset($this->PageFormats[$format]))
|
1081 |
-
$this->Error('Unknown page format: '.$format);
|
1082 |
-
$a=$this->PageFormats[$format];
|
1083 |
-
return array($a[0]/$this->k, $a[1]/$this->k);
|
1084 |
-
}
|
1085 |
-
|
1086 |
-
function _getfontpath()
|
1087 |
-
{
|
1088 |
-
if(!defined('FPDF_FONTPATH') && is_dir(dirname(__FILE__).'/font'))
|
1089 |
-
define('FPDF_FONTPATH',dirname(__FILE__).'/font/');
|
1090 |
-
return defined('FPDF_FONTPATH') ? FPDF_FONTPATH : '';
|
1091 |
-
}
|
1092 |
-
|
1093 |
-
function _beginpage($orientation, $format)
|
1094 |
-
{
|
1095 |
-
$this->page++;
|
1096 |
-
$this->pages[$this->page]='';
|
1097 |
-
$this->state=2;
|
1098 |
-
$this->x=$this->lMargin;
|
1099 |
-
$this->y=$this->tMargin;
|
1100 |
-
$this->FontFamily='';
|
1101 |
-
//Check page size
|
1102 |
-
if($orientation=='')
|
1103 |
-
$orientation=$this->DefOrientation;
|
1104 |
-
else
|
1105 |
-
$orientation=strtoupper($orientation[0]);
|
1106 |
-
if($format=='')
|
1107 |
-
$format=$this->DefPageFormat;
|
1108 |
-
else
|
1109 |
-
{
|
1110 |
-
if(is_string($format))
|
1111 |
-
$format=$this->_getpageformat($format);
|
1112 |
-
}
|
1113 |
-
if($orientation!=$this->CurOrientation || $format[0]!=$this->CurPageFormat[0] || $format[1]!=$this->CurPageFormat[1])
|
1114 |
-
{
|
1115 |
-
//New size
|
1116 |
-
if($orientation=='P')
|
1117 |
-
{
|
1118 |
-
$this->w=$format[0];
|
1119 |
-
$this->h=$format[1];
|
1120 |
-
}
|
1121 |
-
else
|
1122 |
-
{
|
1123 |
-
$this->w=$format[1];
|
1124 |
-
$this->h=$format[0];
|
1125 |
-
}
|
1126 |
-
$this->wPt=$this->w*$this->k;
|
1127 |
-
$this->hPt=$this->h*$this->k;
|
1128 |
-
$this->PageBreakTrigger=$this->h-$this->bMargin;
|
1129 |
-
$this->CurOrientation=$orientation;
|
1130 |
-
$this->CurPageFormat=$format;
|
1131 |
-
}
|
1132 |
-
if($orientation!=$this->DefOrientation || $format[0]!=$this->DefPageFormat[0] || $format[1]!=$this->DefPageFormat[1])
|
1133 |
-
$this->PageSizes[$this->page]=array($this->wPt, $this->hPt);
|
1134 |
-
}
|
1135 |
-
|
1136 |
-
function _endpage()
|
1137 |
-
{
|
1138 |
-
$this->state=1;
|
1139 |
-
}
|
1140 |
-
|
1141 |
-
function _escape($s)
|
1142 |
-
{
|
1143 |
-
//Escape special characters in strings
|
1144 |
-
$s=str_replace('\\','\\\\',$s);
|
1145 |
-
$s=str_replace('(','\\(',$s);
|
1146 |
-
$s=str_replace(')','\\)',$s);
|
1147 |
-
$s=str_replace("\r",'\\r',$s);
|
1148 |
-
return $s;
|
1149 |
-
}
|
1150 |
-
|
1151 |
-
function _textstring($s)
|
1152 |
-
{
|
1153 |
-
//Format a text string
|
1154 |
-
return '('.$this->_escape($s).')';
|
1155 |
-
}
|
1156 |
-
|
1157 |
-
function _UTF8toUTF16($s)
|
1158 |
-
{
|
1159 |
-
//Convert UTF-8 to UTF-16BE with BOM
|
1160 |
-
$res="\xFE\xFF";
|
1161 |
-
$nb=strlen($s);
|
1162 |
-
$i=0;
|
1163 |
-
while($i<$nb)
|
1164 |
-
{
|
1165 |
-
$c1=ord($s[$i++]);
|
1166 |
-
if($c1>=224)
|
1167 |
-
{
|
1168 |
-
//3-byte character
|
1169 |
-
$c2=ord($s[$i++]);
|
1170 |
-
$c3=ord($s[$i++]);
|
1171 |
-
$res.=chr((($c1 & 0x0F)<<4) + (($c2 & 0x3C)>>2));
|
1172 |
-
$res.=chr((($c2 & 0x03)<<6) + ($c3 & 0x3F));
|
1173 |
-
}
|
1174 |
-
elseif($c1>=192)
|
1175 |
-
{
|
1176 |
-
//2-byte character
|
1177 |
-
$c2=ord($s[$i++]);
|
1178 |
-
$res.=chr(($c1 & 0x1C)>>2);
|
1179 |
-
$res.=chr((($c1 & 0x03)<<6) + ($c2 & 0x3F));
|
1180 |
-
}
|
1181 |
-
else
|
1182 |
-
{
|
1183 |
-
//Single-byte character
|
1184 |
-
$res.="\0".chr($c1);
|
1185 |
-
}
|
1186 |
-
}
|
1187 |
-
return $res;
|
1188 |
-
}
|
1189 |
-
|
1190 |
-
function _dounderline($x, $y, $txt)
|
1191 |
-
{
|
1192 |
-
//Underline text
|
1193 |
-
$up=$this->CurrentFont['up'];
|
1194 |
-
$ut=$this->CurrentFont['ut'];
|
1195 |
-
$w=$this->GetStringWidth($txt)+$this->ws*substr_count($txt,' ');
|
1196 |
-
return sprintf('%.2F %.2F %.2F %.2F re f',$x*$this->k,($this->h-($y-$up/1000*$this->FontSize))*$this->k,$w*$this->k,-$ut/1000*$this->FontSizePt);
|
1197 |
-
}
|
1198 |
-
|
1199 |
-
function _parsejpg($file)
|
1200 |
-
{
|
1201 |
-
//Extract info from a JPEG file
|
1202 |
-
$a=GetImageSize($file);
|
1203 |
-
if(!$a)
|
1204 |
-
$this->Error('Missing or incorrect image file: '.$file);
|
1205 |
-
if($a[2]!=2)
|
1206 |
-
$this->Error('Not a JPEG file: '.$file);
|
1207 |
-
if(!isset($a['channels']) || $a['channels']==3)
|
1208 |
-
$colspace='DeviceRGB';
|
1209 |
-
elseif($a['channels']==4)
|
1210 |
-
$colspace='DeviceCMYK';
|
1211 |
-
else
|
1212 |
-
$colspace='DeviceGray';
|
1213 |
-
$bpc=isset($a['bits']) ? $a['bits'] : 8;
|
1214 |
-
//Read whole file
|
1215 |
-
$f=fopen($file,'rb');
|
1216 |
-
$data='';
|
1217 |
-
while(!feof($f))
|
1218 |
-
$data.=fread($f,8192);
|
1219 |
-
fclose($f);
|
1220 |
-
return array('w'=>$a[0], 'h'=>$a[1], 'cs'=>$colspace, 'bpc'=>$bpc, 'f'=>'DCTDecode', 'data'=>$data);
|
1221 |
-
}
|
1222 |
-
|
1223 |
-
function _parsepng($file)
|
1224 |
-
{
|
1225 |
-
//Extract info from a PNG file
|
1226 |
-
$f=fopen($file,'rb');
|
1227 |
-
if(!$f)
|
1228 |
-
$this->Error('Can\'t open image file: '.$file);
|
1229 |
-
//Check signature
|
1230 |
-
if($this->_readstream($f,8)!=chr(137).'PNG'.chr(13).chr(10).chr(26).chr(10))
|
1231 |
-
$this->Error('Not a PNG file: '.$file);
|
1232 |
-
//Read header chunk
|
1233 |
-
$this->_readstream($f,4);
|
1234 |
-
if($this->_readstream($f,4)!='IHDR')
|
1235 |
-
$this->Error('Incorrect PNG file: '.$file);
|
1236 |
-
$w=$this->_readint($f);
|
1237 |
-
$h=$this->_readint($f);
|
1238 |
-
$bpc=ord($this->_readstream($f,1));
|
1239 |
-
if($bpc>8)
|
1240 |
-
$this->Error('16-bit depth not supported: '.$file);
|
1241 |
-
$ct=ord($this->_readstream($f,1));
|
1242 |
-
if($ct==0)
|
1243 |
-
$colspace='DeviceGray';
|
1244 |
-
elseif($ct==2)
|
1245 |
-
$colspace='DeviceRGB';
|
1246 |
-
elseif($ct==3)
|
1247 |
-
$colspace='Indexed';
|
1248 |
-
else
|
1249 |
-
$this->Error('Alpha channel not supported: '.$file);
|
1250 |
-
if(ord($this->_readstream($f,1))!=0)
|
1251 |
-
$this->Error('Unknown compression method: '.$file);
|
1252 |
-
if(ord($this->_readstream($f,1))!=0)
|
1253 |
-
$this->Error('Unknown filter method: '.$file);
|
1254 |
-
if(ord($this->_readstream($f,1))!=0)
|
1255 |
-
$this->Error('Interlacing not supported: '.$file);
|
1256 |
-
$this->_readstream($f,4);
|
1257 |
-
$parms='/DecodeParms <</Predictor 15 /Colors '.($ct==2 ? 3 : 1).' /BitsPerComponent '.$bpc.' /Columns '.$w.'>>';
|
1258 |
-
//Scan chunks looking for palette, transparency and image data
|
1259 |
-
$pal='';
|
1260 |
-
$trns='';
|
1261 |
-
$data='';
|
1262 |
-
do
|
1263 |
-
{
|
1264 |
-
$n=$this->_readint($f);
|
1265 |
-
$type=$this->_readstream($f,4);
|
1266 |
-
if($type=='PLTE')
|
1267 |
-
{
|
1268 |
-
//Read palette
|
1269 |
-
$pal=$this->_readstream($f,$n);
|
1270 |
-
$this->_readstream($f,4);
|
1271 |
-
}
|
1272 |
-
elseif($type=='tRNS')
|
1273 |
-
{
|
1274 |
-
//Read transparency info
|
1275 |
-
$t=$this->_readstream($f,$n);
|
1276 |
-
if($ct==0)
|
1277 |
-
$trns=array(ord(substr($t,1,1)));
|
1278 |
-
elseif($ct==2)
|
1279 |
-
$trns=array(ord(substr($t,1,1)), ord(substr($t,3,1)), ord(substr($t,5,1)));
|
1280 |
-
else
|
1281 |
-
{
|
1282 |
-
$pos=strpos($t,chr(0));
|
1283 |
-
if($pos!==false)
|
1284 |
-
$trns=array($pos);
|
1285 |
-
}
|
1286 |
-
$this->_readstream($f,4);
|
1287 |
-
}
|
1288 |
-
elseif($type=='IDAT')
|
1289 |
-
{
|
1290 |
-
//Read image data block
|
1291 |
-
$data.=$this->_readstream($f,$n);
|
1292 |
-
$this->_readstream($f,4);
|
1293 |
-
}
|
1294 |
-
elseif($type=='IEND')
|
1295 |
-
break;
|
1296 |
-
else
|
1297 |
-
$this->_readstream($f,$n+4);
|
1298 |
-
}
|
1299 |
-
while($n);
|
1300 |
-
if($colspace=='Indexed' && empty($pal))
|
1301 |
-
$this->Error('Missing palette in '.$file);
|
1302 |
-
fclose($f);
|
1303 |
-
return array('w'=>$w, 'h'=>$h, 'cs'=>$colspace, 'bpc'=>$bpc, 'f'=>'FlateDecode', 'parms'=>$parms, 'pal'=>$pal, 'trns'=>$trns, 'data'=>$data);
|
1304 |
-
}
|
1305 |
-
|
1306 |
-
function _readstream($f, $n)
|
1307 |
-
{
|
1308 |
-
//Read n bytes from stream
|
1309 |
-
$res='';
|
1310 |
-
while($n>0 && !feof($f))
|
1311 |
-
{
|
1312 |
-
$s=fread($f,$n);
|
1313 |
-
if($s===false)
|
1314 |
-
$this->Error('Error while reading stream');
|
1315 |
-
$n-=strlen($s);
|
1316 |
-
$res.=$s;
|
1317 |
-
}
|
1318 |
-
if($n>0)
|
1319 |
-
$this->Error('Unexpected end of stream');
|
1320 |
-
return $res;
|
1321 |
-
}
|
1322 |
-
|
1323 |
-
function _readint($f)
|
1324 |
-
{
|
1325 |
-
//Read a 4-byte integer from stream
|
1326 |
-
$a=unpack('Ni',$this->_readstream($f,4));
|
1327 |
-
return $a['i'];
|
1328 |
-
}
|
1329 |
-
|
1330 |
-
function _parsegif($file)
|
1331 |
-
{
|
1332 |
-
//Extract info from a GIF file (via PNG conversion)
|
1333 |
-
if(!function_exists('imagepng'))
|
1334 |
-
$this->Error('GD extension is required for GIF support');
|
1335 |
-
if(!function_exists('imagecreatefromgif'))
|
1336 |
-
$this->Error('GD has no GIF read support');
|
1337 |
-
$im=imagecreatefromgif($file);
|
1338 |
-
if(!$im)
|
1339 |
-
$this->Error('Missing or incorrect image file: '.$file);
|
1340 |
-
imageinterlace($im,0);
|
1341 |
-
$tmp=tempnam('.','gif');
|
1342 |
-
if(!$tmp)
|
1343 |
-
$this->Error('Unable to create a temporary file');
|
1344 |
-
if(!imagepng($im,$tmp))
|
1345 |
-
$this->Error('Error while saving to temporary file');
|
1346 |
-
imagedestroy($im);
|
1347 |
-
$info=$this->_parsepng($tmp);
|
1348 |
-
unlink($tmp);
|
1349 |
-
return $info;
|
1350 |
-
}
|
1351 |
-
|
1352 |
-
function _newobj()
|
1353 |
-
{
|
1354 |
-
//Begin a new object
|
1355 |
-
$this->n++;
|
1356 |
-
$this->offsets[$this->n]=strlen($this->buffer);
|
1357 |
-
$this->_out($this->n.' 0 obj');
|
1358 |
-
}
|
1359 |
-
|
1360 |
-
function _putstream($s)
|
1361 |
-
{
|
1362 |
-
$this->_out('stream');
|
1363 |
-
$this->_out($s);
|
1364 |
-
$this->_out('endstream');
|
1365 |
-
}
|
1366 |
-
|
1367 |
-
function _out($s)
|
1368 |
-
{
|
1369 |
-
//Add a line to the document
|
1370 |
-
if($this->state==2)
|
1371 |
-
$this->pages[$this->page].=$s."\n";
|
1372 |
-
else
|
1373 |
-
$this->buffer.=$s."\n";
|
1374 |
-
}
|
1375 |
-
|
1376 |
-
function _putpages()
|
1377 |
-
{
|
1378 |
-
$nb=$this->page;
|
1379 |
-
if(!empty($this->AliasNbPages))
|
1380 |
-
{
|
1381 |
-
//Replace number of pages
|
1382 |
-
for($n=1;$n<=$nb;$n++)
|
1383 |
-
$this->pages[$n]=str_replace($this->AliasNbPages,$nb,$this->pages[$n]);
|
1384 |
-
}
|
1385 |
-
if($this->DefOrientation=='P')
|
1386 |
-
{
|
1387 |
-
$wPt=$this->DefPageFormat[0]*$this->k;
|
1388 |
-
$hPt=$this->DefPageFormat[1]*$this->k;
|
1389 |
-
}
|
1390 |
-
else
|
1391 |
-
{
|
1392 |
-
$wPt=$this->DefPageFormat[1]*$this->k;
|
1393 |
-
$hPt=$this->DefPageFormat[0]*$this->k;
|
1394 |
-
}
|
1395 |
-
$filter=($this->compress) ? '/Filter /FlateDecode ' : '';
|
1396 |
-
for($n=1;$n<=$nb;$n++)
|
1397 |
-
{
|
1398 |
-
//Page
|
1399 |
-
$this->_newobj();
|
1400 |
-
$this->_out('<</Type /Page');
|
1401 |
-
$this->_out('/Parent 1 0 R');
|
1402 |
-
if(isset($this->PageSizes[$n]))
|
1403 |
-
$this->_out(sprintf('/MediaBox [0 0 %.2F %.2F]',$this->PageSizes[$n][0],$this->PageSizes[$n][1]));
|
1404 |
-
$this->_out('/Resources 2 0 R');
|
1405 |
-
if(isset($this->PageLinks[$n]))
|
1406 |
-
{
|
1407 |
-
//Links
|
1408 |
-
$annots='/Annots [';
|
1409 |
-
foreach($this->PageLinks[$n] as $pl)
|
1410 |
-
{
|
1411 |
-
$rect=sprintf('%.2F %.2F %.2F %.2F',$pl[0],$pl[1],$pl[0]+$pl[2],$pl[1]-$pl[3]);
|
1412 |
-
$annots.='<</Type /Annot /Subtype /Link /Rect ['.$rect.'] /Border [0 0 0] ';
|
1413 |
-
if(is_string($pl[4]))
|
1414 |
-
$annots.='/A <</S /URI /URI '.$this->_textstring($pl[4]).'>>>>';
|
1415 |
-
else
|
1416 |
-
{
|
1417 |
-
$l=$this->links[$pl[4]];
|
1418 |
-
$h=isset($this->PageSizes[$l[0]]) ? $this->PageSizes[$l[0]][1] : $hPt;
|
1419 |
-
$annots.=sprintf('/Dest [%d 0 R /XYZ 0 %.2F null]>>',1+2*$l[0],$h-$l[1]*$this->k);
|
1420 |
-
}
|
1421 |
-
}
|
1422 |
-
$this->_out($annots.']');
|
1423 |
-
}
|
1424 |
-
$this->_out('/Contents '.($this->n+1).' 0 R>>');
|
1425 |
-
$this->_out('endobj');
|
1426 |
-
//Page content
|
1427 |
-
$p=($this->compress) ? gzcompress($this->pages[$n]) : $this->pages[$n];
|
1428 |
-
$this->_newobj();
|
1429 |
-
$this->_out('<<'.$filter.'/Length '.strlen($p).'>>');
|
1430 |
-
$this->_putstream($p);
|
1431 |
-
$this->_out('endobj');
|
1432 |
-
}
|
1433 |
-
//Pages root
|
1434 |
-
$this->offsets[1]=strlen($this->buffer);
|
1435 |
-
$this->_out('1 0 obj');
|
1436 |
-
$this->_out('<</Type /Pages');
|
1437 |
-
$kids='/Kids [';
|
1438 |
-
for($i=0;$i<$nb;$i++)
|
1439 |
-
$kids.=(3+2*$i).' 0 R ';
|
1440 |
-
$this->_out($kids.']');
|
1441 |
-
$this->_out('/Count '.$nb);
|
1442 |
-
$this->_out(sprintf('/MediaBox [0 0 %.2F %.2F]',$wPt,$hPt));
|
1443 |
-
$this->_out('>>');
|
1444 |
-
$this->_out('endobj');
|
1445 |
-
}
|
1446 |
-
|
1447 |
-
function _putfonts()
|
1448 |
-
{
|
1449 |
-
$nf=$this->n;
|
1450 |
-
foreach($this->diffs as $diff)
|
1451 |
-
{
|
1452 |
-
//Encodings
|
1453 |
-
$this->_newobj();
|
1454 |
-
$this->_out('<</Type /Encoding /BaseEncoding /WinAnsiEncoding /Differences ['.$diff.']>>');
|
1455 |
-
$this->_out('endobj');
|
1456 |
-
}
|
1457 |
-
foreach($this->FontFiles as $file=>$info)
|
1458 |
-
{
|
1459 |
-
//Font file embedding
|
1460 |
-
$this->_newobj();
|
1461 |
-
$this->FontFiles[$file]['n']=$this->n;
|
1462 |
-
$font='';
|
1463 |
-
$f=fopen($this->_getfontpath().$file,'rb',1);
|
1464 |
-
if(!$f)
|
1465 |
-
$this->Error('Font file not found');
|
1466 |
-
while(!feof($f))
|
1467 |
-
$font.=fread($f,8192);
|
1468 |
-
fclose($f);
|
1469 |
-
$compressed=(substr($file,-2)=='.z');
|
1470 |
-
if(!$compressed && isset($info['length2']))
|
1471 |
-
{
|
1472 |
-
$header=(ord($font[0])==128);
|
1473 |
-
if($header)
|
1474 |
-
{
|
1475 |
-
//Strip first binary header
|
1476 |
-
$font=substr($font,6);
|
1477 |
-
}
|
1478 |
-
if($header && ord($font[$info['length1']])==128)
|
1479 |
-
{
|
1480 |
-
//Strip second binary header
|
1481 |
-
$font=substr($font,0,$info['length1']).substr($font,$info['length1']+6);
|
1482 |
-
}
|
1483 |
-
}
|
1484 |
-
$this->_out('<</Length '.strlen($font));
|
1485 |
-
if($compressed)
|
1486 |
-
$this->_out('/Filter /FlateDecode');
|
1487 |
-
$this->_out('/Length1 '.$info['length1']);
|
1488 |
-
if(isset($info['length2']))
|
1489 |
-
$this->_out('/Length2 '.$info['length2'].' /Length3 0');
|
1490 |
-
$this->_out('>>');
|
1491 |
-
$this->_putstream($font);
|
1492 |
-
$this->_out('endobj');
|
1493 |
-
}
|
1494 |
-
foreach($this->fonts as $k=>$font)
|
1495 |
-
{
|
1496 |
-
//Font objects
|
1497 |
-
$this->fonts[$k]['n']=$this->n+1;
|
1498 |
-
$type=$font['type'];
|
1499 |
-
$name=$font['name'];
|
1500 |
-
if($type=='core')
|
1501 |
-
{
|
1502 |
-
//Standard font
|
1503 |
-
$this->_newobj();
|
1504 |
-
$this->_out('<</Type /Font');
|
1505 |
-
$this->_out('/BaseFont /'.$name);
|
1506 |
-
$this->_out('/Subtype /Type1');
|
1507 |
-
if($name!='Symbol' && $name!='ZapfDingbats')
|
1508 |
-
$this->_out('/Encoding /WinAnsiEncoding');
|
1509 |
-
$this->_out('>>');
|
1510 |
-
$this->_out('endobj');
|
1511 |
-
}
|
1512 |
-
elseif($type=='Type1' || $type=='TrueType')
|
1513 |
-
{
|
1514 |
-
//Additional Type1 or TrueType font
|
1515 |
-
$this->_newobj();
|
1516 |
-
$this->_out('<</Type /Font');
|
1517 |
-
$this->_out('/BaseFont /'.$name);
|
1518 |
-
$this->_out('/Subtype /'.$type);
|
1519 |
-
$this->_out('/FirstChar 32 /LastChar 255');
|
1520 |
-
$this->_out('/Widths '.($this->n+1).' 0 R');
|
1521 |
-
$this->_out('/FontDescriptor '.($this->n+2).' 0 R');
|
1522 |
-
if($font['enc'])
|
1523 |
-
{
|
1524 |
-
if(isset($font['diff']))
|
1525 |
-
$this->_out('/Encoding '.($nf+$font['diff']).' 0 R');
|
1526 |
-
else
|
1527 |
-
$this->_out('/Encoding /WinAnsiEncoding');
|
1528 |
-
}
|
1529 |
-
$this->_out('>>');
|
1530 |
-
$this->_out('endobj');
|
1531 |
-
//Widths
|
1532 |
-
$this->_newobj();
|
1533 |
-
$cw=&$font['cw'];
|
1534 |
-
$s='[';
|
1535 |
-
for($i=32;$i<=255;$i++)
|
1536 |
-
$s.=$cw[chr($i)].' ';
|
1537 |
-
$this->_out($s.']');
|
1538 |
-
$this->_out('endobj');
|
1539 |
-
//Descriptor
|
1540 |
-
$this->_newobj();
|
1541 |
-
$s='<</Type /FontDescriptor /FontName /'.$name;
|
1542 |
-
foreach($font['desc'] as $k=>$v)
|
1543 |
-
$s.=' /'.$k.' '.$v;
|
1544 |
-
$file=$font['file'];
|
1545 |
-
if($file)
|
1546 |
-
$s.=' /FontFile'.($type=='Type1' ? '' : '2').' '.$this->FontFiles[$file]['n'].' 0 R';
|
1547 |
-
$this->_out($s.'>>');
|
1548 |
-
$this->_out('endobj');
|
1549 |
-
}
|
1550 |
-
else
|
1551 |
-
{
|
1552 |
-
//Allow for additional types
|
1553 |
-
$mtd='_put'.strtolower($type);
|
1554 |
-
if(!method_exists($this,$mtd))
|
1555 |
-
$this->Error('Unsupported font type: '.$type);
|
1556 |
-
$this->$mtd($font);
|
1557 |
-
}
|
1558 |
-
}
|
1559 |
-
}
|
1560 |
-
|
1561 |
-
function _putimages()
|
1562 |
-
{
|
1563 |
-
$filter=($this->compress) ? '/Filter /FlateDecode ' : '';
|
1564 |
-
reset($this->images);
|
1565 |
-
while(list($file,$info)=each($this->images))
|
1566 |
-
{
|
1567 |
-
$this->_newobj();
|
1568 |
-
$this->images[$file]['n']=$this->n;
|
1569 |
-
$this->_out('<</Type /XObject');
|
1570 |
-
$this->_out('/Subtype /Image');
|
1571 |
-
$this->_out('/Width '.$info['w']);
|
1572 |
-
$this->_out('/Height '.$info['h']);
|
1573 |
-
if($info['cs']=='Indexed')
|
1574 |
-
$this->_out('/ColorSpace [/Indexed /DeviceRGB '.(strlen($info['pal'])/3-1).' '.($this->n+1).' 0 R]');
|
1575 |
-
else
|
1576 |
-
{
|
1577 |
-
$this->_out('/ColorSpace /'.$info['cs']);
|
1578 |
-
if($info['cs']=='DeviceCMYK')
|
1579 |
-
$this->_out('/Decode [1 0 1 0 1 0 1 0]');
|
1580 |
-
}
|
1581 |
-
$this->_out('/BitsPerComponent '.$info['bpc']);
|
1582 |
-
if(isset($info['f']))
|
1583 |
-
$this->_out('/Filter /'.$info['f']);
|
1584 |
-
if(isset($info['parms']))
|
1585 |
-
$this->_out($info['parms']);
|
1586 |
-
if(isset($info['trns']) && is_array($info['trns']))
|
1587 |
-
{
|
1588 |
-
$trns='';
|
1589 |
-
for($i=0;$i<count($info['trns']);$i++)
|
1590 |
-
$trns.=$info['trns'][$i].' '.$info['trns'][$i].' ';
|
1591 |
-
$this->_out('/Mask ['.$trns.']');
|
1592 |
-
}
|
1593 |
-
$this->_out('/Length '.strlen($info['data']).'>>');
|
1594 |
-
$this->_putstream($info['data']);
|
1595 |
-
unset($this->images[$file]['data']);
|
1596 |
-
$this->_out('endobj');
|
1597 |
-
//Palette
|
1598 |
-
if($info['cs']=='Indexed')
|
1599 |
-
{
|
1600 |
-
$this->_newobj();
|
1601 |
-
$pal=($this->compress) ? gzcompress($info['pal']) : $info['pal'];
|
1602 |
-
$this->_out('<<'.$filter.'/Length '.strlen($pal).'>>');
|
1603 |
-
$this->_putstream($pal);
|
1604 |
-
$this->_out('endobj');
|
1605 |
-
}
|
1606 |
-
}
|
1607 |
-
}
|
1608 |
-
|
1609 |
-
function _putxobjectdict()
|
1610 |
-
{
|
1611 |
-
foreach($this->images as $image)
|
1612 |
-
$this->_out('/I'.$image['i'].' '.$image['n'].' 0 R');
|
1613 |
-
}
|
1614 |
-
|
1615 |
-
function _putresourcedict()
|
1616 |
-
{
|
1617 |
-
$this->_out('/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]');
|
1618 |
-
$this->_out('/Font <<');
|
1619 |
-
foreach($this->fonts as $font)
|
1620 |
-
$this->_out('/F'.$font['i'].' '.$font['n'].' 0 R');
|
1621 |
-
$this->_out('>>');
|
1622 |
-
$this->_out('/XObject <<');
|
1623 |
-
$this->_putxobjectdict();
|
1624 |
-
$this->_out('>>');
|
1625 |
-
}
|
1626 |
-
|
1627 |
-
function _putresources()
|
1628 |
-
{
|
1629 |
-
$this->_putfonts();
|
1630 |
-
$this->_putimages();
|
1631 |
-
//Resource dictionary
|
1632 |
-
$this->offsets[2]=strlen($this->buffer);
|
1633 |
-
$this->_out('2 0 obj');
|
1634 |
-
$this->_out('<<');
|
1635 |
-
$this->_putresourcedict();
|
1636 |
-
$this->_out('>>');
|
1637 |
-
$this->_out('endobj');
|
1638 |
-
}
|
1639 |
-
|
1640 |
-
function _putinfo()
|
1641 |
-
{
|
1642 |
-
$this->_out('/Producer '.$this->_textstring('FPDF '.FPDF_VERSION));
|
1643 |
-
if(!empty($this->title))
|
1644 |
-
$this->_out('/Title '.$this->_textstring($this->title));
|
1645 |
-
if(!empty($this->subject))
|
1646 |
-
$this->_out('/Subject '.$this->_textstring($this->subject));
|
1647 |
-
if(!empty($this->author))
|
1648 |
-
$this->_out('/Author '.$this->_textstring($this->author));
|
1649 |
-
if(!empty($this->keywords))
|
1650 |
-
$this->_out('/Keywords '.$this->_textstring($this->keywords));
|
1651 |
-
if(!empty($this->creator))
|
1652 |
-
$this->_out('/Creator '.$this->_textstring($this->creator));
|
1653 |
-
$this->_out('/CreationDate '.$this->_textstring('D:'.@date('YmdHis')));
|
1654 |
-
}
|
1655 |
-
|
1656 |
-
function _putcatalog()
|
1657 |
-
{
|
1658 |
-
$this->_out('/Type /Catalog');
|
1659 |
-
$this->_out('/Pages 1 0 R');
|
1660 |
-
if($this->ZoomMode=='fullpage')
|
1661 |
-
$this->_out('/OpenAction [3 0 R /Fit]');
|
1662 |
-
elseif($this->ZoomMode=='fullwidth')
|
1663 |
-
$this->_out('/OpenAction [3 0 R /FitH null]');
|
1664 |
-
elseif($this->ZoomMode=='real')
|
1665 |
-
$this->_out('/OpenAction [3 0 R /XYZ null null 1]');
|
1666 |
-
elseif(!is_string($this->ZoomMode))
|
1667 |
-
$this->_out('/OpenAction [3 0 R /XYZ null null '.($this->ZoomMode/100).']');
|
1668 |
-
if($this->LayoutMode=='single')
|
1669 |
-
$this->_out('/PageLayout /SinglePage');
|
1670 |
-
elseif($this->LayoutMode=='continuous')
|
1671 |
-
$this->_out('/PageLayout /OneColumn');
|
1672 |
-
elseif($this->LayoutMode=='two')
|
1673 |
-
$this->_out('/PageLayout /TwoColumnLeft');
|
1674 |
-
}
|
1675 |
-
|
1676 |
-
function _putheader()
|
1677 |
-
{
|
1678 |
-
$this->_out('%PDF-'.$this->PDFVersion);
|
1679 |
-
}
|
1680 |
-
|
1681 |
-
function _puttrailer()
|
1682 |
-
{
|
1683 |
-
$this->_out('/Size '.($this->n+1));
|
1684 |
-
$this->_out('/Root '.$this->n.' 0 R');
|
1685 |
-
$this->_out('/Info '.($this->n-1).' 0 R');
|
1686 |
-
}
|
1687 |
-
|
1688 |
-
function _enddoc()
|
1689 |
-
{
|
1690 |
-
$this->_putheader();
|
1691 |
-
$this->_putpages();
|
1692 |
-
$this->_putresources();
|
1693 |
-
//Info
|
1694 |
-
$this->_newobj();
|
1695 |
-
$this->_out('<<');
|
1696 |
-
$this->_putinfo();
|
1697 |
-
$this->_out('>>');
|
1698 |
-
$this->_out('endobj');
|
1699 |
-
//Catalog
|
1700 |
-
$this->_newobj();
|
1701 |
-
$this->_out('<<');
|
1702 |
-
$this->_putcatalog();
|
1703 |
-
$this->_out('>>');
|
1704 |
-
$this->_out('endobj');
|
1705 |
-
//Cross-ref
|
1706 |
-
$o=strlen($this->buffer);
|
1707 |
-
$this->_out('xref');
|
1708 |
-
$this->_out('0 '.($this->n+1));
|
1709 |
-
$this->_out('0000000000 65535 f ');
|
1710 |
-
for($i=1;$i<=$this->n;$i++)
|
1711 |
-
$this->_out(sprintf('%010d 00000 n ',$this->offsets[$i]));
|
1712 |
-
//Trailer
|
1713 |
-
$this->_out('trailer');
|
1714 |
-
$this->_out('<<');
|
1715 |
-
$this->_puttrailer();
|
1716 |
-
$this->_out('>>');
|
1717 |
-
$this->_out('startxref');
|
1718 |
-
$this->_out($o);
|
1719 |
-
$this->_out('%%EOF');
|
1720 |
-
$this->state=3;
|
1721 |
-
}
|
1722 |
-
//End of class
|
1723 |
-
}
|
1724 |
-
|
1725 |
-
//Handle special IE contype request
|
1726 |
-
if(isset($_SERVER['HTTP_USER_AGENT']) && $_SERVER['HTTP_USER_AGENT']=='contype')
|
1727 |
-
{
|
1728 |
-
header('Content-Type: application/pdf');
|
1729 |
-
exit;
|
1730 |
-
}
|
1731 |
-
|
1732 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/license.txt
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
2 |
-
of this software to use, copy, modify, distribute, sublicense, and/or sell
|
3 |
-
copies of the software, and to permit persons to whom the software is furnished
|
4 |
-
to do so.
|
5 |
-
|
6 |
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/fpdf/mc_table.php
DELETED
@@ -1,115 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
require('fpdf.php');
|
3 |
-
|
4 |
-
class PDF_MC_Table extends FPDF
|
5 |
-
{
|
6 |
-
var $widths;
|
7 |
-
var $aligns;
|
8 |
-
|
9 |
-
function SetWidths($w)
|
10 |
-
{
|
11 |
-
//Set the array of column widths
|
12 |
-
$this->widths=$w;
|
13 |
-
}
|
14 |
-
|
15 |
-
function SetAligns($a)
|
16 |
-
{
|
17 |
-
//Set the array of column alignments
|
18 |
-
$this->aligns=$a;
|
19 |
-
}
|
20 |
-
|
21 |
-
function Row($data, $fill = false)
|
22 |
-
{
|
23 |
-
//Calculate the height of the row
|
24 |
-
// $fill = true;
|
25 |
-
$nb=0;
|
26 |
-
for($i=0;$i<count($data);$i++)
|
27 |
-
$nb=max($nb,$this->NbLines($this->widths[$i],$data[$i]));
|
28 |
-
$h=5*$nb;
|
29 |
-
//Issue a page break first if needed
|
30 |
-
$this->CheckPageBreak($h);
|
31 |
-
//Draw the cells of the row
|
32 |
-
for($i=0;$i<count($data);$i++)
|
33 |
-
{
|
34 |
-
$w=$this->widths[$i];
|
35 |
-
$a='L';//isset($this->aligns[$i]) ? $this->aligns[$i] : 'L';
|
36 |
-
//Save the current position
|
37 |
-
$x=$this->GetX();
|
38 |
-
$y=$this->GetY();
|
39 |
-
//Draw the border
|
40 |
-
if($fill){
|
41 |
-
$this->Rect($x,$y,$w,$h, 'DF');
|
42 |
-
$this->MultiCell($w,5,$data[$i],0, 'DF');
|
43 |
-
}else{
|
44 |
-
$this->Rect($x,$y,$w,$h);
|
45 |
-
$this->MultiCell($w,5,$data[$i],0);
|
46 |
-
}
|
47 |
-
//Print the text
|
48 |
-
// $this->MultiCell($w,5,$data[$i],0,$a, $fill);
|
49 |
-
//Put the position to the right of the cell
|
50 |
-
$this->SetXY($x+$w,$y);
|
51 |
-
}
|
52 |
-
//Go to the next line
|
53 |
-
|
54 |
-
$this->Ln($h);
|
55 |
-
}
|
56 |
-
|
57 |
-
function CheckPageBreak($h)
|
58 |
-
{
|
59 |
-
//If the height h would cause an overflow, add a new page immediately
|
60 |
-
if($this->GetY()+$h>$this->PageBreakTrigger)
|
61 |
-
$this->AddPage($this->CurOrientation);
|
62 |
-
}
|
63 |
-
|
64 |
-
function NbLines($w,$txt)
|
65 |
-
{
|
66 |
-
//Computes the number of lines a MultiCell of width w will take
|
67 |
-
$cw=&$this->CurrentFont['cw'];
|
68 |
-
if($w==0)
|
69 |
-
$w=$this->w-$this->rMargin-$this->x;
|
70 |
-
$wmax=($w-2*$this->cMargin)*1000/$this->FontSize;
|
71 |
-
$s=str_replace("\r",'',$txt);
|
72 |
-
$nb=strlen($s);
|
73 |
-
if($nb>0 and $s[$nb-1]=="\n")
|
74 |
-
$nb--;
|
75 |
-
$sep=-1;
|
76 |
-
$i=0;
|
77 |
-
$j=0;
|
78 |
-
$l=0;
|
79 |
-
$nl=1;
|
80 |
-
while($i<$nb)
|
81 |
-
{
|
82 |
-
$c=$s[$i];
|
83 |
-
if($c=="\n")
|
84 |
-
{
|
85 |
-
$i++;
|
86 |
-
$sep=-1;
|
87 |
-
$j=$i;
|
88 |
-
$l=0;
|
89 |
-
$nl++;
|
90 |
-
continue;
|
91 |
-
}
|
92 |
-
if($c==' ')
|
93 |
-
$sep=$i;
|
94 |
-
$l+=$cw[$c];
|
95 |
-
if($l>$wmax)
|
96 |
-
{
|
97 |
-
if($sep==-1)
|
98 |
-
{
|
99 |
-
if($i==$j)
|
100 |
-
$i++;
|
101 |
-
}
|
102 |
-
else
|
103 |
-
$i=$sep+1;
|
104 |
-
$sep=-1;
|
105 |
-
$j=$i;
|
106 |
-
$l=0;
|
107 |
-
$nl++;
|
108 |
-
}
|
109 |
-
else
|
110 |
-
$i++;
|
111 |
-
}
|
112 |
-
return $nl;
|
113 |
-
}
|
114 |
-
}
|
115 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wpsc-includes/google-analytics.class.php
CHANGED
@@ -25,7 +25,7 @@ class WPSC_Google_Analytics {
|
|
25 |
|| ( ! $this->is_theme_tracking && empty( $this->tracking_id ) );
|
26 |
|
27 |
if ( ! $this->is_analytics_disabled )
|
28 |
-
add_action( 'wpsc_transaction_results_shutdown', array( $this, 'print_script' ), 10,
|
29 |
}
|
30 |
|
31 |
/**
|
@@ -48,10 +48,17 @@ class WPSC_Google_Analytics {
|
|
48 |
* If analytics are disabled, we build nothing.
|
49 |
* If the site already is tracking OR using the advanced option, we insert only the e-commerce portion, not the initial tracking info.
|
50 |
*
|
|
|
|
|
|
|
|
|
51 |
* @since 3.8.9
|
52 |
* @return javascript
|
53 |
*/
|
54 |
-
public function print_script( $
|
|
|
|
|
|
|
55 |
|
56 |
$output = '';
|
57 |
|
@@ -116,7 +123,7 @@ class WPSC_Google_Analytics {
|
|
116 |
$output = '';
|
117 |
|
118 |
$city = $wpdb->get_var( $wpdb->prepare( "
|
119 |
-
SELECT tf.value FROM " .
|
120 |
LEFT JOIN " . WPSC_TABLE_CHECKOUT_FORMS . " cf
|
121 |
ON cf.id = tf.form_id
|
122 |
WHERE cf.unique_name = 'billingcity'
|
@@ -124,7 +131,7 @@ class WPSC_Google_Analytics {
|
|
124 |
|
125 |
$state = $wpdb->get_var( $wpdb->prepare( "
|
126 |
SELECT tf.value
|
127 |
-
FROM " .
|
128 |
LEFT JOIN " . WPSC_TABLE_CHECKOUT_FORMS . " cf
|
129 |
ON cf.id = tf.form_id
|
130 |
WHERE cf.unique_name = 'billingstate'
|
@@ -132,7 +139,7 @@ class WPSC_Google_Analytics {
|
|
132 |
|
133 |
$country = $wpdb->get_var( $wpdb->prepare( "
|
134 |
SELECT tf.value
|
135 |
-
FROM " .
|
136 |
LEFT JOIN " . WPSC_TABLE_CHECKOUT_FORMS . " cf
|
137 |
ON cf.id = tf.form_id
|
138 |
WHERE cf.unique_name = 'billingcountry'
|
@@ -230,4 +237,4 @@ if ( ! function_exists( 'wpsc_get_total_shipping' ) ) :
|
|
230 |
|
231 |
endif;
|
232 |
|
233 |
-
?>
|
25 |
|| ( ! $this->is_theme_tracking && empty( $this->tracking_id ) );
|
26 |
|
27 |
if ( ! $this->is_analytics_disabled )
|
28 |
+
add_action( 'wpsc_transaction_results_shutdown', array( $this, 'print_script' ), 10, 3 );
|
29 |
}
|
30 |
|
31 |
/**
|
48 |
* If analytics are disabled, we build nothing.
|
49 |
* If the site already is tracking OR using the advanced option, we insert only the e-commerce portion, not the initial tracking info.
|
50 |
*
|
51 |
+
* @param $purchase_log Purchase Log object
|
52 |
+
* @param $session_id Session ID
|
53 |
+
* @param $display_to_screen Whether or not the output is displayed to the screen
|
54 |
+
*
|
55 |
* @since 3.8.9
|
56 |
* @return javascript
|
57 |
*/
|
58 |
+
public function print_script( $purchase_log, $session_id, $display_to_screen ) {
|
59 |
+
|
60 |
+
if ( ! $display_to_screen )
|
61 |
+
return false;
|
62 |
|
63 |
$output = '';
|
64 |
|
123 |
$output = '';
|
124 |
|
125 |
$city = $wpdb->get_var( $wpdb->prepare( "
|
126 |
+
SELECT tf.value FROM " . WPSC_TABLE_SUBMITTED_FORM_DATA . " tf
|
127 |
LEFT JOIN " . WPSC_TABLE_CHECKOUT_FORMS . " cf
|
128 |
ON cf.id = tf.form_id
|
129 |
WHERE cf.unique_name = 'billingcity'
|
131 |
|
132 |
$state = $wpdb->get_var( $wpdb->prepare( "
|
133 |
SELECT tf.value
|
134 |
+
FROM " . WPSC_TABLE_SUBMITTED_FORM_DATA . " tf
|
135 |
LEFT JOIN " . WPSC_TABLE_CHECKOUT_FORMS . " cf
|
136 |
ON cf.id = tf.form_id
|
137 |
WHERE cf.unique_name = 'billingstate'
|
139 |
|
140 |
$country = $wpdb->get_var( $wpdb->prepare( "
|
141 |
SELECT tf.value
|
142 |
+
FROM " . WPSC_TABLE_SUBMITTED_FORM_DATA . " tf
|
143 |
LEFT JOIN " . WPSC_TABLE_CHECKOUT_FORMS . " cf
|
144 |
ON cf.id = tf.form_id
|
145 |
WHERE cf.unique_name = 'billingcountry'
|
237 |
|
238 |
endif;
|
239 |
|
240 |
+
?>
|
wpsc-includes/merchant.class.php
CHANGED
@@ -120,9 +120,9 @@ class wpsc_merchant {
|
|
120 |
$purchase_id = & $this->purchase_id;
|
121 |
}
|
122 |
|
123 |
-
$email_address = $wpdb->get_var( "SELECT `value` FROM `" . WPSC_TABLE_CHECKOUT_FORMS . "` AS `form_field` INNER JOIN `" .
|
124 |
$currency_code = $wpdb->get_var( "SELECT `code` FROM `" . WPSC_TABLE_CURRENCY_LIST . "` WHERE `id`='" . get_option( 'currency_type' ) . "' LIMIT 1" );
|
125 |
-
$collected_form_data = $wpdb->get_results( "SELECT `data_names`.`id`, `data_names`.`unique_name`, `collected_data`.`value` FROM `" .
|
126 |
|
127 |
$address_data = array(
|
128 |
'billing' => array(),
|
120 |
$purchase_id = & $this->purchase_id;
|
121 |
}
|
122 |
|
123 |
+
$email_address = $wpdb->get_var( "SELECT `value` FROM `" . WPSC_TABLE_CHECKOUT_FORMS . "` AS `form_field` INNER JOIN `" . WPSC_TABLE_SUBMITTED_FORM_DATA . "` AS `collected_data` ON `form_field`.`id` = `collected_data`.`form_id` WHERE `form_field`.`type` IN ( 'email' ) AND `collected_data`.`log_id` IN ( '{$purchase_id}' )" );
|
124 |
$currency_code = $wpdb->get_var( "SELECT `code` FROM `" . WPSC_TABLE_CURRENCY_LIST . "` WHERE `id`='" . get_option( 'currency_type' ) . "' LIMIT 1" );
|
125 |
+
$collected_form_data = $wpdb->get_results( "SELECT `data_names`.`id`, `data_names`.`unique_name`, `collected_data`.`value` FROM `" . WPSC_TABLE_SUBMITTED_FORM_DATA . "` AS `collected_data` JOIN `" . WPSC_TABLE_CHECKOUT_FORMS . "` AS `data_names` ON `collected_data`.`form_id` = `data_names`.`id` WHERE `log_id` = '" . $purchase_id . "'", ARRAY_A );
|
126 |
|
127 |
$address_data = array(
|
128 |
'billing' => array(),
|
wpsc-includes/misc.functions.php
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
*/
|
11 |
|
12 |
/**
|
13 |
-
* WPSC find purchlog status name
|
14 |
*
|
15 |
* @since 3.8
|
16 |
* $param int $id the id for the region
|
@@ -90,11 +90,11 @@ function wpsc_add_new_user( $user_login, $user_pass, $user_email ) {
|
|
90 |
$errors->add( 'registerfail', sprintf( __( '<strong>ERROR</strong>: Couldn’t register you... please contact the <a href="mailto:%s">webmaster</a> !', 'wpsc' ), get_option( 'admin_email' ) ) );
|
91 |
return $errors;
|
92 |
}
|
93 |
-
$credentials = array( 'user_login' => $user_login, 'user_password' => $user_pass, 'remember' => true );
|
94 |
-
$user = wp_signon( $credentials );
|
95 |
-
return $user;
|
96 |
|
97 |
-
|
|
|
|
|
|
|
98 |
}
|
99 |
|
100 |
/**
|
@@ -186,7 +186,7 @@ function wpsc_set_aioseop_keywords( $data ) {
|
|
186 |
$category_list = $wpdb->get_col( "SELECT `categories`.`name` FROM `" . WPSC_TABLE_ITEM_CATEGORY_ASSOC . "` AS `assoc` , `" . WPSC_TABLE_PRODUCT_CATEGORIES . "` AS `categories` WHERE `assoc`.`product_id` IN ('{$product_id}') AND `assoc`.`category_id` = `categories`.`id` AND `categories`.`active` IN('1')" );
|
187 |
$replacement_data_array += $category_list;
|
188 |
}
|
189 |
-
$replacement_data_array +=
|
190 |
$replacement_data .= implode( ",", $replacement_data_array );
|
191 |
if ( $replacement_data != '' ) {
|
192 |
$data = strtolower( $replacement_data );
|
@@ -199,13 +199,15 @@ function wpsc_set_aioseop_keywords( $data ) {
|
|
199 |
add_filter( 'aioseop_keywords', 'wpsc_set_aioseop_keywords' );
|
200 |
|
201 |
/**
|
202 |
-
*
|
|
|
203 |
*/
|
204 |
function wpsc_populate_also_bought_list() {
|
205 |
global $wpdb, $wpsc_cart, $wpsc_coupons;
|
206 |
-
|
|
|
207 |
foreach ( $wpsc_cart->cart_items as $outer_cart_item ) {
|
208 |
-
$new_also_bought_data[$outer_cart_item->product_id] = array(
|
209 |
foreach ( $wpsc_cart->cart_items as $inner_cart_item ) {
|
210 |
if ( $outer_cart_item->product_id != $inner_cart_item->product_id ) {
|
211 |
$new_also_bought_data[$outer_cart_item->product_id][$inner_cart_item->product_id] = $inner_cart_item->quantity;
|
@@ -215,10 +217,10 @@ function wpsc_populate_also_bought_list() {
|
|
215 |
}
|
216 |
}
|
217 |
|
218 |
-
$insert_statement_parts = array(
|
219 |
foreach ( $new_also_bought_data as $new_also_bought_id => $new_also_bought_row ) {
|
220 |
$new_other_ids = array_keys( $new_also_bought_row );
|
221 |
-
$also_bought_data = $wpdb->get_results( $wpdb->prepare( "SELECT `id`, `associated_product`, `quantity` FROM `" . WPSC_TABLE_ALSO_BOUGHT . "` WHERE `selected_product` IN(%d) AND `associated_product` IN(" . implode( "','", $new_other_ids ) . ")", $new_also_bought_id ), ARRAY_A );
|
222 |
$altered_new_also_bought_row = $new_also_bought_row;
|
223 |
|
224 |
foreach ( (array)$also_bought_data as $also_bought_row ) {
|
@@ -235,10 +237,9 @@ function wpsc_populate_also_bought_list() {
|
|
235 |
),
|
236 |
'%d',
|
237 |
'%d'
|
238 |
-
|
239 |
}
|
240 |
|
241 |
-
|
242 |
if ( count( $altered_new_also_bought_row ) > 0 ) {
|
243 |
foreach ( $altered_new_also_bought_row as $associated_product => $quantity ) {
|
244 |
$insert_statement_parts[] = "(" . absint( esc_sql( $new_also_bought_id ) ) . "," . absint( esc_sql( $associated_product ) ) . "," . absint( esc_sql( $quantity ) ) . ")";
|
@@ -247,7 +248,6 @@ function wpsc_populate_also_bought_list() {
|
|
247 |
}
|
248 |
|
249 |
if ( count( $insert_statement_parts ) > 0 ) {
|
250 |
-
|
251 |
$insert_statement = "INSERT INTO `" . WPSC_TABLE_ALSO_BOUGHT . "` (`selected_product`, `associated_product`, `quantity`) VALUES " . implode( ",\n ", $insert_statement_parts );
|
252 |
$wpdb->query( $insert_statement );
|
253 |
}
|
@@ -601,7 +601,7 @@ function wp_get_product_tags( $product_id = 0, $args = array( ) ) {
|
|
601 |
$defaults = array( 'fields' => 'ids' );
|
602 |
$args = wp_parse_args( $args, $defaults );
|
603 |
|
604 |
-
$cats =
|
605 |
return $cats;
|
606 |
}
|
607 |
|
@@ -625,7 +625,7 @@ function wp_get_product_categories( $product_id = 0, $args = array( ) ) {
|
|
625 |
$defaults = array( 'fields' => 'ids' );
|
626 |
$args = wp_parse_args( $args, $defaults );
|
627 |
|
628 |
-
$cats =
|
629 |
return $cats;
|
630 |
}
|
631 |
|
@@ -670,11 +670,7 @@ function get_the_product_category( $id ) {
|
|
670 |
|
671 |
$id = (int)$id;
|
672 |
|
673 |
-
$categories =
|
674 |
-
if ( false === $categories ) {
|
675 |
-
$categories = wp_get_object_terms( $id, 'wpsc_product_category' );
|
676 |
-
wp_cache_add( $id, $categories, 'product_category_relationships' );
|
677 |
-
}
|
678 |
|
679 |
if ( !empty( $categories ) )
|
680 |
usort( $categories, '_usort_terms_by_name' );
|
@@ -775,3 +771,196 @@ function wpsc_get_extension( $str ) {
|
|
775 |
return end( $parts );
|
776 |
|
777 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
*/
|
11 |
|
12 |
/**
|
13 |
+
* WPSC find purchlog status name looks through the wpsc_purchlog_statuses variable to find the name of the given status
|
14 |
*
|
15 |
* @since 3.8
|
16 |
* $param int $id the id for the region
|
90 |
$errors->add( 'registerfail', sprintf( __( '<strong>ERROR</strong>: Couldn’t register you... please contact the <a href="mailto:%s">webmaster</a> !', 'wpsc' ), get_option( 'admin_email' ) ) );
|
91 |
return $errors;
|
92 |
}
|
|
|
|
|
|
|
93 |
|
94 |
+
$user = wp_signon( array( 'user_login' => $user_login, 'user_password' => $user_pass, 'remember' => true ) );
|
95 |
+
wp_set_current_user( $user->ID );
|
96 |
+
|
97 |
+
return $user;
|
98 |
}
|
99 |
|
100 |
/**
|
186 |
$category_list = $wpdb->get_col( "SELECT `categories`.`name` FROM `" . WPSC_TABLE_ITEM_CATEGORY_ASSOC . "` AS `assoc` , `" . WPSC_TABLE_PRODUCT_CATEGORIES . "` AS `categories` WHERE `assoc`.`product_id` IN ('{$product_id}') AND `assoc`.`category_id` = `categories`.`id` AND `categories`.`active` IN('1')" );
|
187 |
$replacement_data_array += $category_list;
|
188 |
}
|
189 |
+
$replacement_data_array += wpsc_get_product_terms( $product_id, 'product_tag', 'name' );
|
190 |
$replacement_data .= implode( ",", $replacement_data_array );
|
191 |
if ( $replacement_data != '' ) {
|
192 |
$data = strtolower( $replacement_data );
|
199 |
add_filter( 'aioseop_keywords', 'wpsc_set_aioseop_keywords' );
|
200 |
|
201 |
/**
|
202 |
+
* Populate Also Bought List
|
203 |
+
* Runs on checking out and populates the also bought list.
|
204 |
*/
|
205 |
function wpsc_populate_also_bought_list() {
|
206 |
global $wpdb, $wpsc_cart, $wpsc_coupons;
|
207 |
+
|
208 |
+
$new_also_bought_data = array();
|
209 |
foreach ( $wpsc_cart->cart_items as $outer_cart_item ) {
|
210 |
+
$new_also_bought_data[$outer_cart_item->product_id] = array();
|
211 |
foreach ( $wpsc_cart->cart_items as $inner_cart_item ) {
|
212 |
if ( $outer_cart_item->product_id != $inner_cart_item->product_id ) {
|
213 |
$new_also_bought_data[$outer_cart_item->product_id][$inner_cart_item->product_id] = $inner_cart_item->quantity;
|
217 |
}
|
218 |
}
|
219 |
|
220 |
+
$insert_statement_parts = array();
|
221 |
foreach ( $new_also_bought_data as $new_also_bought_id => $new_also_bought_row ) {
|
222 |
$new_other_ids = array_keys( $new_also_bought_row );
|
223 |
+
$also_bought_data = $wpdb->get_results( $wpdb->prepare( "SELECT `id`, `associated_product`, `quantity` FROM `" . WPSC_TABLE_ALSO_BOUGHT . "` WHERE `selected_product` IN(%d) AND `associated_product` IN('" . implode( "','", $new_other_ids ) . "')", $new_also_bought_id ), ARRAY_A );
|
224 |
$altered_new_also_bought_row = $new_also_bought_row;
|
225 |
|
226 |
foreach ( (array)$also_bought_data as $also_bought_row ) {
|
237 |
),
|
238 |
'%d',
|
239 |
'%d'
|
240 |
+
);
|
241 |
}
|
242 |
|
|
|
243 |
if ( count( $altered_new_also_bought_row ) > 0 ) {
|
244 |
foreach ( $altered_new_also_bought_row as $associated_product => $quantity ) {
|
245 |
$insert_statement_parts[] = "(" . absint( esc_sql( $new_also_bought_id ) ) . "," . absint( esc_sql( $associated_product ) ) . "," . absint( esc_sql( $quantity ) ) . ")";
|
248 |
}
|
249 |
|
250 |
if ( count( $insert_statement_parts ) > 0 ) {
|
|
|
251 |
$insert_statement = "INSERT INTO `" . WPSC_TABLE_ALSO_BOUGHT . "` (`selected_product`, `associated_product`, `quantity`) VALUES " . implode( ",\n ", $insert_statement_parts );
|
252 |
$wpdb->query( $insert_statement );
|
253 |
}
|
601 |
$defaults = array( 'fields' => 'ids' );
|
602 |
$args = wp_parse_args( $args, $defaults );
|
603 |
|
604 |
+
$cats = wpsc_get_product_terms( $product_id, 'product_tag' );
|
605 |
return $cats;
|
606 |
}
|
607 |
|
625 |
$defaults = array( 'fields' => 'ids' );
|
626 |
$args = wp_parse_args( $args, $defaults );
|
627 |
|
628 |
+
$cats = wpsc_get_product_terms( $product_id, 'wpsc_product_category' );
|
629 |
return $cats;
|
630 |
}
|
631 |
|
670 |
|
671 |
$id = (int)$id;
|
672 |
|
673 |
+
$categories = wpsc_get_product_terms( $id, 'wpsc_product_category' );
|
|
|
|
|
|
|
|
|
674 |
|
675 |
if ( !empty( $categories ) )
|
676 |
usort( $categories, '_usort_terms_by_name' );
|
771 |
return end( $parts );
|
772 |
|
773 |
}
|
774 |
+
|
775 |
+
/**
|
776 |
+
* Marks a function as deprecated and informs when it has been used.
|
777 |
+
*
|
778 |
+
* There is a hook wpsc_deprecated_function_run that will be called that can be
|
779 |
+
* used to get the backtrace up to what file and function called the deprecated
|
780 |
+
* function.
|
781 |
+
*
|
782 |
+
* The current behavior is to trigger a user error if WP_DEBUG is true.
|
783 |
+
*
|
784 |
+
* This function is to be used in every function that is deprecated.
|
785 |
+
*
|
786 |
+
* @since 3.8.10
|
787 |
+
* @access private
|
788 |
+
*
|
789 |
+
* @uses do_action() Calls 'wpsc_deprecated_function_run' and passes the function name, what to use instead,
|
790 |
+
* and the version the function was deprecated in.
|
791 |
+
* @uses apply_filters() Calls 'wpsc_deprecated_function_trigger_error' and expects boolean value of true to do
|
792 |
+
* trigger or false to not trigger error.
|
793 |
+
*
|
794 |
+
* @param string $function The function that was called
|
795 |
+
* @param string $version The version of WP e-Commerce that deprecated the function
|
796 |
+
* @param string $replacement Optional. The function that should have been called
|
797 |
+
*/
|
798 |
+
function _wpsc_deprecated_function( $function, $version, $replacement = null ) {
|
799 |
+
do_action( 'wpsc_deprecated_function_run', $function, $replacement, $version );
|
800 |
+
|
801 |
+
// Allow plugin to filter the output error trigger
|
802 |
+
if ( WP_DEBUG && apply_filters( 'wpsc_deprecated_function_trigger_error', true ) ) {
|
803 |
+
if ( ! is_null($replacement) )
|
804 |
+
trigger_error(
|
805 |
+
sprintf( __( '%1$s is <strong>deprecated</strong> since WP e-Commerce version %2$s! Use %3$s instead.', 'wpsc' ),
|
806 |
+
$function,
|
807 |
+
$version,
|
808 |
+
$replacement
|
809 |
+
)
|
810 |
+
);
|
811 |
+
else
|
812 |
+
trigger_error(
|
813 |
+
sprintf( __( '%1$s is <strong>deprecated</strong> since WP e-Commerce version %2$s with no alternative available.', 'wpsc' ),
|
814 |
+
$function,
|
815 |
+
$version
|
816 |
+
)
|
817 |
+
);
|
818 |
+
}
|
819 |
+
}
|
820 |
+
|
821 |
+
/**
|
822 |
+
* Marks a file as deprecated and informs when it has been used.
|
823 |
+
*
|
824 |
+
* There is a hook wpsc_deprecated_file_included that will be called that can be
|
825 |
+
* used to get the backtrace up to what file and function included the
|
826 |
+
* deprecated file.
|
827 |
+
*
|
828 |
+
* The current behavior is to trigger a user error if WP_DEBUG is true.
|
829 |
+
*
|
830 |
+
* This function is to be used in every file that is deprecated.
|
831 |
+
*
|
832 |
+
* @since 3.8.10
|
833 |
+
* @access private
|
834 |
+
*
|
835 |
+
* @uses do_action() Calls 'wpsc_deprecated_file_included' and passes the file name, what to use instead,
|
836 |
+
* the version in which the file was deprecated, and any message regarding the change.
|
837 |
+
* @uses apply_filters() Calls 'wpsc_deprecated_file_trigger_error' and expects boolean value of true to do
|
838 |
+
* trigger or false to not trigger error.
|
839 |
+
*
|
840 |
+
* @param string $file The file that was included
|
841 |
+
* @param string $version The version of WP e-Commerce that deprecated the file
|
842 |
+
* @param string $replacement Optional. The file that should have been included based on ABSPATH
|
843 |
+
* @param string $message Optional. A message regarding the change
|
844 |
+
*/
|
845 |
+
function _wpsc_deprecated_file( $file, $version, $replacement = null, $message = '' ) {
|
846 |
+
|
847 |
+
do_action( 'wpsc_deprecated_file_included', $file, $replacement, $version, $message );
|
848 |
+
|
849 |
+
// Allow plugin to filter the output error trigger
|
850 |
+
if ( WP_DEBUG && apply_filters( 'wpsc_deprecated_file_trigger_error', true ) ) {
|
851 |
+
$message = empty( $message ) ? '' : ' ' . $message;
|
852 |
+
if ( ! is_null( $replacement ) )
|
853 |
+
trigger_error(
|
854 |
+
sprintf( __( '%1$s is <strong>deprecated</strong> since WP e-Commerce version %2$s! Use %3$s instead.', 'wpsc' ),
|
855 |
+
$file,
|
856 |
+
$version,
|
857 |
+
$replacement
|
858 |
+
) . $message
|
859 |
+
);
|
860 |
+
else
|
861 |
+
trigger_error(
|
862 |
+
sprintf( __( '%1$s is <strong>deprecated</strong> since WP e-Commerce version %2$s with no alternative available.', 'wpsc' ),
|
863 |
+
$file,
|
864 |
+
$version
|
865 |
+
) . $message
|
866 |
+
);
|
867 |
+
}
|
868 |
+
}
|
869 |
+
/**
|
870 |
+
* Marks a function argument as deprecated and informs when it has been used.
|
871 |
+
*
|
872 |
+
* This function is to be used whenever a deprecated function argument is used.
|
873 |
+
* Before this function is called, the argument must be checked for whether it
|
874 |
+
* was used by comparing it to its default value or evaluating whether it is
|
875 |
+
* empty.
|
876 |
+
*
|
877 |
+
* For example:
|
878 |
+
* <code>
|
879 |
+
* if ( ! empty( $deprecated ) )
|
880 |
+
* _wpsc_deprecated_argument( __FUNCTION__, '3.8.10' );
|
881 |
+
* </code>
|
882 |
+
*
|
883 |
+
* There is a hook wpsc_deprecated_argument_run that will be called that can be
|
884 |
+
* used to get the backtrace up to what file and function used the deprecated
|
885 |
+
* argument.
|
886 |
+
*
|
887 |
+
* The current behavior is to trigger a user error if WP_DEBUG is true.
|
888 |
+
*
|
889 |
+
* @since 3.8.10
|
890 |
+
* @access private
|
891 |
+
*
|
892 |
+
* @uses do_action() Calls 'wpsc_deprecated_argument_run' and passes the function name, a message on the change,
|
893 |
+
* and the version in which the argument was deprecated.
|
894 |
+
* @uses apply_filters() Calls 'wpsc_deprecated_argument_trigger_error' and expects boolean value of true to do
|
895 |
+
* trigger or false to not trigger error.
|
896 |
+
*
|
897 |
+
* @param string $function The function that was called
|
898 |
+
* @param string $version The version of WP e-Commerce that deprecated the argument used
|
899 |
+
* @param string $message Optional. A message regarding the change.
|
900 |
+
*/
|
901 |
+
function _wpsc_deprecated_argument( $function, $version, $message = null ) {
|
902 |
+
|
903 |
+
do_action( 'wpsc_deprecated_argument_run', $function, $message, $version );
|
904 |
+
|
905 |
+
// Allow plugin to filter the output error trigger
|
906 |
+
if ( WP_DEBUG && apply_filters( 'wpsc_deprecated_argument_trigger_error', true ) ) {
|
907 |
+
if ( ! is_null( $message ) )
|
908 |
+
trigger_error(
|
909 |
+
sprintf(
|
910 |
+
__( '%1$s was called with an argument that is <strong>deprecated</strong> since WP e-Commerce version %2$s! %3$s', 'wpsc' ),
|
911 |
+
$function,
|
912 |
+
$version,
|
913 |
+
$message
|
914 |
+
)
|
915 |
+
);
|
916 |
+
else
|
917 |
+
trigger_error(
|
918 |
+
sprintf(
|
919 |
+
__( '%1$s was called with an argument that is <strong>deprecated</strong> since WP e-Commerce version %2$s with no alternative available.', 'wpsc' ),
|
920 |
+
$function,
|
921 |
+
$version
|
922 |
+
)
|
923 |
+
);
|
924 |
+
}
|
925 |
+
}
|
926 |
+
|
927 |
+
/**
|
928 |
+
* Marks something as being incorrectly called.
|
929 |
+
*
|
930 |
+
* There is a hook wpsc_doing_it_wrong_run that will be called that can be used
|
931 |
+
* to get the backtrace up to what file and function called the deprecated
|
932 |
+
* function.
|
933 |
+
*
|
934 |
+
* The current behavior is to trigger a user error if WP_DEBUG is true.
|
935 |
+
*
|
936 |
+
* @since 3.8.10
|
937 |
+
* @access private
|
938 |
+
*
|
939 |
+
* @uses do_action() Calls 'wpsc_doing_it_wrong_run' and passes the function arguments.
|
940 |
+
* @uses apply_filters() Calls 'wpsc_doing_it_wrong_trigger_error' and expects boolean value of true to do
|
941 |
+
* trigger or false to not trigger error.
|
942 |
+
*
|
943 |
+
* @param string $function The function that was called.
|
944 |
+
* @param string $message A message explaining what has been done incorrectly.
|
945 |
+
* @param string $version The version of WP e-Commerce where the message was added.
|
946 |
+
*/
|
947 |
+
function _wpsc_doing_it_wrong( $function, $message, $version ) {
|
948 |
+
|
949 |
+
do_action( 'wpsc_doing_it_wrong_run', $function, $message, $version );
|
950 |
+
|
951 |
+
// Allow plugin to filter the output error trigger
|
952 |
+
if ( WP_DEBUG && apply_filters( 'wpsc_doing_it_wrong_trigger_error', true ) ) {
|
953 |
+
$version = is_null( $version )
|
954 |
+
? ''
|
955 |
+
: sprintf( __( '(This message was added in WP e-Commerce version %s.)', 'wpsc' ), $version );
|
956 |
+
$message .= ' ' . __( 'Please see <a href="http://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information.', 'wpsc' );
|
957 |
+
trigger_error(
|
958 |
+
sprintf(
|
959 |
+
__( '%1$s was called <strong>incorrectly</strong>. %2$s %3$s', 'wpsc' ),
|
960 |
+
$function,
|
961 |
+
$message,
|
962 |
+
$version
|
963 |
+
)
|
964 |
+
);
|
965 |
+
}
|
966 |
+
}
|
wpsc-includes/processing.functions.php
CHANGED
@@ -28,18 +28,9 @@ function wpsc_currency_display( $price_in, $args = null ) {
|
|
28 |
$decimals = 2; // default is 2
|
29 |
|
30 |
$decimals = apply_filters('wpsc_modify_decimals' , $decimals);
|
31 |
-
if('' == get_option('wpsc_decimal_separator'))
|
32 |
-
$decimal_separator = '.';
|
33 |
-
else
|
34 |
-
$decimal_separator = get_option( 'wpsc_decimal_separator' );
|
35 |
-
|
36 |
-
if('' == get_option('wpsc_thousands_separator'))
|
37 |
-
$thousands_separator = '.';
|
38 |
-
else
|
39 |
-
$thousands_separator = get_option( 'wpsc_thousands_separator' );
|
40 |
|
41 |
// Format the price for output
|
42 |
-
$price_out =
|
43 |
|
44 |
if ( ! $query['isocode'] ) {
|
45 |
// Get currency settings
|
@@ -212,18 +203,7 @@ function wpsc_get_mimetype($file, $check_reliability = false) {
|
|
212 |
}
|
213 |
}
|
214 |
|
215 |
-
function wpsc_convert_weights($weight, $unit) {
|
216 |
-
_deprecated_function( __FUNCTION__, '3.8', 'wpsc_convert_weight' );
|
217 |
-
if (is_array($weight)) {
|
218 |
-
$weight = $weight['weight'];
|
219 |
-
}
|
220 |
-
return wpsc_convert_weight( $weight, $unit, 'gram', true );
|
221 |
-
}
|
222 |
-
|
223 |
function wpsc_convert_weight($in_weight, $in_unit, $out_unit = 'pound', $raw = false) {
|
224 |
-
if (isset($weight) && is_array($weight)) {
|
225 |
-
$weight = $weight['weight'];
|
226 |
-
}
|
227 |
switch($in_unit) {
|
228 |
case "kilogram":
|
229 |
$intermediate_weight = $in_weight * 1000;
|
28 |
$decimals = 2; // default is 2
|
29 |
|
30 |
$decimals = apply_filters('wpsc_modify_decimals' , $decimals);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
|
32 |
// Format the price for output
|
33 |
+
$price_out = wpsc_format_number( $price_in, $decimals );
|
34 |
|
35 |
if ( ! $query['isocode'] ) {
|
36 |
// Get currency settings
|
203 |
}
|
204 |
}
|
205 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
206 |
function wpsc_convert_weight($in_weight, $in_unit, $out_unit = 'pound', $raw = false) {
|
|
|
|
|
|
|
207 |
switch($in_unit) {
|
208 |
case "kilogram":
|
209 |
$intermediate_weight = $in_weight * 1000;
|
wpsc-includes/product-template.php
CHANGED
@@ -654,26 +654,6 @@ function wpsc_the_product() {
|
|
654 |
$wpsc_variations = new wpsc_variations( get_the_ID() );
|
655 |
}
|
656 |
|
657 |
-
/**
|
658 |
-
* wpsc in the loop function,
|
659 |
-
* @return boolean - true if we are in the loop
|
660 |
-
*/
|
661 |
-
function wpsc_in_the_loop() {
|
662 |
-
_deprecated_function( __FUNCTION__, '3.8', 'the updated ' . __FUNCTION__ . '' );
|
663 |
-
global $wpsc_query;
|
664 |
-
return $wpsc_query->in_the_loop;
|
665 |
-
}
|
666 |
-
|
667 |
-
/**
|
668 |
-
* wpsc rewind products function, rewinds back to the first product
|
669 |
-
* @return nothing
|
670 |
-
*/
|
671 |
-
function wpsc_rewind_products() {
|
672 |
-
_deprecated_function( __FUNCTION__, '3.8', 'the updated ' . __FUNCTION__ . '' );
|
673 |
-
global $wpsc_query;
|
674 |
-
return $wpsc_query->rewind_posts();
|
675 |
-
}
|
676 |
-
|
677 |
/**
|
678 |
* wpsc the product id function,
|
679 |
* @return integer - the product ID
|
@@ -712,8 +692,8 @@ function wpsc_edit_the_product_link( $link = null, $before = '', $after = '', $i
|
|
712 |
* wpsc the product title function
|
713 |
* @return string - the product title
|
714 |
*/
|
715 |
-
function wpsc_the_product_title() {
|
716 |
-
return get_the_title();
|
717 |
}
|
718 |
|
719 |
/**
|
@@ -850,7 +830,7 @@ function wpsc_check_variation_stock_availability( $product_id, $variations ) {
|
|
850 |
|
851 |
foreach ( $selected_post as $variation ) {
|
852 |
$matches = 0;
|
853 |
-
$terms =
|
854 |
foreach ( $terms as $term ) {
|
855 |
if ( in_array( $term->term_id, $variations ) )
|
856 |
$matches++;
|
@@ -1011,19 +991,6 @@ function wpsc_product_on_special( $id = 0 ) {
|
|
1011 |
return $on_special[$id];
|
1012 |
}
|
1013 |
|
1014 |
-
/**
|
1015 |
-
* wpsc product has file function
|
1016 |
-
* @return boolean - true if the product has a file
|
1017 |
-
*/
|
1018 |
-
function wpsc_product_has_file() {
|
1019 |
-
_deprecated_function( __FUNCTION__, '3.8', 'the updated ' . __FUNCTION__ . '' );
|
1020 |
-
global $wpsc_query, $wpdb;
|
1021 |
-
if ( is_numeric( $wpsc_query->product['file'] ) && ($wpsc_query->product['file'] > 0) )
|
1022 |
-
return true;
|
1023 |
-
|
1024 |
-
return false;
|
1025 |
-
}
|
1026 |
-
|
1027 |
/**
|
1028 |
* wpsc product is modifiable function
|
1029 |
* @return boolean - true if the product has a file
|
@@ -1506,7 +1473,7 @@ function wpsc_vargrp_id() {
|
|
1506 |
*/
|
1507 |
function wpsc_the_variation_name() {
|
1508 |
global $wpsc_variations;
|
1509 |
-
return esc_html( $wpsc_variations->variation->name );
|
1510 |
}
|
1511 |
|
1512 |
/**
|
@@ -1643,20 +1610,6 @@ function wpsc_product_new_rating( $product_id ) {
|
|
1643 |
return $output;
|
1644 |
}
|
1645 |
|
1646 |
-
/**
|
1647 |
-
* wpsc currency sign function
|
1648 |
-
* @return string - the selected currency sign for the store
|
1649 |
-
*/
|
1650 |
-
function wpsc_currency_sign() {
|
1651 |
-
_deprecated_function( __FUNCTION__, '3.8', 'the updated ' . __FUNCTION__ . '' );
|
1652 |
-
global $wpdb;
|
1653 |
-
$currency_sign_location = get_option( 'currency_sign_location' );
|
1654 |
-
$currency_type = get_option( 'currency_type' );
|
1655 |
-
$currency_symbol = $wpdb->get_var( $wpdb->prepare( "SELECT `symbol_html` FROM `" . WPSC_TABLE_CURRENCY_LIST . "` WHERE `id` = %d LIMIT 1", $currency_type ) );
|
1656 |
-
|
1657 |
-
return $currency_symbol;
|
1658 |
-
}
|
1659 |
-
|
1660 |
/**
|
1661 |
* wpsc has pages function
|
1662 |
* @return boolean - true if we have pages
|
@@ -1681,28 +1634,6 @@ function wpsc_has_multi_adding() {
|
|
1681 |
}
|
1682 |
}
|
1683 |
|
1684 |
-
/**
|
1685 |
-
* wpsc page is selected function
|
1686 |
-
* @return boolean - true if the page is selected
|
1687 |
-
*/
|
1688 |
-
function wpsc_page_is_selected() {
|
1689 |
-
_deprecated_function( __FUNCTION__, '3.8', 'the updated ' . __FUNCTION__ . '' );
|
1690 |
-
// determine if we are on this page
|
1691 |
-
global $wpsc_query;
|
1692 |
-
return $wpsc_query->page['selected'];
|
1693 |
-
}
|
1694 |
-
|
1695 |
-
/**
|
1696 |
-
* wpsc page URL function
|
1697 |
-
* @return string - the page URL
|
1698 |
-
*/
|
1699 |
-
function wpsc_page_url() {
|
1700 |
-
_deprecated_function( __FUNCTION__, '3.8', 'the updated ' . __FUNCTION__ . '' );
|
1701 |
-
// generate the page URL
|
1702 |
-
global $wpsc_query;
|
1703 |
-
return $wpsc_query->page['url'];
|
1704 |
-
}
|
1705 |
-
|
1706 |
/**
|
1707 |
* wpsc product count function
|
1708 |
* @return string - the page URL
|
@@ -2008,6 +1939,7 @@ function wpsc_the_product_price_display( $args = array() ) {
|
|
2008 |
$attributes .= ' style="display:none;"';
|
2009 |
$you_save_before = sprintf( $you_save_before, $attributes );
|
2010 |
$you_save_amount_before = sprintf( $you_save_amount_before, esc_attr( $you_save_amount_class ), esc_attr( $you_save_amount_id ) );
|
|
|
2011 |
|
2012 |
$old_price = $old_price_amount_before . $old_price . $old_price_amount_after;
|
2013 |
$current_price = $price_amount_before . $current_price . $price_amount_after;
|
654 |
$wpsc_variations = new wpsc_variations( get_the_ID() );
|
655 |
}
|
656 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
657 |
/**
|
658 |
* wpsc the product id function,
|
659 |
* @return integer - the product ID
|
692 |
* wpsc the product title function
|
693 |
* @return string - the product title
|
694 |
*/
|
695 |
+
function wpsc_the_product_title( $post = 0 ) {
|
696 |
+
return get_the_title( $post );
|
697 |
}
|
698 |
|
699 |
/**
|
830 |
|
831 |
foreach ( $selected_post as $variation ) {
|
832 |
$matches = 0;
|
833 |
+
$terms = wpsc_get_product_terms( $variation->ID, 'wpsc-variation' );
|
834 |
foreach ( $terms as $term ) {
|
835 |
if ( in_array( $term->term_id, $variations ) )
|
836 |
$matches++;
|
991 |
return $on_special[$id];
|
992 |
}
|
993 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
994 |
/**
|
995 |
* wpsc product is modifiable function
|
996 |
* @return boolean - true if the product has a file
|
1473 |
*/
|
1474 |
function wpsc_the_variation_name() {
|
1475 |
global $wpsc_variations;
|
1476 |
+
return esc_html( apply_filters( 'wpsc_variation_name', $wpsc_variations->variation->name ) );
|
1477 |
}
|
1478 |
|
1479 |
/**
|
1610 |
return $output;
|
1611 |
}
|
1612 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1613 |
/**
|
1614 |
* wpsc has pages function
|
1615 |
* @return boolean - true if we have pages
|
1634 |
}
|
1635 |
}
|
1636 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1637 |
/**
|
1638 |
* wpsc product count function
|
1639 |
* @return string - the page URL
|
1939 |
$attributes .= ' style="display:none;"';
|
1940 |
$you_save_before = sprintf( $you_save_before, $attributes );
|
1941 |
$you_save_amount_before = sprintf( $you_save_amount_before, esc_attr( $you_save_amount_class ), esc_attr( $you_save_amount_id ) );
|
1942 |
+
$you_save = wpsc_currency_display ( $you_save );
|
1943 |
|
1944 |
$old_price = $old_price_amount_before . $old_price . $old_price_amount_after;
|
1945 |
$current_price = $price_amount_before . $current_price . $price_amount_after;
|
wpsc-includes/productfeed.php
CHANGED
@@ -21,6 +21,11 @@ function wpsc_generate_product_feed() {
|
|
21 |
global $wpdb, $wp_query, $post;
|
22 |
|
23 |
set_time_limit(0);
|
|
|
|
|
|
|
|
|
|
|
24 |
|
25 |
// Don't build up a huge posts cache for the whole store - http://code.google.com/p/wp-e-commerce/issues/detail?id=885
|
26 |
// WP 3.3+ only
|
@@ -55,7 +60,7 @@ function wpsc_generate_product_feed() {
|
|
55 |
|
56 |
$google_checkout_note = false;
|
57 |
|
58 |
-
if ($
|
59 |
echo ' xmlns:g="http://base.google.com/ns/1.0"';
|
60 |
// Is Google Checkout available as a payment gateway
|
61 |
$selected_gateways = get_option('custom_gateway_options');
|
@@ -98,10 +103,10 @@ function wpsc_generate_product_feed() {
|
|
98 |
|
99 |
if ($image_link !== FALSE) {
|
100 |
|
101 |
-
if ($
|
102 |
-
echo " <g:image_link
|
103 |
} else {
|
104 |
-
echo " <enclosure url='$image_link' />\n\r";
|
105 |
}
|
106 |
|
107 |
}
|
@@ -128,7 +133,7 @@ function wpsc_generate_product_feed() {
|
|
128 |
}
|
129 |
}
|
130 |
|
131 |
-
if ($
|
132 |
|
133 |
echo " <g:price>".$price."</g:price>\n\r";
|
134 |
|
21 |
global $wpdb, $wp_query, $post;
|
22 |
|
23 |
set_time_limit(0);
|
24 |
+
|
25 |
+
$xmlformat = '';
|
26 |
+
if ( isset( $_GET['xmlformat'] ) ) {
|
27 |
+
$xmlformat = $_GET['xmlformat'];
|
28 |
+
}
|
29 |
|
30 |
// Don't build up a huge posts cache for the whole store - http://code.google.com/p/wp-e-commerce/issues/detail?id=885
|
31 |
// WP 3.3+ only
|
60 |
|
61 |
$google_checkout_note = false;
|
62 |
|
63 |
+
if ( $xmlformat == 'google' ) {
|
64 |
echo ' xmlns:g="http://base.google.com/ns/1.0"';
|
65 |
// Is Google Checkout available as a payment gateway
|
66 |
$selected_gateways = get_option('custom_gateway_options');
|
103 |
|
104 |
if ($image_link !== FALSE) {
|
105 |
|
106 |
+
if ( $xmlformat == 'google' ) {
|
107 |
+
echo " <g:image_link><![CDATA[$image_link]]></g:image_link>\n\r";
|
108 |
} else {
|
109 |
+
echo " <enclosure url='" . esc_url( $image_link ) . "' />\n\r";
|
110 |
}
|
111 |
|
112 |
}
|
133 |
}
|
134 |
}
|
135 |
|
136 |
+
if ( $xmlformat == 'google' ) {
|
137 |
|
138 |
echo " <g:price>".$price."</g:price>\n\r";
|
139 |
|
wpsc-includes/purchase-log-notification.class.php
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
<?php
|
2 |
-
abstract class WPSC_Purchase_Log_Notification
|
3 |
-
{
|
4 |
protected $address;
|
5 |
protected $args = array();
|
6 |
protected $raw_message = '';
|
@@ -283,8 +282,7 @@ abstract class WPSC_Purchase_Log_Notification
|
|
283 |
}
|
284 |
}
|
285 |
|
286 |
-
class WPSC_Purchase_Log_Customer_Notification extends WPSC_Purchase_Log_Notification
|
287 |
-
{
|
288 |
public function get_raw_message() {
|
289 |
$raw_message = '';
|
290 |
|
@@ -322,8 +320,7 @@ class WPSC_Purchase_Log_Customer_Notification extends WPSC_Purchase_Log_Notifica
|
|
322 |
}
|
323 |
}
|
324 |
|
325 |
-
class WPSC_Purchase_Log_Admin_Notification extends WPSC_Purchase_Log_Notification
|
326 |
-
{
|
327 |
public function get_address() {
|
328 |
return apply_filters( 'wpsc_purchase_log_admin_notification_address', get_option( 'purch_log_email' ), $this );
|
329 |
}
|
@@ -419,8 +416,7 @@ class WPSC_Purchase_Log_Admin_Notification extends WPSC_Purchase_Log_Notificatio
|
|
419 |
}
|
420 |
}
|
421 |
|
422 |
-
class WPSC_Purchase_Log_Customer_HTML_Notification extends WPSC_Purchase_Log_Customer_Notification
|
423 |
-
{
|
424 |
public function get_raw_message() {
|
425 |
$raw_message = apply_filters( 'wpsc_pre_transaction_results', '', $this );
|
426 |
if ( ! $this->purchase_log->is_transaction_completed() )
|
1 |
<?php
|
2 |
+
abstract class WPSC_Purchase_Log_Notification {
|
|
|
3 |
protected $address;
|
4 |
protected $args = array();
|
5 |
protected $raw_message = '';
|
282 |
}
|
283 |
}
|
284 |
|
285 |
+
class WPSC_Purchase_Log_Customer_Notification extends WPSC_Purchase_Log_Notification {
|
|
|
286 |
public function get_raw_message() {
|
287 |
$raw_message = '';
|
288 |
|
320 |
}
|
321 |
}
|
322 |
|
323 |
+
class WPSC_Purchase_Log_Admin_Notification extends WPSC_Purchase_Log_Notification {
|
|
|
324 |
public function get_address() {
|
325 |
return apply_filters( 'wpsc_purchase_log_admin_notification_address', get_option( 'purch_log_email' ), $this );
|
326 |
}
|
416 |
}
|
417 |
}
|
418 |
|
419 |
+
class WPSC_Purchase_Log_Customer_HTML_Notification extends WPSC_Purchase_Log_Customer_Notification {
|
|
|
420 |
public function get_raw_message() {
|
421 |
$raw_message = apply_filters( 'wpsc_pre_transaction_results', '', $this );
|
422 |
if ( ! $this->purchase_log->is_transaction_completed() )
|
wpsc-includes/purchase-log.class.php
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
<?php
|
2 |
-
class WPSC_Purchase_Log
|
3 |
-
{
|
4 |
const INCOMPLETE_SALE = 1;
|
5 |
const ORDER_RECEIVED = 2;
|
6 |
const ACCEPTED_PAYMENT = 3;
|
1 |
<?php
|
2 |
+
class WPSC_Purchase_Log {
|
|
|
3 |
const INCOMPLETE_SALE = 1;
|
4 |
const ORDER_RECEIVED = 2;
|
5 |
const ACCEPTED_PAYMENT = 3;
|
wpsc-includes/purchase-log.helpers.php
CHANGED
@@ -196,7 +196,19 @@ function _wpsc_action_update_purchase_log_status( $id, $status, $old_status, $pu
|
|
196 |
wpsc_send_admin_email( $purchase_log );
|
197 |
}
|
198 |
|
199 |
-
if ( ! $purchase_log->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
200 |
return;
|
201 |
|
202 |
_wpsc_process_transaction_coupon( $purchase_log );
|
196 |
wpsc_send_admin_email( $purchase_log );
|
197 |
}
|
198 |
|
199 |
+
if ( ! $purchase_log->is_transaction_completed() )
|
200 |
+
return;
|
201 |
+
|
202 |
+
$already_processed = in_array(
|
203 |
+
$old_status,
|
204 |
+
array(
|
205 |
+
WPSC_Purchase_Log::ACCEPTED_PAYMENT,
|
206 |
+
WPSC_Purchase_Log::JOB_DISPATCHED,
|
207 |
+
WPSC_Purchase_Log::CLOSED_ORDER,
|
208 |
+
)
|
209 |
+
);
|
210 |
+
|
211 |
+
if ( $already_processed )
|
212 |
return;
|
213 |
|
214 |
_wpsc_process_transaction_coupon( $purchase_log );
|
wpsc-includes/purchaselogs.class.php
CHANGED
@@ -107,7 +107,10 @@ function wpsc_purchlogs_custommessages() {
|
|
107 |
$messages = array();
|
108 |
foreach ( $purchlogitem->allcartcontent as $cartitem ) {
|
109 |
if ( $cartitem->custom_message != '' ) {
|
110 |
-
$messages[] =
|
|
|
|
|
|
|
111 |
}
|
112 |
}
|
113 |
return $messages;
|
@@ -329,12 +332,6 @@ function wpsc_display_purchlog_buyers_email() {
|
|
329 |
|
330 |
function wpsc_display_purchlog_buyers_address() {
|
331 |
global $purchlogitem;
|
332 |
-
|
333 |
-
if(is_numeric($purchlogitem->extrainfo->billing_region))
|
334 |
-
$state = wpsc_get_region($purchlogitem->extrainfo->billing_region);
|
335 |
-
else
|
336 |
-
$state = $purchlogitem->userinfo['billingstate']['value'];
|
337 |
-
|
338 |
return nl2br( esc_html( $purchlogitem->userinfo['billingaddress']['value'] ) );
|
339 |
}
|
340 |
|
@@ -644,7 +641,7 @@ class wpsc_purchaselogs {
|
|
644 |
$delete_log_form_sql = "SELECT * FROM `" . WPSC_TABLE_CART_CONTENTS . "` WHERE `purchaseid`='$deleteid'";
|
645 |
$cart_content = $wpdb->get_results( $delete_log_form_sql, ARRAY_A );
|
646 |
$wpdb->query( "DELETE FROM `" . WPSC_TABLE_CART_CONTENTS . "` WHERE `purchaseid`='$deleteid'" );
|
647 |
-
$wpdb->query( "DELETE FROM `" .
|
648 |
$wpdb->query( "DELETE FROM `" . WPSC_TABLE_PURCHASE_LOGS . "` WHERE `id`='$deleteid' LIMIT 1" );
|
649 |
return '<div id="message" class="updated fade"><p>' . __( 'Thanks, the purchase log record has been deleted', 'wpsc' ) . '</p></div>';
|
650 |
}
|
@@ -741,11 +738,11 @@ class wpsc_purchaselogs {
|
|
741 |
$i++;
|
742 |
}
|
743 |
|
744 |
-
$sql = "SELECT value FROM " .
|
745 |
$email = $wpdb->get_var( $sql );
|
746 |
-
$sql = "SELECT value FROM " .
|
747 |
$fname = $wpdb->get_var( $sql );
|
748 |
-
$sql = "SELECT value FROM " .
|
749 |
$lname = $wpdb->get_var( $sql );
|
750 |
$namestring = esc_html( $fname ) . ' ' . esc_html( $lname ) . ' (<a href="mailto:' . esc_attr( $email ) . '?subject=Message From ' . get_option( 'siteurl' ) . '">' . esc_html( $email ) . '</a>) ';
|
751 |
if ( $fname == '' && $lname == '' && $email == '' ) {
|
@@ -763,7 +760,7 @@ class wpsc_purchaselogs {
|
|
763 |
|
764 |
function search_purchlog_view( $searchterm ) {
|
765 |
global $wpdb;
|
766 |
-
$sql = $wpdb->prepare( "SELECT DISTINCT `" . WPSC_TABLE_PURCHASE_LOGS . "` . * FROM `" .
|
767 |
$newlogs = $wpdb->get_results( $sql );
|
768 |
$_SESSION['newlogs'] = $newlogs;
|
769 |
return $newlogs;
|
@@ -811,12 +808,12 @@ class wpsc_purchaselogs_items {
|
|
811 |
$cartcontent = $wpdb->get_results( "SELECT * FROM `" . WPSC_TABLE_CART_CONTENTS . "` WHERE `purchaseid`=" . $this->purchlogid . "" );
|
812 |
|
813 |
$this->allcartcontent = $cartcontent;
|
814 |
-
$sql = "SELECT DISTINCT `" . WPSC_TABLE_PURCHASE_LOGS . "` . * FROM `" .
|
815 |
$extrainfo = $wpdb->get_results( $sql );
|
816 |
|
817 |
$this->extrainfo = $extrainfo[0];
|
818 |
|
819 |
-
$usersql = "SELECT `" .
|
820 |
$userinfo = $wpdb->get_results( $usersql, ARRAY_A );
|
821 |
|
822 |
// the $additionaldetails array is buggy because if the fields have the same name, they will
|
107 |
$messages = array();
|
108 |
foreach ( $purchlogitem->allcartcontent as $cartitem ) {
|
109 |
if ( $cartitem->custom_message != '' ) {
|
110 |
+
$messages[] = array(
|
111 |
+
'title' => apply_filters( 'the_title', $cartitem->name ),
|
112 |
+
'message' => $cartitem->custom_message,
|
113 |
+
);
|
114 |
}
|
115 |
}
|
116 |
return $messages;
|
332 |
|
333 |
function wpsc_display_purchlog_buyers_address() {
|
334 |
global $purchlogitem;
|
|
|
|
|
|
|
|
|
|
|
|
|
335 |
return nl2br( esc_html( $purchlogitem->userinfo['billingaddress']['value'] ) );
|
336 |
}
|
337 |
|
641 |
$delete_log_form_sql = "SELECT * FROM `" . WPSC_TABLE_CART_CONTENTS . "` WHERE `purchaseid`='$deleteid'";
|
642 |
$cart_content = $wpdb->get_results( $delete_log_form_sql, ARRAY_A );
|
643 |
$wpdb->query( "DELETE FROM `" . WPSC_TABLE_CART_CONTENTS . "` WHERE `purchaseid`='$deleteid'" );
|
644 |
+
$wpdb->query( "DELETE FROM `" . WPSC_TABLE_SUBMITTED_FORM_DATA . "` WHERE `log_id` IN ('$deleteid')" );
|
645 |
$wpdb->query( "DELETE FROM `" . WPSC_TABLE_PURCHASE_LOGS . "` WHERE `id`='$deleteid' LIMIT 1" );
|
646 |
return '<div id="message" class="updated fade"><p>' . __( 'Thanks, the purchase log record has been deleted', 'wpsc' ) . '</p></div>';
|
647 |
}
|
738 |
$i++;
|
739 |
}
|
740 |
|
741 |
+
$sql = "SELECT value FROM " . WPSC_TABLE_SUBMITTED_FORM_DATA . " WHERE log_id=" . $this->purchitem->id . " AND form_id=" . $emailformid;
|
742 |
$email = $wpdb->get_var( $sql );
|
743 |
+
$sql = "SELECT value FROM " . WPSC_TABLE_SUBMITTED_FORM_DATA . " WHERE log_id=" . $this->purchitem->id . " AND form_id=" . $fNameformid;
|
744 |
$fname = $wpdb->get_var( $sql );
|
745 |
+
$sql = "SELECT value FROM " . WPSC_TABLE_SUBMITTED_FORM_DATA . " WHERE log_id=" . $this->purchitem->id . " AND form_id=" . $lNameformid;
|
746 |
$lname = $wpdb->get_var( $sql );
|
747 |
$namestring = esc_html( $fname ) . ' ' . esc_html( $lname ) . ' (<a href="mailto:' . esc_attr( $email ) . '?subject=Message From ' . get_option( 'siteurl' ) . '">' . esc_html( $email ) . '</a>) ';
|
748 |
if ( $fname == '' && $lname == '' && $email == '' ) {
|
760 |
|
761 |
function search_purchlog_view( $searchterm ) {
|
762 |
global $wpdb;
|
763 |
+
$sql = $wpdb->prepare( "SELECT DISTINCT `" . WPSC_TABLE_PURCHASE_LOGS . "` . * FROM `" . WPSC_TABLE_SUBMITTED_FORM_DATA . "` LEFT JOIN `" . WPSC_TABLE_PURCHASE_LOGS . "` ON `" . WPSC_TABLE_SUBMITTED_FORM_DATA . "`.`log_id` = `" . WPSC_TABLE_PURCHASE_LOGS . "`.`id` WHERE `" . WPSC_TABLE_SUBMITTED_FORM_DATA . "`.`value` LIKE '%" . like_escape( $searchterm ) . "%' OR `" . WPSC_TABLE_PURCHASE_LOGS . "`.`transactid` = %s OR `" . WPSC_TABLE_PURCHASE_LOGS . "`.`track_id` LIKE '%" . like_escape( $searchterm )."%'", $searchterm );
|
764 |
$newlogs = $wpdb->get_results( $sql );
|
765 |
$_SESSION['newlogs'] = $newlogs;
|
766 |
return $newlogs;
|
808 |
$cartcontent = $wpdb->get_results( "SELECT * FROM `" . WPSC_TABLE_CART_CONTENTS . "` WHERE `purchaseid`=" . $this->purchlogid . "" );
|
809 |
|
810 |
$this->allcartcontent = $cartcontent;
|
811 |
+
$sql = "SELECT DISTINCT `" . WPSC_TABLE_PURCHASE_LOGS . "` . * FROM `" . WPSC_TABLE_SUBMITTED_FORM_DATA . "` LEFT JOIN `" . WPSC_TABLE_PURCHASE_LOGS . "` ON `" . WPSC_TABLE_SUBMITTED_FORM_DATA . "`.`log_id` = `" . WPSC_TABLE_PURCHASE_LOGS . "`.`id` WHERE `" . WPSC_TABLE_PURCHASE_LOGS . "`.`id`=" . $this->purchlogid;
|
812 |
$extrainfo = $wpdb->get_results( $sql );
|
813 |
|
814 |
$this->extrainfo = $extrainfo[0];
|
815 |
|
816 |
+
$usersql = "SELECT `" . WPSC_TABLE_SUBMITTED_FORM_DATA . "`.`id`, `" . WPSC_TABLE_SUBMITTED_FORM_DATA . "`.`value`, `" . WPSC_TABLE_CHECKOUT_FORMS . "`.`name`, `" . WPSC_TABLE_CHECKOUT_FORMS . "`.`unique_name` FROM `" . WPSC_TABLE_CHECKOUT_FORMS . "` LEFT JOIN `" . WPSC_TABLE_SUBMITTED_FORM_DATA . "` ON `" . WPSC_TABLE_CHECKOUT_FORMS . "`.id = `" . WPSC_TABLE_SUBMITTED_FORM_DATA . "`.`form_id` WHERE `" . WPSC_TABLE_SUBMITTED_FORM_DATA . "`.`log_id`=" . $this->purchlogid . " ORDER BY `" . WPSC_TABLE_CHECKOUT_FORMS . "`.`checkout_order`";
|
817 |
$userinfo = $wpdb->get_results( $usersql, ARRAY_A );
|
818 |
|
819 |
// the $additionaldetails array is buggy because if the fields have the same name, they will
|
wpsc-includes/shortcode.functions.php
CHANGED
@@ -12,7 +12,14 @@
|
|
12 |
*/
|
13 |
|
14 |
/**
|
15 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
* @return string - html displaying one or more products, derived from wpsc_display_products
|
17 |
*/
|
18 |
function wpsc_products_shorttag($atts) {
|
@@ -58,10 +65,17 @@ function wpsc_products_shorttag($atts) {
|
|
58 |
}
|
59 |
add_shortcode('wpsc_products', 'wpsc_products_shorttag');
|
60 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
function wpsc_buy_now_shortcode($atts){
|
62 |
$output = wpsc_buy_now_button( $atts['product_id'], true );
|
63 |
return $output;
|
64 |
}
|
65 |
|
66 |
-
add_shortcode('buy_now_button', 'wpsc_buy_now_shortcode');
|
67 |
-
?>
|
12 |
*/
|
13 |
|
14 |
/**
|
15 |
+
* Displays products based on defined parameters
|
16 |
+
*
|
17 |
+
* @uses get_post_type() Returns string for current post_type
|
18 |
+
* @uses shortcode_atts() Combine user attributes with known attributes and fill in defaults when needed.
|
19 |
+
* @uses get_option() Gets option from the WordPress database
|
20 |
+
* @uses get_query_var() Retrieve variable in the WP_Query class.
|
21 |
+
* @uses wpsc_display_products_page() Displays products
|
22 |
+
*
|
23 |
* @return string - html displaying one or more products, derived from wpsc_display_products
|
24 |
*/
|
25 |
function wpsc_products_shorttag($atts) {
|
65 |
}
|
66 |
add_shortcode('wpsc_products', 'wpsc_products_shorttag');
|
67 |
|
68 |
+
/**
|
69 |
+
* Shows the WPSC buy now button
|
70 |
+
*
|
71 |
+
* @uses wpsce_buy_now_button() Shows the buy now button for a given product_id
|
72 |
+
*
|
73 |
+
* @param $atts The shortcode attributes. In this case, the product_id
|
74 |
+
* @return string
|
75 |
+
*/
|
76 |
function wpsc_buy_now_shortcode($atts){
|
77 |
$output = wpsc_buy_now_button( $atts['product_id'], true );
|
78 |
return $output;
|
79 |
}
|
80 |
|
81 |
+
add_shortcode('buy_now_button', 'wpsc_buy_now_shortcode');
|
|
wpsc-includes/theme.functions.php
CHANGED
@@ -437,41 +437,40 @@ function _wpsc_is_in_custom_loop() {
|
|
437 |
|
438 |
/**
|
439 |
* Checks and replaces the Page title with the category title if on a category page
|
440 |
-
* @access public
|
441 |
*
|
442 |
* @since 3.8
|
443 |
-
* @
|
444 |
-
*
|
445 |
-
* @
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
446 |
*/
|
447 |
-
function wpsc_the_category_title($title='', $id=''){
|
448 |
-
|
|
|
|
|
|
|
449 |
if ( ! in_the_loop() || _wpsc_is_in_custom_loop() )
|
450 |
return $title;
|
451 |
|
452 |
$term = null;
|
453 |
-
if ( is_tax( 'wpsc_product_category' ) )
|
454 |
$term = get_term_by( 'slug', get_query_var( 'wpsc_product_category' ),'wpsc_product_category' );
|
455 |
-
elseif ( is_tax( '
|
456 |
-
$term = get_term_by( 'slug', get_query_var( 'term' ),'
|
|
|
457 |
|
458 |
if ( $term )
|
459 |
return $term->name;
|
460 |
|
461 |
return $title;
|
462 |
|
463 |
-
//if this is paginated products_page
|
464 |
-
if( $wp_query->in_the_loop && empty($category->name) && isset( $wp_query->query_vars['paged'] ) && $wp_query->query_vars['paged'] && isset( $wp_query->query_vars['page'] ) && $wp_query->query_vars['page'] && 'wpsc-product' == $wp_query->query_vars['post_type']){
|
465 |
-
$post_id = wpsc_get_the_post_id_by_shortcode('[productspage]');
|
466 |
-
$post = get_post($post_id);
|
467 |
-
$title = $post->post_title;
|
468 |
-
remove_filter('the_title','wpsc_the_category_title');
|
469 |
-
}
|
470 |
-
|
471 |
-
if(!empty($category->name))
|
472 |
-
return $category->name;
|
473 |
-
else
|
474 |
-
return $title;
|
475 |
}
|
476 |
|
477 |
/**
|
@@ -591,7 +590,7 @@ function wpsc_enqueue_user_script_and_css() {
|
|
591 |
}
|
592 |
}
|
593 |
wp_enqueue_style( 'wpsc-theme-css', wpsc_get_template_file_url( 'wpsc-' . get_option( 'wpsc_selected_theme' ) . '.css' ), false, $version_identifier, 'all' );
|
594 |
-
wp_enqueue_style( 'wpsc-theme-css-compatibility',
|
595 |
|
596 |
if ( function_exists( 'wp_add_inline_style' ) )
|
597 |
wp_add_inline_style( 'wpsc-theme-css', wpsc_get_user_dynamic_css() );
|
@@ -1188,9 +1187,10 @@ function wpsc_place_shopping_cart( $content = '' ) {
|
|
1188 |
// call this function to detect conflicts when the cart page is first loaded, otherwise
|
1189 |
// any conflict messages will only be displayed on the next page load
|
1190 |
wpsc_get_acceptable_countries();
|
1191 |
-
|
1192 |
ob_start();
|
|
|
1193 |
include( wpsc_get_template_file_path( 'wpsc-shopping_cart_page.php' ) );
|
|
|
1194 |
$output = ob_get_contents();
|
1195 |
ob_end_clean();
|
1196 |
$output = str_replace( '$', '\$', $output );
|
@@ -1304,7 +1304,7 @@ function wpsc_remove_page_from_query_string($query_string)
|
|
1304 |
|
1305 |
if ( isset($query_string['name']) && $query_string['name'] == 'page' && isset($query_string['page']) ) {
|
1306 |
unset($query_string['name']);
|
1307 |
-
list($delim, $page_index) =
|
1308 |
|
1309 |
$query_string['paged'] = $page_index;
|
1310 |
}
|
@@ -1362,7 +1362,7 @@ function wpsc_enable_page_filters( $excerpt = '' ) {
|
|
1362 |
add_filter( 'the_content', 'wpsc_products_page', 1 );
|
1363 |
add_filter( 'the_content', 'wpsc_single_template',12 );
|
1364 |
add_filter( 'archive_template','wpsc_the_category_template');
|
1365 |
-
add_filter( 'the_title', 'wpsc_the_category_title',10
|
1366 |
add_filter( 'the_content', 'wpsc_place_shopping_cart', 12 );
|
1367 |
add_filter( 'the_content', 'wpsc_transaction_results', 12 );
|
1368 |
add_filter( 'the_content', 'wpsc_user_log', 12 );
|
437 |
|
438 |
/**
|
439 |
* Checks and replaces the Page title with the category title if on a category page
|
|
|
440 |
*
|
441 |
* @since 3.8
|
442 |
+
* @access public
|
443 |
+
*
|
444 |
+
* @param string $title The Page Title
|
445 |
+
* @param int $id The Page ID
|
446 |
+
* @return string $title The new title
|
447 |
+
*
|
448 |
+
* @uses in_the_loop() Returns true if you are in the loop
|
449 |
+
* @uses _wpsc_is_in_custom_loop() Returns true if in the WPSC custom loop
|
450 |
+
* @uses is_tax() Returns true if you are on the supplied registered taxonomy
|
451 |
+
* @uses get_term_by() Gets term object by defined item, and what you pass
|
452 |
+
* @uses get_query_var() Gets query var from wp_query
|
453 |
*/
|
454 |
+
function wpsc_the_category_title( $title='', $id='' ){
|
455 |
+
|
456 |
+
if ( ! empty( $id ) )
|
457 |
+
_wpsc_deprecated_argument( __FUNCTION__, '3.8.10', 'The $id param is not used. If you are trying to get the title of the category use get_term' );
|
458 |
+
|
459 |
if ( ! in_the_loop() || _wpsc_is_in_custom_loop() )
|
460 |
return $title;
|
461 |
|
462 |
$term = null;
|
463 |
+
if ( is_tax( 'wpsc_product_category' ) ){
|
464 |
$term = get_term_by( 'slug', get_query_var( 'wpsc_product_category' ),'wpsc_product_category' );
|
465 |
+
} elseif ( is_tax( 'product_tag' ) ){
|
466 |
+
$term = get_term_by( 'slug', get_query_var( 'term' ),'product_tag' );
|
467 |
+
} // is_tax
|
468 |
|
469 |
if ( $term )
|
470 |
return $term->name;
|
471 |
|
472 |
return $title;
|
473 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
474 |
}
|
475 |
|
476 |
/**
|
590 |
}
|
591 |
}
|
592 |
wp_enqueue_style( 'wpsc-theme-css', wpsc_get_template_file_url( 'wpsc-' . get_option( 'wpsc_selected_theme' ) . '.css' ), false, $version_identifier, 'all' );
|
593 |
+
wp_enqueue_style( 'wpsc-theme-css-compatibility', wpsc_get_template_file_url( 'compatibility.css' ), array( 'wpsc-theme-css' ), $version_identifier, 'all' );
|
594 |
|
595 |
if ( function_exists( 'wp_add_inline_style' ) )
|
596 |
wp_add_inline_style( 'wpsc-theme-css', wpsc_get_user_dynamic_css() );
|
1187 |
// call this function to detect conflicts when the cart page is first loaded, otherwise
|
1188 |
// any conflict messages will only be displayed on the next page load
|
1189 |
wpsc_get_acceptable_countries();
|
|
|
1190 |
ob_start();
|
1191 |
+
do_action( 'wpsc_before_shopping_cart_page' );
|
1192 |
include( wpsc_get_template_file_path( 'wpsc-shopping_cart_page.php' ) );
|
1193 |
+
do_action( 'wpsc_after_shopping_cart_page' );
|
1194 |
$output = ob_get_contents();
|
1195 |
ob_end_clean();
|
1196 |
$output = str_replace( '$', '\$', $output );
|
1304 |
|
1305 |
if ( isset($query_string['name']) && $query_string['name'] == 'page' && isset($query_string['page']) ) {
|
1306 |
unset($query_string['name']);
|
1307 |
+
list($delim, $page_index) = explode( '/', $query_string['page'] );
|
1308 |
|
1309 |
$query_string['paged'] = $page_index;
|
1310 |
}
|
1362 |
add_filter( 'the_content', 'wpsc_products_page', 1 );
|
1363 |
add_filter( 'the_content', 'wpsc_single_template',12 );
|
1364 |
add_filter( 'archive_template','wpsc_the_category_template');
|
1365 |
+
add_filter( 'the_title', 'wpsc_the_category_title',10 );
|
1366 |
add_filter( 'the_content', 'wpsc_place_shopping_cart', 12 );
|
1367 |
add_filter( 'the_content', 'wpsc_transaction_results', 12 );
|
1368 |
add_filter( 'the_content', 'wpsc_user_log', 12 );
|
wpsc-includes/theming.class.php
CHANGED
File without changes
|
wpsc-includes/variations.class.php
CHANGED
@@ -26,7 +26,7 @@ class wpsc_variations {
|
|
26 |
function wpsc_variations($product_id) {
|
27 |
global $wpdb;
|
28 |
|
29 |
-
$product_terms =
|
30 |
$product_terms = wpsc_get_terms_variation_sort_filter( $product_terms );
|
31 |
|
32 |
$this->variation_groups = array();
|
26 |
function wpsc_variations($product_id) {
|
27 |
global $wpdb;
|
28 |
|
29 |
+
$product_terms = wpsc_get_product_terms( $product_id, 'wpsc-variation' );
|
30 |
$product_terms = wpsc_get_terms_variation_sort_filter( $product_terms );
|
31 |
|
32 |
$this->variation_groups = array();
|
wpsc-languages/EN_en.php
CHANGED
File without changes
|
wpsc-languages/wpsc-cs_CS.mo
CHANGED
File without changes
|
wpsc-languages/wpsc-cs_CS.po
CHANGED
File without changes
|
wpsc-languages/wpsc-cs_CZ.mo
CHANGED
File without changes
|
wpsc-languages/wpsc-cs_CZ.po
CHANGED
File without changes
|
wpsc-languages/wpsc-da_DK.mo
CHANGED
File without changes
|
wpsc-languages/wpsc-da_DK.po
CHANGED
File without changes
|
wpsc-languages/wpsc-de_DE.mo
CHANGED
File without changes
|
wpsc-languages/wpsc-de_DE.po
CHANGED
File without changes
|
wpsc-languages/wpsc-es_ES.mo
CHANGED
File without changes
|
wpsc-languages/wpsc-es_ES.po
CHANGED
File without changes
|
wpsc-languages/wpsc-et.mo
CHANGED
File without changes
|
wpsc-languages/wpsc-et.po
CHANGED
File without changes
|
wpsc-languages/wpsc-fi.mo
CHANGED
File without changes
|
wpsc-languages/wpsc-fi.po
CHANGED
File without changes
|
wpsc-languages/wpsc-fr_FR.mo
CHANGED
File without changes
|
wpsc-languages/wpsc-fr_FR.po
CHANGED
File without changes
|
wpsc-languages/wpsc-hr_HR.mo
CHANGED
File without changes
|
wpsc-languages/wpsc-hr_HR.po
CHANGED
File without changes
|
wpsc-languages/wpsc-hu_HU.mo
CHANGED
File without changes
|
wpsc-languages/wpsc-hu_HU.po
CHANGED
File without changes
|
wpsc-languages/wpsc-id_ID.mo
CHANGED
File without changes
|
wpsc-languages/wpsc-id_ID.po
CHANGED
File without changes
|
wpsc-languages/wpsc-it_IT.mo
CHANGED
File without changes
|
wpsc-languages/wpsc-it_IT.po
CHANGED
File without changes
|
wpsc-languages/wpsc-ja.mo
CHANGED
File without changes
|
wpsc-languages/wpsc-ja.po
CHANGED
File without changes
|
wpsc-languages/wpsc-lt_LT.mo
CHANGED
File without changes
|
wpsc-languages/wpsc-lt_LT.po
CHANGED
File without changes
|
wpsc-languages/wpsc-nb_NO.mo
CHANGED
File without changes
|
wpsc-languages/wpsc-nb_NO.po
CHANGED
File without changes
|
wpsc-languages/wpsc-nl_NL.mo
CHANGED
File without changes
|
wpsc-languages/wpsc-nl_NL.po
CHANGED
File without changes
|
wpsc-languages/wpsc-nn_NO.mo
CHANGED
File without changes
|
wpsc-languages/wpsc-nn_NO.po
CHANGED
File without changes
|
wpsc-languages/wpsc-pt_BR.mo
CHANGED
File without changes
|
wpsc-languages/wpsc-pt_BR.po
CHANGED
File without changes
|
wpsc-languages/wpsc-ru_RU.mo
CHANGED
File without changes
|
wpsc-languages/wpsc-ru_RU.po
CHANGED
File without changes
|
wpsc-languages/wpsc-sv_SE.mo
CHANGED
File without changes
|
wpsc-languages/wpsc-sv_SE.po
CHANGED
File without changes
|
wpsc-languages/wpsc-tr.mo
CHANGED
File without changes
|
wpsc-languages/wpsc-tr.po
CHANGED
File without changes
|
wpsc-languages/wpsc-zh_ZH.mo
CHANGED
File without changes
|
wpsc-languages/wpsc-zh_ZH.po
CHANGED
File without changes
|
wpsc-languages/wpsc.pot
CHANGED
File without changes
|
wpsc-merchants/GoogleCheckout-XML.php
CHANGED
@@ -556,7 +556,7 @@ function nzsc_googleResponse() {
|
|
556 |
}
|
557 |
//logging to submited_form_data
|
558 |
$billing_fname_id = $wpdb->get_var("SELECT `id` FROM `".WPSC_TABLE_CHECKOUT_FORMS."` WHERE `type`='first_name' LIMIT 1") ;
|
559 |
-
$sql = "INSERT INTO `".
|
560 |
$billing_lname_id = $wpdb->get_var("SELECT `id` FROM `".WPSC_TABLE_CHECKOUT_FORMS."` WHERE `type`='last_name' LIMIT 1") ;
|
561 |
$sql .= ", ('".$log_id."','".$billing_lname_id."','" . esc_sql( $billing_lastname ) . "')";
|
562 |
$billing_address_id = $wpdb->get_var("SELECT `id` FROM `".WPSC_TABLE_CHECKOUT_FORMS."` WHERE `type`='address' LIMIT 1") ;
|
556 |
}
|
557 |
//logging to submited_form_data
|
558 |
$billing_fname_id = $wpdb->get_var("SELECT `id` FROM `".WPSC_TABLE_CHECKOUT_FORMS."` WHERE `type`='first_name' LIMIT 1") ;
|
559 |
+
$sql = "INSERT INTO `".WPSC_TABLE_SUBMITTED_FORM_DATA."` (log_id, form_id, value) VALUES ('".$log_id."','".$billing_fname_id."','". esc_sql( $billing_firstname ) ."')";
|
560 |
$billing_lname_id = $wpdb->get_var("SELECT `id` FROM `".WPSC_TABLE_CHECKOUT_FORMS."` WHERE `type`='last_name' LIMIT 1") ;
|
561 |
$sql .= ", ('".$log_id."','".$billing_lname_id."','" . esc_sql( $billing_lastname ) . "')";
|
562 |
$billing_address_id = $wpdb->get_var("SELECT `id` FROM `".WPSC_TABLE_CHECKOUT_FORMS."` WHERE `type`='address' LIMIT 1") ;
|
wpsc-merchants/chronopay.php
CHANGED
@@ -243,7 +243,7 @@ function nzshpcrt_chronopay_callback()
|
|
243 |
$cart_item_variations = $wpdb->query( $wpdb->prepare( "DELETE FROM `".WPSC_TABLE_CART_ITEM_VARIATIONS."` WHERE `cart_id` = %d", $cart_item['id'] ), ARRAY_A);
|
244 |
}
|
245 |
$wpdb->query( $wpdb->prepare( "DELETE FROM `".WPSC_TABLE_CART_CONTENTS."` WHERE `purchaseid`=%d", $log_id ) );
|
246 |
-
$wpdb->query( $wpdb->prepare( "DELETE FROM `".
|
247 |
$wpdb->query( $wpdb->prepare( "DELETE FROM `".WPSC_TABLE_PURCHASE_LOGS."` WHERE `id`=%d LIMIT 1", $log_id ) );
|
248 |
break;
|
249 |
|
243 |
$cart_item_variations = $wpdb->query( $wpdb->prepare( "DELETE FROM `".WPSC_TABLE_CART_ITEM_VARIATIONS."` WHERE `cart_id` = %d", $cart_item['id'] ), ARRAY_A);
|
244 |
}
|
245 |
$wpdb->query( $wpdb->prepare( "DELETE FROM `".WPSC_TABLE_CART_CONTENTS."` WHERE `purchaseid`=%d", $log_id ) );
|
246 |
+
$wpdb->query( $wpdb->prepare( "DELETE FROM `".WPSC_TABLE_SUBMITTED_FORM_DATA."` WHERE `log_id` IN ( %d )", $log_id ) );
|
247 |
$wpdb->query( $wpdb->prepare( "DELETE FROM `".WPSC_TABLE_PURCHASE_LOGS."` WHERE `id`=%d LIMIT 1", $log_id ) );
|
248 |
break;
|
249 |
|
wpsc-merchants/paypal-express.merchant.php
CHANGED
@@ -1025,5 +1025,6 @@ function paypal_deformatNVP($nvpstr) {
|
|
1025 |
}
|
1026 |
return $nvpArray;
|
1027 |
}
|
1028 |
-
|
1029 |
-
|
|
1025 |
}
|
1026 |
return $nvpArray;
|
1027 |
}
|
1028 |
+
|
1029 |
+
if ( in_array( 'wpsc_merchant_paypal_express', get_option( 'custom_gateway_options' ) ) )
|
1030 |
+
add_action('init', 'paypal_processingfunctions');
|
wpsc-merchants/paypal-standard.merchant.php
CHANGED
@@ -459,7 +459,7 @@ class wpsc_merchant_paypal_standard extends wpsc_merchant {
|
|
459 |
// loop through the prepared data array and insert them
|
460 |
foreach ( $inserts as $insert ) {
|
461 |
$wpdb->insert(
|
462 |
-
|
463 |
$insert,
|
464 |
array(
|
465 |
'%d',
|
459 |
// loop through the prepared data array and insert them
|
460 |
foreach ( $inserts as $insert ) {
|
461 |
$wpdb->insert(
|
462 |
+
WPSC_TABLE_SUBMITTED_FORM_DATA,
|
463 |
$insert,
|
464 |
array(
|
465 |
'%d',
|
wpsc-merchants/testmode.merchant.php
CHANGED
@@ -33,9 +33,6 @@ class wpsc_merchant_testmode extends wpsc_merchant {
|
|
33 |
function __construct( $purchase_id = null, $is_receiving = false ) {
|
34 |
$this->name = __( 'Test Gateway', 'wpsc' );
|
35 |
parent::__construct( $purchase_id, $is_receiving );
|
36 |
-
|
37 |
-
add_filter( 'wpsc_purchase_log_customer_notification_raw_message' , array( $this, '_filter_customer_notification_raw_message' ), 10, 2 );
|
38 |
-
add_filter( 'wpsc_purchase_log_customer_html_notification_raw_message', array( $this, '_filter_customer_notification_raw_message' ), 10, 2 );
|
39 |
}
|
40 |
|
41 |
function submit() {
|
@@ -46,15 +43,6 @@ class wpsc_merchant_testmode extends wpsc_merchant {
|
|
46 |
exit();
|
47 |
|
48 |
}
|
49 |
-
|
50 |
-
public function _filter_customer_notification_raw_message( $message, $notification ) {
|
51 |
-
$purchase_log = $notification->get_purchase_log();
|
52 |
-
|
53 |
-
if ( $purchase_log->get( 'gateway' ) == 'wpsc_merchant_testmode' )
|
54 |
-
$message = get_option( 'payment_instructions', '' ) . "\r\n" . $message;
|
55 |
-
|
56 |
-
return $message;
|
57 |
-
}
|
58 |
}
|
59 |
|
60 |
function form_testmode() {
|
@@ -68,4 +56,26 @@ function form_testmode() {
|
|
68 |
$output .= "</tr>\n\r";
|
69 |
|
70 |
return $output;
|
71 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
function __construct( $purchase_id = null, $is_receiving = false ) {
|
34 |
$this->name = __( 'Test Gateway', 'wpsc' );
|
35 |
parent::__construct( $purchase_id, $is_receiving );
|
|
|
|
|
|
|
36 |
}
|
37 |
|
38 |
function submit() {
|
43 |
exit();
|
44 |
|
45 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
}
|
47 |
|
48 |
function form_testmode() {
|
56 |
$output .= "</tr>\n\r";
|
57 |
|
58 |
return $output;
|
59 |
+
}
|
60 |
+
|
61 |
+
function _wpsc_filter_test_merchant_customer_notification_raw_message( $message, $notification ) {
|
62 |
+
$purchase_log = $notification->get_purchase_log();
|
63 |
+
|
64 |
+
if ( $purchase_log->get( 'gateway' ) == 'wpsc_merchant_testmode' )
|
65 |
+
$message = get_option( 'payment_instructions', '' ) . "\r\n" . $message;
|
66 |
+
|
67 |
+
return $message;
|
68 |
+
}
|
69 |
+
|
70 |
+
add_filter(
|
71 |
+
'wpsc_purchase_log_customer_notification_raw_message',
|
72 |
+
'_wpsc_filter_test_merchant_customer_notification_raw_message',
|
73 |
+
10,
|
74 |
+
2
|
75 |
+
);
|
76 |
+
add_filter(
|
77 |
+
'wpsc_purchase_log_customer_html_notification_raw_message',
|
78 |
+
'_wpsc_filter_test_merchant_customer_notification_raw_message',
|
79 |
+
10,
|
80 |
+
2
|
81 |
+
);
|
wpsc-shipping/australiapost.php
CHANGED
File without changes
|
wpsc-shipping/library/shipwire_functions.php
CHANGED
@@ -107,7 +107,7 @@ class WPSC_Shipwire {
|
|
107 |
//Extracts unique name variables for comparison.
|
108 |
extract( $form_ids );
|
109 |
|
110 |
-
$customer_data = $wpdb->get_results( $wpdb->prepare( 'SELECT form_id, value FROM ' .
|
111 |
|
112 |
foreach ( $customer_data as $data ) {
|
113 |
|
@@ -687,7 +687,7 @@ class WPSC_Shipwire {
|
|
687 |
$message = str_replace( '%shop_name%', $site_name, $message );
|
688 |
|
689 |
$email_form_field = $wpdb->get_var( "SELECT `id` FROM `" . WPSC_TABLE_CHECKOUT_FORMS . "` WHERE `type` IN ('email') AND `active` = '1' ORDER BY `checkout_order` ASC LIMIT 1" );
|
690 |
-
$email = $wpdb->get_var( $wpdb->prepare( "SELECT `value` FROM `" .
|
691 |
|
692 |
$subject = get_option( 'wpsc_trackingid_subject' );
|
693 |
$subject = str_replace( '%shop_name%', $site_name, $subject );
|
@@ -840,11 +840,20 @@ function convert_code_to_service( $service ) {
|
|
840 |
$service = _x( 'Two-Day Shipping', 'shipwire shipping method', 'wpsc' );
|
841 |
break;
|
842 |
case 'INTL' :
|
843 |
-
$service = _x( '
|
844 |
break;
|
845 |
case 'FT' :
|
846 |
$service = _x( 'Freight Shipping', 'shipwire shipping method', 'wpsc' );
|
847 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
848 |
endswitch;
|
849 |
|
850 |
return $service;
|
@@ -857,7 +866,7 @@ function convert_code_to_service( $service ) {
|
|
857 |
* @return string
|
858 |
*/
|
859 |
function convert_service_to_code( $service ) {
|
860 |
-
|
861 |
switch ( $service ) :
|
862 |
case _x( 'Ground', 'shipwire shipping method', 'wpsc' ) :
|
863 |
$service = 'GD';
|
@@ -868,47 +877,22 @@ function convert_service_to_code( $service ) {
|
|
868 |
case _x( 'Two-Day Shipping', 'shipwire shipping method', 'wpsc' ) :
|
869 |
$service = '2D';
|
870 |
break;
|
871 |
-
case _x( '
|
872 |
$service = 'INTL';
|
873 |
break;
|
874 |
case _x( 'Freight Shipping', 'shipwire shipping method', 'wpsc' ) :
|
875 |
$service = 'FT';
|
876 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
877 |
endswitch;
|
878 |
|
879 |
return $service;
|
880 |
-
}
|
881 |
-
|
882 |
-
/**
|
883 |
-
* Deprecated functions - HIGHLY doubt these are used anywhere, by anyone, for any reason. But it's possible, as they've been in core since the beginning.
|
884 |
-
*/
|
885 |
-
|
886 |
-
function shipwire_build_xml( $log_id ) {
|
887 |
-
_deprecated_function( __FUNCTION__, '3.8.9', 'WPSC_Shipwire' );
|
888 |
-
return WPSC_Shipwire::get_order_xml( $log_id );
|
889 |
-
}
|
890 |
-
|
891 |
-
function shipwire_built_sync_xml() {
|
892 |
-
_deprecated_function( __FUNCTION__, '3.8.9', 'WPSC_Shipwire' );
|
893 |
-
return WPSC_Shipwire::get_inventory_xml();
|
894 |
-
}
|
895 |
-
|
896 |
-
function shipwire_built_tracking_xml() {
|
897 |
-
_deprecated_function( __FUNCTION__, '3.8.9', 'WPSC_Shipwire' );
|
898 |
-
return WPSC_Shipwire::get_tracking_xml();
|
899 |
-
}
|
900 |
-
|
901 |
-
function shipwire_send_sync_request( $xml ) {
|
902 |
-
_deprecated_function( __FUNCTION__, '3.8.9', 'WPSC_Shipwire' );
|
903 |
-
return WPSC_Shipwire::send_inventory_request( $xml );
|
904 |
-
}
|
905 |
-
|
906 |
-
function shipwire_sent_request( $xml ) {
|
907 |
-
_deprecated_function( __FUNCTION__, '3.8.9', 'WPSC_Shipwire' );
|
908 |
-
return WPSC_Shipwire::send_order_request( $xml );
|
909 |
-
}
|
910 |
-
|
911 |
-
function shipwire_send_tracking_request( $xml ) {
|
912 |
-
_deprecated_function( __FUNCTION__, '3.8.9', 'WPSC_Shipwire' );
|
913 |
-
return WPSC_Shipwire::send_tracking_request( $xml );
|
914 |
}
|
107 |
//Extracts unique name variables for comparison.
|
108 |
extract( $form_ids );
|
109 |
|
110 |
+
$customer_data = $wpdb->get_results( $wpdb->prepare( 'SELECT form_id, value FROM ' . WPSC_TABLE_SUBMITTED_FORM_DATA . ' WHERE log_id = %d', $log_id ) );
|
111 |
|
112 |
foreach ( $customer_data as $data ) {
|
113 |
|
687 |
$message = str_replace( '%shop_name%', $site_name, $message );
|
688 |
|
689 |
$email_form_field = $wpdb->get_var( "SELECT `id` FROM `" . WPSC_TABLE_CHECKOUT_FORMS . "` WHERE `type` IN ('email') AND `active` = '1' ORDER BY `checkout_order` ASC LIMIT 1" );
|
690 |
+
$email = $wpdb->get_var( $wpdb->prepare( "SELECT `value` FROM `" . WPSC_TABLE_SUBMITTED_FORM_DATA . "` WHERE `log_id` = %d AND `form_id` = %d LIMIT 1", $id, $email_form_field ) );
|
691 |
|
692 |
$subject = get_option( 'wpsc_trackingid_subject' );
|
693 |
$subject = str_replace( '%shop_name%', $site_name, $subject );
|
840 |
$service = _x( 'Two-Day Shipping', 'shipwire shipping method', 'wpsc' );
|
841 |
break;
|
842 |
case 'INTL' :
|
843 |
+
$service = _x( 'Standard Shipping', 'shipwire shipping method', 'wpsc' );
|
844 |
break;
|
845 |
case 'FT' :
|
846 |
$service = _x( 'Freight Shipping', 'shipwire shipping method', 'wpsc' );
|
847 |
break;
|
848 |
+
case 'E-INTL' :
|
849 |
+
$service = _x( 'Economy Shipping', 'shipwire shipping method', 'wpsc' );
|
850 |
+
break;
|
851 |
+
case 'PL-INTL' :
|
852 |
+
$service = _x( 'Plus Shipping', 'shipwire shipping method', 'wpsc' );
|
853 |
+
break;
|
854 |
+
case 'PM-INTL' :
|
855 |
+
$service = _x( 'Premium Shipping', 'shipwire shipping method', 'wpsc' );
|
856 |
+
break;
|
857 |
endswitch;
|
858 |
|
859 |
return $service;
|
866 |
* @return string
|
867 |
*/
|
868 |
function convert_service_to_code( $service ) {
|
869 |
+
|
870 |
switch ( $service ) :
|
871 |
case _x( 'Ground', 'shipwire shipping method', 'wpsc' ) :
|
872 |
$service = 'GD';
|
877 |
case _x( 'Two-Day Shipping', 'shipwire shipping method', 'wpsc' ) :
|
878 |
$service = '2D';
|
879 |
break;
|
880 |
+
case _x( 'Standard Shipping', 'shipwire shipping method', 'wpsc' ) :
|
881 |
$service = 'INTL';
|
882 |
break;
|
883 |
case _x( 'Freight Shipping', 'shipwire shipping method', 'wpsc' ) :
|
884 |
$service = 'FT';
|
885 |
break;
|
886 |
+
case _x( 'Economy Shipping', 'shipwire shipping method', 'wpsc' ) :
|
887 |
+
$service = 'E-INTL';
|
888 |
+
break;
|
889 |
+
case _x( 'Plus Shipping', 'shipwire shipping method', 'wpsc' ) :
|
890 |
+
$service = 'PL-INTL';
|
891 |
+
break;
|
892 |
+
case _x( 'Premium Shipping', 'shipwire shipping method', 'wpsc' ) :
|
893 |
+
$service = 'PM-INTL';
|
894 |
+
break;
|
895 |
endswitch;
|
896 |
|
897 |
return $service;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
898 |
}
|
wpsc-shipping/shipwire.php
CHANGED
File without changes
|
wpsc-shipping/tablerate.php
CHANGED
@@ -58,8 +58,8 @@ class tablerate {
|
|
58 |
<small><?php echo esc_html( $currency ); ?></small>
|
59 |
<input type="text" name="wpsc_shipping_tablerate_shipping[]" value="<?php echo esc_attr( $shipping ); ?>" size="4" />
|
60 |
<div class="actions">
|
61 |
-
<a tabindex="-1" title="<?php _e( '
|
62 |
-
|
63 |
</div>
|
64 |
</div>
|
65 |
</td>
|
58 |
<small><?php echo esc_html( $currency ); ?></small>
|
59 |
<input type="text" name="wpsc_shipping_tablerate_shipping[]" value="<?php echo esc_attr( $shipping ); ?>" size="4" />
|
60 |
<div class="actions">
|
61 |
+
<a tabindex="-1" title="<?php _e( 'Delete Layer', 'wpsc' ); ?>" class="button-secondary wpsc-button-round wpsc-button-minus" href="#"><?php echo _x( '–', 'delete item', 'wpsc' ); ?></a>
|
62 |
+
<a tabindex="-1" title="<?php _e( 'Add Layer', 'wpsc' ); ?>" class="button-secondary wpsc-button-round wpsc-button-plus" href="#"><?php echo _x( '+', 'add item', 'wpsc' ); ?></a>
|
63 |
</div>
|
64 |
</div>
|
65 |
</td>
|
wpsc-shipping/weightrate.php
CHANGED
@@ -56,8 +56,8 @@ class weightrate {
|
|
56 |
<small><?php echo esc_html( $currency ); ?></small>
|
57 |
<input type="text" name="wpsc_shipping_weightrate_shipping[]" value="<?php echo esc_attr( $shipping ); ?>" size="4" />
|
58 |
<div class="actions">
|
59 |
-
<a tabindex="-1" title="<?php _e( '
|
60 |
-
<a tabindex="-1" title="<?php _e( '
|
61 |
</div>
|
62 |
</div>
|
63 |
</td>
|
56 |
<small><?php echo esc_html( $currency ); ?></small>
|
57 |
<input type="text" name="wpsc_shipping_weightrate_shipping[]" value="<?php echo esc_attr( $shipping ); ?>" size="4" />
|
58 |
<div class="actions">
|
59 |
+
<a tabindex="-1" title="<?php _e( 'Delete Layer', 'wpsc' ); ?>" class="button-secondary wpsc-button-round wpsc-button-minus" href="#"><?php echo _x( '–', 'delete item', 'wpsc' ); ?></a>
|
60 |
+
<a tabindex="-1" title="<?php _e( 'Add Layer', 'wpsc' ); ?>" class="button-secondary wpsc-button-round wpsc-button-plus" href="#"><?php echo _x( '+', 'add item', 'wpsc' ); ?></a>
|
61 |
</div>
|
62 |
</div>
|
63 |
</td>
|
wpsc-taxes/controllers/taxes_controller.class.php
CHANGED
File without changes
|
wpsc-taxes/models/taxes.class.php
CHANGED
File without changes
|
wpsc-taxes/taxes_module.php
CHANGED
File without changes
|
wpsc-theme/functions/wpsc-transaction_results_functions.php
CHANGED
File without changes
|
wpsc-theme/functions/wpsc-user_log_functions.php
CHANGED
@@ -17,14 +17,6 @@ else
|
|
17 |
|
18 |
$siteurl = site_url();
|
19 |
|
20 |
-
function is_wpsc_profile_page() {
|
21 |
-
return !empty($_REQUEST['edit_profile']) && ( $_REQUEST['edit_profile'] == 'true' );
|
22 |
-
}
|
23 |
-
|
24 |
-
function is_wpsc_downloads_page() {
|
25 |
-
return !empty($_REQUEST['downloads']) && ( $_REQUEST['downloads'] == 'true' );
|
26 |
-
}
|
27 |
-
|
28 |
function validate_form_data() {
|
29 |
|
30 |
global $wpdb, $user_ID, $wpsc_purchlog_statuses;
|
@@ -374,7 +366,56 @@ function wpsc_has_purchases_this_month() {
|
|
374 |
return false;
|
375 |
}
|
376 |
|
377 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
378 |
global $wpdb, $user_ID, $wpsc_purchlog_statuses, $gateway_checkout_form_fields, $purchase_log, $col_count;
|
379 |
|
380 |
$nzshpcrt_gateways = nzshpcrt_get_gateways();
|
@@ -390,10 +431,10 @@ function wpsc_user_details() {
|
|
390 |
$i++;
|
391 |
|
392 |
if ( ($i % 2) != 0 )
|
393 |
-
$alternate = "
|
394 |
|
395 |
-
echo "<tr $alternate>\n\r";
|
396 |
-
echo " <td class='processed'>";
|
397 |
echo "<a href='#' onclick='return show_details_box(\"status_box_" . $purchase['id'] . "\",\"log_expander_icon_" . $purchase['id'] . "\");'>";
|
398 |
|
399 |
if ( !empty($_GET['id']) && $_GET['id'] == $purchase['id'] ) {
|
@@ -407,17 +448,17 @@ function wpsc_user_details() {
|
|
407 |
echo "</a>";
|
408 |
echo " </td>\n\r";
|
409 |
|
410 |
-
echo " <td>";
|
411 |
echo date( "jS M Y", $purchase['date'] );
|
412 |
echo " </td>\n\r";
|
413 |
|
414 |
-
echo " <td>";
|
415 |
$country = get_option( 'country_form_field' );
|
416 |
if ( $purchase['shipping_country'] != '' ) {
|
417 |
$billing_country = $purchase['billing_country'];
|
418 |
$shipping_country = $purchase['shipping_country'];
|
419 |
} elseif ( !empty($country)) {
|
420 |
-
$country_sql = $wpdb->prepare( "SELECT * FROM `" .
|
421 |
$country_data = $wpdb->get_results( $country_sql, ARRAY_A );
|
422 |
$billing_country = $country_data[0]['value'];
|
423 |
$shipping_country = $country_data[0]['value'];
|
@@ -428,7 +469,7 @@ function wpsc_user_details() {
|
|
428 |
|
429 |
|
430 |
if ( get_option( 'payment_method' ) == 2 ) {
|
431 |
-
echo " <td>";
|
432 |
$gateway_name = '';
|
433 |
foreach ( (array)$nzshpcrt_gateways as $gateway ) {
|
434 |
if ( $purchase['gateway'] != 'testmode' ) {
|
@@ -500,29 +541,29 @@ function wpsc_user_details() {
|
|
500 |
echo "<table class='logdisplay'>";
|
501 |
echo "<tr class='toprow2'>";
|
502 |
|
503 |
-
echo " <
|
504 |
_e( 'Name', 'wpsc' );
|
505 |
-
echo " </
|
506 |
|
507 |
-
echo " <
|
508 |
_e( 'Quantity', 'wpsc' );
|
509 |
-
echo " </
|
510 |
|
511 |
-
echo " <
|
512 |
_e( 'Price', 'wpsc' );
|
513 |
-
echo " </
|
514 |
|
515 |
-
echo " <
|
516 |
_e( 'GST', 'wpsc' );
|
517 |
-
echo " </
|
518 |
|
519 |
-
echo " <
|
520 |
_e( 'Shipping', 'wpsc' );
|
521 |
-
echo " </
|
522 |
|
523 |
-
echo " <
|
524 |
_e( 'Total', 'wpsc' );
|
525 |
-
echo " </
|
526 |
|
527 |
echo "</tr>";
|
528 |
|
@@ -533,7 +574,7 @@ function wpsc_user_details() {
|
|
533 |
$j++;
|
534 |
|
535 |
if ( ($j % 2) != 0 )
|
536 |
-
$alternate = "
|
537 |
|
538 |
$variation_list = '';
|
539 |
|
@@ -542,34 +583,34 @@ function wpsc_user_details() {
|
|
542 |
|
543 |
$shipping = $cart_row['pnp'];
|
544 |
$total_shipping += $shipping;
|
545 |
-
echo "<tr $alternate>";
|
546 |
|
547 |
-
echo " <td>";
|
548 |
echo apply_filters( 'the_title', $cart_row['name'] );
|
549 |
echo $variation_list;
|
550 |
echo " </td>";
|
551 |
|
552 |
-
echo " <td>";
|
553 |
echo $cart_row['quantity'];
|
554 |
echo " </td>";
|
555 |
|
556 |
-
echo " <td>";
|
557 |
$price = $cart_row['price'] * $cart_row['quantity'];
|
558 |
echo wpsc_currency_display( $price );
|
559 |
echo " </td>";
|
560 |
|
561 |
-
echo " <td>";
|
562 |
$gst = $cart_row['tax_charged'];
|
563 |
if( $gst > 0)
|
564 |
$gsttotal += $gst;
|
565 |
echo wpsc_currency_display( $gst , array('display_as_html' => false) );
|
566 |
echo " </td>";
|
567 |
|
568 |
-
echo " <td>";
|
569 |
echo wpsc_currency_display( $shipping , array('display_as_html' => false) );
|
570 |
echo " </td>";
|
571 |
|
572 |
-
echo " <td>";
|
573 |
$endtotal += $price;
|
574 |
echo wpsc_currency_display( ( $shipping + $price ), array('display_as_html' => false) );
|
575 |
echo " </td>";
|
@@ -589,13 +630,13 @@ function wpsc_user_details() {
|
|
589 |
echo " </td>";
|
590 |
echo " </td>";
|
591 |
|
592 |
-
echo " <td>";
|
593 |
echo "<strong>" . __( 'Total Shipping', 'wpsc' ) . ":</strong><br />";
|
594 |
echo "<strong>" . __( 'Total Tax', 'wpsc' ) . ":</strong><br />";
|
595 |
echo "<strong>" . __( 'Final Total', 'wpsc' ) . ":</strong>";
|
596 |
echo " </td>";
|
597 |
|
598 |
-
echo " <td>";
|
599 |
$total_shipping += $purchase['base_shipping'];
|
600 |
$endtotal += $total_shipping;
|
601 |
$endtotal += $purchase['wpec_taxes_total'];
|
@@ -617,7 +658,7 @@ function wpsc_user_details() {
|
|
617 |
echo "<table class='customer_details'>";
|
618 |
|
619 |
|
620 |
-
$usersql = $wpdb->prepare( "SELECT `".
|
621 |
$formfields = $wpdb->get_results($usersql, ARRAY_A);
|
622 |
if ( !empty($formfields) ) {
|
623 |
|
@@ -687,4 +728,68 @@ function wpsc_user_details() {
|
|
687 |
}
|
688 |
}
|
689 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
690 |
?>
|
17 |
|
18 |
$siteurl = site_url();
|
19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
function validate_form_data() {
|
21 |
|
22 |
global $wpdb, $user_ID, $wpsc_purchlog_statuses;
|
366 |
return false;
|
367 |
}
|
368 |
|
369 |
+
/**
|
370 |
+
* Displays the Account Page tabs
|
371 |
+
*
|
372 |
+
* @access public
|
373 |
+
* @since 3.8.10
|
374 |
+
*
|
375 |
+
*/
|
376 |
+
function wpsc_user_profile_links( $args = array() ) {
|
377 |
+
global $current_tab, $separator;
|
378 |
+
|
379 |
+
$defaults = array (
|
380 |
+
'before_link_list' => '',
|
381 |
+
'after_link_list' => '',
|
382 |
+
'before_link_item' => '',
|
383 |
+
'after_link_item' => '',
|
384 |
+
'link_separator' => '|'
|
385 |
+
);
|
386 |
+
|
387 |
+
$args = wp_parse_args( $args, $defaults );
|
388 |
+
|
389 |
+
$profile_tabs = apply_filters( 'wpsc_user_profile_tabs', array(
|
390 |
+
'purchase_history' => __( 'Purchase History', 'wpsc' ),
|
391 |
+
'edit_profile' => __( 'Your Details', 'wpsc' ),
|
392 |
+
'downloads' => __( 'Your Downloads', 'wpsc' )
|
393 |
+
) );
|
394 |
+
|
395 |
+
echo $args['before_link_list'];
|
396 |
+
|
397 |
+
$i = 0;
|
398 |
+
$user_account_url = get_option( 'user_account_url' );
|
399 |
+
$links = array();
|
400 |
+
foreach ( $profile_tabs as $tab_id => $tab_title ) :
|
401 |
+
$tab_link = $args['before_link_item'];
|
402 |
+
$tab_url = add_query_arg( 'tab', $tab_id, $user_account_url );
|
403 |
+
$tab_link = sprintf(
|
404 |
+
'<a href="%1$s" class="%2$s">%3$s</a>',
|
405 |
+
esc_url( $tab_url ),
|
406 |
+
esc_attr( $current_tab == $tab_id ? 'current' : '' ),
|
407 |
+
$tab_title
|
408 |
+
);
|
409 |
+
$tab_link .= $args['after_link_item'];
|
410 |
+
$links[] = $tab_link;
|
411 |
+
endforeach;
|
412 |
+
|
413 |
+
echo implode( $args['link_separator'], $links );
|
414 |
+
|
415 |
+
echo $args['after_link_list'];
|
416 |
+
}
|
417 |
+
|
418 |
+
function wpsc_user_purchases() {
|
419 |
global $wpdb, $user_ID, $wpsc_purchlog_statuses, $gateway_checkout_form_fields, $purchase_log, $col_count;
|
420 |
|
421 |
$nzshpcrt_gateways = nzshpcrt_get_gateways();
|
431 |
$i++;
|
432 |
|
433 |
if ( ($i % 2) != 0 )
|
434 |
+
$alternate = "alt";
|
435 |
|
436 |
+
echo "<tr class='$alternate'>\n\r";
|
437 |
+
echo " <td class='status processed'>";
|
438 |
echo "<a href='#' onclick='return show_details_box(\"status_box_" . $purchase['id'] . "\",\"log_expander_icon_" . $purchase['id'] . "\");'>";
|
439 |
|
440 |
if ( !empty($_GET['id']) && $_GET['id'] == $purchase['id'] ) {
|
448 |
echo "</a>";
|
449 |
echo " </td>\n\r";
|
450 |
|
451 |
+
echo " <td class='date'>";
|
452 |
echo date( "jS M Y", $purchase['date'] );
|
453 |
echo " </td>\n\r";
|
454 |
|
455 |
+
echo " <td class='price'>";
|
456 |
$country = get_option( 'country_form_field' );
|
457 |
if ( $purchase['shipping_country'] != '' ) {
|
458 |
$billing_country = $purchase['billing_country'];
|
459 |
$shipping_country = $purchase['shipping_country'];
|
460 |
} elseif ( !empty($country)) {
|
461 |
+
$country_sql = $wpdb->prepare( "SELECT * FROM `" . WPSC_TABLE_SUBMITTED_FORM_DATA . "` WHERE `log_id` = %d AND `form_id` = %d LIMIT 1", $purchase['id'] ,get_option( 'country_form_field' ) );
|
462 |
$country_data = $wpdb->get_results( $country_sql, ARRAY_A );
|
463 |
$billing_country = $country_data[0]['value'];
|
464 |
$shipping_country = $country_data[0]['value'];
|
469 |
|
470 |
|
471 |
if ( get_option( 'payment_method' ) == 2 ) {
|
472 |
+
echo " <td class='payment_method'>";
|
473 |
$gateway_name = '';
|
474 |
foreach ( (array)$nzshpcrt_gateways as $gateway ) {
|
475 |
if ( $purchase['gateway'] != 'testmode' ) {
|
541 |
echo "<table class='logdisplay'>";
|
542 |
echo "<tr class='toprow2'>";
|
543 |
|
544 |
+
echo " <th class='details_name'>";
|
545 |
_e( 'Name', 'wpsc' );
|
546 |
+
echo " </th>";
|
547 |
|
548 |
+
echo " <th class='details_quantity'>";
|
549 |
_e( 'Quantity', 'wpsc' );
|
550 |
+
echo " </th>";
|
551 |
|
552 |
+
echo " <th class='details_price'>";
|
553 |
_e( 'Price', 'wpsc' );
|
554 |
+
echo " </th>";
|
555 |
|
556 |
+
echo " <th class='details_tax'>";
|
557 |
_e( 'GST', 'wpsc' );
|
558 |
+
echo " </th>";
|
559 |
|
560 |
+
echo " <th class='details_shipping'>";
|
561 |
_e( 'Shipping', 'wpsc' );
|
562 |
+
echo " </th>";
|
563 |
|
564 |
+
echo " <th class='details_total'>";
|
565 |
_e( 'Total', 'wpsc' );
|
566 |
+
echo " </th>";
|
567 |
|
568 |
echo "</tr>";
|
569 |
|
574 |
$j++;
|
575 |
|
576 |
if ( ($j % 2) != 0 )
|
577 |
+
$alternate = "alt";
|
578 |
|
579 |
$variation_list = '';
|
580 |
|
583 |
|
584 |
$shipping = $cart_row['pnp'];
|
585 |
$total_shipping += $shipping;
|
586 |
+
echo "<tr class='$alternate'>";
|
587 |
|
588 |
+
echo " <td class='details_name'>";
|
589 |
echo apply_filters( 'the_title', $cart_row['name'] );
|
590 |
echo $variation_list;
|
591 |
echo " </td>";
|
592 |
|
593 |
+
echo " <td class='details_quantity'>";
|
594 |
echo $cart_row['quantity'];
|
595 |
echo " </td>";
|
596 |
|
597 |
+
echo " <td class='details_price'>";
|
598 |
$price = $cart_row['price'] * $cart_row['quantity'];
|
599 |
echo wpsc_currency_display( $price );
|
600 |
echo " </td>";
|
601 |
|
602 |
+
echo " <td class='details_tax'>";
|
603 |
$gst = $cart_row['tax_charged'];
|
604 |
if( $gst > 0)
|
605 |
$gsttotal += $gst;
|
606 |
echo wpsc_currency_display( $gst , array('display_as_html' => false) );
|
607 |
echo " </td>";
|
608 |
|
609 |
+
echo " <td class='details_shipping'>";
|
610 |
echo wpsc_currency_display( $shipping , array('display_as_html' => false) );
|
611 |
echo " </td>";
|
612 |
|
613 |
+
echo " <td class='details_total'>";
|
614 |
$endtotal += $price;
|
615 |
echo wpsc_currency_display( ( $shipping + $price ), array('display_as_html' => false) );
|
616 |
echo " </td>";
|
630 |
echo " </td>";
|
631 |
echo " </td>";
|
632 |
|
633 |
+
echo " <td class='details_totals_labels'>";
|
634 |
echo "<strong>" . __( 'Total Shipping', 'wpsc' ) . ":</strong><br />";
|
635 |
echo "<strong>" . __( 'Total Tax', 'wpsc' ) . ":</strong><br />";
|
636 |
echo "<strong>" . __( 'Final Total', 'wpsc' ) . ":</strong>";
|
637 |
echo " </td>";
|
638 |
|
639 |
+
echo " <td class='details_totals_labels'>";
|
640 |
$total_shipping += $purchase['base_shipping'];
|
641 |
$endtotal += $total_shipping;
|
642 |
$endtotal += $purchase['wpec_taxes_total'];
|
658 |
echo "<table class='customer_details'>";
|
659 |
|
660 |
|
661 |
+
$usersql = $wpdb->prepare( "SELECT `".WPSC_TABLE_SUBMITTED_FORM_DATA."`.value, `".WPSC_TABLE_CHECKOUT_FORMS."`.* FROM `".WPSC_TABLE_CHECKOUT_FORMS."` LEFT JOIN `".WPSC_TABLE_SUBMITTED_FORM_DATA."` ON `".WPSC_TABLE_CHECKOUT_FORMS."`.id = `".WPSC_TABLE_SUBMITTED_FORM_DATA."`.`form_id` WHERE `".WPSC_TABLE_SUBMITTED_FORM_DATA."`.log_id = %d OR `".WPSC_TABLE_CHECKOUT_FORMS."`.type = 'heading' ORDER BY `".WPSC_TABLE_CHECKOUT_FORMS."`.`checkout_set`, `".WPSC_TABLE_CHECKOUT_FORMS."`.`checkout_order`", $purchase['id'] );
|
662 |
$formfields = $wpdb->get_results($usersql, ARRAY_A);
|
663 |
if ( !empty($formfields) ) {
|
664 |
|
728 |
}
|
729 |
}
|
730 |
|
731 |
+
|
732 |
+
/**
|
733 |
+
* Displays the Purchase History template
|
734 |
+
*
|
735 |
+
* @access private
|
736 |
+
* @since 3.8.10
|
737 |
+
*
|
738 |
+
*/
|
739 |
+
function _wpsc_action_purchase_history_section() {
|
740 |
+
include( WPSC_FILE_PATH . '/wpsc-theme/wpsc-account-purchase-history.php' );
|
741 |
+
}
|
742 |
+
add_action( 'wpsc_user_profile_section_purchase_history', '_wpsc_action_purchase_history_section' );
|
743 |
+
|
744 |
+
/**
|
745 |
+
* Displays the Edit Profile template
|
746 |
+
*
|
747 |
+
* @access private
|
748 |
+
* @since 3.8.10
|
749 |
+
*
|
750 |
+
*/
|
751 |
+
function _wpsc_action_edit_profile_section() {
|
752 |
+
include( WPSC_FILE_PATH . '/wpsc-theme/wpsc-account-edit-profile.php' );
|
753 |
+
}
|
754 |
+
add_action( 'wpsc_user_profile_section_edit_profile', '_wpsc_action_edit_profile_section' );
|
755 |
+
|
756 |
+
/**
|
757 |
+
* Displays the Downloads template
|
758 |
+
*
|
759 |
+
* @access private
|
760 |
+
* @since 3.8.10
|
761 |
+
*
|
762 |
+
*/
|
763 |
+
function _wpsc_action_downloads_section() {
|
764 |
+
global $files, $products;
|
765 |
+
|
766 |
+
$items = array();
|
767 |
+
if ( wpsc_has_downloads() && ! empty( $files ) ) {
|
768 |
+
foreach ( $files as $key => $file ) {
|
769 |
+
$item = array();
|
770 |
+
if ( $products[$key]['downloads'] > 0 ) {
|
771 |
+
$url = add_query_arg(
|
772 |
+
'downloadid',
|
773 |
+
$products[$key]['uniqueid'],
|
774 |
+
home_url()
|
775 |
+
);
|
776 |
+
$item['title'] = sprintf(
|
777 |
+
'<a href="%1$s">%2$s</a>',
|
778 |
+
esc_url( $url ),
|
779 |
+
esc_html( $file['post_title'] )
|
780 |
+
);
|
781 |
+
} else {
|
782 |
+
$item['title'] = esc_html( $file['post_title'] );
|
783 |
+
}
|
784 |
+
|
785 |
+
$item['downloads'] = $products[$key]['downloads'];
|
786 |
+
$item['datetime'] = date( get_option( 'date_format' ), strtotime( $products[$key]['datetime'] ) );
|
787 |
+
$items[] = (object) $item;
|
788 |
+
}
|
789 |
+
}
|
790 |
+
|
791 |
+
include( WPSC_FILE_PATH . '/wpsc-theme/wpsc-account-downloads.php' );
|
792 |
+
}
|
793 |
+
add_action( 'wpsc_user_profile_section_downloads', '_wpsc_action_downloads_section' );
|
794 |
+
|
795 |
?>
|
wpsc-theme/wpsc-account-downloads.php
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* The Account > Downloads template.
|
4 |
+
*
|
5 |
+
* Displays the user account page.
|
6 |
+
*
|
7 |
+
* @package WPSC
|
8 |
+
* @since WPSC 3.8.10
|
9 |
+
*/
|
10 |
+
?>
|
11 |
+
|
12 |
+
<?php if ( empty( $items ) ) : ?>
|
13 |
+
<?php _e( 'You have not purchased any downloadable products yet.', 'wpsc' ); ?>
|
14 |
+
<?php else : ?>
|
15 |
+
<table class="logdisplay">
|
16 |
+
<thead>
|
17 |
+
<tr>
|
18 |
+
<th class="wpsc-user-log-file-name" scope="col"><?php _e( 'File Names', 'wpsc' ); ?> </th>
|
19 |
+
<th class="wpsc-user-log-downloads-left" scope="col"><?php _e( 'Downloads Left', 'wpsc' ); ?> </th>
|
20 |
+
<th class="wpsc-user-log-file-date" scope="col"><?php _e( 'Date', 'wpsc' ); ?> </th>
|
21 |
+
</tr>
|
22 |
+
</thead>
|
23 |
+
|
24 |
+
<tbody>
|
25 |
+
<?php foreach( $items as $key => $item ): ?>
|
26 |
+
<tr class="wpsc-user-log-file<?php echo ( $key %2 == 1 ) ? '' : ' alt'; ?>">
|
27 |
+
<td class="wpsc-user-log-file-name">
|
28 |
+
<?php echo $item->title; ?>
|
29 |
+
</td>
|
30 |
+
<td class="wpsc-user-log-downloads-left">
|
31 |
+
<?php echo esc_html( $item->downloads ); ?>
|
32 |
+
</td>
|
33 |
+
<td class="wpsc-user-log-file-date">
|
34 |
+
<?php echo esc_html( $item->datetime ); ?>
|
35 |
+
</td>
|
36 |
+
</tr>
|
37 |
+
<?php endforeach; ?>
|
38 |
+
</tbody>
|
39 |
+
</table>
|
40 |
+
<?php endif; ?>
|
wpsc-theme/wpsc-account-edit-profile.php
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* The Account > Edit Profile template.
|
4 |
+
*
|
5 |
+
* Displays the user account page.
|
6 |
+
*
|
7 |
+
* @package WPSC
|
8 |
+
* @since WPSC 3.8.10
|
9 |
+
*/
|
10 |
+
?>
|
11 |
+
|
12 |
+
<form method="post">
|
13 |
+
|
14 |
+
<?php echo validate_form_data(); ?>
|
15 |
+
|
16 |
+
<table>
|
17 |
+
|
18 |
+
<?php wpsc_display_form_fields(); ?>
|
19 |
+
|
20 |
+
<tr>
|
21 |
+
<td></td>
|
22 |
+
<td>
|
23 |
+
<input type="hidden" value="true" name="submitwpcheckout_profile" />
|
24 |
+
<input type="submit" value="<?php _e( 'Save Profile', 'wpsc' ); ?>" name="submit" />
|
25 |
+
</td>
|
26 |
+
</tr>
|
27 |
+
</table>
|
28 |
+
</form>
|
wpsc-theme/wpsc-account-purchase-history.php
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* The Account > Purchase History template.
|
4 |
+
*
|
5 |
+
* Displays the user's order history.
|
6 |
+
*
|
7 |
+
* @package WPSC
|
8 |
+
* @since WPSC 3.8.10
|
9 |
+
*/
|
10 |
+
global $col_count; ?>
|
11 |
+
|
12 |
+
<?php if ( wpsc_has_purchases() ) : ?>
|
13 |
+
|
14 |
+
<table class="logdisplay">
|
15 |
+
|
16 |
+
<?php if ( wpsc_has_purchases_this_month() ) : ?>
|
17 |
+
|
18 |
+
<tr class="toprow">
|
19 |
+
<th class="status"><?php _e( 'Status', 'wpsc' ); ?></th>
|
20 |
+
<th class="date"><?php _e( 'Date', 'wpsc' ); ?></th>
|
21 |
+
<th class="price"><?php _e( 'Price', 'wpsc' ); ?></th>
|
22 |
+
|
23 |
+
<?php if ( get_option( 'payment_method' ) == 2 ) : ?>
|
24 |
+
|
25 |
+
<th class="payment_method"><?php _e( 'Payment Method', 'wpsc' ); ?></th>
|
26 |
+
|
27 |
+
<?php endif; ?>
|
28 |
+
|
29 |
+
</tr>
|
30 |
+
|
31 |
+
<?php wpsc_user_purchases(); ?>
|
32 |
+
|
33 |
+
<?php else : ?>
|
34 |
+
|
35 |
+
<tr>
|
36 |
+
<td colspan="<?php echo $col_count; ?>">
|
37 |
+
|
38 |
+
<?php _e( 'No transactions for this month.', 'wpsc' ); ?>
|
39 |
+
|
40 |
+
</td>
|
41 |
+
</tr>
|
42 |
+
|
43 |
+
<?php endif; ?>
|
44 |
+
|
45 |
+
</table>
|
46 |
+
|
47 |
+
<?php else : ?>
|
48 |
+
|
49 |
+
<table>
|
50 |
+
<tr>
|
51 |
+
<td><?php _e( 'There have not been any purchases yet.', 'wpsc' ); ?></td>
|
52 |
+
</tr>
|
53 |
+
</table>
|
54 |
+
|
55 |
+
<?php endif; ?>
|
wpsc-theme/wpsc-cart_widget.php
CHANGED
File without changes
|
wpsc-theme/wpsc-category-list.php
CHANGED
File without changes
|
wpsc-theme/wpsc-category_widget.php
CHANGED
File without changes
|
wpsc-theme/wpsc-default.css
CHANGED
File without changes
|
wpsc-theme/wpsc-featured_product.php
CHANGED
File without changes
|
wpsc-theme/wpsc-grid_view.php
CHANGED
File without changes
|
wpsc-theme/wpsc-images/bulletpoint.gif
CHANGED
File without changes
|
wpsc-theme/wpsc-images/yes_stock.png
CHANGED
File without changes
|
wpsc-theme/wpsc-list_view.php
CHANGED
File without changes
|
wpsc-theme/wpsc-products_page.php
CHANGED
File without changes
|
wpsc-theme/wpsc-shopping_cart_page.php
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
<?php
|
2 |
global $wpsc_cart, $wpdb, $wpsc_checkout, $wpsc_gateway, $wpsc_coupons, $wpsc_registration_error_messages;
|
3 |
$wpsc_checkout = new wpsc_checkout();
|
4 |
-
$wpsc_gateway = new wpsc_gateways();
|
5 |
$alt = 0;
|
6 |
$coupon_num = wpsc_get_customer_meta( 'coupon' );
|
7 |
if( $coupon_num )
|
@@ -65,7 +64,7 @@ endif;
|
|
65 |
<input type="text" name="quantity" size="2" value="<?php echo wpsc_cart_item_quantity(); ?>" />
|
66 |
<input type="hidden" name="key" value="<?php echo wpsc_the_cart_item_key(); ?>" />
|
67 |
<input type="hidden" name="wpsc_update_quantity" value="true" />
|
68 |
-
<input type="submit" value="<?php _e('Update', 'wpsc'); ?>"
|
69 |
</form>
|
70 |
</td>
|
71 |
|
@@ -78,7 +77,7 @@ endif;
|
|
78 |
<input type="hidden" name="quantity" value="0" />
|
79 |
<input type="hidden" name="key" value="<?php echo wpsc_the_cart_item_key(); ?>" />
|
80 |
<input type="hidden" name="wpsc_update_quantity" value="true" />
|
81 |
-
<input type="submit" value="<?php _e('Remove', 'wpsc'); ?>"
|
82 |
</form>
|
83 |
</td>
|
84 |
</tr>
|
@@ -446,38 +445,18 @@ endif;
|
|
446 |
<?php //this HTML displays activated payment gateways ?>
|
447 |
<?php if(wpsc_gateway_count() > 1): // if we have more than one gateway enabled, offer the user a choice ?>
|
448 |
<tr>
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
<label><input type="radio" value="<?php echo wpsc_gateway_internal_name();?>" <?php echo wpsc_gateway_is_checked(); ?> name="custom_gateway" class="custom_gateway"/><?php echo wpsc_gateway_name(); ?>
|
454 |
-
<?php if( wpsc_show_gateway_image() ): ?>
|
455 |
-
<img src="<?php echo wpsc_gateway_image_url(); ?>" alt="<?php echo wpsc_gateway_name(); ?>" style="position:relative; top:5px;" />
|
456 |
-
<?php endif; ?>
|
457 |
-
</label>
|
458 |
-
|
459 |
-
<?php if(wpsc_gateway_form_fields()): ?>
|
460 |
-
<table class='wpsc_checkout_table <?php echo wpsc_gateway_form_field_style();?>'>
|
461 |
-
<?php echo wpsc_gateway_form_fields();?>
|
462 |
-
</table>
|
463 |
-
<?php endif; ?>
|
464 |
-
</div>
|
465 |
-
<?php endwhile; ?>
|
466 |
-
</td></tr>
|
467 |
-
<?php else: // otherwise, there is no choice, stick in a hidden form ?>
|
468 |
-
<tr><td colspan="2" class='wpsc_gateway_container'>
|
469 |
-
<?php while (wpsc_have_gateways()) : wpsc_the_gateway(); ?>
|
470 |
-
<input name='custom_gateway' value='<?php echo wpsc_gateway_internal_name();?>' type='hidden' />
|
471 |
-
|
472 |
-
<?php if(wpsc_gateway_form_fields()): ?>
|
473 |
-
<table class='wpsc_checkout_table <?php echo wpsc_gateway_form_field_style();?>'>
|
474 |
-
<?php echo wpsc_gateway_form_fields();?>
|
475 |
-
</table>
|
476 |
-
<?php endif; ?>
|
477 |
-
<?php endwhile; ?>
|
478 |
-
</td>
|
479 |
</tr>
|
480 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
481 |
|
482 |
<?php if(wpsc_has_tnc()) : ?>
|
483 |
<tr>
|
@@ -495,7 +474,7 @@ endif;
|
|
495 |
<input type='hidden' value='yes' name='agree' />
|
496 |
<?php endif; ?>
|
497 |
<input type='hidden' value='submit_checkout' name='wpsc_action' />
|
498 |
-
<input type='submit' value='<?php _e('Purchase', 'wpsc');?>'
|
499 |
</span>
|
500 |
</div>
|
501 |
|
1 |
<?php
|
2 |
global $wpsc_cart, $wpdb, $wpsc_checkout, $wpsc_gateway, $wpsc_coupons, $wpsc_registration_error_messages;
|
3 |
$wpsc_checkout = new wpsc_checkout();
|
|
|
4 |
$alt = 0;
|
5 |
$coupon_num = wpsc_get_customer_meta( 'coupon' );
|
6 |
if( $coupon_num )
|
64 |
<input type="text" name="quantity" size="2" value="<?php echo wpsc_cart_item_quantity(); ?>" />
|
65 |
<input type="hidden" name="key" value="<?php echo wpsc_the_cart_item_key(); ?>" />
|
66 |
<input type="hidden" name="wpsc_update_quantity" value="true" />
|
67 |
+
<input type="submit" value="<?php _e('Update', 'wpsc'); ?>" />
|
68 |
</form>
|
69 |
</td>
|
70 |
|
77 |
<input type="hidden" name="quantity" value="0" />
|
78 |
<input type="hidden" name="key" value="<?php echo wpsc_the_cart_item_key(); ?>" />
|
79 |
<input type="hidden" name="wpsc_update_quantity" value="true" />
|
80 |
+
<input type="submit" value="<?php _e('Remove', 'wpsc'); ?>" />
|
81 |
</form>
|
82 |
</td>
|
83 |
</tr>
|
445 |
<?php //this HTML displays activated payment gateways ?>
|
446 |
<?php if(wpsc_gateway_count() > 1): // if we have more than one gateway enabled, offer the user a choice ?>
|
447 |
<tr>
|
448 |
+
<td colspan='2' class='wpsc_gateway_container'>
|
449 |
+
<h3><?php _e('Payment Type', 'wpsc');?></h3>
|
450 |
+
<?php wpsc_gateway_list(); ?>
|
451 |
+
</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
452 |
</tr>
|
453 |
+
<?php else: // otherwise, there is no choice, stick in a hidden form ?>
|
454 |
+
<tr>
|
455 |
+
<td colspan="2" class='wpsc_gateway_container'>
|
456 |
+
<?php wpsc_gateway_hidden_field(); ?>
|
457 |
+
</td>
|
458 |
+
</tr>
|
459 |
+
<?php endif; ?>
|
460 |
|
461 |
<?php if(wpsc_has_tnc()) : ?>
|
462 |
<tr>
|
474 |
<input type='hidden' value='yes' name='agree' />
|
475 |
<?php endif; ?>
|
476 |
<input type='hidden' value='submit_checkout' name='wpsc_action' />
|
477 |
+
<input type='submit' value='<?php _e('Purchase', 'wpsc');?>' class='make_purchase wpsc_buy_button' />
|
478 |
</span>
|
479 |
</div>
|
480 |
|
wpsc-theme/wpsc-single_product.php
CHANGED
File without changes
|
wpsc-theme/wpsc-transaction_results.php
CHANGED
File without changes
|
wpsc-theme/wpsc-user-log.php
CHANGED
@@ -1,172 +1,54 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* The User Account
|
4 |
*
|
5 |
-
* Displays
|
6 |
-
*
|
7 |
-
* @todo This basically shows 'screens' for each of the following: Purchase History, Your Details, Downloads. Could argue that these should be separate templates.
|
8 |
*
|
9 |
* @package WPSC
|
10 |
* @since WPSC 3.8
|
11 |
*/
|
12 |
-
global $
|
13 |
|
14 |
<div class="wrap">
|
15 |
<?php if ( is_user_logged_in() ) : ?>
|
16 |
<div class="user-profile-links">
|
17 |
-
<a href="<?php echo esc_url( get_option( 'user_account_url' ) ); ?>"><?php _e('Purchase History','wpsc'); ?></a> |
|
18 |
-
<a href="<?php echo esc_url( get_option( 'user_account_url' ) ) . $separator . "edit_profile=true"; ?>"><?php _e('Your Details','wpsc'); ?></a> |
|
19 |
-
<a href="<?php echo esc_url( get_option( 'user_account_url' ) ) . $separator . "downloads=true"; ?>"><?php _e('Your Downloads','wpsc'); ?></a>
|
20 |
-
<?php do_action('wpsc_additional_user_profile_links', '|'); ?>
|
21 |
-
</div>
|
22 |
-
<?php endif; ?>
|
23 |
-
|
24 |
-
<br />
|
25 |
-
<!-- START OF PROFILE PAGE -->
|
26 |
-
<?php if ( is_wpsc_profile_page() ) : ?>
|
27 |
-
|
28 |
-
<form method="post">
|
29 |
-
|
30 |
-
<?php echo validate_form_data(); ?>
|
31 |
-
|
32 |
-
<table>
|
33 |
-
|
34 |
-
<?php wpsc_display_form_fields(); ?>
|
35 |
-
|
36 |
-
<tr>
|
37 |
-
<td></td>
|
38 |
-
<td>
|
39 |
-
<input type="hidden" value="true" name="submitwpcheckout_profile" />
|
40 |
-
<input type="submit" value="<?php _e( 'Save Profile', 'wpsc' ); ?>" name="submit" />
|
41 |
-
</td>
|
42 |
-
</tr>
|
43 |
-
</table>
|
44 |
-
</form>
|
45 |
-
<!-- START OF DOWNLOADS PAGE -->
|
46 |
-
<?php elseif ( is_wpsc_downloads_page() ) : ?>
|
47 |
-
|
48 |
-
<?php if ( wpsc_has_downloads() ) : ?>
|
49 |
-
|
50 |
-
<table class="logdisplay">
|
51 |
-
<tr>
|
52 |
-
<th><?php _e( 'File Names', 'wpsc' ); ?> </th>
|
53 |
-
<th><?php _e( 'Downloads Left', 'wpsc' ); ?> </th>
|
54 |
-
<th><?php _e( 'Date', 'wpsc' ); ?> </th>
|
55 |
-
</tr>
|
56 |
-
|
57 |
-
<?php
|
58 |
-
$i = 0;
|
59 |
-
foreach ( (array)$files as $file ) :
|
60 |
-
|
61 |
-
$alternate = "";
|
62 |
|
63 |
-
|
64 |
-
|
65 |
-
?>
|
66 |
|
67 |
-
|
68 |
-
<td>
|
69 |
-
<?php
|
70 |
-
if ( $products[$i]['downloads'] > 0 )
|
71 |
-
|
72 |
-
echo "<a href = " . esc_url( site_url() ) . "?downloadid=".$products[$i]['uniqueid'] . ">" . $file['post_title'] . "</a>";
|
73 |
-
else
|
74 |
-
echo $file['post_title'] . "";
|
75 |
|
76 |
-
|
77 |
|
78 |
-
|
79 |
-
<td><?php echo $products[$i]['downloads']; ?></td>
|
80 |
-
<td><?php echo date( get_option( "date_format" ), strtotime( $products[$i]['datetime'] ) ); ?></td>
|
81 |
-
</tr>
|
82 |
-
<?php
|
83 |
-
$i++;
|
84 |
-
endforeach;
|
85 |
-
?>
|
86 |
-
|
87 |
-
</table>
|
88 |
-
<?php else : ?>
|
89 |
|
90 |
-
|
91 |
|
92 |
-
<?php endif; ?>
|
93 |
-
<!-- START OF PURCHASE HISTORY PAGE -->
|
94 |
<?php else : ?>
|
95 |
-
|
96 |
-
<?php if ( is_user_logged_in() ) : ?>
|
97 |
-
|
98 |
-
<?php if ( wpsc_has_purchases() ) : ?>
|
99 |
-
|
100 |
-
<table class="logdisplay">
|
101 |
|
102 |
-
|
103 |
-
|
104 |
-
<tr class="toprow">
|
105 |
-
<td><strong><?php _e( 'Status', 'wpsc' ); ?></strong></td>
|
106 |
-
<td><strong><?php _e( 'Date', 'wpsc' ); ?></strong></td>
|
107 |
-
<td><strong><?php _e( 'Price', 'wpsc' ); ?></strong></td>
|
108 |
|
109 |
-
|
|
|
|
|
|
|
110 |
|
111 |
-
|
|
|
|
|
112 |
|
113 |
-
|
|
|
|
|
|
|
|
|
|
|
114 |
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
<tr>
|
122 |
-
<td colspan="<?php echo $col_count; ?>">
|
123 |
-
|
124 |
-
<?php _e( 'No transactions for this month.', 'wpsc' ); ?>
|
125 |
-
|
126 |
-
</td>
|
127 |
-
</tr>
|
128 |
-
|
129 |
-
<?php endif; ?>
|
130 |
-
|
131 |
-
</table>
|
132 |
-
|
133 |
-
<?php else : ?>
|
134 |
-
|
135 |
-
<table>
|
136 |
-
<tr>
|
137 |
-
<td><?php _e( 'There have not been any purchases yet.', 'wpsc' ); ?></td>
|
138 |
-
</tr>
|
139 |
-
</table>
|
140 |
-
|
141 |
-
<?php endif; ?>
|
142 |
-
|
143 |
-
<?php else : ?>
|
144 |
-
|
145 |
-
<?php _e( 'You must be logged in to use this page. Please use the form below to login to your account.', 'wpsc' ); ?>
|
146 |
-
|
147 |
-
<form name="loginform" id="loginform" action="<?php echo esc_url( wp_login_url() ); ?>" method="post">
|
148 |
-
<p>
|
149 |
-
<label><?php _e( 'Username:', 'wpsc' ); ?><br /><input type="text" name="log" id="log" value="" size="20" tabindex="1" /></label>
|
150 |
-
</p>
|
151 |
-
|
152 |
-
<p>
|
153 |
-
<label><?php _e( 'Password:', 'wpsc' ); ?><br /><input type="password" name="pwd" id="pwd" value="" size="20" tabindex="2" /></label>
|
154 |
-
</p>
|
155 |
-
|
156 |
-
<p>
|
157 |
-
<label>
|
158 |
-
<input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="3" />
|
159 |
-
<?php _e( 'Remember me', 'wpsc' ); ?>
|
160 |
-
</label>
|
161 |
-
</p>
|
162 |
-
|
163 |
-
<p class="submit">
|
164 |
-
<input type="submit" name="submit" id="submit" value="<?php _e( 'Login »', 'wpsc' ); ?>" tabindex="4" />
|
165 |
-
<input type="hidden" name="redirect_to" value="<?php echo get_option( 'user_account_url' ); ?>" />
|
166 |
-
</p>
|
167 |
-
</form>
|
168 |
-
|
169 |
-
<?php endif; ?>
|
170 |
|
171 |
<?php endif; ?>
|
172 |
|
1 |
<?php
|
2 |
/**
|
3 |
+
* The User Account template wrapper.
|
4 |
*
|
5 |
+
* Displays the user account page.
|
|
|
|
|
6 |
*
|
7 |
* @package WPSC
|
8 |
* @since WPSC 3.8
|
9 |
*/
|
10 |
+
global $current_tab; ?>
|
11 |
|
12 |
<div class="wrap">
|
13 |
<?php if ( is_user_logged_in() ) : ?>
|
14 |
<div class="user-profile-links">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
+
<?php $default_profile_tab = apply_filters( 'wpsc_default_user_profile_tab', 'purchase_history' ); ?>
|
17 |
+
<?php $current_tab = isset( $_REQUEST['tab'] ) ? $_REQUEST['tab'] : $default_profile_tab; ?>
|
|
|
18 |
|
19 |
+
<?php wpsc_user_profile_links(); ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
+
<?php do_action( 'wpsc_additional_user_profile_links', '|' ); ?>
|
22 |
|
23 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
|
25 |
+
<?php do_action( 'wpsc_user_profile_section_' . $current_tab ); ?>
|
26 |
|
|
|
|
|
27 |
<?php else : ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
|
29 |
+
<?php _e( 'You must be logged in to use this page. Please use the form below to login to your account.', 'wpsc' ); ?>
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
+
<form name="loginform" id="loginform" action="<?php echo esc_url( wp_login_url() ); ?>" method="post">
|
32 |
+
<p>
|
33 |
+
<label><?php _e( 'Username:', 'wpsc' ); ?><br /><input type="text" name="log" id="log" value="" size="20" tabindex="1" /></label>
|
34 |
+
</p>
|
35 |
|
36 |
+
<p>
|
37 |
+
<label><?php _e( 'Password:', 'wpsc' ); ?><br /><input type="password" name="pwd" id="pwd" value="" size="20" tabindex="2" /></label>
|
38 |
+
</p>
|
39 |
|
40 |
+
<p>
|
41 |
+
<label>
|
42 |
+
<input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="3" />
|
43 |
+
<?php _e( 'Remember me', 'wpsc' ); ?>
|
44 |
+
</label>
|
45 |
+
</p>
|
46 |
|
47 |
+
<p class="submit">
|
48 |
+
<input type="submit" name="submit" id="submit" value="<?php _e( 'Login »', 'wpsc' ); ?>" tabindex="4" />
|
49 |
+
<input type="hidden" name="redirect_to" value="<?php echo esc_url( get_option( 'user_account_url' ) ); ?>" />
|
50 |
+
</p>
|
51 |
+
</form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
|
53 |
<?php endif; ?>
|
54 |
|
wpsc-updates/database_template.php
CHANGED
@@ -168,7 +168,7 @@ $wpsc_database_template[$table_name]['previous_names'] = "{$wpdb->prefix}region_
|
|
168 |
|
169 |
|
170 |
// code to create or update the {$wpdb->prefix}wpsc_submited_form_data table
|
171 |
-
$table_name =
|
172 |
$wpsc_database_template[$table_name]['columns']['id'] = "bigint(20) unsigned NOT NULL auto_increment";
|
173 |
$wpsc_database_template[$table_name]['columns']['log_id'] = "bigint(20) unsigned NOT NULL DEFAULT '0' ";
|
174 |
$wpsc_database_template[$table_name]['columns']['form_id'] = "bigint(20) unsigned NOT NULL DEFAULT '0' ";
|
168 |
|
169 |
|
170 |
// code to create or update the {$wpdb->prefix}wpsc_submited_form_data table
|
171 |
+
$table_name = WPSC_TABLE_SUBMITTED_FORM_DATA; /* !wpsc_submitted_form_data */
|
172 |
$wpsc_database_template[$table_name]['columns']['id'] = "bigint(20) unsigned NOT NULL auto_increment";
|
173 |
$wpsc_database_template[$table_name]['columns']['log_id'] = "bigint(20) unsigned NOT NULL DEFAULT '0' ";
|
174 |
$wpsc_database_template[$table_name]['columns']['form_id'] = "bigint(20) unsigned NOT NULL DEFAULT '0' ";
|
wpsc-widgets/price_range_widget.php
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
* @since 3.8
|
9 |
*/
|
10 |
class WP_Widget_Price_Range extends WP_Widget {
|
11 |
-
|
12 |
/**
|
13 |
* Widget Constuctor
|
14 |
*/
|
@@ -18,9 +18,9 @@ class WP_Widget_Price_Range extends WP_Widget {
|
|
18 |
'classname' => 'widget_wpsc_price_range',
|
19 |
'description' => __( 'Price Range Widget', 'wpsc' )
|
20 |
);
|
21 |
-
|
22 |
$this->WP_Widget( 'wpsc_price_range', __( 'Price Range', 'wpsc' ), $widget_ops );
|
23 |
-
|
24 |
}
|
25 |
|
26 |
/**
|
@@ -32,11 +32,11 @@ class WP_Widget_Price_Range extends WP_Widget {
|
|
32 |
* @todo Add individual capability checks for each menu item rather than just manage_options.
|
33 |
*/
|
34 |
function widget( $args, $instance ) {
|
35 |
-
|
36 |
global $wpdb, $table_prefix;
|
37 |
-
|
38 |
extract( $args );
|
39 |
-
|
40 |
echo $before_widget;
|
41 |
$title = apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Price Range', 'wpsc' ) : $instance['title'] );
|
42 |
if ( $title ) {
|
@@ -44,7 +44,7 @@ class WP_Widget_Price_Range extends WP_Widget {
|
|
44 |
}
|
45 |
wpsc_price_range();
|
46 |
echo $after_widget;
|
47 |
-
|
48 |
}
|
49 |
|
50 |
/**
|
@@ -56,12 +56,12 @@ class WP_Widget_Price_Range extends WP_Widget {
|
|
56 |
* @return (array) New values.
|
57 |
*/
|
58 |
function update( $new_instance, $old_instance ) {
|
59 |
-
|
60 |
$instance = $old_instance;
|
61 |
$instance['title'] = strip_tags( $new_instance['title'] );
|
62 |
|
63 |
return $instance;
|
64 |
-
|
65 |
}
|
66 |
|
67 |
/**
|
@@ -70,22 +70,22 @@ class WP_Widget_Price_Range extends WP_Widget {
|
|
70 |
* @param $instance (array) Widget values.
|
71 |
*/
|
72 |
function form( $instance ) {
|
73 |
-
|
74 |
global $wpdb;
|
75 |
-
|
76 |
// Defaults
|
77 |
$instance = wp_parse_args( (array)$instance, array( 'title' => '' ) );
|
78 |
-
|
79 |
// Values
|
80 |
$title = esc_attr( $instance['title'] );
|
81 |
-
|
82 |
?>
|
83 |
<p>
|
84 |
<label for="<?php echo $this->get_field_id('title'); ?>"><?php _e( 'Title:', 'wpsc' ); ?></label>
|
85 |
<input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo $title; ?>" />
|
86 |
</p>
|
87 |
<?php
|
88 |
-
|
89 |
}
|
90 |
|
91 |
}
|
@@ -102,14 +102,14 @@ add_action( 'widgets_init', create_function( '', 'return register_widget("WP_Wid
|
|
102 |
function wpsc_price_range( $args = null ) {
|
103 |
|
104 |
global $wpdb;
|
105 |
-
|
106 |
// Filter args not used at the moment, but this is here ready
|
107 |
$args = wp_parse_args( (array)$args, array() );
|
108 |
-
|
109 |
$siteurl = get_option( 'siteurl' );
|
110 |
$product_page = get_option( 'product_list_url' );
|
111 |
$result = $wpdb->get_results( "SELECT DISTINCT CAST(`meta_value` AS DECIMAL) AS `price` FROM " . $wpdb->postmeta . " AS `m` WHERE `meta_key` IN ('_wpsc_price') ORDER BY `price` ASC", ARRAY_A );
|
112 |
-
|
113 |
if ( $result != null ) {
|
114 |
sort( $result );
|
115 |
$count = count( $result );
|
@@ -118,7 +118,7 @@ function wpsc_price_range( $args = null ) {
|
|
118 |
$ranges[] = round( $result[$i]['price'], -1 );
|
119 |
}
|
120 |
$ranges = array_unique( $ranges );
|
121 |
-
|
122 |
$final_count = count( $ranges );
|
123 |
$ranges = array_merge( array(), $ranges );
|
124 |
$_SESSION['price_range'] = $ranges;
|
@@ -136,18 +136,13 @@ function wpsc_price_range( $args = null ) {
|
|
136 |
echo "<li><a href='" . esc_url(add_query_arg( 'range', 'all', get_option( 'product_list_url' )) ) . "'>" . _x( 'Show All', 'price range widget', 'wpsc' ) . "</a></li>";
|
137 |
echo '</ul>';
|
138 |
}
|
139 |
-
|
140 |
}
|
141 |
|
142 |
if(isset($_GET['range'])){
|
143 |
add_filter( 'posts_where', 'wpsc_range_where' );
|
144 |
}
|
145 |
-
|
146 |
-
_deprecated_function( __FUNCTION__, '3.8.8', 'wpsc_range_where()' );
|
147 |
-
|
148 |
-
return wpsc_range_where( $where );
|
149 |
-
|
150 |
-
}
|
151 |
function wpsc_range_where( $where ) {
|
152 |
global $wpdb, $wp_query;
|
153 |
$range = explode('-', $_GET['range']);
|
@@ -158,7 +153,7 @@ function wpsc_range_where( $where ) {
|
|
158 |
}elseif(!$range[1]){
|
159 |
$where .= " AND $wpdb->posts.id IN ( SELECT $wpdb->posts.id FROM $wpdb->posts JOIN $wpdb->postmeta on $wpdb->postmeta.post_id = $wpdb->posts.id WHERE $wpdb->postmeta.meta_key=\"_wpsc_price\" AND $wpdb->postmeta.meta_value > " . ( $range[0]-1 ) . ") ";
|
160 |
}elseif($range[1] && $range[0]){
|
161 |
-
$where .= " AND $wpdb->posts.id IN ( SELECT $wpdb->posts.id FROM $wpdb->posts JOIN $wpdb->postmeta on $wpdb->postmeta.post_id = $wpdb->posts.id WHERE $wpdb->postmeta.meta_key=\"_wpsc_price\" AND $wpdb->postmeta.meta_value > " . ( $range[0]-1 ) . " AND $wpdb->postmeta.meta_value < " . ( $range[1] + 1 ) . ") ";
|
162 |
}
|
163 |
return $where;
|
164 |
}
|
8 |
* @since 3.8
|
9 |
*/
|
10 |
class WP_Widget_Price_Range extends WP_Widget {
|
11 |
+
|
12 |
/**
|
13 |
* Widget Constuctor
|
14 |
*/
|
18 |
'classname' => 'widget_wpsc_price_range',
|
19 |
'description' => __( 'Price Range Widget', 'wpsc' )
|
20 |
);
|
21 |
+
|
22 |
$this->WP_Widget( 'wpsc_price_range', __( 'Price Range', 'wpsc' ), $widget_ops );
|
23 |
+
|
24 |
}
|
25 |
|
26 |
/**
|
32 |
* @todo Add individual capability checks for each menu item rather than just manage_options.
|
33 |
*/
|
34 |
function widget( $args, $instance ) {
|
35 |
+
|
36 |
global $wpdb, $table_prefix;
|
37 |
+
|
38 |
extract( $args );
|
39 |
+
|
40 |
echo $before_widget;
|
41 |
$title = apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Price Range', 'wpsc' ) : $instance['title'] );
|
42 |
if ( $title ) {
|
44 |
}
|
45 |
wpsc_price_range();
|
46 |
echo $after_widget;
|
47 |
+
|
48 |
}
|
49 |
|
50 |
/**
|
56 |
* @return (array) New values.
|
57 |
*/
|
58 |
function update( $new_instance, $old_instance ) {
|
59 |
+
|
60 |
$instance = $old_instance;
|
61 |
$instance['title'] = strip_tags( $new_instance['title'] );
|
62 |
|
63 |
return $instance;
|
64 |
+
|
65 |
}
|
66 |
|
67 |
/**
|
70 |
* @param $instance (array) Widget values.
|
71 |
*/
|
72 |
function form( $instance ) {
|
73 |
+
|
74 |
global $wpdb;
|
75 |
+
|
76 |
// Defaults
|
77 |
$instance = wp_parse_args( (array)$instance, array( 'title' => '' ) );
|
78 |
+
|
79 |
// Values
|
80 |
$title = esc_attr( $instance['title'] );
|
81 |
+
|
82 |
?>
|
83 |
<p>
|
84 |
<label for="<?php echo $this->get_field_id('title'); ?>"><?php _e( 'Title:', 'wpsc' ); ?></label>
|
85 |
<input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo $title; ?>" />
|
86 |
</p>
|
87 |
<?php
|
88 |
+
|
89 |
}
|
90 |
|
91 |
}
|
102 |
function wpsc_price_range( $args = null ) {
|
103 |
|
104 |
global $wpdb;
|
105 |
+
|
106 |
// Filter args not used at the moment, but this is here ready
|
107 |
$args = wp_parse_args( (array)$args, array() );
|
108 |
+
|
109 |
$siteurl = get_option( 'siteurl' );
|
110 |
$product_page = get_option( 'product_list_url' );
|
111 |
$result = $wpdb->get_results( "SELECT DISTINCT CAST(`meta_value` AS DECIMAL) AS `price` FROM " . $wpdb->postmeta . " AS `m` WHERE `meta_key` IN ('_wpsc_price') ORDER BY `price` ASC", ARRAY_A );
|
112 |
+
|
113 |
if ( $result != null ) {
|
114 |
sort( $result );
|
115 |
$count = count( $result );
|
118 |
$ranges[] = round( $result[$i]['price'], -1 );
|
119 |
}
|
120 |
$ranges = array_unique( $ranges );
|
121 |
+
|
122 |
$final_count = count( $ranges );
|
123 |
$ranges = array_merge( array(), $ranges );
|
124 |
$_SESSION['price_range'] = $ranges;
|
136 |
echo "<li><a href='" . esc_url(add_query_arg( 'range', 'all', get_option( 'product_list_url' )) ) . "'>" . _x( 'Show All', 'price range widget', 'wpsc' ) . "</a></li>";
|
137 |
echo '</ul>';
|
138 |
}
|
139 |
+
|
140 |
}
|
141 |
|
142 |
if(isset($_GET['range'])){
|
143 |
add_filter( 'posts_where', 'wpsc_range_where' );
|
144 |
}
|
145 |
+
|
|
|
|
|
|
|
|
|
|
|
146 |
function wpsc_range_where( $where ) {
|
147 |
global $wpdb, $wp_query;
|
148 |
$range = explode('-', $_GET['range']);
|
153 |
}elseif(!$range[1]){
|
154 |
$where .= " AND $wpdb->posts.id IN ( SELECT $wpdb->posts.id FROM $wpdb->posts JOIN $wpdb->postmeta on $wpdb->postmeta.post_id = $wpdb->posts.id WHERE $wpdb->postmeta.meta_key=\"_wpsc_price\" AND $wpdb->postmeta.meta_value > " . ( $range[0]-1 ) . ") ";
|
155 |
}elseif($range[1] && $range[0]){
|
156 |
+
$where .= " AND $wpdb->posts.id IN ( SELECT $wpdb->posts.id FROM $wpdb->posts JOIN $wpdb->postmeta on $wpdb->postmeta.post_id = $wpdb->posts.id WHERE $wpdb->postmeta.meta_key=\"_wpsc_price\" AND $wpdb->postmeta.meta_value > " . ( $range[0]-1 ) . " AND $wpdb->postmeta.meta_value < " . ( $range[1] + 1 ) . ") ";
|
157 |
}
|
158 |
return $where;
|
159 |
}
|
wpsc-widgets/shopping_cart_widget.php
CHANGED
@@ -80,7 +80,7 @@ class WP_Widget_Shopping_Cart extends WP_Widget {
|
|
80 |
<?php
|
81 |
} else {
|
82 |
?>
|
83 |
-
<div class="wpsc_cart_loading"><p><?php _e( 'Loading...', 'wpsc' ); ?></p>
|
84 |
<?php
|
85 |
}
|
86 |
echo '</div>';
|
80 |
<?php
|
81 |
} else {
|
82 |
?>
|
83 |
+
<div class="wpsc_cart_loading"><p><?php _e( 'Loading...', 'wpsc' ); ?></p></div>
|
84 |
<?php
|
85 |
}
|
86 |
echo '</div>';
|