Changeset 989783
- Timestamp:
- 09/15/2014 01:15:16 AM (12 years ago)
- Location:
- woocommerce-payment-methods/trunk
- Files:
-
- 10 edited
-
classes/class-widget-payment-methods.php (modified) (5 diffs)
-
languages/de_AT.mo (modified) (previous)
-
languages/de_AT.po (modified) (3 diffs)
-
languages/de_DE.mo (modified) (previous)
-
languages/de_DE.po (modified) (3 diffs)
-
languages/it_IT.mo (modified) (previous)
-
languages/it_IT.po (modified) (3 diffs)
-
languages/woocommerce-payment-methods.pot (modified) (2 diffs)
-
payment-methods.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-payment-methods/trunk/classes/class-widget-payment-methods.php
r988346 r989783 7 7 * 8 8 * @since 2014-09-08 9 * @version 2014-09- 089 * @version 2014-09-15 10 10 * 11 11 * @author Poellmann Alexander Manfred <alex@vendocr.at> … … 52 52 * 53 53 * @since 2014-09-08 54 * @version 2014-09- 0854 * @version 2014-09-15 55 55 **************************************************/ 56 56 public function widget( $args, $instance ) { 57 57 $title = apply_filters( 'widget_title', $instance['title'] ); 58 58 59 $tooltip = ($instance['tooltip'] != 'true') ? false : true; 60 $style = $instance['style']; 61 $xclass = $instance['xclass']; 59 $style = $instance['style']; 60 $tooltip = ($instance['tooltip'] != 'true') ? false : true; 61 $placement = $instance['placement']; 62 $xclass = $instance['xclass']; 62 63 63 echo $tooltip;64 64 extract($args); 65 65 … … 88 88 * 89 89 * @since 2014-09-08 90 * @version 2014-09- 0890 * @version 2014-09-15 91 91 **************************************************/ 92 92 public function form( $instance ) { … … 119 119 </p> 120 120 <p> 121 <label for="<?php echo $this->get_field_id( 'placement' ); ?>"><?php _e( 'Placement', 'vendocrat-payment-methods' ); ?>:</label> 122 <select name="<?php echo $this->get_field_name( 'placement' ); ?>" class="widefat" id="<?php echo $this->get_field_id( 'placement' ); ?>"> 123 <option value="top"<?php selected( $instance['placement'], 'top' ); ?>><?php _e( 'Top', 'vendocrat-payment-methods' ); ?></option> 124 <option value="right"<?php selected( $instance['placement'], 'right' ); ?>><?php _e( 'Right', 'vendocrat-payment-methods' ); ?></option> 125 <option value="bottom"<?php selected( $instance['placement'], 'bottom' ); ?>><?php _e( 'Bottom', 'vendocrat-payment-methods' ); ?></option> 126 <option value="left"<?php selected( $instance['placement'], 'left' ); ?>><?php _e( 'Left', 'vendocrat-payment-methods' ); ?></option> 127 </select> 128 </p> 129 <p> 121 130 <label for="<?php echo $this->get_field_id('xclass'); ?>"><?php _e( 'Extra classes', 'vendocrat-payment-methods' ); ?>:</label> 122 131 <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'] ); ?>" /> … … 135 144 $instance = $old_instance; 136 145 137 $instance['title'] = strip_tags( $new_instance['title'] ); 138 $instance['style'] = esc_attr( $new_instance['style'] ); 139 $instance['tooltip'] = esc_attr( $new_instance['tooltip'] ); 140 $instance['xclass'] = esc_attr( $new_instance['xclass'] ); 146 $instance['title'] = strip_tags( $new_instance['title'] ); 147 $instance['style'] = esc_attr( $new_instance['style'] ); 148 $instance['tooltip'] = esc_attr( $new_instance['tooltip'] ); 149 $instance['placement'] = esc_attr( $new_instance['placement'] ); 150 $instance['xclass'] = esc_attr( $new_instance['xclass'] ); 141 151 142 152 return $instance; -
woocommerce-payment-methods/trunk/languages/de_AT.po
r988346 r989783 2 2 msgstr "" 3 3 "Project-Id-Version: WooCommerce Payment Methods\n" 4 "POT-Creation-Date: 2014-09- 08 01:40+0100\n"5 "PO-Revision-Date: 2014-09- 08 01:44+0100\n"4 "POT-Creation-Date: 2014-09-15 03:06+0100\n" 5 "PO-Revision-Date: 2014-09-15 03:07+0100\n" 6 6 "Last-Translator: \n" 7 7 "Language-Team: vendocrat <hello@vendocr.at>\n" 8 "Language: de\n" 8 9 "MIME-Version: 1.0\n" 9 10 "Content-Type: text/plain; charset=UTF-8\n" … … 13 14 "Plural-Forms: nplurals=2; plural=(n != 1);\n" 14 15 "X-Poedit-KeywordsList: __;_e\n" 15 "Language: de\n"16 16 "X-Poedit-SearchPath-0: ..\n" 17 17 … … 61 61 62 62 #: ../classes/class-widget-payment-methods.php:121 63 msgid "Placement" 64 msgstr "Platzierung" 65 66 #: ../classes/class-widget-payment-methods.php:123 67 msgid "Top" 68 msgstr "Oben" 69 70 #: ../classes/class-widget-payment-methods.php:124 71 msgid "Right" 72 msgstr "Rechts" 73 74 #: ../classes/class-widget-payment-methods.php:125 75 msgid "Bottom" 76 msgstr "Unten" 77 78 #: ../classes/class-widget-payment-methods.php:126 79 msgid "Left" 80 msgstr "Links" 81 82 #: ../classes/class-widget-payment-methods.php:130 63 83 msgid "Extra classes" 64 84 msgstr "Zusätzliche Klassen" 65 85 66 #: ../payment-methods.php:22 0 ../payment-methods.php:26067 #: ../payment-methods.php:26 6 ../payment-methods.php:27186 #: ../payment-methods.php:221 ../payment-methods.php:261 87 #: ../payment-methods.php:267 ../payment-methods.php:272 68 88 msgid "Bank Transfer" 69 89 msgstr "Bank-Überweisung" 70 90 71 #: ../payment-methods.php:22 491 #: ../payment-methods.php:225 72 92 msgid "Pay with Cheque" 73 93 msgstr "Mit Scheck bezahlen" 74 94 75 #: ../payment-methods.php:29 295 #: ../payment-methods.php:293 76 96 msgid "Cash on Delivery" 77 97 msgstr "Nachname" -
woocommerce-payment-methods/trunk/languages/de_DE.po
r988346 r989783 2 2 msgstr "" 3 3 "Project-Id-Version: WooCommerce Payment Methods\n" 4 "POT-Creation-Date: 2014-09- 08 01:40+0100\n"5 "PO-Revision-Date: 2014-09- 08 01:44+0100\n"4 "POT-Creation-Date: 2014-09-15 03:06+0100\n" 5 "PO-Revision-Date: 2014-09-15 03:07+0100\n" 6 6 "Last-Translator: \n" 7 7 "Language-Team: vendocrat <hello@vendocr.at>\n" 8 "Language: de\n" 8 9 "MIME-Version: 1.0\n" 9 10 "Content-Type: text/plain; charset=UTF-8\n" … … 13 14 "Plural-Forms: nplurals=2; plural=(n != 1);\n" 14 15 "X-Poedit-KeywordsList: __;_e\n" 15 "Language: de\n"16 16 "X-Poedit-SearchPath-0: ..\n" 17 17 … … 61 61 62 62 #: ../classes/class-widget-payment-methods.php:121 63 msgid "Placement" 64 msgstr "Platzierung" 65 66 #: ../classes/class-widget-payment-methods.php:123 67 msgid "Top" 68 msgstr "Oben" 69 70 #: ../classes/class-widget-payment-methods.php:124 71 msgid "Right" 72 msgstr "Rechts" 73 74 #: ../classes/class-widget-payment-methods.php:125 75 msgid "Bottom" 76 msgstr "Unten" 77 78 #: ../classes/class-widget-payment-methods.php:126 79 msgid "Left" 80 msgstr "Links" 81 82 #: ../classes/class-widget-payment-methods.php:130 63 83 msgid "Extra classes" 64 84 msgstr "Zusätzliche Klassen" 65 85 66 #: ../payment-methods.php:22 0 ../payment-methods.php:26067 #: ../payment-methods.php:26 6 ../payment-methods.php:27186 #: ../payment-methods.php:221 ../payment-methods.php:261 87 #: ../payment-methods.php:267 ../payment-methods.php:272 68 88 msgid "Bank Transfer" 69 89 msgstr "Bank-Überweisung" 70 90 71 #: ../payment-methods.php:22 491 #: ../payment-methods.php:225 72 92 msgid "Pay with Cheque" 73 93 msgstr "Mit Scheck bezahlen" 74 94 75 #: ../payment-methods.php:29 295 #: ../payment-methods.php:293 76 96 msgid "Cash on Delivery" 77 97 msgstr "Nachname" -
woocommerce-payment-methods/trunk/languages/it_IT.po
r988346 r989783 2 2 msgstr "" 3 3 "Project-Id-Version: WooCommerce Payment Methods\n" 4 "POT-Creation-Date: 2014-09- 08 01:40+0100\n"5 "PO-Revision-Date: 2014-09- 08 02:12+0100\n"4 "POT-Creation-Date: 2014-09-15 03:08+0100\n" 5 "PO-Revision-Date: 2014-09-15 03:10+0100\n" 6 6 "Last-Translator: \n" 7 7 "Language-Team: vendocrat <hello@vendocr.at>\n" 8 "Language: it\n" 8 9 "MIME-Version: 1.0\n" 9 10 "Content-Type: text/plain; charset=UTF-8\n" … … 13 14 "Plural-Forms: nplurals=2; plural=(n != 1);\n" 14 15 "X-Poedit-KeywordsList: __;_e\n" 15 "Language: it\n"16 16 "X-Poedit-SearchPath-0: ..\n" 17 17 … … 61 61 62 62 #: ../classes/class-widget-payment-methods.php:121 63 msgid "Placement" 64 msgstr "Posizione" 65 66 #: ../classes/class-widget-payment-methods.php:123 67 msgid "Top" 68 msgstr "Sopra" 69 70 #: ../classes/class-widget-payment-methods.php:124 71 msgid "Right" 72 msgstr "Destra" 73 74 #: ../classes/class-widget-payment-methods.php:125 75 msgid "Bottom" 76 msgstr "Abbasso" 77 78 #: ../classes/class-widget-payment-methods.php:126 79 msgid "Left" 80 msgstr "Sinistra" 81 82 #: ../classes/class-widget-payment-methods.php:130 63 83 msgid "Extra classes" 64 84 msgstr "Classi extra" 65 85 66 #: ../payment-methods.php:22 0 ../payment-methods.php:26067 #: ../payment-methods.php:26 6 ../payment-methods.php:27186 #: ../payment-methods.php:221 ../payment-methods.php:261 87 #: ../payment-methods.php:267 ../payment-methods.php:272 68 88 msgid "Bank Transfer" 69 89 msgstr "Trasferimento bancario" 70 90 71 #: ../payment-methods.php:22 491 #: ../payment-methods.php:225 72 92 msgid "Pay with Cheque" 73 93 msgstr "Paga con assegno" 74 94 75 #: ../payment-methods.php:29 295 #: ../payment-methods.php:293 76 96 msgid "Cash on Delivery" 77 97 msgstr "Pagamento con contrassegno" -
woocommerce-payment-methods/trunk/languages/woocommerce-payment-methods.pot
r988346 r989783 2 2 msgstr "" 3 3 "Project-Id-Version: WooCommerce Payment Methods\n" 4 "POT-Creation-Date: 2014-09- 08 01:40+0100\n"5 "PO-Revision-Date: 2014-09- 08 01:40+0100\n"4 "POT-Creation-Date: 2014-09-15 03:10+0100\n" 5 "PO-Revision-Date: 2014-09-15 03:10+0100\n" 6 6 "Last-Translator: \n" 7 7 "Language-Team: vendocrat <hello@vendocr.at>\n" … … 61 61 62 62 #: ../classes/class-widget-payment-methods.php:121 63 msgid "Placement" 64 msgstr "" 65 66 #: ../classes/class-widget-payment-methods.php:123 67 msgid "Top" 68 msgstr "" 69 70 #: ../classes/class-widget-payment-methods.php:124 71 msgid "Right" 72 msgstr "" 73 74 #: ../classes/class-widget-payment-methods.php:125 75 msgid "Bottom" 76 msgstr "" 77 78 #: ../classes/class-widget-payment-methods.php:126 79 msgid "Left" 80 msgstr "" 81 82 #: ../classes/class-widget-payment-methods.php:130 63 83 msgid "Extra classes" 64 84 msgstr "" 65 85 66 #: ../payment-methods.php:22 0 ../payment-methods.php:26067 #: ../payment-methods.php:26 6 ../payment-methods.php:27186 #: ../payment-methods.php:221 ../payment-methods.php:261 87 #: ../payment-methods.php:267 ../payment-methods.php:272 68 88 msgid "Bank Transfer" 69 89 msgstr "" 70 90 71 #: ../payment-methods.php:22 491 #: ../payment-methods.php:225 72 92 msgid "Pay with Cheque" 73 93 msgstr "" 74 94 75 #: ../payment-methods.php:29 295 #: ../payment-methods.php:293 76 96 msgid "Cash on Delivery" 77 97 msgstr "" -
woocommerce-payment-methods/trunk/payment-methods.php
r988387 r989783 4 4 * Plugin URI: http://vendocr.at/ 5 5 * Description: <strong>Easily display your accepted payment methods from WooCommerce.</strong> Handcrafted with ♥ by <a href='http://vendocr.at/'>vendocrat</a> in Vienna. 6 * Version: 0.1. 16 * Version: 0.1.2 7 7 * Author: vendocrat 8 8 * Author URI: http://vendocr.at/ … … 129 129 * 130 130 * @since 2014-09-07 131 * @version 2014-09- 08131 * @version 2014-09-15 132 132 **************************************************/ 133 133 function get_payment_methods( $atts = array(), $content = null ) { … … 135 135 shortcode_atts( 136 136 array( 137 'methods' => array(), // keys are the gateway slugs (lowercase) for the icon class, values are the title attributes 138 'style' => 'default', // default, inverse, o/outline 139 'tooltip' => false, // adds data attributes to icon to be used for diplaying tooltips (made for Bootstrap) 140 'xclass' => false, // add any extra classes, seperated by a space 137 'methods' => array(), // keys are the gateway slugs (lowercase) for the icon class, values are the title attributes 138 'style' => 'default', // default, inverse, o/outline 139 'tooltip' => false, // adds data attributes to icon to be used for diplaying tooltips (made for Bootstrap) 140 'placement' => 'bottom', // set tooltip placement (new since 0.1.2) 141 'xclass' => false, // add any extra classes, seperated by a space 141 142 ), $atts 142 143 ) … … 184 185 $icon.= ($class) ? ' class="'. esc_attr( trim($class) ) .'"' : ''; 185 186 $icon.= ($title) ? ' title="'. esc_attr( trim($title) ) .'"' : ''; 186 $icon.= ($tooltip ) ? ' data-toggle="tooltip" data-placement="bottom"' : '';187 $icon.= ($tooltip AND $placement) ? ' data-toggle="tooltip" data-placement="'. $placement .'"' : ''; 187 188 $icon.= '></i>'; 188 189 break; -
woocommerce-payment-methods/trunk/readme.txt
r988392 r989783 5 5 Requires at least: 3.5 6 6 Tested up to: 4.1 7 Stable tag: 0.1. 17 Stable tag: 0.1.2 8 8 License: GNU General Public License v3.0 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 56 56 = 0.1.1 = 57 57 Fixed wrong url and typo in readme, updated shortcode and screenshots. 58 59 = 0.1.2 = 60 Fixed an error in widget class, added placement option to tooltips, updated language files.
Note: See TracChangeset
for help on using the changeset viewer.