Changeset 3217104
- Timestamp:
- 01/05/2025 06:39:31 AM (14 months ago)
- Location:
- order-sync-with-google-sheets-for-woocommerce
- Files:
-
- 8 edited
- 1 copied
-
tags/1.11.3 (copied) (copied from order-sync-with-google-sheets-for-woocommerce/trunk)
-
tags/1.11.3/includes/classes/class-hooks.php (modified) (1 diff)
-
tags/1.11.3/includes/ordersync-sdk/class-plugin.php (modified) (25 diffs)
-
tags/1.11.3/order-sync-with-google-sheets-for-woocommerce.php (modified) (2 diffs)
-
tags/1.11.3/readme.txt (modified) (2 diffs)
-
trunk/includes/classes/class-hooks.php (modified) (1 diff)
-
trunk/includes/ordersync-sdk/class-plugin.php (modified) (25 diffs)
-
trunk/order-sync-with-google-sheets-for-woocommerce.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
order-sync-with-google-sheets-for-woocommerce/tags/1.11.3/includes/classes/class-hooks.php
r3201033 r3217104 301 301 $from = '2024-11-21'; 302 302 $to = '2024-12-4'; 303 $cta_text = esc_html__( 'Grab Your Treat!', 'sheetstowptable' ); 303 304 if ( $osgs_plugin && is_object( $osgs_plugin ) && method_exists( $osgs_plugin, 'set_campaign' ) ) { 304 $osgs_plugin->set_campaign($image, $to, $from );305 $osgs_plugin->set_campaign($image, $to, $from, $cta_text ); 305 306 } 306 307 } -
order-sync-with-google-sheets-for-woocommerce/tags/1.11.3/includes/ordersync-sdk/class-plugin.php
r3201033 r3217104 60 60 'list_id' => 20, 61 61 'button_link' => 'https://go.wppool.dev/LaSV', 62 'button_text' => 'G rab Your Deals',62 'button_text' => 'Get Premium', 63 63 'color' => '#FF631A', 64 'demo_link' => 'https://go.wppool.dev/bjxy', 65 'demo_text' => 'Try a FREE demo', 64 66 ], 65 67 'sheets_to_wp_table_live_sync' => [ 66 68 'list_id' => 21, 67 69 'button_link' => 'https://go.wppool.dev/Rimc', 68 'button_text' => 'G rab Your Deals',70 'button_text' => 'Get Premium', 69 71 'color' => '#1AD26E', 72 'demo_link' => 'https://go.wppool.dev/Yjcr', 73 'demo_text' => 'Try a FREE demo', 70 74 ], 71 75 'easy_video_reviews' => [ 72 76 'list_id' => 22, 73 'button_text' => 'G rab Your Deals',77 'button_text' => 'Get Premium', 74 78 'color' => '#0288FD', 79 'demo_link' => 'https://go.wppool.dev/VjWZ', 80 'demo_text' => 'Try a FREE demo', 75 81 ], 76 82 'webinar_and_video_conference_with_jitsi_meet' => [ 77 83 'list_id' => 23, 78 84 'button_link' => 'https://go.wppool.dev/8iQC', 79 'button_text' => 'G rab Your Deals',85 'button_text' => 'Get Premium', 80 86 'color' => '#1D5AE4', 87 'demo_link' => 'https://go.wppool.dev/ajve', 88 'demo_text' => 'Try a FREE demo', 81 89 ], 82 90 'zero_bs_accounting' => [ 83 91 'list_id' => 24, 84 92 'button_link' => 'https://go.wppool.dev/zbs', 85 'button_text' => 'G rab Your Deals',93 'button_text' => 'Get Premium', 86 94 ], 87 95 'stock_sync_with_google_sheet_for_woocommerce' => [ 88 96 'list_id' => 46, 89 97 'button_link' => 'https://go.wppool.dev/dr8d', 90 'button_text' => 'G rab Your Deals',98 'button_text' => 'Get Premium', 91 99 'color' => '#8F5CCB', 100 'demo_link' => 'https://go.wppool.dev/kjbW', 101 'demo_text' => 'Try a FREE demo', 92 102 ], 93 103 'stock_notifier_for_woocommerce' => [ 94 104 'list_id' => 47, 95 105 'button_link' => 'https://go.wppool.dev/hiE1', 96 'button_text' => 'G rab Your Deals',106 'button_text' => 'Get Premium', 97 107 'color' => '#3FC250', 98 108 ], … … 100 110 'list_id' => 26, 101 111 'button_link' => 'https://go.wppool.dev/EiRM', 102 'button_text' => 'G rab Your Deals',112 'button_text' => 'Get Premium', 103 113 'color' => '#CC22FF', 104 114 ], … … 106 116 'list_id' => 26, 107 117 'button_link' => 'https://go.wppool.dev/EiRM', 108 'button_text' => 'G rab Your Deals',118 'button_text' => 'Get Premium', 109 119 'color' => '#CC22FF', 110 120 ], … … 112 122 'list_id' => 49, 113 123 'button_link' => 'https://go.wppool.dev/2rc7', 114 'button_text' => 'G rab Your Deals',124 'button_text' => 'Get Premium', 115 125 'color' => '#DC4FF3', 116 126 ], … … 118 128 'list_id' => 54, 119 129 'button_link' => 'https://go.wppool.dev/cyVx', 120 'button_text' => 'G rab Your Deals',130 'button_text' => 'Get Premium', 121 131 'color' => '#C91170', 122 132 ], 123 133 'easy_email_integration' => [ 124 134 'list_id' => 55, 125 'button_text' => 'G rab Your Deals',135 'button_text' => 'Get Premium', 126 136 ], 127 137 'easy_cloudflare_trunstile' => [ 128 138 'list_id' => 56, 129 139 'button_link' => 'https://go.wppool.dev/easycloudflare', 130 'button_text' => 'G rab Your Deals',140 'button_text' => 'Get Premium', 131 141 ], 132 142 'order_sync_with_google_sheets_for_woocommerce' => [ 133 143 'list_id' => 65, 134 144 'button_link' => 'https://go.wppool.dev/8aCD', 135 'button_text' => 'G rab Your Deals',145 'button_text' => 'Get Premium', 136 146 'color' => '#6621ba', 147 'demo_link' => 'https://go.wppool.dev/fjno', 148 'demo_text' => 'Try a FREE demo', 149 ], 150 'echo_rewards' => [ 151 'list_id' => 70, 152 'button_link' => 'https://go.wppool.dev/Bg5L', 153 'button_text' => 'Get Premium', 154 'color' => '#6A32F8', 155 'demo_link' => 'https://go.wppool.dev/7jm2', 156 'demo_text' => 'Try a FREE demo', 137 157 ], 138 158 ]; … … 306 326 <div class="_wppool-popup-countdown" style="display: none"> 307 327 <span class="_wppool-popup-countdown-text"> 308 <?php echo esc_html__( 'Deal Ends In', ' order-sync-with-google-sheets-for-woocommerce' ); ?>328 <?php echo esc_html__( 'Deal Ends In', 'wp-dark-mode' ); ?> 309 329 </span> 310 330 <div class="_wppool-popup-countdown-time"> 311 331 <div> 312 332 <span data-counter="days"> 313 <?php echo esc_html__( '00', ' order-sync-with-google-sheets-for-woocommerce' ); ?>333 <?php echo esc_html__( '00', 'wp-dark-mode' ); ?> 314 334 </span> 315 335 <span> 316 <?php echo esc_html__( 'Days', ' order-sync-with-google-sheets-for-woocommerce' ); ?>336 <?php echo esc_html__( 'Days', 'wp-dark-mode' ); ?> 317 337 </span> 318 338 </div> … … 320 340 <div> 321 341 <span data-counter="hours"> 322 <?php echo esc_html__( '00', ' order-sync-with-google-sheets-for-woocommerce' ); ?>342 <?php echo esc_html__( '00', 'wp-dark-mode' ); ?> 323 343 </span> 324 344 <span> 325 <?php echo esc_html__( 'Hours', ' order-sync-with-google-sheets-for-woocommerce' ); ?>345 <?php echo esc_html__( 'Hours', 'wp-dark-mode' ); ?> 326 346 </span> 327 347 </div> … … 329 349 <div> 330 350 <span data-counter="minutes"> 331 <?php echo esc_html__( '00', ' order-sync-with-google-sheets-for-woocommerce' ); ?>351 <?php echo esc_html__( '00', 'wp-dark-mode' ); ?> 332 352 </span> 333 353 <span> 334 <?php echo esc_html__( 'Minutes', ' order-sync-with-google-sheets-for-woocommerce' ); ?>354 <?php echo esc_html__( 'Minutes', 'wp-dark-mode' ); ?> 335 355 </span> 336 356 </div> … … 338 358 <div> 339 359 <span data-counter="seconds"> 340 <?php echo esc_html__( '00', ' order-sync-with-google-sheets-for-woocommerce' ); ?>360 <?php echo esc_html__( '00', 'wp-dark-mode' ); ?> 341 361 </span> 342 362 <span> 343 <?php echo esc_html__( 'Seconds', ' order-sync-with-google-sheets-for-woocommerce' ); ?>363 <?php echo esc_html__( 'Seconds', 'wp-dark-mode' ); ?> 344 364 </span> 345 365 </div> … … 347 367 </div> 348 368 <!-- button --> 349 <a class="_wppool-popup-button" href=""> 350 <?php 351 echo esc_html__( 352 'Upgrade to Pro', 353 'order-sync-with-google-sheets-for-woocommerce' 354 ); 355 ?> 369 <a class="_wppool-popup-button"> 370 <?php echo esc_html__( 'Upgrade to Pro', 'wp-dark-mode' ); ?> 371 </a> 372 373 <a target="_blank" class="_wppool-popup-demo-link" href=""> 374 <?php echo esc_html__( 'Try a free demo', 'wp-dark-mode' ); ?> 356 375 </a> 357 376 </div> … … 533 552 // counter to 534 553 plugin_data.to = plugin_data.to || null; 554 // demo link 555 plugin_data.demo_link = plugin_data.demo_link || null 535 556 536 557 return plugin_data; … … 625 646 $container.find("._wppool-popup-button").attr("target", "_blank"); 626 647 } 648 649 if ( data.demo_link ) { 650 $container.find("._wppool-popup-demo-link").show(); 651 $container.find("._wppool-popup-demo-link").text(data.demo_text || "Try a FREE demo"); 652 $container.find("._wppool-popup-demo-link").attr("href", data.demo_link || ""); 653 } else { 654 $container.find("._wppool-popup-demo-link").hide() 655 } 627 656 628 657 // set popup color … … 795 824 z-index: 99999999 !important; 796 825 } 797 798 826 799 827 ._wppool-popup-overlay { … … 920 948 921 949 ._wppool-popup-button { 922 height: 50px;950 height: 60px; 923 951 background: var(--wppool-popup-color); 924 952 color: #222; … … 935 963 color: white; 936 964 padding: 0 30px; 937 margin: 35px 0 ;965 margin: 35px 0 20px 0; 938 966 transition: .2s; 939 967 position: relative; … … 963 991 transform: scale(.99); 964 992 } 965 }'; 993 } 994 ._wppool-popup-demo-link { 995 color: #ddd; 996 transition: .2s ease-in-out; 997 cursor: pointer; 998 text-decoration: none; 999 padding-bottom: 10px; 1000 } 1001 ._wppool-popup-demo-link:hover { 1002 color: #ddd; 1003 opacity: .9; 1004 } 1005 '; 966 1006 967 1007 return apply_filters( 'wppool_inline_styles', $css ); … … 977 1017 978 1018 // Localize script. 979 wp_localize_script( 980 'wppool-plugins', 981 'WPPOOL_Plugins', 982 [ 983 'plugins' => $this->get_plugins(), 984 'debug' => defined( 'WP_DEBUG' ) && WP_DEBUG, 985 ] 986 ); 1019 wp_localize_script( 'wppool-plugins', 'WPPOOL_Plugins', [ 1020 'plugins' => $this->get_plugins(), 1021 'debug' => defined( 'WP_DEBUG' ) && WP_DEBUG, 1022 ] ); 987 1023 988 1024 wp_enqueue_script( 'wppool-plugins' ); … … 1174 1210 */ 1175 1211 public function subscribe( $tag = 'free' ) { 1176 $data = array_merge( 1177 $this->user_data, 1178 [ 1179 'tags' => [ $this->get_tag_id( $tag ) ], 1180 'lists' => $this->get_list_id(), 1181 ] 1182 ); 1212 $data = array_merge( $this->user_data, [ 1213 'tags' => [ $this->get_tag_id( $tag ) ], 1214 'lists' => $this->get_list_id(), 1215 ] ); 1183 1216 1184 1217 return $this->sent_to_fluent_server( $data ); … … 1192 1225 */ 1193 1226 public function unsubscribe_plugin() { 1194 $data = array_merge( 1195 $this->user_data, 1196 [ 1197 'remove_lists' => $this->get_list_id(), 1198 ] 1199 ); 1227 $data = array_merge( $this->user_data, [ 1228 'remove_lists' => $this->get_list_id(), 1229 ] ); 1200 1230 1201 1231 return $this->sent_to_fluent_server( $data ); … … 1210 1240 */ 1211 1241 public function unsubscribe_tag( $tag = 'free' ) { 1212 $data = array_merge( 1213 $this->user_data, 1214 [ 1215 'remove_tags' => $this->get_tag_id( $tag ), 1216 ] 1217 ); 1242 $data = array_merge( $this->user_data, [ 1243 'remove_tags' => $this->get_tag_id( $tag ), 1244 ] ); 1218 1245 1219 1246 return $this->sent_to_fluent_server( $data ); … … 1251 1278 1252 1279 // Add plugin image. 1253 add_filter( 1254 'wppool_plugins', 1255 function ( $plugins ) use ( $instance, $image_url ) { 1256 $plugins[ $instance->plugin_id ]['background_image'] = isset( $image_url ) ? $image_url : $instance->get_plugin_image(); 1257 1258 return $plugins; 1259 } 1260 ); 1280 add_filter( 'wppool_plugins', function ( $plugins ) use ( $instance, $image_url ) { 1281 $plugins[ $instance->plugin_id ]['background_image'] = isset( $image_url ) ? $image_url : $instance->get_plugin_image(); 1282 1283 return $plugins; 1284 } ); 1261 1285 1262 1286 // Trigger appsero. … … 1267 1291 1268 1292 /** 1269 * Set image until 1270 * 1271 * @param string $image_url The image url. 1272 * @param string $to End date. Default is 2 weeks from now. 1273 * @param string $from Start from. Default is now. 1293 * Set campaign details. 1294 * 1295 * @param string $image_url The image URL for the campaign. 1296 * @param string $to End date for the campaign. 1297 * @param string $from Start date for the campaign. 1298 * @param string $button_text The custom CTA text for the button. 1274 1299 * @return mixed 1275 1300 */ 1276 public function set_campaign( $image_url = null, $to = null, $from = null ) {1301 public function set_campaign( $image_url = null, $to = null, $from = null, $button_text = 'Get Premium' ) { 1277 1302 // Bailout if image url is not valid. 1278 1303 if ( ! $image_url ) { … … 1280 1305 } 1281 1306 1282 // Set from now if it's not set. 1283 $from_time = $from ? strtotime( $from . ' 00:00:01' ) : strtotime( 'now' ); 1284 1285 // Set to 2 weeks from now if it's not set. 1286 $to_time = $to ? strtotime( $to . ' 23:59:59' ) : strtotime( '+2 weeks' ); 1287 1307 // Set default times if not provided. 1308 $from_time = $from ? strtotime( $from ) : strtotime( 'now' ); 1309 $to_time = $to ? strtotime( $to ) : strtotime( '+2 weeks' ); 1288 1310 $current_time = strtotime( 'now' ); 1289 1311 … … 1293 1315 } 1294 1316 1295 // Modify the plugin data. 1296 add_filter( 1297 'wppool_plugins', 1298 function ( $plugins ) use ( $image_url, $to, $from ) { 1299 1300 $plugins[ $this->plugin_id ]['background_image'] = $image_url; 1301 $plugins[ $this->plugin_id ]['from'] = $from; 1302 $plugins[ $this->plugin_id ]['to'] = $to; 1303 1304 return $plugins; 1305 } 1306 ); 1317 // Modify the plugin data to include the campaign image, date range, and button text. 1318 add_filter( 'wppool_plugins', function ( $plugins ) use ( $image_url, $to, $from, $button_text ) { 1319 $plugins[ $this->plugin_id ]['background_image'] = $image_url; 1320 $plugins[ $this->plugin_id ]['from'] = $from; 1321 $plugins[ $this->plugin_id ]['to'] = $to; 1322 $plugins[ $this->plugin_id ]['button_text'] = $button_text; 1323 1324 return $plugins; 1325 } ); 1307 1326 } 1308 1327 } … … 1322 1341 * @return mixed 1323 1342 */ 1324 function wppool_plugin_init( $plugin_id = 'wp_dark_mode', $image_url = null ) { //phpcs:ignore1343 function wppool_plugin_init( $plugin_id = 'wp_dark_mode', $image_url = null ) { 1325 1344 return WPPOOL_Plugin::init( $plugin_id, $image_url ); 1326 1345 } 1327 1346 } 1328 -
order-sync-with-google-sheets-for-woocommerce/tags/1.11.3/order-sync-with-google-sheets-for-woocommerce.php
r3211100 r3217104 4 4 * Plugin URI: https://wcordersync.com/ 5 5 * Description: Sync WooCommerce orders with Google Sheets. Perform WooCommerce order sync, e-commerce order management and sales order management from Google Sheets. 6 * Version: 1.11. 26 * Version: 1.11.3 7 7 * Author: WC Order Sync 8 8 * Author URI: https://wcordersync.com/ … … 21 21 */ 22 22 define( 'OSGSW_FILE', __FILE__ ); 23 define( 'OSGSW_VERSION', '1.11. 2' );23 define( 'OSGSW_VERSION', '1.11.3' ); 24 24 /** 25 25 * Loading base file -
order-sync-with-google-sheets-for-woocommerce/tags/1.11.3/readme.txt
r3211100 r3217104 5 5 Tested up to: 6.7 6 6 Requires PHP: 5.6 7 Stable tag: 1.11. 27 Stable tag: 1.11.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 151 151 152 152 == Changelog == 153 = 1.11.3 - 05 January 2025 = 154 * **Improvement:** SDK updated. 153 155 154 156 = 1.11.2 - 20 Dec 2024 = -
order-sync-with-google-sheets-for-woocommerce/trunk/includes/classes/class-hooks.php
r3201033 r3217104 301 301 $from = '2024-11-21'; 302 302 $to = '2024-12-4'; 303 $cta_text = esc_html__( 'Grab Your Treat!', 'sheetstowptable' ); 303 304 if ( $osgs_plugin && is_object( $osgs_plugin ) && method_exists( $osgs_plugin, 'set_campaign' ) ) { 304 $osgs_plugin->set_campaign($image, $to, $from );305 $osgs_plugin->set_campaign($image, $to, $from, $cta_text ); 305 306 } 306 307 } -
order-sync-with-google-sheets-for-woocommerce/trunk/includes/ordersync-sdk/class-plugin.php
r3201033 r3217104 60 60 'list_id' => 20, 61 61 'button_link' => 'https://go.wppool.dev/LaSV', 62 'button_text' => 'G rab Your Deals',62 'button_text' => 'Get Premium', 63 63 'color' => '#FF631A', 64 'demo_link' => 'https://go.wppool.dev/bjxy', 65 'demo_text' => 'Try a FREE demo', 64 66 ], 65 67 'sheets_to_wp_table_live_sync' => [ 66 68 'list_id' => 21, 67 69 'button_link' => 'https://go.wppool.dev/Rimc', 68 'button_text' => 'G rab Your Deals',70 'button_text' => 'Get Premium', 69 71 'color' => '#1AD26E', 72 'demo_link' => 'https://go.wppool.dev/Yjcr', 73 'demo_text' => 'Try a FREE demo', 70 74 ], 71 75 'easy_video_reviews' => [ 72 76 'list_id' => 22, 73 'button_text' => 'G rab Your Deals',77 'button_text' => 'Get Premium', 74 78 'color' => '#0288FD', 79 'demo_link' => 'https://go.wppool.dev/VjWZ', 80 'demo_text' => 'Try a FREE demo', 75 81 ], 76 82 'webinar_and_video_conference_with_jitsi_meet' => [ 77 83 'list_id' => 23, 78 84 'button_link' => 'https://go.wppool.dev/8iQC', 79 'button_text' => 'G rab Your Deals',85 'button_text' => 'Get Premium', 80 86 'color' => '#1D5AE4', 87 'demo_link' => 'https://go.wppool.dev/ajve', 88 'demo_text' => 'Try a FREE demo', 81 89 ], 82 90 'zero_bs_accounting' => [ 83 91 'list_id' => 24, 84 92 'button_link' => 'https://go.wppool.dev/zbs', 85 'button_text' => 'G rab Your Deals',93 'button_text' => 'Get Premium', 86 94 ], 87 95 'stock_sync_with_google_sheet_for_woocommerce' => [ 88 96 'list_id' => 46, 89 97 'button_link' => 'https://go.wppool.dev/dr8d', 90 'button_text' => 'G rab Your Deals',98 'button_text' => 'Get Premium', 91 99 'color' => '#8F5CCB', 100 'demo_link' => 'https://go.wppool.dev/kjbW', 101 'demo_text' => 'Try a FREE demo', 92 102 ], 93 103 'stock_notifier_for_woocommerce' => [ 94 104 'list_id' => 47, 95 105 'button_link' => 'https://go.wppool.dev/hiE1', 96 'button_text' => 'G rab Your Deals',106 'button_text' => 'Get Premium', 97 107 'color' => '#3FC250', 98 108 ], … … 100 110 'list_id' => 26, 101 111 'button_link' => 'https://go.wppool.dev/EiRM', 102 'button_text' => 'G rab Your Deals',112 'button_text' => 'Get Premium', 103 113 'color' => '#CC22FF', 104 114 ], … … 106 116 'list_id' => 26, 107 117 'button_link' => 'https://go.wppool.dev/EiRM', 108 'button_text' => 'G rab Your Deals',118 'button_text' => 'Get Premium', 109 119 'color' => '#CC22FF', 110 120 ], … … 112 122 'list_id' => 49, 113 123 'button_link' => 'https://go.wppool.dev/2rc7', 114 'button_text' => 'G rab Your Deals',124 'button_text' => 'Get Premium', 115 125 'color' => '#DC4FF3', 116 126 ], … … 118 128 'list_id' => 54, 119 129 'button_link' => 'https://go.wppool.dev/cyVx', 120 'button_text' => 'G rab Your Deals',130 'button_text' => 'Get Premium', 121 131 'color' => '#C91170', 122 132 ], 123 133 'easy_email_integration' => [ 124 134 'list_id' => 55, 125 'button_text' => 'G rab Your Deals',135 'button_text' => 'Get Premium', 126 136 ], 127 137 'easy_cloudflare_trunstile' => [ 128 138 'list_id' => 56, 129 139 'button_link' => 'https://go.wppool.dev/easycloudflare', 130 'button_text' => 'G rab Your Deals',140 'button_text' => 'Get Premium', 131 141 ], 132 142 'order_sync_with_google_sheets_for_woocommerce' => [ 133 143 'list_id' => 65, 134 144 'button_link' => 'https://go.wppool.dev/8aCD', 135 'button_text' => 'G rab Your Deals',145 'button_text' => 'Get Premium', 136 146 'color' => '#6621ba', 147 'demo_link' => 'https://go.wppool.dev/fjno', 148 'demo_text' => 'Try a FREE demo', 149 ], 150 'echo_rewards' => [ 151 'list_id' => 70, 152 'button_link' => 'https://go.wppool.dev/Bg5L', 153 'button_text' => 'Get Premium', 154 'color' => '#6A32F8', 155 'demo_link' => 'https://go.wppool.dev/7jm2', 156 'demo_text' => 'Try a FREE demo', 137 157 ], 138 158 ]; … … 306 326 <div class="_wppool-popup-countdown" style="display: none"> 307 327 <span class="_wppool-popup-countdown-text"> 308 <?php echo esc_html__( 'Deal Ends In', ' order-sync-with-google-sheets-for-woocommerce' ); ?>328 <?php echo esc_html__( 'Deal Ends In', 'wp-dark-mode' ); ?> 309 329 </span> 310 330 <div class="_wppool-popup-countdown-time"> 311 331 <div> 312 332 <span data-counter="days"> 313 <?php echo esc_html__( '00', ' order-sync-with-google-sheets-for-woocommerce' ); ?>333 <?php echo esc_html__( '00', 'wp-dark-mode' ); ?> 314 334 </span> 315 335 <span> 316 <?php echo esc_html__( 'Days', ' order-sync-with-google-sheets-for-woocommerce' ); ?>336 <?php echo esc_html__( 'Days', 'wp-dark-mode' ); ?> 317 337 </span> 318 338 </div> … … 320 340 <div> 321 341 <span data-counter="hours"> 322 <?php echo esc_html__( '00', ' order-sync-with-google-sheets-for-woocommerce' ); ?>342 <?php echo esc_html__( '00', 'wp-dark-mode' ); ?> 323 343 </span> 324 344 <span> 325 <?php echo esc_html__( 'Hours', ' order-sync-with-google-sheets-for-woocommerce' ); ?>345 <?php echo esc_html__( 'Hours', 'wp-dark-mode' ); ?> 326 346 </span> 327 347 </div> … … 329 349 <div> 330 350 <span data-counter="minutes"> 331 <?php echo esc_html__( '00', ' order-sync-with-google-sheets-for-woocommerce' ); ?>351 <?php echo esc_html__( '00', 'wp-dark-mode' ); ?> 332 352 </span> 333 353 <span> 334 <?php echo esc_html__( 'Minutes', ' order-sync-with-google-sheets-for-woocommerce' ); ?>354 <?php echo esc_html__( 'Minutes', 'wp-dark-mode' ); ?> 335 355 </span> 336 356 </div> … … 338 358 <div> 339 359 <span data-counter="seconds"> 340 <?php echo esc_html__( '00', ' order-sync-with-google-sheets-for-woocommerce' ); ?>360 <?php echo esc_html__( '00', 'wp-dark-mode' ); ?> 341 361 </span> 342 362 <span> 343 <?php echo esc_html__( 'Seconds', ' order-sync-with-google-sheets-for-woocommerce' ); ?>363 <?php echo esc_html__( 'Seconds', 'wp-dark-mode' ); ?> 344 364 </span> 345 365 </div> … … 347 367 </div> 348 368 <!-- button --> 349 <a class="_wppool-popup-button" href=""> 350 <?php 351 echo esc_html__( 352 'Upgrade to Pro', 353 'order-sync-with-google-sheets-for-woocommerce' 354 ); 355 ?> 369 <a class="_wppool-popup-button"> 370 <?php echo esc_html__( 'Upgrade to Pro', 'wp-dark-mode' ); ?> 371 </a> 372 373 <a target="_blank" class="_wppool-popup-demo-link" href=""> 374 <?php echo esc_html__( 'Try a free demo', 'wp-dark-mode' ); ?> 356 375 </a> 357 376 </div> … … 533 552 // counter to 534 553 plugin_data.to = plugin_data.to || null; 554 // demo link 555 plugin_data.demo_link = plugin_data.demo_link || null 535 556 536 557 return plugin_data; … … 625 646 $container.find("._wppool-popup-button").attr("target", "_blank"); 626 647 } 648 649 if ( data.demo_link ) { 650 $container.find("._wppool-popup-demo-link").show(); 651 $container.find("._wppool-popup-demo-link").text(data.demo_text || "Try a FREE demo"); 652 $container.find("._wppool-popup-demo-link").attr("href", data.demo_link || ""); 653 } else { 654 $container.find("._wppool-popup-demo-link").hide() 655 } 627 656 628 657 // set popup color … … 795 824 z-index: 99999999 !important; 796 825 } 797 798 826 799 827 ._wppool-popup-overlay { … … 920 948 921 949 ._wppool-popup-button { 922 height: 50px;950 height: 60px; 923 951 background: var(--wppool-popup-color); 924 952 color: #222; … … 935 963 color: white; 936 964 padding: 0 30px; 937 margin: 35px 0 ;965 margin: 35px 0 20px 0; 938 966 transition: .2s; 939 967 position: relative; … … 963 991 transform: scale(.99); 964 992 } 965 }'; 993 } 994 ._wppool-popup-demo-link { 995 color: #ddd; 996 transition: .2s ease-in-out; 997 cursor: pointer; 998 text-decoration: none; 999 padding-bottom: 10px; 1000 } 1001 ._wppool-popup-demo-link:hover { 1002 color: #ddd; 1003 opacity: .9; 1004 } 1005 '; 966 1006 967 1007 return apply_filters( 'wppool_inline_styles', $css ); … … 977 1017 978 1018 // Localize script. 979 wp_localize_script( 980 'wppool-plugins', 981 'WPPOOL_Plugins', 982 [ 983 'plugins' => $this->get_plugins(), 984 'debug' => defined( 'WP_DEBUG' ) && WP_DEBUG, 985 ] 986 ); 1019 wp_localize_script( 'wppool-plugins', 'WPPOOL_Plugins', [ 1020 'plugins' => $this->get_plugins(), 1021 'debug' => defined( 'WP_DEBUG' ) && WP_DEBUG, 1022 ] ); 987 1023 988 1024 wp_enqueue_script( 'wppool-plugins' ); … … 1174 1210 */ 1175 1211 public function subscribe( $tag = 'free' ) { 1176 $data = array_merge( 1177 $this->user_data, 1178 [ 1179 'tags' => [ $this->get_tag_id( $tag ) ], 1180 'lists' => $this->get_list_id(), 1181 ] 1182 ); 1212 $data = array_merge( $this->user_data, [ 1213 'tags' => [ $this->get_tag_id( $tag ) ], 1214 'lists' => $this->get_list_id(), 1215 ] ); 1183 1216 1184 1217 return $this->sent_to_fluent_server( $data ); … … 1192 1225 */ 1193 1226 public function unsubscribe_plugin() { 1194 $data = array_merge( 1195 $this->user_data, 1196 [ 1197 'remove_lists' => $this->get_list_id(), 1198 ] 1199 ); 1227 $data = array_merge( $this->user_data, [ 1228 'remove_lists' => $this->get_list_id(), 1229 ] ); 1200 1230 1201 1231 return $this->sent_to_fluent_server( $data ); … … 1210 1240 */ 1211 1241 public function unsubscribe_tag( $tag = 'free' ) { 1212 $data = array_merge( 1213 $this->user_data, 1214 [ 1215 'remove_tags' => $this->get_tag_id( $tag ), 1216 ] 1217 ); 1242 $data = array_merge( $this->user_data, [ 1243 'remove_tags' => $this->get_tag_id( $tag ), 1244 ] ); 1218 1245 1219 1246 return $this->sent_to_fluent_server( $data ); … … 1251 1278 1252 1279 // Add plugin image. 1253 add_filter( 1254 'wppool_plugins', 1255 function ( $plugins ) use ( $instance, $image_url ) { 1256 $plugins[ $instance->plugin_id ]['background_image'] = isset( $image_url ) ? $image_url : $instance->get_plugin_image(); 1257 1258 return $plugins; 1259 } 1260 ); 1280 add_filter( 'wppool_plugins', function ( $plugins ) use ( $instance, $image_url ) { 1281 $plugins[ $instance->plugin_id ]['background_image'] = isset( $image_url ) ? $image_url : $instance->get_plugin_image(); 1282 1283 return $plugins; 1284 } ); 1261 1285 1262 1286 // Trigger appsero. … … 1267 1291 1268 1292 /** 1269 * Set image until 1270 * 1271 * @param string $image_url The image url. 1272 * @param string $to End date. Default is 2 weeks from now. 1273 * @param string $from Start from. Default is now. 1293 * Set campaign details. 1294 * 1295 * @param string $image_url The image URL for the campaign. 1296 * @param string $to End date for the campaign. 1297 * @param string $from Start date for the campaign. 1298 * @param string $button_text The custom CTA text for the button. 1274 1299 * @return mixed 1275 1300 */ 1276 public function set_campaign( $image_url = null, $to = null, $from = null ) {1301 public function set_campaign( $image_url = null, $to = null, $from = null, $button_text = 'Get Premium' ) { 1277 1302 // Bailout if image url is not valid. 1278 1303 if ( ! $image_url ) { … … 1280 1305 } 1281 1306 1282 // Set from now if it's not set. 1283 $from_time = $from ? strtotime( $from . ' 00:00:01' ) : strtotime( 'now' ); 1284 1285 // Set to 2 weeks from now if it's not set. 1286 $to_time = $to ? strtotime( $to . ' 23:59:59' ) : strtotime( '+2 weeks' ); 1287 1307 // Set default times if not provided. 1308 $from_time = $from ? strtotime( $from ) : strtotime( 'now' ); 1309 $to_time = $to ? strtotime( $to ) : strtotime( '+2 weeks' ); 1288 1310 $current_time = strtotime( 'now' ); 1289 1311 … … 1293 1315 } 1294 1316 1295 // Modify the plugin data. 1296 add_filter( 1297 'wppool_plugins', 1298 function ( $plugins ) use ( $image_url, $to, $from ) { 1299 1300 $plugins[ $this->plugin_id ]['background_image'] = $image_url; 1301 $plugins[ $this->plugin_id ]['from'] = $from; 1302 $plugins[ $this->plugin_id ]['to'] = $to; 1303 1304 return $plugins; 1305 } 1306 ); 1317 // Modify the plugin data to include the campaign image, date range, and button text. 1318 add_filter( 'wppool_plugins', function ( $plugins ) use ( $image_url, $to, $from, $button_text ) { 1319 $plugins[ $this->plugin_id ]['background_image'] = $image_url; 1320 $plugins[ $this->plugin_id ]['from'] = $from; 1321 $plugins[ $this->plugin_id ]['to'] = $to; 1322 $plugins[ $this->plugin_id ]['button_text'] = $button_text; 1323 1324 return $plugins; 1325 } ); 1307 1326 } 1308 1327 } … … 1322 1341 * @return mixed 1323 1342 */ 1324 function wppool_plugin_init( $plugin_id = 'wp_dark_mode', $image_url = null ) { //phpcs:ignore1343 function wppool_plugin_init( $plugin_id = 'wp_dark_mode', $image_url = null ) { 1325 1344 return WPPOOL_Plugin::init( $plugin_id, $image_url ); 1326 1345 } 1327 1346 } 1328 -
order-sync-with-google-sheets-for-woocommerce/trunk/order-sync-with-google-sheets-for-woocommerce.php
r3211100 r3217104 4 4 * Plugin URI: https://wcordersync.com/ 5 5 * Description: Sync WooCommerce orders with Google Sheets. Perform WooCommerce order sync, e-commerce order management and sales order management from Google Sheets. 6 * Version: 1.11. 26 * Version: 1.11.3 7 7 * Author: WC Order Sync 8 8 * Author URI: https://wcordersync.com/ … … 21 21 */ 22 22 define( 'OSGSW_FILE', __FILE__ ); 23 define( 'OSGSW_VERSION', '1.11. 2' );23 define( 'OSGSW_VERSION', '1.11.3' ); 24 24 /** 25 25 * Loading base file -
order-sync-with-google-sheets-for-woocommerce/trunk/readme.txt
r3211100 r3217104 5 5 Tested up to: 6.7 6 6 Requires PHP: 5.6 7 Stable tag: 1.11. 27 Stable tag: 1.11.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 151 151 152 152 == Changelog == 153 = 1.11.3 - 05 January 2025 = 154 * **Improvement:** SDK updated. 153 155 154 156 = 1.11.2 - 20 Dec 2024 =
Note: See TracChangeset
for help on using the changeset viewer.