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
@@ -1,9 +1,9 @@
<?php
/**
* Plugin Name: WooCommerce Payment Methods (by vendocrat)
/* Plugin Name: WooCommerce Payment Methods (by vendocrat)
* 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.
* Version: 0.1.2
* Version: 0.1.1
* Author: vendocrat
* Author URI: http://vendocr.at/
* License: GNU General Public License v3.0
@@ -128,17 +128,16 @@ class vendocrat_Woo_Payment_Methods {
* Woo Accepted Payment Methods
*
* @since 2014-09-07
* @version 2014-09-12
* @version 2014-09-08
**************************************************/
function get_payment_methods( $atts = array(), $content = null ) {
extract(
shortcode_atts(
array(
'methods' => array(), // keys are the gateway slugs (lowercase) for the icon class, values are the title attributes
'style' => 'default', // default, i/inverse, o/outline
'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
'methods' => array(), // keys are the gateway slugs (lowercase) for the icon class, values are the title attributes
'style' => 'default', // default, inverse, o/outline
'tooltip' => false, // adds data attributes to icon to be used for diplaying tooltips (made for Bootstrap)
'xclass' => false, // add any extra classes, seperated by a space
), $atts
)
);
@@ -184,7 +183,7 @@ class vendocrat_Woo_Payment_Methods {
$icon = '<i';
$icon.= ($class) ? ' class="'. esc_attr( trim($class) ) .'"' : '';
$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>';
break;
}