Fixed wrong url and typo in readme.txt

This commit is contained in:
Alexander
2014-09-12 17:30:31 +02:00
parent b0e9b12a9e
commit 6a7e2321c3
3 changed files with 24 additions and 17 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.0
* Version: 0.1.1
* Author: vendocrat
* Author URI: http://vendocr.at/
* License: GNU General Public License v3.0
@@ -128,16 +128,17 @@ class vendocrat_Woo_Payment_Methods {
* Woo Accepted Payment Methods
*
* @since 2014-09-07
* @version 2014-09-08
* @version 2014-09-10
**************************************************/
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, 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
'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
), $atts
)
);
@@ -183,7 +184,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="bottom"' : '';
$icon.= ($tooltip) ? ' data-toggle="tooltip" data-placement="'. $placement .'"' : '';
$icon.= '></i>';
break;
}