Changeset 2278770
- Timestamp:
- 04/07/2020 08:31:00 PM (6 years ago)
- Location:
- loopingo/trunk
- Files:
-
- 4 edited
-
lang/loopingo-de_DE.mo (modified) (previous)
-
lang/loopingo-de_DE.po (modified) (6 diffs)
-
loopingo.php (modified) (4 diffs)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
loopingo/trunk/lang/loopingo-de_DE.po
r2121908 r2278770 1 1 msgid "" 2 2 msgstr "" 3 "Project-Id-Version: Loopingo\n"3 "Project-Id-Version: loopingo\n" 4 4 "POT-Creation-Date: 2019-04-03 17:08+0200\n" 5 "PO-Revision-Date: 20 19-04-03 17:09+0200\n"5 "PO-Revision-Date: 2020-04-07 18:20+0200\n" 6 6 "Last-Translator: \n" 7 7 "Language-Team: ireloca\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "X-Generator: Poedit 2. 2.1\n"12 "X-Generator: Poedit 2.3\n" 13 13 "X-Poedit-Basepath: ..\n" 14 14 "Plural-Forms: nplurals=2; plural=(n != 1);\n" … … 21 21 22 22 #: loopingo.php:57 23 msgid "Loopingo Settings" 24 msgstr "Loopingo Einstellungen" 25 26 #: loopingo.php:64 27 msgid "Turn Loopingo ON/OFF" 28 msgstr "Schalten Sie Loopingo AN/AUS" 29 30 #: loopingo.php:72 31 msgid "LIVE or TEST mode active" 32 msgstr "LIVE oder TEST Modus aktiv" 23 msgid "loopingo Settings" 24 msgstr "loopingo Einstellungen" 33 25 34 26 #: loopingo.php:80 35 msgid "Where should it be placed?"36 msgstr "Wo soll esplatziert werden?"27 msgid "Where should the Widget be placed?" 28 msgstr "Wo soll das Widget platziert werden?" 37 29 38 30 #: loopingo.php:88 39 msgid "TOKEN" 40 msgstr "TOKEN" 41 42 #: loopingo.php:104 43 msgid "ON" 44 msgstr "AN" 45 46 #: loopingo.php:105 47 msgid "OFF" 48 msgstr "AUS" 31 msgid "Token" 32 msgstr "Token" 49 33 50 34 #: loopingo.php:131 51 msgid "D EFAULT"52 msgstr "S TANDARD"35 msgid "Default" 36 msgstr "Standard" 53 37 54 38 #: loopingo.php:132 55 msgid "B OTTOM"56 msgstr "U NTEN"39 msgid "Bottom" 40 msgstr "Unten" 57 41 58 42 #: loopingo.php:152 59 msgid "" 60 "You can turn Loopingo on the thank you page from woocommerce on or off. You " 61 "can also choose live or test mode." 62 msgstr "" 63 "Sie können Loopingo auf der Dankeseite von woocommerce ein oder ausschalten. " 64 "Sie können auch den Live oder Testmodus wählen." 43 msgid "You can turn loopingo on the thank you page from woocommerce on or off." 44 msgstr "Sie können loopingo auf der Dankeseite von woocommerce ein oder ausschalten." 65 45 66 46 #: loopingo.php:154 67 msgid " You MUST enter a TOKEN to use Loopingo."68 msgstr "Sie MÜSSEN einen TOKEN eingeben, um Loopingo zu verwenden."47 msgid "A token must be inserted in order to use loopingo." 48 msgstr "Sie müssen einen Token eingeben, um loopingo zu verwenden." 69 49 70 50 #: loopingo.php:172 … … 73 53 74 54 #: loopingo.php:172 75 msgid " Loopingo"76 msgstr " Loopingo"55 msgid "loopingo" 56 msgstr "loopingo" 77 57 78 58 #: loopingo.php:172 79 msgid "to recieve your T OKEN."80 msgstr "registrieren um Ihren T OKENzu erhalten."59 msgid "to recieve your Token." 60 msgstr "registrieren um Ihren Token zu erhalten." 81 61 82 62 #: loopingo.php:173 … … 85 65 86 66 #: loopingo.php:173 87 msgid " Loopingo GmbH is responsible for the functionality and updates."88 msgstr " Loopingo GmbH ist für die Funktionalität und Updates zuständig."67 msgid "loopingo GmbH is responsible for the functionality and updates." 68 msgstr "loopingo GmbH ist für die Funktionalität und Updates zuständig." 89 69 90 70 #: loopingo.php:173 … … 92 72 msgstr "Ursprüngliche Entwicklung von" 93 73 94 #~ msgid "You can sign up to Loopingo and recieve your TOKEN"95 #~ msgstr "Sie können sich bei Loopingo registrieren und Ihre TOKENerhalten"74 #~ msgid "You can sign up to loopingo and recieve your Token" 75 #~ msgstr "Sie können sich bei loopingo registrieren und Ihre Token erhalten" 96 76 97 #~ msgid "" 98 #~ "<a href=\"https://manager.loopingo.com/app-security/register\" target=" 99 #~ "\"_blank\">here</a>" 100 #~ msgstr "" 101 #~ "<a href=\"https://manager.loopingo.com/app-security/register\" target=" 102 #~ "\"_blank”>. Hier Registrieren</a>" 77 #~ msgid "<a href=\"https://manager.loopingo.com/app-security/register\" target=\"_blank\">here</a>" 78 #~ msgstr "<a href=\"https://manager.loopingo.com/app-security/register\" target=\"_blank”>. Hier Registrieren</a>" -
loopingo/trunk/loopingo.php
r2121957 r2278770 5 5 * 6 6 * @package loopingo Plugin 7 * @author loopingo GmbH7 * @author loopingo HmbH 8 8 * @copyright 2019 - loopingo GmbH <[email protected]> 9 9 * @license GPL-2.0+ 10 10 11 11 * Plugin Name: loopingo 12 * Author: loopingo GmbH12 * Author: loopingo HmbH 13 13 * Description: Add loopingo to Woocommerce Thank You Page 14 * Version: 1.1. 014 * Version: 1.1.1 15 15 * Text Domain: loopingo 16 16 * Author URI: https://www.loopingo.com/ 17 * Plugin Coopoeration: ireloca Ltd, Registered in England & Wales, Company no.: 11266283 17 18 * License: GPL2 http://www.gnu.org/licenses/gpl-2.0.html 18 19 … … 29 30 */ 30 31 31 add_action( 'admin_menu', ' irlp_add_admin_menu' );32 add_action( 'admin_init', ' irlp_settings_init' );32 add_action( 'admin_menu', 'loo_add_admin_menu' ); 33 add_action( 'admin_init', 'loo_settings_init' ); 33 34 add_action( 'init', 'loopingo_textdomain' ); 34 add_action( 'woocommerce_thankyou', ' irlp_thank_you_page', 1, 1 );35 add_action( 'woocommerce_thankyou', ' irlp_thank_you_page_bottom', 20, 1 );35 add_action( 'woocommerce_thankyou', 'loo_thank_you_page', 1, 1 ); 36 add_action( 'woocommerce_thankyou', 'loo_thank_you_page_bottom', 20, 1 ); 36 37 add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'ireloca_add_plugin_page_settings_link' ); 38 37 39 38 40 /** Adds the text-domain for translation */ 39 41 function loopingo_textdomain() { 40 load_plugin_textdomain( 'loopingo', false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );42 load_plugin_textdomain( 'loopingo', false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' ); 41 43 } 42 44 /** Adds the admin menu */ 43 function irlp_add_admin_menu() {44 45 add_options_page( 'Loopingo', 'Loopingo', 'manage_options', 'Loopingo', 'irlp_options_page' );45 function loo_add_admin_menu() { 46 47 add_options_page( 'loopingo', 'loopingo', 'manage_options', 'loopingo', 'loo_options_page' ); 46 48 47 49 } … … 51 53 */ 52 54 function ireloca_add_plugin_page_settings_link( $links ) { 53 // create link.54 $links[] = '<a href="' .55 admin_url( 'options-general.php?page=Loopingo' ) .56 '">' . __( 'Settings' ) . '</a>';57 return $links;55 // create link. 56 $links[] = '<a href="' . 57 admin_url( 'options-general.php?page=loopingo' ) . 58 '">' . __( 'Settings' ) . '</a>'; 59 return $links; 58 60 } 59 61 /** Adds the backend menu */ 60 function irlp_settings_init() { 61 62 register_setting( 'pluginPage', 'irlp_settings' ); 63 64 add_settings_section( 65 'irlp_pluginPage_section', 66 __( 'loopingo Settings', 'loopingo' ), 67 'irlp_settings_section_callback', 68 'pluginPage' 69 ); 70 71 add_settings_field( 72 'irlp_select_field_0', 73 __( 'Turn loopingo ON/OFF', 'loopingo' ), 74 'irlp_select_field_0_render', 75 'pluginPage', 76 'irlp_pluginPage_section' 77 ); 78 79 add_settings_field( 80 'irlp_select_field_1', 81 __( 'LIVE or TEST mode active', 'loopingo' ), 82 'irlp_select_field_1_render', 83 'pluginPage', 84 'irlp_pluginPage_section' 85 ); 86 87 add_settings_field( 88 'irlp_select_field_2', 89 __( 'Where should it be placed?', 'loopingo' ), 90 'irlp_select_field_2_render', 91 'pluginPage', 92 'irlp_pluginPage_section' 93 ); 94 95 add_settings_field( 96 'irlp_text_field_3', 97 __( 'TOKEN', 'loopingo' ), 98 'irlp_text_field_3_render', 99 'pluginPage', 100 'irlp_pluginPage_section' 101 ); 102 } 103 /** Adds options to the menu */ 104 function irlp_select_field_0_render() { 105 106 $options = get_option( 'irlp_settings' ); 107 ?> 108 <select name='irlp_settings[irlp_select_field_0]'> 109 <option value='1' <?php selected( $options['irlp_select_field_0'], 1 ); ?>><?php echo esc_html__( 'ON', 'loopingo' ); ?></option> 110 <option value='2' <?php selected( $options['irlp_select_field_0'], 2 ); ?>><?php echo esc_html__( 'OFF', 'loopingo' ); ?></option> 111 </select> 112 113 <?php 114 115 } 116 /** Adds options to the menu */ 117 function irlp_select_field_1_render() { 118 119 $options = get_option( 'irlp_settings' ); 120 ?> 121 <select name='irlp_settings[irlp_select_field_1]'> 122 <option value='1' <?php selected( $options['irlp_select_field_1'], 1 ); ?>>LIVE</option> 123 <option value='2' <?php selected( $options['irlp_select_field_1'], 2 ); ?>>TEST</option> 124 </select> 125 126 <?php 127 128 } 129 /** Adds options to the menu */ 130 function irlp_select_field_2_render() { 131 132 $options = get_option( 'irlp_settings' ); 133 ?> 134 <select name='irlp_settings[irlp_select_field_2]'> 135 <option value='1' <?php selected( $options['irlp_select_field_2'], 1 ); ?>><?php echo esc_html__( 'DEFAULT', 'loopingo' ); ?></option> 136 <option value='2' <?php selected( $options['irlp_select_field_2'], 2 ); ?>><?php echo esc_html__( 'BOTTOM', 'loopingo' ); ?></option> 137 </select> 138 139 <?php 140 141 } 142 143 /** Adds options to the menu */ 144 function irlp_text_field_3_render() { 145 146 $options = get_option( 'irlp_settings' ); 147 $options_value = $options['irlp_text_field_3']; 148 ?> 149 <input type='text' name='irlp_settings[irlp_text_field_3]' value='<?php echo esc_attr( $options_value ); ?>' style="min-width:300px;"> 150 <?php 151 152 } 153 154 /** Adds options to the menu */ 155 function irlp_settings_section_callback() { 156 157 echo esc_html__( 'You can turn loopingo on the thank you page from woocommerce on or off. You can also choose live or test mode.', 'loopingo' ); 158 echo '<br>'; 159 echo esc_html__( 'You must enter a token to use loopingo.', 'loopingo' ); 160 } 161 162 /** Adds options to the menu */ 163 function irlp_options_page() { 164 165 ?> 166 <form action='options.php' method='post'> 167 168 <?php 169 settings_fields( 'pluginPage' ); 170 do_settings_sections( 'pluginPage' ); 171 submit_button(); 172 ?> 173 174 </form> 175 176 <?php 177 echo '<p class="loopingo_website">' . esc_html__( 'You can sign up to', 'loopingo' ) . ' <a href="https://manager.loopingo.com/app-security/register" target="_blank">' . esc_html__( 'Loopingo', 'loopingo' ) . '</a> ' . esc_html__( 'to recieve your TOKEN.', 'loopingo' ) . '</p><br>'; 178 echo '<p class="copyright_loopingo">' . esc_html__( 'This plugin was created for', 'loopingo' ) . ' <a href="https://www.loopingo.com/impressum/" target="_blank">Loopingo GmbH</a>. ' . esc_html__( 'Loopingo GmbH is responsible for the functionality and updates.', 'loopingo' ); 62 function loo_settings_init() { 63 64 register_setting( 'pluginPage', 'loo_settings' ); 65 66 add_settings_section( 67 'loo_pluginPage_section', 68 __( 'loopingo Settings', 'loopingo' ), 69 'loo_settings_section_callback', 70 'pluginPage' 71 ); 72 73 add_settings_field( 74 'loo_text_field_1', 75 __( 'Token', 'loopingo' ), 76 'loo_text_field_1_render', 77 'pluginPage', 78 'loo_pluginPage_section' 79 ); 80 81 add_settings_field( 82 'loo_select_field_2', 83 __( 'Where should the Widget be placed?', 'loopingo' ), 84 'loo_select_field_2_render', 85 'pluginPage', 86 'loo_pluginPage_section' 87 ); 88 } 89 90 /** Adds options to the menu */ 91 function loo_text_field_1_render() { 92 93 $options = get_option( 'loo_settings' ); 94 $options_value = $options['loo_text_field_1']; 95 ?> 96 <input type='text' name='loo_settings[loo_text_field_1]' value='<?php echo esc_attr( $options_value ); ?>' style="min-width:300px;"> 97 <?php 98 99 } 100 101 /** Adds options to the menu */ 102 function loo_select_field_2_render() { 103 104 $options = get_option( 'loo_settings' ); 105 ?> 106 <select name='loo_settings[loo_select_field_2]'> 107 <option value='1' <?php selected( $options['loo_select_field_2'], 1 ); ?>><?php echo esc_html__( 'Default', 'loopingo' ); ?></option> 108 <option value='2' <?php selected( $options['loo_select_field_2'], 2 ); ?>><?php echo esc_html__( 'Bottom', 'loopingo' ); ?></option> 109 </select> 110 111 <?php 112 113 } 114 115 /** Adds options to the menu */ 116 function loo_settings_section_callback() { 117 118 echo esc_html__( 'You can turn loopingo on the thank you page from woocommerce on or off.', 'loopingo' ); 119 echo '<br>'; 120 echo esc_html__( 'A token must be inserted in order to use loopingo.', 'loopingo' ); 121 } 122 123 /** Adds options to the menu */ 124 function loo_options_page() { 125 126 ?> 127 <form action='options.php' method='post'> 128 129 <?php 130 settings_fields( 'pluginPage' ); 131 do_settings_sections( 'pluginPage' ); 132 submit_button(); 133 ?> 134 135 </form> 136 137 <?php 138 echo '<p class="loopingo_website">' . esc_html__( 'You can sign up to', 'loopingo' ) . ' <a href="https://manager.loopingo.com/app-security/register" target="_blank">' . esc_html__( 'loopingo', 'loopingo' ) . '</a> ' . esc_html__( 'to recieve your Token.', 'loopingo' ) . '</p><br>'; 139 echo '<p class="copyright_loopingo">' . esc_html__( 'This plugin was created for', 'loopingo' ) . ' <a href="https://www.loopingo.com/impressum/" target="_blank">loopingo GmbH</a>. ' . esc_html__( 'loopingo GmbH is responsible for the functionality and updates.', 'loopingo' ); 140 echo '<br>' . esc_html__( 'Original development by', 'loopingo' ) . ' <a href="https://ireloca.com" target="_blank">ireloca.com - Discover activities</a></p>'; 179 141 180 142 } … … 183 145 * @param int $order_id get the order. 184 146 */ 185 function irlp_thank_you_page( $order_id ) { 186 187 $order = new WC_Order( $order_id ); 188 $loopingo_settings = get_option( 'irlp_settings' ); 189 $loopingo_on = $loopingo_settings['irlp_select_field_0']; 190 $loopingo_bottom = $loopingo_settings['irlp_select_field_2']; 191 $loopingo_token = $loopingo_settings['irlp_text_field_3']; 192 $loopingo_test = 2 === $loopingo_settings['irlp_select_field_1'] ? 'true' : 'false'; 193 $irlp_order_id = $order->get_id(); 194 $irlp_email = $order->get_billing_email(); 195 $irlp_country = $order->get_billing_country(); 196 $irlp_postal_code = $order->get_billing_postcode(); 197 $irlp_order_amount = $order->get_total(); 198 $irlp_gender = 'undefined'; 199 200 if ( 2 === $loopingo_on ) { 201 return; 202 } else { 203 if ( 1 === $loopingo_bottom ) { 204 ?> 147 function loo_thank_you_page( $order_id, $bottom = false ) 148 { 149 $loopingo_settings = get_option( 'loo_settings' ); 150 $loopingo_position = $loopingo_settings['loo_select_field_2']; 151 152 // 1 == default 153 // 2 == bottom 154 155 if ($bottom && '2' === $loopingo_position) { 156 loo_create_loopingo($order_id); 157 return; 158 } 159 160 if (!$bottom && '1' === $loopingo_position) { 161 loo_create_loopingo($order_id); 162 return; 163 } 164 } 165 /** Runs the script for second priority 166 * 167 * @param int $order_id get the order. 168 */ 169 function loo_thank_you_page_bottom( $order_id ) { 170 loo_thank_you_page( $order_id, true ); 171 } 172 173 function loo_create_loopingo($order_id) 174 { 175 $order = new WC_Order( $order_id ); 176 $loopingo_settings = get_option( 'loo_settings' ); 177 $loopingo_token = $loopingo_settings['loo_text_field_1']; 178 $loo_order_id = $order->get_id(); 179 $loo_email = $order->get_billing_email(); 180 $loo_country = $order->get_billing_country(); 181 $loo_postal_code = $order->get_billing_postcode(); 182 $loo_order_amount = $order->get_total(); 183 184 ?> 205 185 <!-- LOOPINGO START --> 206 186 <div id="loopingo-integration-container"> 207 <script type="text/props">208 {209 "token" : "<?php echo esc_attr( $loopingo_token ); ?>",210 "order_id" : "<?php echo esc_attr( $irlp_order_id ); ?>",211 "email" : "<?php echo esc_attr( $irlp_email ); ?>",212 "country" : "<?php echo esc_attr( $irlp_country ); ?>",213 "postal_code" : "<?php echo esc_attr( $irlp_postal_code ); ?>",214 "gender" : "<?php echo esc_attr( $irlp_gender ); ?>",215 "order_amount" : "<?php echo esc_attr( $irlp_order_amount ); ?>",216 "is_test" : <?php echo esc_attr( $loopingo_test ); ?> 217 }218 </script>187 <script type="text/props"> 188 { 189 "token" : "<?php echo esc_attr( $loopingo_token ); ?>", 190 "order_id" : "<?php echo esc_attr( $loo_order_id ); ?>", 191 "email" : "<?php echo esc_attr( $loo_email ); ?>", 192 "country" : "<?php echo esc_attr( $loo_country ); ?>", 193 "postal_code" : "<?php echo esc_attr( $loo_postal_code ); ?>", 194 "gender" : "undefined", 195 "order_amount" : "<?php echo esc_attr( $loo_order_amount ); ?>", 196 "is_test" : false 197 } 198 </script> 219 199 </div> 220 200 <script async src="https://integration.loopingo.com/bundle_v1.js" type="text/javascript"></script> 221 201 <!-- LOOPINGO END --> 222 <?php 223 } 224 } 225 } 226 /** Runs the script for second priority 227 * 228 * @param int $order_id get the order. 229 */ 230 function irlp_thank_you_page_bottom( $order_id ) { 231 irlp_thank_you_page( $order_id ); 232 } 202 <?php 203 } 204 233 205 // You made it to the bottom, well done! By the way, the ireloca guys say hi. 234 ?> -
loopingo/trunk/readme.txt
r2125262 r2278770 1 === Loopingo - WordPress Plugin ===2 Contributors: ireloca Ltd 3 Tags: loopingo, marketing, adverts, banners, checkouot monetisation, AdSense alternative, added value for customers, WooCommerce add on, sovendus, advertising, after sales profits, increase profits, new customers1 === loopingo - WordPress Plugin === 2 Contributors: ireloca Ltd, loopingo GmbH 3 Tags: loopingo, ireloca, marketing, adverts, banners 4 4 Requires at least: 4.6 5 Tested up to: 5. 1.15 Tested up to: 5.4 6 6 Stable tag: trunk 7 7 License: GPLv2 or later … … 10 10 11 11 12 Add Loopingo onto the thank you page of woocommerce to show adverts.12 Add loopingo onto the thank you page of woocommerce to show adverts. 13 13 14 14 … … 16 16 == Description == 17 17 18 Create added value for your customers while earning additional profits. With loopingo Monetise you offer your customers exclusive vouchers after the purchase. 18 Create added value for your customers while earning additional profits. 19 With loopingo Monetise you offer your customers exclusive vouchers after the purchase. 19 20 20 Your customers are looking forward to relevant offers from our network - while you increase your profit with Loopingo. 21 Simply sign-up for your free account at https://manager.loopingo.com to get your unique token. Afterwards you can make all adjustments to your loopingo integration in your account. 21 Your customers are looking forward to relevant offers from our network - and you earn with loopingo. 22 22 23 Main features of loopingo: 24 * Creates extra value for your customers after the checkout (or after the sign-up) 25 * Great alternative to AdSense, Plista or other monetisation options 26 * Full black- and whitelisting options 27 * Fully customisable widget that blends perfectly into your thank you page 23 = What it does? = 24 The loopingo Plugin adds the code to the thank you page on woocommerce and creates a settings page, where it can be switched on/off as well as switched between live and test mode. Additionally the Token can also easily be added. 28 25 29 = Functionality of the loopingo plugin? = 30 The Loopingo Plugin adds the code to the thank you page on WooCommerce and creates a settings page, where it can be switched on/off as well as switched between live and test mode. Additionally the loopingo token can also easily be added. 31 32 = Plugin features = 33 * Adds settings page to make loopingo easy to install 34 * Automatically adds the code to the Thank You page 26 = Features = 27 * Add settings page to make loopingo easy to install 28 * Automatically add the code to the Thank You page 35 29 36 30 … … 45 39 46 40 = Author = 47 * Loopingo GmbH48 https://www.loopingo.com/ 41 * loopingo GmbH https://www.loopingo.com/ 42 * ireloca Ltd was the original developer 49 43 50 44 51 45 52 46 == Changelog == 47 48 =1.1.1 49 * Fixed bugs 50 * Made fit for Wordpress 5.4 53 51 54 52 = 1.1.0 =
Note: See TracChangeset
for help on using the changeset viewer.