+
+
+ '. __( 'Optional', 'woocommerce-payment-methods' ) . ': ' . sprintf( __( 'Specify payment methods to be shown manually by entering their slugs comma separated (eg. "paypal,visa,mastercard" for PayPal, Visa and MasterCard). See %s for available payment methods an their slugs! If left blank the widget will try to automatically fetch available payment methods from WooCommerce.', 'woocommerce-payment-methods' ), 'PaymentFont.io' ); ?>
+
\n"
-"Language-Team: Anestis Samourkasidis\n"
-"Language: el\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: Poedit 1.6.11\n"
-"X-Poedit-Basepath: .\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-"X-Poedit-KeywordsList: __;_e\n"
-"X-Poedit-SearchPath-0: ..\n"
-
-#: ../classes/class-server-monitor.php:124
-#, php-format
-msgid "%s: General"
-msgstr "%s: Γενικά"
-
-#: ../classes/class-server-monitor.php:124
-#: ../classes/class-server-monitor.php:130
-msgid "Server Monitor"
-msgstr "Παρακολούθηση Διακομιστή"
-
-#: ../classes/class-server-monitor.php:130
-#, php-format
-msgid "%s: PHP & Database"
-msgstr "%s: PHP & Βάση Δεδομένων"
-
-#: ../classes/class-server-monitor.php:136
-msgid "System Status"
-msgstr "Κατάσταση συστήματος"
-
-#: ../classes/class-server-monitor.php:215
-#: ../classes/class-server-monitor.php:317
-#: ../classes/class-server-monitor.php:318
-#: ../classes/class-server-monitor.php:319
-#: ../classes/class-server-monitor.php:320
-#: ../classes/class-server-monitor.php:354
-#: ../classes/class-server-monitor.php:368
-msgid "N/A"
-msgstr "Μη διαθέσιμο"
-
-#: ../classes/class-server-monitor.php:220
-msgid "Host Name"
-msgstr "Ονομα Host"
-
-#: ../classes/class-server-monitor.php:221
-msgid "Server IP"
-msgstr "IP Διακομιστή"
-
-#: ../classes/class-server-monitor.php:222
-msgid "Server Path"
-msgstr "Διαδρομή Διακομιστή"
-
-#: ../classes/class-server-monitor.php:225
-msgid "Server Load"
-msgstr "Φόρτος Διακομιστή"
-
-#: ../classes/class-server-monitor.php:229
-msgid "Server up since"
-msgstr "Ανοιχτός εδώ και"
-
-#: ../classes/class-server-monitor.php:232
-msgid "Server Info"
-msgstr "Πληροφορίες Διακομιστή"
-
-#: ../classes/class-server-monitor.php:253
-msgid "PHP Version"
-msgstr "Εκδοση PHP"
-
-#: ../classes/class-server-monitor.php:256
-msgid "PHP Time Limit"
-msgstr "χρονικό όριο PHP"
-
-#: ../classes/class-server-monitor.php:259
-msgid "MySQL Version"
-msgstr "Εκδοση MySQL"
-
-#: ../classes/class-server-monitor.php:260
-msgid "Database Size"
-msgstr "Μέγεθος Βάσης"
-
-#: ../classes/class-server-monitor.php:281
-msgid "WordPress Version"
-msgstr "Έκδοση Wordpress"
-
-#: ../classes/class-server-monitor.php:282
-msgid "Multisite?"
-msgstr "Πολλαπλά site;"
-
-#: ../classes/class-server-monitor.php:283
-msgid "Active Plugins"
-msgstr "Ενεργά πρόσθετα"
-
-#: ../classes/class-server-monitor.php:286
-msgid "Debug Mode"
-msgstr "Λειτουργία εντοπισμού σφαλμάτων"
-
-#: ../classes/class-server-monitor.php:287
-msgid "Language"
-msgstr "Γλώσσα"
-
-#: ../classes/class-server-monitor.php:288
-msgid "Timezone"
-msgstr "Ζώνη ώρας"
-
-#: ../classes/class-server-monitor.php:328
-#: ../classes/class-server-monitor.php:332
-msgid "Yes"
-msgstr "Ναί"
-
-#: ../classes/class-server-monitor.php:328
-#: ../classes/class-server-monitor.php:332
-msgid "No"
-msgstr "Όχι"
diff --git a/languages/woocommerce-payment-methods-de_AT.mo b/languages/woocommerce-payment-methods-de_AT.mo
index 58519d1..2c18b3e 100644
Binary files a/languages/woocommerce-payment-methods-de_AT.mo and b/languages/woocommerce-payment-methods-de_AT.mo differ
diff --git a/languages/woocommerce-payment-methods-de_AT.po b/languages/woocommerce-payment-methods-de_AT.po
index 18682a8..f2f6586 100644
--- a/languages/woocommerce-payment-methods-de_AT.po
+++ b/languages/woocommerce-payment-methods-de_AT.po
@@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: WooCommerce Payment Methods\n"
-"POT-Creation-Date: 2014-10-23 18:11+0100\n"
-"PO-Revision-Date: 2014-10-23 18:11+0100\n"
+"POT-Creation-Date: 2015-04-24 19:44+0100\n"
+"PO-Revision-Date: 2015-04-24 19:46+0100\n"
"Last-Translator: \n"
"Language-Team: vendocrat \n"
"Language: de\n"
@@ -15,34 +15,35 @@ msgstr ""
"X-Poedit-KeywordsList: __;_e\n"
"X-Poedit-SearchPath-0: ..\n"
-#: ../classes/class-wc-payment-methods.php:60
+#: ../classes/class-wc-payment-methods.php:59
msgid "Bank Transfer"
msgstr "Bank-Überweisung"
-#: ../classes/class-wc-payment-methods.php:65
+#: ../classes/class-wc-payment-methods.php:64
msgid "Cash"
msgstr "Bargeld"
-#: ../classes/class-wc-payment-methods.php:66
+#: ../classes/class-wc-payment-methods.php:65
msgid "Cash on Delivery"
msgstr "Nachname"
-#: ../classes/class-wc-payment-methods.php:69
-msgid "Pay with Cheque"
-msgstr "Mit Scheck bezahlen"
-
-#: ../classes/class-wc-payment-methods.php:71
+#: ../classes/class-wc-payment-methods.php:70
msgid "Credit Card"
msgstr "Kreditkarte"
+#: ../classes/class-wc-payment-methods.php:75
#: ../classes/class-wc-payment-methods.php:76
-#: ../classes/class-wc-payment-methods.php:77
-#: ../classes/class-wc-payment-methods.php:83
+#: ../classes/class-wc-payment-methods.php:82
#: ../classes/class-wc-payment-methods.php:95
msgid "Invoice"
msgstr "Rechnung"
+#: ../classes/class-wc-payment-methods.php:270
+msgid "No Payment Methods available or specified."
+msgstr "Keine Zahlungsarten verfügbar oder angegeben."
+
#: ../classes/class-widget-wc-payment-methods.php:33
+#: ../classes/class-widget-wc-payment-methods.php:139
msgid "Payment Methods"
msgstr "Zahlungsmethoden"
@@ -109,3 +110,29 @@ msgstr "Links"
#: ../classes/class-widget-wc-payment-methods.php:135
msgid "Extra classes"
msgstr "Zusätzliche Klassen"
+
+#: ../classes/class-widget-wc-payment-methods.php:141
+msgid "Optional"
+msgstr "Optional"
+
+#: ../classes/class-widget-wc-payment-methods.php:141
+#, php-format
+msgid ""
+"Specify payment methods to be shown manually by entering their slugs comma "
+"separated (eg. \"paypal,visa,mastercard\" for PayPal, Visa and MasterCard). "
+"See %s for available payment methods an their slugs! If left blank the "
+"widget will try to automatically fetch available payment methods from "
+"WooCommerce."
+msgstr ""
+"Definiere die anzuzeigenden Zahlungsmethoden indem du deren Slugs koma-"
+"separiert eingibst (z.B. \"paypal,visa,mastercard\" für PayPal, Visa und "
+"MasterCard). Die verfügbaren Zahlungsarten und deren Slugs findest du unter "
+"%s! Wenn du das Feld leer lässt, wird das Widget versuchen die verfügbaren "
+"Zahlungsarten automatisch von WooCommerce zu übernehmen."
+
+#, fuzzy
+#~ msgid "Methods"
+#~ msgstr "Zahlungsmethoden"
+
+#~ msgid "Pay with Cheque"
+#~ msgstr "Mit Scheck bezahlen"
diff --git a/languages/woocommerce-payment-methods-de_DE.mo b/languages/woocommerce-payment-methods-de_DE.mo
index 58519d1..dec7456 100644
Binary files a/languages/woocommerce-payment-methods-de_DE.mo and b/languages/woocommerce-payment-methods-de_DE.mo differ
diff --git a/languages/woocommerce-payment-methods-de_DE.po b/languages/woocommerce-payment-methods-de_DE.po
index 18682a8..d9d7e60 100644
--- a/languages/woocommerce-payment-methods-de_DE.po
+++ b/languages/woocommerce-payment-methods-de_DE.po
@@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: WooCommerce Payment Methods\n"
-"POT-Creation-Date: 2014-10-23 18:11+0100\n"
-"PO-Revision-Date: 2014-10-23 18:11+0100\n"
+"POT-Creation-Date: 2015-04-24 19:46+0100\n"
+"PO-Revision-Date: 2015-04-24 19:46+0100\n"
"Last-Translator: \n"
"Language-Team: vendocrat \n"
"Language: de\n"
@@ -15,34 +15,35 @@ msgstr ""
"X-Poedit-KeywordsList: __;_e\n"
"X-Poedit-SearchPath-0: ..\n"
-#: ../classes/class-wc-payment-methods.php:60
+#: ../classes/class-wc-payment-methods.php:59
msgid "Bank Transfer"
msgstr "Bank-Überweisung"
-#: ../classes/class-wc-payment-methods.php:65
+#: ../classes/class-wc-payment-methods.php:64
msgid "Cash"
msgstr "Bargeld"
-#: ../classes/class-wc-payment-methods.php:66
+#: ../classes/class-wc-payment-methods.php:65
msgid "Cash on Delivery"
msgstr "Nachname"
-#: ../classes/class-wc-payment-methods.php:69
-msgid "Pay with Cheque"
-msgstr "Mit Scheck bezahlen"
-
-#: ../classes/class-wc-payment-methods.php:71
+#: ../classes/class-wc-payment-methods.php:70
msgid "Credit Card"
msgstr "Kreditkarte"
+#: ../classes/class-wc-payment-methods.php:75
#: ../classes/class-wc-payment-methods.php:76
-#: ../classes/class-wc-payment-methods.php:77
-#: ../classes/class-wc-payment-methods.php:83
+#: ../classes/class-wc-payment-methods.php:82
#: ../classes/class-wc-payment-methods.php:95
msgid "Invoice"
msgstr "Rechnung"
+#: ../classes/class-wc-payment-methods.php:270
+msgid "No Payment Methods available or specified."
+msgstr "Keine Zahlungsarten verfügbar oder angegeben."
+
#: ../classes/class-widget-wc-payment-methods.php:33
+#: ../classes/class-widget-wc-payment-methods.php:139
msgid "Payment Methods"
msgstr "Zahlungsmethoden"
@@ -109,3 +110,25 @@ msgstr "Links"
#: ../classes/class-widget-wc-payment-methods.php:135
msgid "Extra classes"
msgstr "Zusätzliche Klassen"
+
+#: ../classes/class-widget-wc-payment-methods.php:141
+msgid "Optional"
+msgstr "Optional"
+
+#: ../classes/class-widget-wc-payment-methods.php:141
+#, php-format
+msgid ""
+"Specify payment methods to be shown manually by entering their slugs comma "
+"separated (eg. \"paypal,visa,mastercard\" for PayPal, Visa and MasterCard). "
+"See %s for available payment methods an their slugs! If left blank the "
+"widget will try to automatically fetch available payment methods from "
+"WooCommerce."
+msgstr ""
+"Definiere die anzuzeigenden Zahlungsmethoden indem du deren Slugs koma-"
+"separiert eingibst (z.B. \"paypal,visa,mastercard\" für PayPal, Visa und "
+"MasterCard). Die verfügbaren Zahlungsarten und deren Slugs findest du unter "
+"%s! Wenn du das Feld leer lässt, wird das Widget versuchen die verfügbaren "
+"Zahlungsarten automatisch von WooCommerce zu übernehmen."
+
+#~ msgid "Pay with Cheque"
+#~ msgstr "Mit Scheck bezahlen"
diff --git a/languages/woocommerce-payment-methods.mo b/languages/woocommerce-payment-methods.mo
index d518eb3..51a0552 100644
Binary files a/languages/woocommerce-payment-methods.mo and b/languages/woocommerce-payment-methods.mo differ
diff --git a/languages/woocommerce-payment-methods.pot b/languages/woocommerce-payment-methods.pot
index 17e9f41..aaad818 100644
--- a/languages/woocommerce-payment-methods.pot
+++ b/languages/woocommerce-payment-methods.pot
@@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: WooCommerce Payment Methods\n"
-"POT-Creation-Date: 2014-10-23 18:11+0100\n"
-"PO-Revision-Date: 2014-10-23 18:11+0100\n"
+"POT-Creation-Date: 2015-04-24 19:50+0100\n"
+"PO-Revision-Date: 2015-04-24 19:50+0100\n"
"Last-Translator: \n"
"Language-Team: vendocrat \n"
"Language: en\n"
@@ -15,34 +15,35 @@ msgstr ""
"X-Poedit-KeywordsList: __;_e\n"
"X-Poedit-SearchPath-0: ..\n"
-#: ../classes/class-wc-payment-methods.php:60
+#: ../classes/class-wc-payment-methods.php:59
msgid "Bank Transfer"
msgstr ""
-#: ../classes/class-wc-payment-methods.php:65
+#: ../classes/class-wc-payment-methods.php:64
msgid "Cash"
msgstr ""
-#: ../classes/class-wc-payment-methods.php:66
+#: ../classes/class-wc-payment-methods.php:65
msgid "Cash on Delivery"
msgstr ""
-#: ../classes/class-wc-payment-methods.php:69
-msgid "Pay with Cheque"
-msgstr ""
-
-#: ../classes/class-wc-payment-methods.php:71
+#: ../classes/class-wc-payment-methods.php:70
msgid "Credit Card"
msgstr ""
+#: ../classes/class-wc-payment-methods.php:75
#: ../classes/class-wc-payment-methods.php:76
-#: ../classes/class-wc-payment-methods.php:77
-#: ../classes/class-wc-payment-methods.php:83
+#: ../classes/class-wc-payment-methods.php:82
#: ../classes/class-wc-payment-methods.php:95
msgid "Invoice"
msgstr ""
+#: ../classes/class-wc-payment-methods.php:270
+msgid "No Payment Methods available or specified."
+msgstr ""
+
#: ../classes/class-widget-wc-payment-methods.php:33
+#: ../classes/class-widget-wc-payment-methods.php:139
msgid "Payment Methods"
msgstr ""
@@ -108,4 +109,18 @@ msgstr ""
#: ../classes/class-widget-wc-payment-methods.php:135
msgid "Extra classes"
-msgstr ""
\ No newline at end of file
+msgstr ""
+
+#: ../classes/class-widget-wc-payment-methods.php:141
+msgid "Optional"
+msgstr ""
+
+#: ../classes/class-widget-wc-payment-methods.php:141
+#, php-format
+msgid ""
+"Specify payment methods to be shown manually by entering their slugs comma "
+"separated (eg. \"paypal,visa,mastercard\" for PayPal, Visa and MasterCard). "
+"See %s for available payment methods an their slugs! If left blank the "
+"widget will try to automatically fetch available payment methods from "
+"WooCommerce."
+msgstr ""
diff --git a/readme.txt b/readme.txt
index 3c8eb85..eb5747a 100644
--- a/readme.txt
+++ b/readme.txt
@@ -3,20 +3,20 @@ Contributors: vendocrat, AlexanderPoellmann
Donate link: http://vendocr.at/donate/
Tags: woocommerce, credit card, logo, payment
Requires at least: 3.5
-Tested up to: 4.1
-Stable tag: 1.0.1
+Tested up to: 4.2
+Stable tag: 1.1.2
License: GNU General Public License v3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
-Easily display your accepted payment methods from WooCommerce via shortcode, widget or template tag.
+Easily display your accepted payment methods via shortcode, widget or template tag. Of course, it also works without WooCommerce ;)
== Description ==
-WooCommerce Payment Methods allows you to display your accepted payment methods. By default the plugin shows all available payment methods, but you can also specify them manually.
+WooCommerce Payment Methods allows you to display your accepted payment methods. By default the plugin shows all available payment methods, but you can also specify or override them manually.
-You can display them via shortcode, widget or template tag in three available styles (default, inverse and outline). We've added several classes, so you can easily style the output to your pleasure.
+You can display them via shortcode, widget or template tag in three available styles (default, inverse and outline). We`ve added several classes, so you can easily style the output to your pleasure.
-You are using the famous Bootstrap framework? Awesome, cause we've added the markup for tooltips, so that users can see the payment methods name on hover.
+You are using the famous Bootstrap framework? Awesome, cause we`ve added the markup for tooltips, so that users can see the payment methods name on hover.
**PaymentFont webfont**
@@ -38,15 +38,15 @@ Translations included:
All our plugins are fully localized/translateable by default and include a .pot-file! Please contact us via [Twitter](https://twitter.com/vendocrat) or hit us on [GitHub](https://github.com/vendocrat), if you have a translation you want to contribute!
-= We'd love to hear from you! =
+= We`d love to hear from you! =
Follow us on [Twitter](https://twitter.com/vendocrat), like us on [Facebook](https://www.facebook.com/vendocrat), circle us on [Google+](https://plus.google.com/+vendocrat) or fork us on [GitHub](https://github.com/vendocrat)!
== Installation ==
-1. Upload 'woocommerce-payment-methods' to the '/wp-content/plugins/' directory
-2. Activate the plugin through the 'Plugins' menu in WordPress
-3. Display your accepted methods via: Shortcode [wc_payment_methods], Widget or template tag '.
+1. Upload `woocommerce-payment-methods` to the `/wp-content/plugins/` directory
+2. Activate the plugin through the `Plugins` menu in WordPress
+3. Display your accepted methods via: Shortcode [wc_payment_methods], Widget or template tag `.
4. Done!
== Frequently Asked Questions ==
@@ -55,6 +55,28 @@ Follow us on [Twitter](https://twitter.com/vendocrat), like us on [Facebook](htt
Miss some payment methods? Let me have a look at it by opening an issue on GitHub or hit us at @vendocrat.
+= How to display the payment methods? =
+
+You can use the function `wc_payment_methods( $atts )`, the shortcode `[wc_payment_methods]` or the widget.
+
+= What function/shortcode attributes are available? =
+
+1. `methods` => Comma separated list of payment methods icon slugs to be displayed, see http://paymentfont.io for available icons, defaults to false
+2. `style` => How shall the icons be displayed? Available options are default, inverse and outline.
+3. `tooltip` => Adds data attributes to icon to be used for diplaying tooltips (made for Bootstrap), defaults to false
+4. `placement` => Set tooltip placement, defaults to bottom
+5. `xclass` => Add any extra classes, seperated by a space, defaults to false
+
+= How can I manually specify or override the displayed methods? =
+
+In the function and the shortcode use the attribute `methods`. In the widget there is a field for that. If you don`t specify any methods manually, the plugin will try to fetch the available payment methods from WooCommerce. Oh, and there are also two filters available (see beneath).
+
+= Are Filters/Hooks available? =
+
+Yep, there is first of all the filter `vendocrat_filter_wc_payment_methods` which expects an array. Use this to specify/override the methods to be shown globally.
+
+With the filter `vendocrat_filter_wc_payment_methods_icons` you can modify the html markup for all icons to be displayed. This will look somehow like `
` for the icons PayPal, Visa and MasterCard.
+
== Screenshots ==
1. Shortcode output (top-down: default, inverse, outline style)
@@ -89,4 +111,13 @@ Improved payment gateway function. Partial rewrite to fit our internal plugin st
Minor fixes, updated PaymentFont and included Portuguese translation (thanks Luis Martins).
= 1.0.1 =
-Minor fixes, added Greek translation (thanks to Anestis Samourkasidis).
\ No newline at end of file
+Minor fixes, added Greek translation (thanks to Anestis Samourkasidis).
+
+= 1.1.0 =
+Minor fixes, added multiselect to widget to manually pick payment methods, update to PaymentFont v1.1.1 for better performance.
+
+= 1.1.1 =
+Minor fixes, enhanced widget.
+
+= 1.1.2 =
+Updated language files for German.
\ No newline at end of file
diff --git a/woocommerce-payment-methods.php b/woocommerce-payment-methods.php
index 0592830..4c32c69 100644
--- a/woocommerce-payment-methods.php
+++ b/woocommerce-payment-methods.php
@@ -1,26 +1,22 @@
Easily display your accepted payment methods from WooCommerce. Handcrafted with ♥ by vendocrat in Vienna.
- * Version: 1.0.1
+ * Plugin URI: https://vendocr.at/
+ * Description: Easily display your accepted payment methods from WooCommerce. Handcrafted with ♥ by vendocrat in Vienna.
+ * Version: 1.1.2
* Author: vendocrat
- * Author URI: http://vendocr.at/
+ * Author URI: https://vendocr.at/
* License: vendocrat Split License
- * License URI: http://vendocr.at/legal/licenses
+ * License URI: https://vendocr.at/legal/licenses
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
-// check dependencies
-if ( ! in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) )
- return;
-
// require classes
require_once( 'classes/class-wc-payment-methods.php' );
global $vendocrat_wc_payment_methods;
$vendocrat_wc_payment_methods = new vendocrat_WC_Payment_Methods( __FILE__ );
-$vendocrat_wc_payment_methods->version = '1.0.1';
+$vendocrat_wc_payment_methods->version = '1.1.2';
/*
* E fatto!