Changeset 1145042
- Timestamp:
- 04/24/2015 05:55:08 PM (11 years ago)
- Location:
- woocommerce-payment-methods/trunk
- Files:
-
- 3 edited
-
README.md (modified) (1 diff)
-
readme.txt (modified) (6 diffs)
-
woocommerce-payment-methods.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-payment-methods/trunk/README.md
r1145014 r1145042 1 WooCommerce Payment Methods 1.1. 01 WooCommerce Payment Methods 1.1.2 2 2 ================================= 3 3 -
woocommerce-payment-methods/trunk/readme.txt
r1145034 r1145042 5 5 Requires at least: 3.5 6 6 Tested up to: 4.2 7 Stable tag: 1.1. 17 Stable tag: 1.1.2 8 8 License: GNU General Public License v3.0 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 15 15 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. 16 16 17 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.17 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. 18 18 19 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.19 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. 20 20 21 21 **PaymentFont webfont** … … 39 39 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! 40 40 41 = We 'd love to hear from you! =41 = We`d love to hear from you! = 42 42 43 43 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)! … … 45 45 == Installation == 46 46 47 1. Upload 'woocommerce-payment-methods' to the '/wp-content/plugins/'directory48 2. Activate the plugin through the 'Plugins'menu in WordPress49 3. Display your accepted methods via: Shortcode [wc_payment_methods], Widget or template tag '<?php wc_payment_methods(); ?>.47 1. Upload `woocommerce-payment-methods` to the `/wp-content/plugins/` directory 48 2. Activate the plugin through the `Plugins` menu in WordPress 49 3. Display your accepted methods via: Shortcode [wc_payment_methods], Widget or template tag `<?php wc_payment_methods(); ?>. 50 50 4. Done! 51 51 … … 58 58 = How to display the payment methods? = 59 59 60 You can use the function 'wc_payment_methods( $atts )', the shortcode '[wc_payment_methods]'or the widget.60 You can use the function `wc_payment_methods( $atts )`, the shortcode `[wc_payment_methods]` or the widget. 61 61 62 62 = What function/shortcode attributes are available? = 63 63 64 1. 'methods'=> Comma separated list of payment methods icon slugs to be displayed, see http://paymentfont.io for available icons, defaults to false65 2. 'style'=> How shall the icons be displayed? Available options are default, inverse and outline.66 3. 'tooltip'=> Adds data attributes to icon to be used for diplaying tooltips (made for Bootstrap), defaults to false67 4. 'placement'=> Set tooltip placement, defaults to bottom68 5. 'xclass'=> Add any extra classes, seperated by a space, defaults to false64 1. `methods` => Comma separated list of payment methods icon slugs to be displayed, see http://paymentfont.io for available icons, defaults to false 65 2. `style` => How shall the icons be displayed? Available options are default, inverse and outline. 66 3. `tooltip` => Adds data attributes to icon to be used for diplaying tooltips (made for Bootstrap), defaults to false 67 4. `placement` => Set tooltip placement, defaults to bottom 68 5. `xclass` => Add any extra classes, seperated by a space, defaults to false 69 69 70 70 = How can I manually specify or override the displayed methods? = 71 71 72 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).72 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). 73 73 74 74 = Are Filters/Hooks available? = 75 75 76 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.76 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. 77 77 78 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 '<li><i class="pf pf-paypal"></i></li><li><i class="pf pf-visa"></i></li><li><i class="pf pf-mastercard"></i></li>'for the icons PayPal, Visa and MasterCard.78 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 `<li><i class="pf pf-paypal"></i></li><li><i class="pf pf-visa"></i></li><li><i class="pf pf-mastercard"></i></li>` for the icons PayPal, Visa and MasterCard. 79 79 80 80 == Screenshots == … … 116 116 = 1.1.0 = 117 117 Minor fixes, added multiselect to widget to manually pick payment methods, update to PaymentFont v1.1.1 for better performance. 118 119 = 1.1.1 = 120 Minor fixes, enhanced widget. 121 122 = 1.1.2 = 123 Updated language files for German. -
woocommerce-payment-methods/trunk/woocommerce-payment-methods.php
r1145034 r1145042 3 3 * Plugin URI: https://vendocr.at/ 4 4 * Description: <strong>Easily display your accepted payment methods from WooCommerce.</strong> Handcrafted with ♥ by <a href='https://vendocr.at/'>vendocrat</a> in Vienna. 5 * Version: 1.1. 15 * Version: 1.1.2 6 6 * Author: vendocrat 7 7 * Author URI: https://vendocr.at/ … … 17 17 global $vendocrat_wc_payment_methods; 18 18 $vendocrat_wc_payment_methods = new vendocrat_WC_Payment_Methods( __FILE__ ); 19 $vendocrat_wc_payment_methods->version = '1.1. 1';19 $vendocrat_wc_payment_methods->version = '1.1.2'; 20 20 21 21 /*
Note: See TracChangeset
for help on using the changeset viewer.