Reverted versioning, various updates.

Fixed wrong url and typo in readme, updated shortcode and screenshots.
This commit is contained in:
Alexander
2014-09-12 18:16:59 +02:00
parent 1d1e1da4f9
commit 8e4e4f6c19
3 changed files with 12 additions and 18 deletions
@@ -5,7 +5,7 @@
* @subpackage Payment Methods/Assets * @subpackage Payment Methods/Assets
* *
* @since 2014-09-08 * @since 2014-09-08
* @version 2014-09-10 * @version 2014-09-08
* *
* @author Poellmann Alexander Manfred <alex@vendocr.at> * @author Poellmann Alexander Manfred <alex@vendocr.at>
* @copyright Copyright 2014 vendocrat. All Rights Reserved. * @copyright Copyright 2014 vendocrat. All Rights Reserved.
@@ -36,9 +36,7 @@
border:1px solid #333;} border:1px solid #333;}
.payment-methods-inverse > li > b, .payment-methods-inverse > li > b,
.payment-methods-inverse > li > i, .payment-methods-inverse > li > i {
.payment-methods-i > li > b,
.payment-methods-i > li > i {
color:#333; color:#333;
background:#fff; background:#fff;
border-color:#fff;} border-color:#fff;}
@@ -1,9 +1,9 @@
<?php <?php
/** /**
* Plugin Name: WooCommerce Payment Methods (by vendocrat) /* Plugin Name: WooCommerce Payment Methods (by vendocrat)
* Plugin URI: http://vendocr.at/ * Plugin URI: http://vendocr.at/
* Description: <strong>Easily display your accepted payment methods from WooCommerce.</strong> Handcrafted with &hearts; by <a href='http://vendocr.at/'>vendocrat</a> in Vienna. * Description: <strong>Easily display your accepted payment methods from WooCommerce.</strong> Handcrafted with &hearts; by <a href='http://vendocr.at/'>vendocrat</a> in Vienna.
* Version: 0.1.2 * Version: 0.1.1
* Author: vendocrat * Author: vendocrat
* Author URI: http://vendocr.at/ * Author URI: http://vendocr.at/
* License: GNU General Public License v3.0 * License: GNU General Public License v3.0
@@ -128,17 +128,16 @@ class vendocrat_Woo_Payment_Methods {
* Woo Accepted Payment Methods * Woo Accepted Payment Methods
* *
* @since 2014-09-07 * @since 2014-09-07
* @version 2014-09-12 * @version 2014-09-08
**************************************************/ **************************************************/
function get_payment_methods( $atts = array(), $content = null ) { function get_payment_methods( $atts = array(), $content = null ) {
extract( extract(
shortcode_atts( shortcode_atts(
array( array(
'methods' => array(), // keys are the gateway slugs (lowercase) for the icon class, values are the title attributes 'methods' => array(), // keys are the gateway slugs (lowercase) for the icon class, values are the title attributes
'style' => 'default', // default, i/inverse, o/outline 'style' => 'default', // default, inverse, o/outline
'tooltip' => false, // adds data attributes to icon to be used for diplaying tooltips (made for Bootstrap) 'tooltip' => false, // adds data attributes to icon to be used for diplaying tooltips (made for Bootstrap)
'placement' => 'bottom', // specify tooltip placement (top, right, bottom, left) 'xclass' => false, // add any extra classes, seperated by a space
'xclass' => false, // add any extra classes, seperated by a space
), $atts ), $atts
) )
); );
@@ -184,7 +183,7 @@ class vendocrat_Woo_Payment_Methods {
$icon = '<i'; $icon = '<i';
$icon.= ($class) ? ' class="'. esc_attr( trim($class) ) .'"' : ''; $icon.= ($class) ? ' class="'. esc_attr( trim($class) ) .'"' : '';
$icon.= ($title) ? ' title="'. esc_attr( trim($title) ) .'"' : ''; $icon.= ($title) ? ' title="'. esc_attr( trim($title) ) .'"' : '';
$icon.= ($tooltip) ? ' data-toggle="tooltip" data-placement="'. $placement .'"' : ''; $icon.= ($tooltip) ? ' data-toggle="tooltip" data-placement="bottom"' : '';
$icon.= '></i>'; $icon.= '></i>';
break; break;
} }
+2 -5
View File
@@ -30,7 +30,7 @@ Translations included:
== Installation == == Installation ==
1. Upload 'woocommerce-payment-methods' to the '/wp-content/plugins/' directory 1. Upload 'woocommerce-accepted-payment-methods' to the '/wp-content/plugins/' directory
2. Activate the plugin through the 'Plugins' menu in WordPress 2. Activate the plugin through the 'Plugins' menu in WordPress
3. Display your accepted methods via: Shortcode [v_woo_payment_methods], Widget or template tag '<?php v_woo_payment_methods(); ?>. 3. Display your accepted methods via: Shortcode [v_woo_payment_methods], Widget or template tag '<?php v_woo_payment_methods(); ?>.
4. Done! 4. Done!
@@ -54,7 +54,4 @@ Note: As we're using a webfont called <a href="https://github.com/orlandotm/paym
Initial release. Initial release.
= 0.1.1 = = 0.1.1 =
Fixed wrong url and typo in readme. Fixed wrong url and typo in readme, updated shortcode and screenshots.
= 0.1.2 =
Updated shortcode and screenshots.