mirror of
https://github.com/10h30/WooCommerce-Payment-Methods.git
synced 2026-07-11 19:05:54 +09:00
Update to 1.1.2
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
WooCommerce Payment Methods 1.0.1
|
WooCommerce Payment Methods 1.1.2
|
||||||
=================================
|
=================================
|
||||||
|
|
||||||
Easily display your accepted payment methods
|
Easily display your accepted payment methods
|
||||||
@@ -9,7 +9,7 @@ Easily display your accepted payment methods
|
|||||||
|
|
||||||
##Description
|
##Description
|
||||||
|
|
||||||
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 them manually.
|
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.
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
* @subpackage Payment Methods
|
* @subpackage Payment Methods
|
||||||
*
|
*
|
||||||
* @since 2014-09-08
|
* @since 2014-09-08
|
||||||
* @version 2014-12-17
|
* @version 2015-04-24
|
||||||
*
|
*
|
||||||
* @author Poellmann Alexander Manfred <alex@vendocr.at>
|
* @author Poellmann Alexander Manfred (@AMPoellmann)
|
||||||
* @copyright Copyright 2014 vendocrat. All Rights Reserved.
|
* @copyright Copyright 2015 vendocrat. All Rights Reserved.
|
||||||
* @link http://vendocr.at/
|
* @link https://vendocr.at/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**** Base Styles */
|
/**** Base Styles */
|
||||||
@@ -29,10 +29,12 @@
|
|||||||
cursor:default;
|
cursor:default;
|
||||||
padding:4px;
|
padding:4px;
|
||||||
|
|
||||||
border-radius:4px;
|
font-size:1.5em;
|
||||||
|
line-height:1;
|
||||||
|
|
||||||
background:transparent;
|
background:transparent;
|
||||||
border:1px solid transparent;}
|
border:1px solid transparent;
|
||||||
|
border-radius:4px;}
|
||||||
|
|
||||||
.payment-methods-inverse > li > i,
|
.payment-methods-inverse > li > i,
|
||||||
.payment-methods-i > li > i {
|
.payment-methods-i > li > i {
|
||||||
@@ -44,10 +46,6 @@
|
|||||||
.payment-methods-o > li > i {
|
.payment-methods-o > li > i {
|
||||||
border-color:#777;}
|
border-color:#777;}
|
||||||
|
|
||||||
.payment-methods > li > i {
|
|
||||||
font-size:1.5em;
|
|
||||||
line-height:1;}
|
|
||||||
|
|
||||||
/**** Widget */
|
/**** Widget */
|
||||||
.widget_vendocrat_payment_methods {}
|
.widget_vendocrat_payment_methods {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
/**
|
/**
|
||||||
* PaymentFont Styles 1.0.0
|
* PaymentFont Styles 1.1.0
|
||||||
*
|
*
|
||||||
* @since 2014-09-21
|
* @since 2014-09-21
|
||||||
* @version 2014-12-17
|
* @version 2015-04-24
|
||||||
*
|
*
|
||||||
* @author Poellmann Alexander Manfred <alex@vendocr.at>
|
* @author Poellmann Alexander Manfred (@AMPoellmann)
|
||||||
* @copyright Copyright 2014 vendocrat. All Rights Reserved.
|
* @copyright Copyright 2015 vendocrat. All Rights Reserved.
|
||||||
* @link http://vendocr.at/
|
* @link https://vendocr.at/
|
||||||
*
|
*
|
||||||
* @license Font: SIL OFL 1.1, CSS: MIT License
|
* @license Font: SIL OFL 1.1, CSS: MIT License
|
||||||
*/
|
*/
|
||||||
@@ -15,6 +15,7 @@
|
|||||||
font-family:'PaymentFont';
|
font-family:'PaymentFont';
|
||||||
src:url('../fonts/paymentfont-webfont.eot');
|
src:url('../fonts/paymentfont-webfont.eot');
|
||||||
src:url('../fonts/paymentfont-webfont.eot?#iefix') format('embedded-opentype'),
|
src:url('../fonts/paymentfont-webfont.eot?#iefix') format('embedded-opentype'),
|
||||||
|
url('../fonts/paymentfont-webfont.woff') format('woff2'),
|
||||||
url('../fonts/paymentfont-webfont.woff') format('woff'),
|
url('../fonts/paymentfont-webfont.woff') format('woff'),
|
||||||
url('../fonts/paymentfont-webfont.ttf') format('truetype'),
|
url('../fonts/paymentfont-webfont.ttf') format('truetype'),
|
||||||
url('../fonts/paymentfont-webfont.svg#paymentfont-webfont') format('svg');
|
url('../fonts/paymentfont-webfont.svg#paymentfont-webfont') format('svg');
|
||||||
@@ -312,7 +313,10 @@
|
|||||||
.pf-six:before {
|
.pf-six:before {
|
||||||
content: "\f05d";
|
content: "\f05d";
|
||||||
}
|
}
|
||||||
|
.pf-cashcloud:before {
|
||||||
|
content: "\f05e";
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* E fatto!
|
* Finito!
|
||||||
*/
|
*/
|
||||||
Vendored
+4
-4
@@ -1,9 +1,9 @@
|
|||||||
/**
|
/**
|
||||||
* PaymentFont Styles 1.0.0 by @vendocrat/@AMPoellmann
|
* PaymentFont Styles 1.1.0 by @vendocrat/@AMPoellmann
|
||||||
* http://vendocr.at or @vendocrat
|
* https://vendocr.at or @vendocrat
|
||||||
* License Font: SIL OFL 1.1, CSS: MIT License
|
* License Font: SIL OFL 1.1, CSS: MIT License
|
||||||
*/
|
*/
|
||||||
@font-face{font-family:PaymentFont;src:url(../fonts/paymentfont-webfont.eot);src:url(../fonts/paymentfont-webfont.eot?#iefix) format('embedded-opentype'),url(../fonts/paymentfont-webfont.woff) format('woff'),url(../fonts/paymentfont-webfont.ttf) format('truetype'),url(../fonts/paymentfont-webfont.svg#paymentfont-webfont) format('svg');font-weight:400;font-style:normal}.pf{display:inline-block;font:normal normal normal 14px/1 PaymentFont;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.pf-amazon:before{content:"\f000"}.pf-american-express:before{content:"\f001"}.pf-american-express-alt:before{content:"\f002"}.pf-atm:before{content:"\f003"}.pf-bankomat:before{content:"\f004"}.pf-bank-transfer:before{content:"\f005"}.pf-bitcoin:before{content:"\f006"}.pf-bitcoin-sign:before{content:"\f007"}.pf-braintree:before{content:"\f008"}.pf-btc:before{content:"\f009"}.pf-card:before{content:"\f00a"}.pf-carta-si:before{content:"\f00b"}.pf-cash:before{content:"\f00c"}.pf-cash-on-delivery:before{content:"\f00d"}.pf-cb:before{content:"\f00e"}.pf-cirrus:before{content:"\f00f"}.pf-cirrus-alt:before{content:"\f010"}.pf-clickandbuy:before{content:"\f011"}.pf-credit-card:before{content:"\f012"}.pf-diners:before{content:"\f013"}.pf-discover:before{content:"\f014"}.pf-ec:before{content:"\f015"}.pf-eps:before{content:"\f016"}.pf-eur:before{content:"\f017"}.pf-facture:before{content:"\f018"}.pf-fattura:before{content:"\f019"}.pf-flattr:before{content:"\f01a"}.pf-giropay:before{content:"\f01b"}.pf-gittip:before,.pf-gratipay:before{content:"\f01c"}.pf-google-wallet:before{content:"\f01d"}.pf-google-wallet-alt:before{content:"\f01e"}.pf-gpb:before{content:"\f01f"}.pf-ideal:before{content:"\f020"}.pf-ils:before{content:"\f021"}.pf-inr:before{content:"\f022"}.pf-invoice:before{content:"\f023"}.pf-invoice-sign:before{content:"\f024"}.pf-invoice-sign-alt:before{content:"\f025"}.pf-invoice-sign-alt-o:before{content:"\f026"}.pf-invoice-sign-o:before{content:"\f027"}.pf-jcb:before{content:"\f028"}.pf-jpy:before{content:"\f029"}.pf-krw:before{content:"\f02a"}.pf-maestro:before{content:"\f02b"}.pf-maestro-alt:before{content:"\f02c"}.pf-mastercard:before{content:"\f02d"}.pf-mastercard-alt:before{content:"\f02e"}.pf-mastercard-securecode:before{content:"\f02f"}.pf-ogone:before{content:"\f030"}.pf-paybox:before{content:"\f031"}.pf-paylife:before{content:"\f032"}.pf-paypal:before{content:"\f033"}.pf-paypal-alt:before{content:"\f034"}.pf-paysafecard:before{content:"\f035"}.pf-postepay:before{content:"\f036"}.pf-quick:before{content:"\f037"}.pf-rechnung:before{content:"\f038"}.pf-ripple:before{content:"\f039"}.pf-rub:before{content:"\f03a"}.pf-skrill:before{content:"\f03b"}.pf-sofort:before{content:"\f03c"}.pf-square:before{content:"\f03d"}.pf-stripe:before{content:"\f03e"}.pf-truste:before{content:"\f03f"}.pf-try:before{content:"\f040"}.pf-unionpay:before{content:"\f041"}.pf-usd:before{content:"\f042"}.pf-verified-by-visa:before{content:"\f043"}.pf-verisign:before{content:"\f044"}.pf-visa:before{content:"\f045"}.pf-visa-electron:before{content:"\f046"}.pf-western-union:before{content:"\f047"}.pf-western-union-alt:before{content:"\f048"}.pf-wirecard:before{content:"\f049"}.pf-sepa:before{content:"\f04a"}.pf-sepa-alt:before{content:"\f04b"}.pf-apple-pay:before{content:"\f04c"}.pf-interac:before{content:"\f04d"}.pf-paymill:before{content:"\f04e"}.pf-dankort:before{content:"\f04f"}.pf-bancontact-mister-cash:before{content:"\f050"}.pf-moip:before{content:"\f051"}.pf-pagseguro:before{content:"\f052"}.pf-cash-on-pickup:before{content:"\f053"}.pf-sage:before{content:"\f054"}.pf-elo:before{content:"\f055"}.pf-elo-alt:before{content:"\f056"}.pf-payu:before{content:"\f057"}.pf-mercado-pago:before{content:"\f058"}.pf-mercado-pago-sign:before{content:"\f059"}.pf-payshop:before{content:"\f05a"}.pf-multibanco:before{content:"\f05b"}.pf-gratipay-sign:before{content:"\f05c"}.pf-six:before{content:"\f05d"}
|
@font-face{font-family:PaymentFont;src:url(../fonts/paymentfont-webfont.eot);src:url(../fonts/paymentfont-webfont.eot?#iefix) format('embedded-opentype'),url('../fonts/paymentfont-webfont.woff') format('woff2'),url(../fonts/paymentfont-webfont.woff) format('woff'),url(../fonts/paymentfont-webfont.ttf) format('truetype'),url(../fonts/paymentfont-webfont.svg#paymentfont-webfont) format('svg');font-weight:400;font-style:normal}.pf{display:inline-block;font:normal normal normal 14px/1 PaymentFont;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.pf-amazon:before{content:"\f000"}.pf-american-express:before{content:"\f001"}.pf-american-express-alt:before{content:"\f002"}.pf-atm:before{content:"\f003"}.pf-bankomat:before{content:"\f004"}.pf-bank-transfer:before{content:"\f005"}.pf-bitcoin:before{content:"\f006"}.pf-bitcoin-sign:before{content:"\f007"}.pf-braintree:before{content:"\f008"}.pf-btc:before{content:"\f009"}.pf-card:before{content:"\f00a"}.pf-carta-si:before{content:"\f00b"}.pf-cash:before{content:"\f00c"}.pf-cash-on-delivery:before{content:"\f00d"}.pf-cb:before{content:"\f00e"}.pf-cirrus:before{content:"\f00f"}.pf-cirrus-alt:before{content:"\f010"}.pf-clickandbuy:before{content:"\f011"}.pf-credit-card:before{content:"\f012"}.pf-diners:before{content:"\f013"}.pf-discover:before{content:"\f014"}.pf-ec:before{content:"\f015"}.pf-eps:before{content:"\f016"}.pf-eur:before{content:"\f017"}.pf-facture:before{content:"\f018"}.pf-fattura:before{content:"\f019"}.pf-flattr:before{content:"\f01a"}.pf-giropay:before{content:"\f01b"}.pf-gittip:before,.pf-gratipay:before{content:"\f01c"}.pf-google-wallet:before{content:"\f01d"}.pf-google-wallet-alt:before{content:"\f01e"}.pf-gpb:before{content:"\f01f"}.pf-ideal:before{content:"\f020"}.pf-ils:before{content:"\f021"}.pf-inr:before{content:"\f022"}.pf-invoice:before{content:"\f023"}.pf-invoice-sign:before{content:"\f024"}.pf-invoice-sign-alt:before{content:"\f025"}.pf-invoice-sign-alt-o:before{content:"\f026"}.pf-invoice-sign-o:before{content:"\f027"}.pf-jcb:before{content:"\f028"}.pf-jpy:before{content:"\f029"}.pf-krw:before{content:"\f02a"}.pf-maestro:before{content:"\f02b"}.pf-maestro-alt:before{content:"\f02c"}.pf-mastercard:before{content:"\f02d"}.pf-mastercard-alt:before{content:"\f02e"}.pf-mastercard-securecode:before{content:"\f02f"}.pf-ogone:before{content:"\f030"}.pf-paybox:before{content:"\f031"}.pf-paylife:before{content:"\f032"}.pf-paypal:before{content:"\f033"}.pf-paypal-alt:before{content:"\f034"}.pf-paysafecard:before{content:"\f035"}.pf-postepay:before{content:"\f036"}.pf-quick:before{content:"\f037"}.pf-rechnung:before{content:"\f038"}.pf-ripple:before{content:"\f039"}.pf-rub:before{content:"\f03a"}.pf-skrill:before{content:"\f03b"}.pf-sofort:before{content:"\f03c"}.pf-square:before{content:"\f03d"}.pf-stripe:before{content:"\f03e"}.pf-truste:before{content:"\f03f"}.pf-try:before{content:"\f040"}.pf-unionpay:before{content:"\f041"}.pf-usd:before{content:"\f042"}.pf-verified-by-visa:before{content:"\f043"}.pf-verisign:before{content:"\f044"}.pf-visa:before{content:"\f045"}.pf-visa-electron:before{content:"\f046"}.pf-western-union:before{content:"\f047"}.pf-western-union-alt:before{content:"\f048"}.pf-wirecard:before{content:"\f049"}.pf-sepa:before{content:"\f04a"}.pf-sepa-alt:before{content:"\f04b"}.pf-apple-pay:before{content:"\f04c"}.pf-interac:before{content:"\f04d"}.pf-paymill:before{content:"\f04e"}.pf-dankort:before{content:"\f04f"}.pf-bancontact-mister-cash:before{content:"\f050"}.pf-moip:before{content:"\f051"}.pf-pagseguro:before{content:"\f052"}.pf-cash-on-pickup:before{content:"\f053"}.pf-sage:before{content:"\f054"}.pf-elo:before{content:"\f055"}.pf-elo-alt:before{content:"\f056"}.pf-payu:before{content:"\f057"}.pf-mercado-pago:before{content:"\f058"}.pf-mercado-pago-sign:before{content:"\f059"}.pf-payshop:before{content:"\f05a"}.pf-multibanco:before{content:"\f05b"}.pf-gratipay-sign:before{content:"\f05c"}.pf-six:before{content:"\f05d"}.pf-cashcloud:before{content:"\f05e"}
|
||||||
/*
|
/*
|
||||||
* E fatto!
|
* Finito!
|
||||||
*/
|
*/
|
||||||
Binary file not shown.
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 470 KiB After Width: | Height: | Size: 474 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -2,15 +2,15 @@
|
|||||||
/**
|
/**
|
||||||
* Payment Methods
|
* Payment Methods
|
||||||
*
|
*
|
||||||
* @package vendocrat
|
* @package vendocrat
|
||||||
* @subpackage Payment Methods
|
* @subpackage Payment Methods
|
||||||
*
|
*
|
||||||
* @since 2014-09-08
|
* @since 2014-09-08
|
||||||
* @version 2014-12-17
|
* @version 2015-04-24
|
||||||
*
|
*
|
||||||
* @author Poellmann Alexander Manfred <alex@vendocr.at>
|
* @author Poellmann Alexander Manfred (@AMPoellmann)
|
||||||
* @copyright Copyright 2014 vendocrat. All Rights Reserved.
|
* @copyright Copyright 2015 vendocrat. All Rights Reserved.
|
||||||
* @link http://vendocr.at/
|
* @link https://vendocr.at/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||||
@@ -227,14 +227,14 @@ class vendocrat_WC_Payment_Methods {
|
|||||||
* Woo Accepted Payment Methods
|
* Woo Accepted Payment Methods
|
||||||
*
|
*
|
||||||
* @since 2014-09-07
|
* @since 2014-09-07
|
||||||
* @version 2014-09-21
|
* @version 2015-04-24
|
||||||
**************************************************/
|
**************************************************/
|
||||||
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' => false, // comma separated list of payment methods icon slugs to be displayed, see http://paymentfont.io for available icons (new since 0.2.0)
|
'methods' => false, // comma separated list of payment methods icon slugs to be displayed, see http://paymentfont.io for available icons (new since 0.2.0)
|
||||||
'style' => 'default', // default, inverse, o/outline
|
'style' => 'default', // default, i/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', // set tooltip placement (new since 0.1.2)
|
'placement' => 'bottom', // set tooltip placement (new since 0.1.2)
|
||||||
'xclass' => false, // add any extra classes, seperated by a space
|
'xclass' => false, // add any extra classes, seperated by a space
|
||||||
@@ -263,60 +263,72 @@ class vendocrat_WC_Payment_Methods {
|
|||||||
$methods = array_flip( $methods );
|
$methods = array_flip( $methods );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( count($methods) > 0 ) {
|
// Filter for methods (new as of v1.1.0)
|
||||||
// remove duplicate methods
|
$methods = apply_filters( 'vendocrat_filter_wc_payment_methods', $methods );
|
||||||
$methods = array_unique($methods);
|
|
||||||
|
|
||||||
// sort array
|
if ( ! is_array($methods) OR count($methods) <= 0 )
|
||||||
ksort($methods);
|
return __( 'No Payment Methods available or specified.', 'woocommerce-payment-methods' );
|
||||||
|
|
||||||
// let the magic happen
|
// remove duplicate methods
|
||||||
$icons = '';
|
$methods = array_unique($methods);
|
||||||
foreach ( $methods as $slug ) {
|
|
||||||
$icon = '';
|
|
||||||
|
|
||||||
// continue if we have no corresponding icon
|
// sort array
|
||||||
if ( ! array_key_exists ( $slug, $this->available_methods ) )
|
ksort($methods);
|
||||||
continue;
|
|
||||||
|
|
||||||
// retrieve title
|
// let the magic happen
|
||||||
$title = $this->available_methods[$slug];
|
$icons = '';
|
||||||
|
foreach ( $methods as $slug ) {
|
||||||
|
$icon = '';
|
||||||
|
|
||||||
// build icon class
|
// continue if we have no corresponding icon
|
||||||
$iclass = 'pf pf-'. $slug .' '. $slug;
|
if ( ! array_key_exists ( $slug, $this->available_methods ) )
|
||||||
|
continue;
|
||||||
|
|
||||||
// icon markup
|
// retrieve title
|
||||||
$icon = '<i';
|
$title = $this->available_methods[$slug];
|
||||||
$icon.= ($iclass) ? ' class="'. esc_attr( trim($iclass) ) .'"' : '';
|
|
||||||
$icon.= ($title) ? ' title="'. esc_attr( trim($title) ) .'"' : '';
|
|
||||||
$icon.= ($tooltip AND $placement) ? ' data-toggle="tooltip" data-placement="'. $placement .'"' : '';
|
|
||||||
$icon.= '></i>';
|
|
||||||
|
|
||||||
// wrap in list item tags and append to $icons
|
// build icon class
|
||||||
$icons.= '<li>'. $icon .'</li>';
|
$iclass = 'pf pf-'. $slug .' '. $slug;
|
||||||
}
|
|
||||||
|
|
||||||
// return $output if we have icons
|
// icon markup
|
||||||
if ( $icons ) {
|
$icon = '<i';
|
||||||
$output = '<ul';
|
$icon.= ($iclass) ? ' class="'. esc_attr( trim($iclass) ) .'"' : '';
|
||||||
$output.= ($class) ? ' class="'. esc_attr( trim($class) ) .'"' : '';
|
$icon.= ($title) ? ' title="'. esc_attr( trim($title) ) .'"' : '';
|
||||||
$output.= '>'. $icons .'</ul>';
|
$icon.= ($tooltip AND $placement) ? ' data-toggle="tooltip" data-placement="'. $placement .'"' : '';
|
||||||
|
$icon.= '></i>';
|
||||||
|
|
||||||
return $output;
|
// wrap in list item tags and append to $icons
|
||||||
}
|
$icons.= '<li class="'. esc_attr( trim($slug) ) .'">'. $icon .'</li>';
|
||||||
|
}
|
||||||
|
|
||||||
|
$icons = apply_filters( 'vendocrat_filter_wc_payment_methods_icons', $icons );
|
||||||
|
|
||||||
|
// return $output if we have icons
|
||||||
|
if ( $icons ) {
|
||||||
|
$output = '<ul';
|
||||||
|
$output.= ($class) ? ' class="'. esc_attr( trim($class) ) .'"' : '';
|
||||||
|
$output.= '>'. $icons .'</ul>';
|
||||||
|
|
||||||
|
return $output;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get available gateways
|
* Get available gateways
|
||||||
*
|
*
|
||||||
|
* @todo refactor automatic display of payment methods, eg. for PayPal & Stripe
|
||||||
|
*
|
||||||
* @since 2014-09-07
|
* @since 2014-09-07
|
||||||
* @version 2014-09-08
|
* @version 2015-04-24
|
||||||
**************************************************/
|
**************************************************/
|
||||||
function get_available_gateways() {
|
function get_available_gateways() {
|
||||||
$gateways = array();
|
$gateways = array();
|
||||||
$methods = '';
|
$methods = '';
|
||||||
|
|
||||||
|
// check dependencies
|
||||||
|
if ( ! in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) )
|
||||||
|
return $gateways;
|
||||||
|
|
||||||
if ( $available_gateways = WC()->payment_gateways->get_available_payment_gateways() ) {
|
if ( $available_gateways = WC()->payment_gateways->get_available_payment_gateways() ) {
|
||||||
|
|
||||||
foreach ( $available_gateways as $gateway ) {
|
foreach ( $available_gateways as $gateway ) {
|
||||||
@@ -336,46 +348,46 @@ class vendocrat_WC_Payment_Methods {
|
|||||||
|
|
||||||
case 'paymill' :
|
case 'paymill' :
|
||||||
$methods.= ' paymill';
|
$methods.= ' paymill';
|
||||||
$methods.= ' credit-card';
|
/* $methods.= ' credit-card';
|
||||||
$methods.= ' visa';
|
$methods.= ' visa';
|
||||||
$methods.= ' mastercard';
|
$methods.= ' mastercard';
|
||||||
$methods.= ' american-express';
|
$methods.= ' american-express';
|
||||||
$methods.= ' discover';
|
$methods.= ' discover';
|
||||||
$methods.= ' diners';
|
$methods.= ' diners';
|
||||||
$methods.= ' jcb';
|
$methods.= ' jcb';*/
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'paypal' :
|
case 'paypal' :
|
||||||
$methods.= ' credit-card';
|
// $methods.= ' credit-card';
|
||||||
$methods.= ' paypal';
|
$methods.= ' paypal';
|
||||||
$methods.= ' visa';
|
/* $methods.= ' visa';
|
||||||
$methods.= ' mastercard';
|
$methods.= ' mastercard';
|
||||||
$methods.= ' american-express';
|
$methods.= ' american-express';
|
||||||
$methods.= ' discover';
|
$methods.= ' discover';
|
||||||
$methods.= ' diners';
|
$methods.= ' diners';
|
||||||
$methods.= ' jcb';
|
$methods.= ' jcb';*/
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'stripe' :
|
case 'stripe' :
|
||||||
$methods.= ' stripe';
|
$methods.= ' stripe';
|
||||||
$methods.= ' visa';
|
/* $methods.= ' visa';
|
||||||
$methods.= ' mastercard';
|
$methods.= ' mastercard';
|
||||||
$methods.= ' american-express';
|
$methods.= ' american-express';
|
||||||
$methods.= ' discover';
|
$methods.= ' discover';
|
||||||
$methods.= ' diners';
|
$methods.= ' diners';
|
||||||
$methods.= ' jcb';
|
$methods.= ' jcb';*/
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'wirecard' :
|
case 'wirecard' :
|
||||||
$options = get_option('woocommerce_wirecard_settings');
|
$options = get_option('woocommerce_wirecard_settings');
|
||||||
|
|
||||||
if ( array_key_exists( 'paymenttype_available', $options ) AND is_array( $options['paymenttype_available'] ) ) {
|
if ( is_array($options) AND array_key_exists( 'paymenttype_available', $options ) AND is_array( $options['paymenttype_available'] ) ) {
|
||||||
$wirecard_gateways = $options['paymenttype_available'];
|
$wirecard_gateways = $options['paymenttype_available'];
|
||||||
} else {
|
} else {
|
||||||
$wirecard_gateways = array();
|
$wirecard_gateways = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( array_key_exists( 'subs_paymenttype_options', $options ) AND is_array( $options['subs_paymenttype_options'] ) ) {
|
if ( is_array($options) AND array_key_exists( 'subs_paymenttype_options', $options ) AND is_array( $options['subs_paymenttype_options'] ) ) {
|
||||||
$wirecard_gateways_subscription = $options['subs_paymenttype_options'];
|
$wirecard_gateways_subscription = $options['subs_paymenttype_options'];
|
||||||
} else {
|
} else {
|
||||||
$wirecard_gateways_subscription = array();
|
$wirecard_gateways_subscription = array();
|
||||||
@@ -393,8 +405,8 @@ class vendocrat_WC_Payment_Methods {
|
|||||||
|
|
||||||
case 'ccard' :
|
case 'ccard' :
|
||||||
$methods.= ' credit-card';
|
$methods.= ' credit-card';
|
||||||
$methods.= ' visa';
|
// $methods.= ' visa';
|
||||||
$methods.= ' mastercard';
|
// $methods.= ' mastercard';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'idl' :
|
case 'idl' :
|
||||||
@@ -403,24 +415,24 @@ class vendocrat_WC_Payment_Methods {
|
|||||||
|
|
||||||
case 'paymill' :
|
case 'paymill' :
|
||||||
$methods.= ' paymill';
|
$methods.= ' paymill';
|
||||||
$methods.= ' credit-card';
|
/* $methods.= ' credit-card';
|
||||||
$methods.= ' visa';
|
$methods.= ' visa';
|
||||||
$methods.= ' mastercard';
|
$methods.= ' mastercard';
|
||||||
$methods.= ' american-express';
|
$methods.= ' american-express';
|
||||||
$methods.= ' discover';
|
$methods.= ' discover';
|
||||||
$methods.= ' diners';
|
$methods.= ' diners';
|
||||||
$methods.= ' jcb';
|
$methods.= ' jcb';*/
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'paypal' :
|
case 'paypal' :
|
||||||
$methods.= ' credit-card';
|
// $methods.= ' credit-card';
|
||||||
$methods.= ' paypal';
|
$methods.= ' paypal';
|
||||||
$methods.= ' visa';
|
/* $methods.= ' visa';
|
||||||
$methods.= ' mastercard';
|
$methods.= ' mastercard';
|
||||||
$methods.= ' american-express';
|
$methods.= ' american-express';
|
||||||
$methods.= ' discover';
|
$methods.= ' discover';
|
||||||
$methods.= ' diners';
|
$methods.= ' diners';
|
||||||
$methods.= ' jcb';
|
$methods.= ' jcb';*/
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'pbx' :
|
case 'pbx' :
|
||||||
|
|||||||
@@ -2,15 +2,15 @@
|
|||||||
/**
|
/**
|
||||||
* Payment Methods widget
|
* Payment Methods widget
|
||||||
*
|
*
|
||||||
* @package vendocrat
|
* @package vendocrat
|
||||||
* @subpackage Payment Methods
|
* @subpackage Payment Methods
|
||||||
*
|
*
|
||||||
* @since 2014-09-08
|
* @since 2014-09-08
|
||||||
* @version 2014-10-21
|
* @version 2015-04-24
|
||||||
*
|
*
|
||||||
* @author Poellmann Alexander Manfred <alex@vendocr.at>
|
* @author Poellmann Alexander Manfred (@AMPoellmann)
|
||||||
* @copyright Copyright 2014 vendocrat. All Rights Reserved.
|
* @copyright Copyright 2015 vendocrat. All Rights Reserved.
|
||||||
* @link http://vendocr.at/
|
* @link https://vendocr.at/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||||
@@ -135,6 +135,11 @@ class vendocrat_Widget_WC_Payment_Methods extends WP_Widget {
|
|||||||
<label for="<?php echo $this->get_field_id('xclass'); ?>"><?php _e( 'Extra classes', 'woocommerce-payment-methods' ); ?>:</label>
|
<label for="<?php echo $this->get_field_id('xclass'); ?>"><?php _e( 'Extra classes', 'woocommerce-payment-methods' ); ?>:</label>
|
||||||
<input class="widefat" id="<?php echo $this->get_field_id('xclass'); ?>" name="<?php echo $this->get_field_name('xclass'); ?>" type="text" value="<?php echo esc_attr( $instance['xclass'] ); ?>" />
|
<input class="widefat" id="<?php echo $this->get_field_id('xclass'); ?>" name="<?php echo $this->get_field_name('xclass'); ?>" type="text" value="<?php echo esc_attr( $instance['xclass'] ); ?>" />
|
||||||
</p>
|
</p>
|
||||||
|
<p>
|
||||||
|
<label for="<?php echo $this->get_field_id('methods'); ?>"><?php _e( 'Payment Methods', 'woocommerce-payment-methods' ); ?>:</label>
|
||||||
|
<input class="widefat" id="<?php echo $this->get_field_id('methods'); ?>" name="<?php echo $this->get_field_name('methods'); ?>" type="text" value="<?php echo esc_attr( $instance['methods'] ); ?>" />
|
||||||
|
<i><?php echo '<strong>'. __( 'Optional', 'woocommerce-payment-methods' ) . ':</strong> ' . sprintf( __( 'Specify payment methods to be shown manually by entering their slugs comma separated (eg. "paypal,visa,mastercard" for PayPal, Visa and MasterCard). See %s for available payment methods an their slugs! If left blank the widget will try to automatically fetch available payment methods from WooCommerce.', 'woocommerce-payment-methods' ), '<a href="http://paymentfont.io" target="_blank">PaymentFont.io</a>' ); ?></i>
|
||||||
|
</p>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@@ -1,119 +0,0 @@
|
|||||||
msgid ""
|
|
||||||
msgstr ""
|
|
||||||
"Project-Id-Version: vendocrat-server-monitor\n"
|
|
||||||
"POT-Creation-Date: 2014-12-20 20:52+0100\n"
|
|
||||||
"PO-Revision-Date: 2014-12-22 10:26+0200\n"
|
|
||||||
"Last-Translator: Anestis <anestis@samourkasidis.com>\n"
|
|
||||||
"Language-Team: Anestis Samourkasidis\n"
|
|
||||||
"Language: el\n"
|
|
||||||
"MIME-Version: 1.0\n"
|
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
|
||||||
"X-Generator: Poedit 1.6.11\n"
|
|
||||||
"X-Poedit-Basepath: .\n"
|
|
||||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
||||||
"X-Poedit-KeywordsList: __;_e\n"
|
|
||||||
"X-Poedit-SearchPath-0: ..\n"
|
|
||||||
|
|
||||||
#: ../classes/class-server-monitor.php:124
|
|
||||||
#, php-format
|
|
||||||
msgid "%s: General"
|
|
||||||
msgstr "%s: Γενικά"
|
|
||||||
|
|
||||||
#: ../classes/class-server-monitor.php:124
|
|
||||||
#: ../classes/class-server-monitor.php:130
|
|
||||||
msgid "Server Monitor"
|
|
||||||
msgstr "Παρακολούθηση Διακομιστή"
|
|
||||||
|
|
||||||
#: ../classes/class-server-monitor.php:130
|
|
||||||
#, php-format
|
|
||||||
msgid "%s: PHP & Database"
|
|
||||||
msgstr "%s: PHP & Βάση Δεδομένων"
|
|
||||||
|
|
||||||
#: ../classes/class-server-monitor.php:136
|
|
||||||
msgid "System Status"
|
|
||||||
msgstr "Κατάσταση συστήματος"
|
|
||||||
|
|
||||||
#: ../classes/class-server-monitor.php:215
|
|
||||||
#: ../classes/class-server-monitor.php:317
|
|
||||||
#: ../classes/class-server-monitor.php:318
|
|
||||||
#: ../classes/class-server-monitor.php:319
|
|
||||||
#: ../classes/class-server-monitor.php:320
|
|
||||||
#: ../classes/class-server-monitor.php:354
|
|
||||||
#: ../classes/class-server-monitor.php:368
|
|
||||||
msgid "N/A"
|
|
||||||
msgstr "Μη διαθέσιμο"
|
|
||||||
|
|
||||||
#: ../classes/class-server-monitor.php:220
|
|
||||||
msgid "Host Name"
|
|
||||||
msgstr "Ονομα Host"
|
|
||||||
|
|
||||||
#: ../classes/class-server-monitor.php:221
|
|
||||||
msgid "Server IP"
|
|
||||||
msgstr "IP Διακομιστή"
|
|
||||||
|
|
||||||
#: ../classes/class-server-monitor.php:222
|
|
||||||
msgid "Server Path"
|
|
||||||
msgstr "Διαδρομή Διακομιστή"
|
|
||||||
|
|
||||||
#: ../classes/class-server-monitor.php:225
|
|
||||||
msgid "Server Load"
|
|
||||||
msgstr "Φόρτος Διακομιστή"
|
|
||||||
|
|
||||||
#: ../classes/class-server-monitor.php:229
|
|
||||||
msgid "Server up since"
|
|
||||||
msgstr "Ανοιχτός εδώ και"
|
|
||||||
|
|
||||||
#: ../classes/class-server-monitor.php:232
|
|
||||||
msgid "Server Info"
|
|
||||||
msgstr "Πληροφορίες Διακομιστή"
|
|
||||||
|
|
||||||
#: ../classes/class-server-monitor.php:253
|
|
||||||
msgid "PHP Version"
|
|
||||||
msgstr "Εκδοση PHP"
|
|
||||||
|
|
||||||
#: ../classes/class-server-monitor.php:256
|
|
||||||
msgid "PHP Time Limit"
|
|
||||||
msgstr "χρονικό όριο PHP"
|
|
||||||
|
|
||||||
#: ../classes/class-server-monitor.php:259
|
|
||||||
msgid "MySQL Version"
|
|
||||||
msgstr "Εκδοση MySQL"
|
|
||||||
|
|
||||||
#: ../classes/class-server-monitor.php:260
|
|
||||||
msgid "Database Size"
|
|
||||||
msgstr "Μέγεθος Βάσης"
|
|
||||||
|
|
||||||
#: ../classes/class-server-monitor.php:281
|
|
||||||
msgid "WordPress Version"
|
|
||||||
msgstr "Έκδοση Wordpress"
|
|
||||||
|
|
||||||
#: ../classes/class-server-monitor.php:282
|
|
||||||
msgid "Multisite?"
|
|
||||||
msgstr "Πολλαπλά site;"
|
|
||||||
|
|
||||||
#: ../classes/class-server-monitor.php:283
|
|
||||||
msgid "Active Plugins"
|
|
||||||
msgstr "Ενεργά πρόσθετα"
|
|
||||||
|
|
||||||
#: ../classes/class-server-monitor.php:286
|
|
||||||
msgid "Debug Mode"
|
|
||||||
msgstr "Λειτουργία εντοπισμού σφαλμάτων"
|
|
||||||
|
|
||||||
#: ../classes/class-server-monitor.php:287
|
|
||||||
msgid "Language"
|
|
||||||
msgstr "Γλώσσα"
|
|
||||||
|
|
||||||
#: ../classes/class-server-monitor.php:288
|
|
||||||
msgid "Timezone"
|
|
||||||
msgstr "Ζώνη ώρας"
|
|
||||||
|
|
||||||
#: ../classes/class-server-monitor.php:328
|
|
||||||
#: ../classes/class-server-monitor.php:332
|
|
||||||
msgid "Yes"
|
|
||||||
msgstr "Ναί"
|
|
||||||
|
|
||||||
#: ../classes/class-server-monitor.php:328
|
|
||||||
#: ../classes/class-server-monitor.php:332
|
|
||||||
msgid "No"
|
|
||||||
msgstr "Όχι"
|
|
||||||
Binary file not shown.
@@ -1,8 +1,8 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: WooCommerce Payment Methods\n"
|
"Project-Id-Version: WooCommerce Payment Methods\n"
|
||||||
"POT-Creation-Date: 2014-10-23 18:11+0100\n"
|
"POT-Creation-Date: 2015-04-24 19:44+0100\n"
|
||||||
"PO-Revision-Date: 2014-10-23 18:11+0100\n"
|
"PO-Revision-Date: 2015-04-24 19:46+0100\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: vendocrat <hello@vendocr.at>\n"
|
"Language-Team: vendocrat <hello@vendocr.at>\n"
|
||||||
"Language: de\n"
|
"Language: de\n"
|
||||||
@@ -15,34 +15,35 @@ msgstr ""
|
|||||||
"X-Poedit-KeywordsList: __;_e\n"
|
"X-Poedit-KeywordsList: __;_e\n"
|
||||||
"X-Poedit-SearchPath-0: ..\n"
|
"X-Poedit-SearchPath-0: ..\n"
|
||||||
|
|
||||||
#: ../classes/class-wc-payment-methods.php:60
|
#: ../classes/class-wc-payment-methods.php:59
|
||||||
msgid "Bank Transfer"
|
msgid "Bank Transfer"
|
||||||
msgstr "Bank-Überweisung"
|
msgstr "Bank-Überweisung"
|
||||||
|
|
||||||
#: ../classes/class-wc-payment-methods.php:65
|
#: ../classes/class-wc-payment-methods.php:64
|
||||||
msgid "Cash"
|
msgid "Cash"
|
||||||
msgstr "Bargeld"
|
msgstr "Bargeld"
|
||||||
|
|
||||||
#: ../classes/class-wc-payment-methods.php:66
|
#: ../classes/class-wc-payment-methods.php:65
|
||||||
msgid "Cash on Delivery"
|
msgid "Cash on Delivery"
|
||||||
msgstr "Nachname"
|
msgstr "Nachname"
|
||||||
|
|
||||||
#: ../classes/class-wc-payment-methods.php:69
|
#: ../classes/class-wc-payment-methods.php:70
|
||||||
msgid "Pay with Cheque"
|
|
||||||
msgstr "Mit Scheck bezahlen"
|
|
||||||
|
|
||||||
#: ../classes/class-wc-payment-methods.php:71
|
|
||||||
msgid "Credit Card"
|
msgid "Credit Card"
|
||||||
msgstr "Kreditkarte"
|
msgstr "Kreditkarte"
|
||||||
|
|
||||||
|
#: ../classes/class-wc-payment-methods.php:75
|
||||||
#: ../classes/class-wc-payment-methods.php:76
|
#: ../classes/class-wc-payment-methods.php:76
|
||||||
#: ../classes/class-wc-payment-methods.php:77
|
#: ../classes/class-wc-payment-methods.php:82
|
||||||
#: ../classes/class-wc-payment-methods.php:83
|
|
||||||
#: ../classes/class-wc-payment-methods.php:95
|
#: ../classes/class-wc-payment-methods.php:95
|
||||||
msgid "Invoice"
|
msgid "Invoice"
|
||||||
msgstr "Rechnung"
|
msgstr "Rechnung"
|
||||||
|
|
||||||
|
#: ../classes/class-wc-payment-methods.php:270
|
||||||
|
msgid "No Payment Methods available or specified."
|
||||||
|
msgstr "Keine Zahlungsarten verfügbar oder angegeben."
|
||||||
|
|
||||||
#: ../classes/class-widget-wc-payment-methods.php:33
|
#: ../classes/class-widget-wc-payment-methods.php:33
|
||||||
|
#: ../classes/class-widget-wc-payment-methods.php:139
|
||||||
msgid "Payment Methods"
|
msgid "Payment Methods"
|
||||||
msgstr "Zahlungsmethoden"
|
msgstr "Zahlungsmethoden"
|
||||||
|
|
||||||
@@ -109,3 +110,29 @@ msgstr "Links"
|
|||||||
#: ../classes/class-widget-wc-payment-methods.php:135
|
#: ../classes/class-widget-wc-payment-methods.php:135
|
||||||
msgid "Extra classes"
|
msgid "Extra classes"
|
||||||
msgstr "Zusätzliche Klassen"
|
msgstr "Zusätzliche Klassen"
|
||||||
|
|
||||||
|
#: ../classes/class-widget-wc-payment-methods.php:141
|
||||||
|
msgid "Optional"
|
||||||
|
msgstr "Optional"
|
||||||
|
|
||||||
|
#: ../classes/class-widget-wc-payment-methods.php:141
|
||||||
|
#, php-format
|
||||||
|
msgid ""
|
||||||
|
"Specify payment methods to be shown manually by entering their slugs comma "
|
||||||
|
"separated (eg. \"paypal,visa,mastercard\" for PayPal, Visa and MasterCard). "
|
||||||
|
"See %s for available payment methods an their slugs! If left blank the "
|
||||||
|
"widget will try to automatically fetch available payment methods from "
|
||||||
|
"WooCommerce."
|
||||||
|
msgstr ""
|
||||||
|
"Definiere die anzuzeigenden Zahlungsmethoden indem du deren Slugs koma-"
|
||||||
|
"separiert eingibst (z.B. \"paypal,visa,mastercard\" für PayPal, Visa und "
|
||||||
|
"MasterCard). Die verfügbaren Zahlungsarten und deren Slugs findest du unter "
|
||||||
|
"%s! Wenn du das Feld leer lässt, wird das Widget versuchen die verfügbaren "
|
||||||
|
"Zahlungsarten automatisch von WooCommerce zu übernehmen."
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~ msgid "Methods"
|
||||||
|
#~ msgstr "Zahlungsmethoden"
|
||||||
|
|
||||||
|
#~ msgid "Pay with Cheque"
|
||||||
|
#~ msgstr "Mit Scheck bezahlen"
|
||||||
|
|||||||
Binary file not shown.
@@ -1,8 +1,8 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: WooCommerce Payment Methods\n"
|
"Project-Id-Version: WooCommerce Payment Methods\n"
|
||||||
"POT-Creation-Date: 2014-10-23 18:11+0100\n"
|
"POT-Creation-Date: 2015-04-24 19:46+0100\n"
|
||||||
"PO-Revision-Date: 2014-10-23 18:11+0100\n"
|
"PO-Revision-Date: 2015-04-24 19:46+0100\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: vendocrat <hello@vendocr.at>\n"
|
"Language-Team: vendocrat <hello@vendocr.at>\n"
|
||||||
"Language: de\n"
|
"Language: de\n"
|
||||||
@@ -15,34 +15,35 @@ msgstr ""
|
|||||||
"X-Poedit-KeywordsList: __;_e\n"
|
"X-Poedit-KeywordsList: __;_e\n"
|
||||||
"X-Poedit-SearchPath-0: ..\n"
|
"X-Poedit-SearchPath-0: ..\n"
|
||||||
|
|
||||||
#: ../classes/class-wc-payment-methods.php:60
|
#: ../classes/class-wc-payment-methods.php:59
|
||||||
msgid "Bank Transfer"
|
msgid "Bank Transfer"
|
||||||
msgstr "Bank-Überweisung"
|
msgstr "Bank-Überweisung"
|
||||||
|
|
||||||
#: ../classes/class-wc-payment-methods.php:65
|
#: ../classes/class-wc-payment-methods.php:64
|
||||||
msgid "Cash"
|
msgid "Cash"
|
||||||
msgstr "Bargeld"
|
msgstr "Bargeld"
|
||||||
|
|
||||||
#: ../classes/class-wc-payment-methods.php:66
|
#: ../classes/class-wc-payment-methods.php:65
|
||||||
msgid "Cash on Delivery"
|
msgid "Cash on Delivery"
|
||||||
msgstr "Nachname"
|
msgstr "Nachname"
|
||||||
|
|
||||||
#: ../classes/class-wc-payment-methods.php:69
|
#: ../classes/class-wc-payment-methods.php:70
|
||||||
msgid "Pay with Cheque"
|
|
||||||
msgstr "Mit Scheck bezahlen"
|
|
||||||
|
|
||||||
#: ../classes/class-wc-payment-methods.php:71
|
|
||||||
msgid "Credit Card"
|
msgid "Credit Card"
|
||||||
msgstr "Kreditkarte"
|
msgstr "Kreditkarte"
|
||||||
|
|
||||||
|
#: ../classes/class-wc-payment-methods.php:75
|
||||||
#: ../classes/class-wc-payment-methods.php:76
|
#: ../classes/class-wc-payment-methods.php:76
|
||||||
#: ../classes/class-wc-payment-methods.php:77
|
#: ../classes/class-wc-payment-methods.php:82
|
||||||
#: ../classes/class-wc-payment-methods.php:83
|
|
||||||
#: ../classes/class-wc-payment-methods.php:95
|
#: ../classes/class-wc-payment-methods.php:95
|
||||||
msgid "Invoice"
|
msgid "Invoice"
|
||||||
msgstr "Rechnung"
|
msgstr "Rechnung"
|
||||||
|
|
||||||
|
#: ../classes/class-wc-payment-methods.php:270
|
||||||
|
msgid "No Payment Methods available or specified."
|
||||||
|
msgstr "Keine Zahlungsarten verfügbar oder angegeben."
|
||||||
|
|
||||||
#: ../classes/class-widget-wc-payment-methods.php:33
|
#: ../classes/class-widget-wc-payment-methods.php:33
|
||||||
|
#: ../classes/class-widget-wc-payment-methods.php:139
|
||||||
msgid "Payment Methods"
|
msgid "Payment Methods"
|
||||||
msgstr "Zahlungsmethoden"
|
msgstr "Zahlungsmethoden"
|
||||||
|
|
||||||
@@ -109,3 +110,25 @@ msgstr "Links"
|
|||||||
#: ../classes/class-widget-wc-payment-methods.php:135
|
#: ../classes/class-widget-wc-payment-methods.php:135
|
||||||
msgid "Extra classes"
|
msgid "Extra classes"
|
||||||
msgstr "Zusätzliche Klassen"
|
msgstr "Zusätzliche Klassen"
|
||||||
|
|
||||||
|
#: ../classes/class-widget-wc-payment-methods.php:141
|
||||||
|
msgid "Optional"
|
||||||
|
msgstr "Optional"
|
||||||
|
|
||||||
|
#: ../classes/class-widget-wc-payment-methods.php:141
|
||||||
|
#, php-format
|
||||||
|
msgid ""
|
||||||
|
"Specify payment methods to be shown manually by entering their slugs comma "
|
||||||
|
"separated (eg. \"paypal,visa,mastercard\" for PayPal, Visa and MasterCard). "
|
||||||
|
"See %s for available payment methods an their slugs! If left blank the "
|
||||||
|
"widget will try to automatically fetch available payment methods from "
|
||||||
|
"WooCommerce."
|
||||||
|
msgstr ""
|
||||||
|
"Definiere die anzuzeigenden Zahlungsmethoden indem du deren Slugs koma-"
|
||||||
|
"separiert eingibst (z.B. \"paypal,visa,mastercard\" für PayPal, Visa und "
|
||||||
|
"MasterCard). Die verfügbaren Zahlungsarten und deren Slugs findest du unter "
|
||||||
|
"%s! Wenn du das Feld leer lässt, wird das Widget versuchen die verfügbaren "
|
||||||
|
"Zahlungsarten automatisch von WooCommerce zu übernehmen."
|
||||||
|
|
||||||
|
#~ msgid "Pay with Cheque"
|
||||||
|
#~ msgstr "Mit Scheck bezahlen"
|
||||||
|
|||||||
Binary file not shown.
@@ -1,8 +1,8 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: WooCommerce Payment Methods\n"
|
"Project-Id-Version: WooCommerce Payment Methods\n"
|
||||||
"POT-Creation-Date: 2014-10-23 18:11+0100\n"
|
"POT-Creation-Date: 2015-04-24 19:50+0100\n"
|
||||||
"PO-Revision-Date: 2014-10-23 18:11+0100\n"
|
"PO-Revision-Date: 2015-04-24 19:50+0100\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: vendocrat <hello@vendocr.at>\n"
|
"Language-Team: vendocrat <hello@vendocr.at>\n"
|
||||||
"Language: en\n"
|
"Language: en\n"
|
||||||
@@ -15,34 +15,35 @@ msgstr ""
|
|||||||
"X-Poedit-KeywordsList: __;_e\n"
|
"X-Poedit-KeywordsList: __;_e\n"
|
||||||
"X-Poedit-SearchPath-0: ..\n"
|
"X-Poedit-SearchPath-0: ..\n"
|
||||||
|
|
||||||
#: ../classes/class-wc-payment-methods.php:60
|
#: ../classes/class-wc-payment-methods.php:59
|
||||||
msgid "Bank Transfer"
|
msgid "Bank Transfer"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../classes/class-wc-payment-methods.php:65
|
#: ../classes/class-wc-payment-methods.php:64
|
||||||
msgid "Cash"
|
msgid "Cash"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../classes/class-wc-payment-methods.php:66
|
#: ../classes/class-wc-payment-methods.php:65
|
||||||
msgid "Cash on Delivery"
|
msgid "Cash on Delivery"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../classes/class-wc-payment-methods.php:69
|
#: ../classes/class-wc-payment-methods.php:70
|
||||||
msgid "Pay with Cheque"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: ../classes/class-wc-payment-methods.php:71
|
|
||||||
msgid "Credit Card"
|
msgid "Credit Card"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: ../classes/class-wc-payment-methods.php:75
|
||||||
#: ../classes/class-wc-payment-methods.php:76
|
#: ../classes/class-wc-payment-methods.php:76
|
||||||
#: ../classes/class-wc-payment-methods.php:77
|
#: ../classes/class-wc-payment-methods.php:82
|
||||||
#: ../classes/class-wc-payment-methods.php:83
|
|
||||||
#: ../classes/class-wc-payment-methods.php:95
|
#: ../classes/class-wc-payment-methods.php:95
|
||||||
msgid "Invoice"
|
msgid "Invoice"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: ../classes/class-wc-payment-methods.php:270
|
||||||
|
msgid "No Payment Methods available or specified."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ../classes/class-widget-wc-payment-methods.php:33
|
#: ../classes/class-widget-wc-payment-methods.php:33
|
||||||
|
#: ../classes/class-widget-wc-payment-methods.php:139
|
||||||
msgid "Payment Methods"
|
msgid "Payment Methods"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -108,4 +109,18 @@ msgstr ""
|
|||||||
|
|
||||||
#: ../classes/class-widget-wc-payment-methods.php:135
|
#: ../classes/class-widget-wc-payment-methods.php:135
|
||||||
msgid "Extra classes"
|
msgid "Extra classes"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: ../classes/class-widget-wc-payment-methods.php:141
|
||||||
|
msgid "Optional"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ../classes/class-widget-wc-payment-methods.php:141
|
||||||
|
#, php-format
|
||||||
|
msgid ""
|
||||||
|
"Specify payment methods to be shown manually by entering their slugs comma "
|
||||||
|
"separated (eg. \"paypal,visa,mastercard\" for PayPal, Visa and MasterCard). "
|
||||||
|
"See %s for available payment methods an their slugs! If left blank the "
|
||||||
|
"widget will try to automatically fetch available payment methods from "
|
||||||
|
"WooCommerce."
|
||||||
|
msgstr ""
|
||||||
|
|||||||
+42
-11
@@ -3,20 +3,20 @@ Contributors: vendocrat, AlexanderPoellmann
|
|||||||
Donate link: http://vendocr.at/donate/
|
Donate link: http://vendocr.at/donate/
|
||||||
Tags: woocommerce, credit card, logo, payment
|
Tags: woocommerce, credit card, logo, payment
|
||||||
Requires at least: 3.5
|
Requires at least: 3.5
|
||||||
Tested up to: 4.1
|
Tested up to: 4.2
|
||||||
Stable tag: 1.0.1
|
Stable tag: 1.1.2
|
||||||
License: GNU General Public License v3.0
|
License: GNU General Public License v3.0
|
||||||
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
||||||
|
|
||||||
Easily display your accepted payment methods from WooCommerce via shortcode, widget or template tag.
|
Easily display your accepted payment methods via shortcode, widget or template tag. Of course, it also works without WooCommerce ;)
|
||||||
|
|
||||||
== Description ==
|
== Description ==
|
||||||
|
|
||||||
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 them manually.
|
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.
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
|
||||||
**PaymentFont webfont**
|
**PaymentFont webfont**
|
||||||
|
|
||||||
@@ -38,15 +38,15 @@ Translations included:
|
|||||||
|
|
||||||
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!
|
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!
|
||||||
|
|
||||||
= We'd love to hear from you! =
|
= We`d love to hear from you! =
|
||||||
|
|
||||||
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)!
|
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)!
|
||||||
|
|
||||||
== Installation ==
|
== Installation ==
|
||||||
|
|
||||||
1. Upload 'woocommerce-payment-methods' to the '/wp-content/plugins/' directory
|
1. Upload `woocommerce-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 [wc_payment_methods], Widget or template tag '<?php wc_payment_methods(); ?>.
|
3. Display your accepted methods via: Shortcode [wc_payment_methods], Widget or template tag `<?php wc_payment_methods(); ?>.
|
||||||
4. Done!
|
4. Done!
|
||||||
|
|
||||||
== Frequently Asked Questions ==
|
== Frequently Asked Questions ==
|
||||||
@@ -55,6 +55,28 @@ Follow us on [Twitter](https://twitter.com/vendocrat), like us on [Facebook](htt
|
|||||||
|
|
||||||
Miss some payment methods? Let me have a look at it by opening an issue on <a href="https://github.com/vendocrat/WooCommerce-Payment-Methods"><strong>GitHub</strong></a> or hit us at <a href="http://twitter.com/vendocrat">@vendocrat</a>.
|
Miss some payment methods? Let me have a look at it by opening an issue on <a href="https://github.com/vendocrat/WooCommerce-Payment-Methods"><strong>GitHub</strong></a> or hit us at <a href="http://twitter.com/vendocrat">@vendocrat</a>.
|
||||||
|
|
||||||
|
= How to display the payment methods? =
|
||||||
|
|
||||||
|
You can use the function `wc_payment_methods( $atts )`, the shortcode `[wc_payment_methods]` or the widget.
|
||||||
|
|
||||||
|
= What function/shortcode attributes are available? =
|
||||||
|
|
||||||
|
1. `methods` => Comma separated list of payment methods icon slugs to be displayed, see http://paymentfont.io for available icons, defaults to false
|
||||||
|
2. `style` => How shall the icons be displayed? Available options are default, inverse and outline.
|
||||||
|
3. `tooltip` => Adds data attributes to icon to be used for diplaying tooltips (made for Bootstrap), defaults to false
|
||||||
|
4. `placement` => Set tooltip placement, defaults to bottom
|
||||||
|
5. `xclass` => Add any extra classes, seperated by a space, defaults to false
|
||||||
|
|
||||||
|
= How can I manually specify or override the displayed methods? =
|
||||||
|
|
||||||
|
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).
|
||||||
|
|
||||||
|
= Are Filters/Hooks available? =
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
== Screenshots ==
|
== Screenshots ==
|
||||||
|
|
||||||
1. Shortcode output (top-down: default, inverse, outline style)
|
1. Shortcode output (top-down: default, inverse, outline style)
|
||||||
@@ -89,4 +111,13 @@ Improved payment gateway function. Partial rewrite to fit our internal plugin st
|
|||||||
Minor fixes, updated PaymentFont and included Portuguese translation (thanks Luis Martins).
|
Minor fixes, updated PaymentFont and included Portuguese translation (thanks Luis Martins).
|
||||||
|
|
||||||
= 1.0.1 =
|
= 1.0.1 =
|
||||||
Minor fixes, added Greek translation (thanks to Anestis Samourkasidis).
|
Minor fixes, added Greek translation (thanks to Anestis Samourkasidis).
|
||||||
|
|
||||||
|
= 1.1.0 =
|
||||||
|
Minor fixes, added multiselect to widget to manually pick payment methods, update to PaymentFont v1.1.1 for better performance.
|
||||||
|
|
||||||
|
= 1.1.1 =
|
||||||
|
Minor fixes, enhanced widget.
|
||||||
|
|
||||||
|
= 1.1.2 =
|
||||||
|
Updated language files for German.
|
||||||
@@ -1,26 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Plugin Name: WooCommerce Payment Methods
|
/* Plugin Name: WooCommerce Payment Methods
|
||||||
* Plugin URI: http://vendocr.at/
|
* Plugin URI: https://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.
|
* Description: <strong>Easily display your accepted payment methods from WooCommerce.</strong> Handcrafted with ♥ by <a href='https://vendocr.at/'>vendocrat</a> in Vienna.
|
||||||
* Version: 1.0.1
|
* Version: 1.1.2
|
||||||
* Author: vendocrat
|
* Author: vendocrat
|
||||||
* Author URI: http://vendocr.at/
|
* Author URI: https://vendocr.at/
|
||||||
* License: vendocrat Split License
|
* License: vendocrat Split License
|
||||||
* License URI: http://vendocr.at/legal/licenses
|
* License URI: https://vendocr.at/legal/licenses
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||||
|
|
||||||
// check dependencies
|
|
||||||
if ( ! in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) )
|
|
||||||
return;
|
|
||||||
|
|
||||||
// require classes
|
// require classes
|
||||||
require_once( 'classes/class-wc-payment-methods.php' );
|
require_once( 'classes/class-wc-payment-methods.php' );
|
||||||
|
|
||||||
global $vendocrat_wc_payment_methods;
|
global $vendocrat_wc_payment_methods;
|
||||||
$vendocrat_wc_payment_methods = new vendocrat_WC_Payment_Methods( __FILE__ );
|
$vendocrat_wc_payment_methods = new vendocrat_WC_Payment_Methods( __FILE__ );
|
||||||
$vendocrat_wc_payment_methods->version = '1.0.1';
|
$vendocrat_wc_payment_methods->version = '1.1.2';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* E fatto!
|
* E fatto!
|
||||||
|
|||||||
Reference in New Issue
Block a user