mirror of
https://github.com/10h30/WooCommerce-Payment-Methods.git
synced 2026-06-05 15:07:59 +09:00
Fixed wrong url and typo in readme.txt
This commit is contained in:
@@ -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 ♥ 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user