Plugin Directory

Changeset 3217104


Ignore:
Timestamp:
01/05/2025 06:39:31 AM (14 months ago)
Author:
ordersyncplugin
Message:

Update to version 1.11.3 from GitHub

Location:
order-sync-with-google-sheets-for-woocommerce
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • order-sync-with-google-sheets-for-woocommerce/tags/1.11.3/includes/classes/class-hooks.php

    r3201033 r3217104  
    301301                $from = '2024-11-21';
    302302                $to = '2024-12-4';
     303                $cta_text = esc_html__( 'Grab Your Treat!', 'sheetstowptable' );
    303304                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 );
    305306                }
    306307            }
  • order-sync-with-google-sheets-for-woocommerce/tags/1.11.3/includes/ordersync-sdk/class-plugin.php

    r3201033 r3217104  
    6060                'list_id' => 20,
    6161                'button_link' => 'https://go.wppool.dev/LaSV',
    62                 'button_text' => 'Grab Your Deals',
     62                'button_text' => 'Get Premium',
    6363                'color' => '#FF631A',
     64                'demo_link' => 'https://go.wppool.dev/bjxy',
     65                'demo_text' => 'Try a FREE demo',
    6466            ],
    6567            'sheets_to_wp_table_live_sync' => [
    6668                'list_id' => 21,
    6769                'button_link' => 'https://go.wppool.dev/Rimc',
    68                 'button_text' => 'Grab Your Deals',
     70                'button_text' => 'Get Premium',
    6971                'color' => '#1AD26E',
     72                'demo_link' => 'https://go.wppool.dev/Yjcr',
     73                'demo_text' => 'Try a FREE demo',
    7074            ],
    7175            'easy_video_reviews' => [
    7276                'list_id' => 22,
    73                 'button_text' => 'Grab Your Deals',
     77                'button_text' => 'Get Premium',
    7478                'color' => '#0288FD',
     79                'demo_link' => 'https://go.wppool.dev/VjWZ',
     80                'demo_text' => 'Try a FREE demo',
    7581            ],
    7682            'webinar_and_video_conference_with_jitsi_meet' => [
    7783                'list_id' => 23,
    7884                'button_link' => 'https://go.wppool.dev/8iQC',
    79                 'button_text' => 'Grab Your Deals',
     85                'button_text' => 'Get Premium',
    8086                'color' => '#1D5AE4',
     87                'demo_link' => 'https://go.wppool.dev/ajve',
     88                'demo_text' => 'Try a FREE demo',
    8189            ],
    8290            'zero_bs_accounting' => [
    8391                'list_id' => 24,
    8492                'button_link' => 'https://go.wppool.dev/zbs',
    85                 'button_text' => 'Grab Your Deals',
     93                'button_text' => 'Get Premium',
    8694            ],
    8795            'stock_sync_with_google_sheet_for_woocommerce' => [
    8896                'list_id' => 46,
    8997                'button_link' => 'https://go.wppool.dev/dr8d',
    90                 'button_text' => 'Grab Your Deals',
     98                'button_text' => 'Get Premium',
    9199                'color' => '#8F5CCB',
     100                'demo_link' => 'https://go.wppool.dev/kjbW',
     101                'demo_text' => 'Try a FREE demo',
    92102            ],
    93103            'stock_notifier_for_woocommerce' => [
    94104                'list_id' => 47,
    95105                'button_link' => 'https://go.wppool.dev/hiE1',
    96                 'button_text' => 'Grab Your Deals',
     106                'button_text' => 'Get Premium',
    97107                'color' => '#3FC250',
    98108            ],
     
    100110                'list_id' => 26,
    101111                'button_link' => 'https://go.wppool.dev/EiRM',
    102                 'button_text' => 'Grab Your Deals',
     112                'button_text' => 'Get Premium',
    103113                'color' => '#CC22FF',
    104114            ],
     
    106116                'list_id' => 26,
    107117                'button_link' => 'https://go.wppool.dev/EiRM',
    108                 'button_text' => 'Grab Your Deals',
     118                'button_text' => 'Get Premium',
    109119                'color' => '#CC22FF',
    110120            ],
     
    112122                'list_id' => 49,
    113123                'button_link' => 'https://go.wppool.dev/2rc7',
    114                 'button_text' => 'Grab Your Deals',
     124                'button_text' => 'Get Premium',
    115125                'color' => '#DC4FF3',
    116126            ],
     
    118128                'list_id' => 54,
    119129                'button_link' => 'https://go.wppool.dev/cyVx',
    120                 'button_text' => 'Grab Your Deals',
     130                'button_text' => 'Get Premium',
    121131                'color' => '#C91170',
    122132            ],
    123133            'easy_email_integration' => [
    124134                'list_id' => 55,
    125                 'button_text' => 'Grab Your Deals',
     135                'button_text' => 'Get Premium',
    126136            ],
    127137            'easy_cloudflare_trunstile' => [
    128138                'list_id' => 56,
    129139                'button_link' => 'https://go.wppool.dev/easycloudflare',
    130                 'button_text' => 'Grab Your Deals',
     140                'button_text' => 'Get Premium',
    131141            ],
    132142            'order_sync_with_google_sheets_for_woocommerce' => [
    133143                'list_id' => 65,
    134144                'button_link' => 'https://go.wppool.dev/8aCD',
    135                 'button_text' => 'Grab Your Deals',
     145                'button_text' => 'Get Premium',
    136146                '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',
    137157            ],
    138158        ];
     
    306326                        <div class="_wppool-popup-countdown" style="display: none">
    307327                            <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' ); ?>
    309329                            </span>
    310330                            <div class="_wppool-popup-countdown-time">
    311331                                <div>
    312332                                    <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' ); ?>
    314334                                    </span>
    315335                                    <span>
    316                                         <?php echo esc_html__( 'Days', 'order-sync-with-google-sheets-for-woocommerce' ); ?>
     336                                        <?php echo esc_html__( 'Days', 'wp-dark-mode' ); ?>
    317337                                    </span>
    318338                                </div>
     
    320340                                <div>
    321341                                    <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' ); ?>
    323343                                    </span>
    324344                                    <span>
    325                                         <?php echo esc_html__( 'Hours', 'order-sync-with-google-sheets-for-woocommerce' ); ?>
     345                                        <?php echo esc_html__( 'Hours', 'wp-dark-mode' ); ?>
    326346                                    </span>
    327347                                </div>
     
    329349                                <div>
    330350                                    <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' ); ?>
    332352                                    </span>
    333353                                    <span>
    334                                         <?php echo esc_html__( 'Minutes', 'order-sync-with-google-sheets-for-woocommerce' ); ?>
     354                                        <?php echo esc_html__( 'Minutes', 'wp-dark-mode' ); ?>
    335355                                    </span>
    336356                                </div>
     
    338358                                <div>
    339359                                    <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' ); ?>
    341361                                    </span>
    342362                                    <span>
    343                                         <?php echo esc_html__( 'Seconds', 'order-sync-with-google-sheets-for-woocommerce' ); ?>
     363                                        <?php echo esc_html__( 'Seconds', 'wp-dark-mode' ); ?>
    344364                                    </span>
    345365                                </div>
     
    347367                        </div>
    348368                        <!-- 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' ); ?>
    356375                        </a>
    357376                    </div>
     
    533552                        // counter to
    534553                        plugin_data.to = plugin_data.to || null;
     554                        // demo link
     555                        plugin_data.demo_link = plugin_data.demo_link || null
    535556       
    536557                        return plugin_data;
     
    625646                            $container.find("._wppool-popup-button").attr("target", "_blank");
    626647                        }
     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                        }
    627656       
    628657                        // set popup color
     
    795824                z-index: 99999999 !important;
    796825            }
    797        
    798826       
    799827            ._wppool-popup-overlay {
     
    920948
    921949            ._wppool-popup-button {
    922                 height: 50px;
     950                height: 60px;
    923951                background: var(--wppool-popup-color);
    924952                color: #222;
     
    935963                color: white;
    936964                padding: 0 30px;
    937                 margin: 35px 0;
     965                margin: 35px 0 20px 0;
    938966                transition: .2s;
    939967                position: relative;
     
    963991                    transform: scale(.99);
    964992                }
    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            ';
    9661006
    9671007            return apply_filters( 'wppool_inline_styles', $css );
     
    9771017
    9781018            // 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            ] );
    9871023
    9881024            wp_enqueue_script( 'wppool-plugins' );
     
    11741210         */
    11751211        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            ] );
    11831216
    11841217            return $this->sent_to_fluent_server( $data );
     
    11921225         */
    11931226        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            ] );
    12001230
    12011231            return $this->sent_to_fluent_server( $data );
     
    12101240         */
    12111241        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            ] );
    12181245
    12191246            return $this->sent_to_fluent_server( $data );
     
    12511278
    12521279            // 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            } );
    12611285
    12621286            // Trigger appsero.
     
    12671291
    12681292        /**
    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.
    12741299         * @return mixed
    12751300         */
    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' ) {
    12771302            // Bailout if image url is not valid.
    12781303            if ( ! $image_url ) {
     
    12801305            }
    12811306
    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' );
    12881310            $current_time = strtotime( 'now' );
    12891311
     
    12931315            }
    12941316
    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            } );
    13071326        }
    13081327    }
     
    13221341     * @return mixed
    13231342     */
    1324     function wppool_plugin_init( $plugin_id = 'wp_dark_mode', $image_url = null ) { //phpcs:ignore
     1343    function wppool_plugin_init( $plugin_id = 'wp_dark_mode', $image_url = null ) {
    13251344        return WPPOOL_Plugin::init( $plugin_id, $image_url );
    13261345    }
    13271346}
    1328 
  • order-sync-with-google-sheets-for-woocommerce/tags/1.11.3/order-sync-with-google-sheets-for-woocommerce.php

    r3211100 r3217104  
    44 * Plugin URI: https://wcordersync.com/
    55 * 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.2
     6 * Version: 1.11.3
    77 * Author: WC Order Sync
    88 * Author URI: https://wcordersync.com/
     
    2121 */
    2222define( 'OSGSW_FILE', __FILE__ );
    23 define( 'OSGSW_VERSION', '1.11.2' );
     23define( 'OSGSW_VERSION', '1.11.3' );
    2424/**
    2525 * Loading base file
  • order-sync-with-google-sheets-for-woocommerce/tags/1.11.3/readme.txt

    r3211100 r3217104  
    55Tested up to: 6.7
    66Requires PHP: 5.6
    7 Stable tag: 1.11.2
     7Stable tag: 1.11.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    151151
    152152== Changelog ==
     153= 1.11.3 - 05 January 2025 =
     154* **Improvement:** SDK updated.
    153155
    154156= 1.11.2 - 20 Dec 2024 =
  • order-sync-with-google-sheets-for-woocommerce/trunk/includes/classes/class-hooks.php

    r3201033 r3217104  
    301301                $from = '2024-11-21';
    302302                $to = '2024-12-4';
     303                $cta_text = esc_html__( 'Grab Your Treat!', 'sheetstowptable' );
    303304                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 );
    305306                }
    306307            }
  • order-sync-with-google-sheets-for-woocommerce/trunk/includes/ordersync-sdk/class-plugin.php

    r3201033 r3217104  
    6060                'list_id' => 20,
    6161                'button_link' => 'https://go.wppool.dev/LaSV',
    62                 'button_text' => 'Grab Your Deals',
     62                'button_text' => 'Get Premium',
    6363                'color' => '#FF631A',
     64                'demo_link' => 'https://go.wppool.dev/bjxy',
     65                'demo_text' => 'Try a FREE demo',
    6466            ],
    6567            'sheets_to_wp_table_live_sync' => [
    6668                'list_id' => 21,
    6769                'button_link' => 'https://go.wppool.dev/Rimc',
    68                 'button_text' => 'Grab Your Deals',
     70                'button_text' => 'Get Premium',
    6971                'color' => '#1AD26E',
     72                'demo_link' => 'https://go.wppool.dev/Yjcr',
     73                'demo_text' => 'Try a FREE demo',
    7074            ],
    7175            'easy_video_reviews' => [
    7276                'list_id' => 22,
    73                 'button_text' => 'Grab Your Deals',
     77                'button_text' => 'Get Premium',
    7478                'color' => '#0288FD',
     79                'demo_link' => 'https://go.wppool.dev/VjWZ',
     80                'demo_text' => 'Try a FREE demo',
    7581            ],
    7682            'webinar_and_video_conference_with_jitsi_meet' => [
    7783                'list_id' => 23,
    7884                'button_link' => 'https://go.wppool.dev/8iQC',
    79                 'button_text' => 'Grab Your Deals',
     85                'button_text' => 'Get Premium',
    8086                'color' => '#1D5AE4',
     87                'demo_link' => 'https://go.wppool.dev/ajve',
     88                'demo_text' => 'Try a FREE demo',
    8189            ],
    8290            'zero_bs_accounting' => [
    8391                'list_id' => 24,
    8492                'button_link' => 'https://go.wppool.dev/zbs',
    85                 'button_text' => 'Grab Your Deals',
     93                'button_text' => 'Get Premium',
    8694            ],
    8795            'stock_sync_with_google_sheet_for_woocommerce' => [
    8896                'list_id' => 46,
    8997                'button_link' => 'https://go.wppool.dev/dr8d',
    90                 'button_text' => 'Grab Your Deals',
     98                'button_text' => 'Get Premium',
    9199                'color' => '#8F5CCB',
     100                'demo_link' => 'https://go.wppool.dev/kjbW',
     101                'demo_text' => 'Try a FREE demo',
    92102            ],
    93103            'stock_notifier_for_woocommerce' => [
    94104                'list_id' => 47,
    95105                'button_link' => 'https://go.wppool.dev/hiE1',
    96                 'button_text' => 'Grab Your Deals',
     106                'button_text' => 'Get Premium',
    97107                'color' => '#3FC250',
    98108            ],
     
    100110                'list_id' => 26,
    101111                'button_link' => 'https://go.wppool.dev/EiRM',
    102                 'button_text' => 'Grab Your Deals',
     112                'button_text' => 'Get Premium',
    103113                'color' => '#CC22FF',
    104114            ],
     
    106116                'list_id' => 26,
    107117                'button_link' => 'https://go.wppool.dev/EiRM',
    108                 'button_text' => 'Grab Your Deals',
     118                'button_text' => 'Get Premium',
    109119                'color' => '#CC22FF',
    110120            ],
     
    112122                'list_id' => 49,
    113123                'button_link' => 'https://go.wppool.dev/2rc7',
    114                 'button_text' => 'Grab Your Deals',
     124                'button_text' => 'Get Premium',
    115125                'color' => '#DC4FF3',
    116126            ],
     
    118128                'list_id' => 54,
    119129                'button_link' => 'https://go.wppool.dev/cyVx',
    120                 'button_text' => 'Grab Your Deals',
     130                'button_text' => 'Get Premium',
    121131                'color' => '#C91170',
    122132            ],
    123133            'easy_email_integration' => [
    124134                'list_id' => 55,
    125                 'button_text' => 'Grab Your Deals',
     135                'button_text' => 'Get Premium',
    126136            ],
    127137            'easy_cloudflare_trunstile' => [
    128138                'list_id' => 56,
    129139                'button_link' => 'https://go.wppool.dev/easycloudflare',
    130                 'button_text' => 'Grab Your Deals',
     140                'button_text' => 'Get Premium',
    131141            ],
    132142            'order_sync_with_google_sheets_for_woocommerce' => [
    133143                'list_id' => 65,
    134144                'button_link' => 'https://go.wppool.dev/8aCD',
    135                 'button_text' => 'Grab Your Deals',
     145                'button_text' => 'Get Premium',
    136146                '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',
    137157            ],
    138158        ];
     
    306326                        <div class="_wppool-popup-countdown" style="display: none">
    307327                            <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' ); ?>
    309329                            </span>
    310330                            <div class="_wppool-popup-countdown-time">
    311331                                <div>
    312332                                    <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' ); ?>
    314334                                    </span>
    315335                                    <span>
    316                                         <?php echo esc_html__( 'Days', 'order-sync-with-google-sheets-for-woocommerce' ); ?>
     336                                        <?php echo esc_html__( 'Days', 'wp-dark-mode' ); ?>
    317337                                    </span>
    318338                                </div>
     
    320340                                <div>
    321341                                    <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' ); ?>
    323343                                    </span>
    324344                                    <span>
    325                                         <?php echo esc_html__( 'Hours', 'order-sync-with-google-sheets-for-woocommerce' ); ?>
     345                                        <?php echo esc_html__( 'Hours', 'wp-dark-mode' ); ?>
    326346                                    </span>
    327347                                </div>
     
    329349                                <div>
    330350                                    <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' ); ?>
    332352                                    </span>
    333353                                    <span>
    334                                         <?php echo esc_html__( 'Minutes', 'order-sync-with-google-sheets-for-woocommerce' ); ?>
     354                                        <?php echo esc_html__( 'Minutes', 'wp-dark-mode' ); ?>
    335355                                    </span>
    336356                                </div>
     
    338358                                <div>
    339359                                    <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' ); ?>
    341361                                    </span>
    342362                                    <span>
    343                                         <?php echo esc_html__( 'Seconds', 'order-sync-with-google-sheets-for-woocommerce' ); ?>
     363                                        <?php echo esc_html__( 'Seconds', 'wp-dark-mode' ); ?>
    344364                                    </span>
    345365                                </div>
     
    347367                        </div>
    348368                        <!-- 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' ); ?>
    356375                        </a>
    357376                    </div>
     
    533552                        // counter to
    534553                        plugin_data.to = plugin_data.to || null;
     554                        // demo link
     555                        plugin_data.demo_link = plugin_data.demo_link || null
    535556       
    536557                        return plugin_data;
     
    625646                            $container.find("._wppool-popup-button").attr("target", "_blank");
    626647                        }
     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                        }
    627656       
    628657                        // set popup color
     
    795824                z-index: 99999999 !important;
    796825            }
    797        
    798826       
    799827            ._wppool-popup-overlay {
     
    920948
    921949            ._wppool-popup-button {
    922                 height: 50px;
     950                height: 60px;
    923951                background: var(--wppool-popup-color);
    924952                color: #222;
     
    935963                color: white;
    936964                padding: 0 30px;
    937                 margin: 35px 0;
     965                margin: 35px 0 20px 0;
    938966                transition: .2s;
    939967                position: relative;
     
    963991                    transform: scale(.99);
    964992                }
    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            ';
    9661006
    9671007            return apply_filters( 'wppool_inline_styles', $css );
     
    9771017
    9781018            // 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            ] );
    9871023
    9881024            wp_enqueue_script( 'wppool-plugins' );
     
    11741210         */
    11751211        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            ] );
    11831216
    11841217            return $this->sent_to_fluent_server( $data );
     
    11921225         */
    11931226        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            ] );
    12001230
    12011231            return $this->sent_to_fluent_server( $data );
     
    12101240         */
    12111241        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            ] );
    12181245
    12191246            return $this->sent_to_fluent_server( $data );
     
    12511278
    12521279            // 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            } );
    12611285
    12621286            // Trigger appsero.
     
    12671291
    12681292        /**
    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.
    12741299         * @return mixed
    12751300         */
    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' ) {
    12771302            // Bailout if image url is not valid.
    12781303            if ( ! $image_url ) {
     
    12801305            }
    12811306
    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' );
    12881310            $current_time = strtotime( 'now' );
    12891311
     
    12931315            }
    12941316
    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            } );
    13071326        }
    13081327    }
     
    13221341     * @return mixed
    13231342     */
    1324     function wppool_plugin_init( $plugin_id = 'wp_dark_mode', $image_url = null ) { //phpcs:ignore
     1343    function wppool_plugin_init( $plugin_id = 'wp_dark_mode', $image_url = null ) {
    13251344        return WPPOOL_Plugin::init( $plugin_id, $image_url );
    13261345    }
    13271346}
    1328 
  • order-sync-with-google-sheets-for-woocommerce/trunk/order-sync-with-google-sheets-for-woocommerce.php

    r3211100 r3217104  
    44 * Plugin URI: https://wcordersync.com/
    55 * 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.2
     6 * Version: 1.11.3
    77 * Author: WC Order Sync
    88 * Author URI: https://wcordersync.com/
     
    2121 */
    2222define( 'OSGSW_FILE', __FILE__ );
    23 define( 'OSGSW_VERSION', '1.11.2' );
     23define( 'OSGSW_VERSION', '1.11.3' );
    2424/**
    2525 * Loading base file
  • order-sync-with-google-sheets-for-woocommerce/trunk/readme.txt

    r3211100 r3217104  
    55Tested up to: 6.7
    66Requires PHP: 5.6
    7 Stable tag: 1.11.2
     7Stable tag: 1.11.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    151151
    152152== Changelog ==
     153= 1.11.3 - 05 January 2025 =
     154* **Improvement:** SDK updated.
    153155
    154156= 1.11.2 - 20 Dec 2024 =
Note: See TracChangeset for help on using the changeset viewer.