| @@ -270,9 +270,9 @@ | ||
| 270 | 270 | <?php esc_html_e('conversations', 'chatbot'); ?> <?php esc_html_e('with if else logic', 'chatbot'); ?> . <?php esc_html_e('Conversations or forms can be', 'chatbot'); ?> <?php esc_html_e('eMailed', 'chatbot'); ?> <?php esc_html_e('to you and', 'chatbot'); ?> <?php esc_html_e('saved in the database', 'chatbot'); ?>. |
| 271 | 271 | </p> |
| 272 | 272 | <h4><?php esc_html_e('Conversational Form Builder Free or Pro version works with the WPBot Free or Pro versions.', 'chatbot'); ?></h4> |
| 273 | 273 | <a class="FormBuilder" href="https://wordpress.org/plugins/conversational-forms/" target="_blank"><?php esc_html_e('Download Free Version', 'chatbot'); ?></a> |
| 274 | - <a class="FormBuilder" href="https://www.quantumcloud.com/products/conversations-and-form-builder/" target="_blank"><?php esc_html_e('Grab the Pro version', 'chatbot'); ?></a> | |
| 274 | + <a class="FormBuilder" href="https://www.quantumcloud.net/products/conversations-and-form-builder/" target="_blank"><?php esc_html_e('Grab the Pro version', 'chatbot'); ?></a> | |
| 275 | 275 | <h4><?php esc_html_e('What Can You Do with it?', 'chatbot'); ?></h4> |
| 276 | 276 | <p><?php esc_html_e('Conversation Forms allows you to create a wide variety of forms, that might include:', 'chatbot'); ?></p> |
| 277 | 277 | <ul> |
| 278 | 278 | <li><?php esc_html_e('Create menu or button driven conversations', 'chatbot'); ?></li> |
| @@ -603,11 +603,11 @@ | ||
| 603 | 603 | flex-direction: column; |
| 604 | 604 | position: relative; |
| 605 | 605 | } |
| 606 | 606 | .wpbot-checkbox-card input[type="checkbox"]:checked + .card-body { |
| 607 | - border-color: #5b4e96; | |
| 607 | + border-color: var(--woobot-primary); | |
| 608 | 608 | background: #eff6ff; |
| 609 | - box-shadow: 0 0 0 1px #5b4e96, 0 8px 24px rgba(37, 99, 235, 0.15); | |
| 609 | + box-shadow: 0 0 0 1px var(--woobot-primary), 0 8px 24px rgba(37, 99, 235, 0.15); | |
| 610 | 610 | } |
| 611 | 611 | .wpbot-checkbox-card .check-icon { |
| 612 | 612 | position: absolute; |
| 613 | 613 | top: 30px; |
| @@ -623,10 +623,10 @@ | ||
| 623 | 623 | transition: all 0.2s ease; |
| 624 | 624 | z-index: 2; |
| 625 | 625 | } |
| 626 | 626 | .wpbot-checkbox-card input[type="checkbox"]:checked + .card-body .check-icon { |
| 627 | - background: #5b4e96; | |
| 628 | - border-color: #5b4e96; | |
| 627 | + background: var(--woobot-primary); | |
| 628 | + border-color: var(--woobot-primary); | |
| 629 | 629 | } |
| 630 | 630 | .wpbot-checkbox-card .check-icon svg { |
| 631 | 631 | width: 14px; |
| 632 | 632 | height: 14px; |
| @@ -654,9 +654,9 @@ | ||
| 654 | 654 | } |
| 655 | 655 | .wpbot-checkbox-card input[type="checkbox"]:checked + .card-body .icon-wrapper { |
| 656 | 656 | border-color: #e0e7ff; |
| 657 | 657 | background: #f0fdf4; |
| 658 | - color: #5b4e96; | |
| 658 | + color: var(--woobot-primary); | |
| 659 | 659 | } |
| 660 | 660 | .wpbot-checkbox-card h4 { |
| 661 | 661 | margin: 0 0 8px 0 !important; |
| 662 | 662 | font-size: 16px !important; |
| @@ -725,9 +725,9 @@ | ||
| 725 | 725 | </div> |
| 726 | 726 | <div class="wpbot-cards-grid-divider"> </div> |
| 727 | 727 | <div class="wpbot-cards-grid"> |
| 728 | 728 | <label class="wpbot-checkbox-card"> |
| 729 | - <span class="pro-badge" style="display:inline-block; padding:2px 8px; background:#5B4E96; color:#fff; border-radius:20px; font-size:9px; font-weight:bold; text-transform:uppercase; vertical-align:middle;position: relative;top: 10px;z-index: 999;">PRO</span> | |
| 729 | + <span class="pro-badge" style="display:inline-block; padding:2px 8px; background:var(--woobot-primary); color:#fff; border-radius:20px; font-size:9px; font-weight:bold; text-transform:uppercase; vertical-align:middle;position: relative;top: 10px;z-index: 999;">PRO</span> | |
| 730 | 730 | <input value="1" id="skip_wp_greetings_trigger_intent" type="checkbox" name="skip_wp_greetings_trigger_intent" disabled /> |
| 731 | 731 | <div class="card-body"> |
| 732 | 732 | <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div> |
| 733 | 733 | <div class="icon-wrapper"><i class="dashicons dashicons-controls-skipforward" style="font-size:24px;width:24px;height:24px;"></i></div> |
| @@ -734,9 +734,9 @@ | ||
| 734 | 734 | <h4><?php echo esc_html__("Skip Greetings and Trigger an Intent", 'chatbot'); ?> </h4> |
| 735 | 735 | <p><?php echo esc_html__("Skip Asking for Name and Trigger an Intent", 'chatbot'); ?></p> |
| 736 | 736 | <div class="qc_wp_intent_select_container" style="margin-top: 10px; "> |
| 737 | 737 | <div style="margin-bottom: 8px;"> |
| 738 | - <label style="font-weight: 600; font-size: 13px; color: #5b4e96; display: block; margin-bottom: 4px;"><?php esc_html_e('Select an Intent for non logged in user', 'chatbot'); ?></label> | |
| 738 | + <label style="font-weight: 600; font-size: 13px; color: var(--woobot-primary); display: block; margin-bottom: 4px;"><?php esc_html_e('Select an Intent for non logged in user', 'chatbot'); ?></label> | |
| 739 | 739 | <select name="qlcd_wp_chatbot_intent_for_non_logged_in_user" id="qlcd_wp_chatbot_intent_for_non_logged_in_user" style="width: 100%; max-width: 250px;" disabled> |
| 740 | 740 | <option value=""><?php esc_html_e('Select Intent', 'chatbot'); ?></option> |
| 741 | 741 | |
| 742 | 742 | </select> |
| @@ -741,9 +741,9 @@ | ||
| 741 | 741 | |
| 742 | 742 | </select> |
| 743 | 743 | </div> |
| 744 | 744 | <div> |
| 745 | - <label style="font-weight: 600; font-size: 13px; color: #5b4e96; display: block; margin-bottom: 4px;"><?php esc_html_e('Select an Intent for Logged in User', 'chatbot'); ?></label> | |
| 745 | + <label style="font-weight: 600; font-size: 13px; color: var(--woobot-primary); display: block; margin-bottom: 4px;"><?php esc_html_e('Select an Intent for Logged in User', 'chatbot'); ?></label> | |
| 746 | 746 | <select name="qlcd_wp_chatbot_intent_for_logged_in_user" id="qlcd_wp_chatbot_intent_for_logged_in_user" style="width: 100%; max-width: 250px;" disabled> |
| 747 | 747 | <option value=""><?php esc_html_e('Select Intent', 'chatbot'); ?></option> |
| 748 | 748 | </select> |
| 749 | 749 | </div> |
| @@ -1610,9 +1610,9 @@ | ||
| 1610 | 1610 | <div class="row"> |
| 1611 | 1611 | <div class="col-xs-6"> |
| 1612 | 1612 | <div class="form-group"> |
| 1613 | 1613 | <h4 class="qc-opt-title"> |
| 1614 | - <?php esc_html_e('ChatBot Window Max Height', 'wpchatbot'); ?> | |
| 1614 | + <?php esc_html_e('ChatBot Window Max Height', 'chatbot'); ?> | |
| 1615 | 1615 | </h4> |
| 1616 | 1616 | <div class="cxsc-settings-blocks" style=" font-size: 15px;"> |
| 1617 | 1617 | <?php |
| 1618 | 1618 | $chatbot_content_max_height = get_option('chatbot_content_max_height'); |
| @@ -1628,9 +1628,9 @@ | ||
| 1628 | 1628 | </div> |
| 1629 | 1629 | <div class="col-xs-6"> |
| 1630 | 1630 | <div class="form-group"> |
| 1631 | 1631 | <h4 class="qc-opt-title"> |
| 1632 | - <?php esc_html_e('ChatBot Window Max Height ( Mobile Device )', 'wpchatbot'); ?> | |
| 1632 | + <?php esc_html_e('ChatBot Window Max Height ( Mobile Device )', 'chatbot'); ?> | |
| 1633 | 1633 | </h4> |
| 1634 | 1634 | <div class="cxsc-settings-blocks" style=" font-size: 15px;"> |
| 1635 | 1635 | <?php |
| 1636 | 1636 | $chatbot_content_max_height_responsive = get_option('chatbot_content_max_height_responsive'); |
| @@ -1839,10 +1839,10 @@ | ||
| 1839 | 1839 | <!-- ===== Custom Icon Video / YouTube ===== --> |
| 1840 | 1840 | <div class="row"> |
| 1841 | 1841 | <div class="col-xs-12"> |
| 1842 | 1842 | <div class="form-group"> |
| 1843 | - <h4 class="qc-opt-title"><?php echo esc_html__('Custom Icon Video / YouTube Link', 'wpchatbot'); ?></h4> | |
| 1844 | - <p style="margin-bottom:8px;"><?php echo esc_html__('Upload a short video file or paste a YouTube embed URL to use instead of the wpbot icon.', 'wpchatbot'); ?></p> | |
| 1843 | + <h4 class="qc-opt-title"><?php echo esc_html__('Custom Icon Video / YouTube Link', 'chatbot'); ?></h4> | |
| 1844 | + <p style="margin-bottom:8px;"><?php echo esc_html__('Upload a short video file or paste a YouTube embed URL to use instead of the wpbot icon.', 'chatbot'); ?></p> | |
| 1845 | 1845 | <div class="cxsc-settings-blocks"> |
| 1846 | 1846 | |
| 1847 | 1847 | <?php |
| 1848 | 1848 | $wp_chatbot_icon_video = get_option('wp_chatbot_icon_video', ''); |
| @@ -1850,15 +1850,15 @@ | ||
| 1850 | 1850 | $is_video = !$is_youtube && $wp_chatbot_icon_video !== ''; |
| 1851 | 1851 | ?> |
| 1852 | 1852 | |
| 1853 | 1853 | <!-- Video Upload --> |
| 1854 | - <p style="font-weight:600;margin-bottom:4px;"><?php echo esc_html__('Upload Video File', 'wpchatbot'); ?></p> | |
| 1854 | + <p style="font-weight:600;margin-bottom:4px;"><?php echo esc_html__('Upload Video File', 'chatbot'); ?></p> | |
| 1855 | 1855 | <input type="hidden" |
| 1856 | 1856 | name="wp_chatbot_icon_video" |
| 1857 | 1857 | id="wp_chatbot_icon_video" |
| 1858 | 1858 | value="<?php echo esc_url($wp_chatbot_icon_video); ?>" /> |
| 1859 | 1859 | <button type="button" id="wp_chatbot_icon_video_btn" class="button"> |
| 1860 | - <?php echo esc_html__('Upload Video', 'wpchatbot'); ?> | |
| 1860 | + <?php echo esc_html__('Upload Video', 'chatbot'); ?> | |
| 1861 | 1861 | </button> |
| 1862 | 1862 | <?php if ($is_video): ?> |
| 1863 | 1863 | <span style="margin-left:8px;vertical-align:middle;"> |
| 1864 | 1864 | <video src="<?php echo esc_url($wp_chatbot_icon_video); ?>" width="80" height="80" style="border-radius:50%;object-fit:cover;" muted loop autoplay playsinline></video> |
| @@ -1864,13 +1864,13 @@ | ||
| 1864 | 1864 | <video src="<?php echo esc_url($wp_chatbot_icon_video); ?>" width="80" height="80" style="border-radius:50%;object-fit:cover;" muted loop autoplay playsinline></video> |
| 1865 | 1865 | </span> |
| 1866 | 1866 | <?php endif; ?> |
| 1867 | 1867 | <button type="button" id="wp_chatbot_icon_video_clear_btn" class="button" style="margin-left:6px;<?php echo ($wp_chatbot_icon_video === '' || $is_youtube) ? 'display:none;' : ''; ?>"> |
| 1868 | - <?php echo esc_html__('Remove Video', 'wpchatbot'); ?> | |
| 1868 | + <?php echo esc_html__('Remove Video', 'chatbot'); ?> | |
| 1869 | 1869 | </button> |
| 1870 | 1870 | |
| 1871 | 1871 | <!-- YouTube URL --> |
| 1872 | - <p style="font-weight:600;margin-top:12px;margin-bottom:4px;"><?php echo esc_html__('— or — YouTube Embed URL', 'wpchatbot'); ?></p> | |
| 1872 | + <p style="font-weight:600;margin-top:12px;margin-bottom:4px;"><?php echo esc_html__('— or — YouTube Embed URL', 'chatbot'); ?></p> | |
| 1873 | 1873 | <?php $youtube_url_val = $is_youtube ? esc_url($wp_chatbot_icon_video) : ''; ?> |
| 1874 | 1874 | <input type="url" |
| 1875 | 1875 | name="wp_chatbot_icon_youtube_url" |
| 1876 | 1876 | id="wp_chatbot_icon_youtube_url" |
| @@ -1877,13 +1877,13 @@ | ||
| 1877 | 1877 | class="regular-text" |
| 1878 | 1878 | placeholder="https://www.youtube.com/embed/VIDEO_ID" |
| 1879 | 1879 | value="<?php echo esc_url( $youtube_url_val ); ?>" /> |
| 1880 | 1880 | <button type="button" id="wp_chatbot_icon_youtube_url_clear_btn" class="button" style="margin-left:6px;<?php echo ($youtube_url_val === '' ? 'display:none;' : ''); ?>"> |
| 1881 | - <?php echo esc_html__('Remove YouTube URL', 'wpchatbot'); ?> | |
| 1881 | + <?php echo esc_html__('Remove YouTube URL', 'chatbot'); ?> | |
| 1882 | 1882 | </button> |
| 1883 | - <p class="description"><?php echo esc_html__('Paste the YouTube embed URL (e.g. https://www.youtube.com/embed/xxxxx). This will override the uploaded video above.', 'wpchatbot'); ?></p> | |
| 1883 | + <p class="description"><?php echo esc_html__('Paste the YouTube embed URL (e.g. https://www.youtube.com/embed/xxxxx). This will override the uploaded video above.', 'chatbot'); ?></p> | |
| 1884 | 1884 | |
| 1885 | - <p style="font-weight:600;margin-top:14px;margin-bottom:4px;"><?php echo esc_html__('Autoplay Delay (seconds)', 'wpchatbot'); ?></p> | |
| 1885 | + <p style="font-weight:600;margin-top:14px;margin-bottom:4px;"><?php echo esc_html__('Autoplay Delay (seconds)', 'chatbot'); ?></p> | |
| 1886 | 1886 | <input type="number" |
| 1887 | 1887 | name="wp_chatbot_icon_video_delay" |
| 1888 | 1888 | id="wp_chatbot_icon_video_delay" |
| 1889 | 1889 | class="small-text" |
| @@ -1890,9 +1890,9 @@ | ||
| 1890 | 1890 | min="0" |
| 1891 | 1891 | max="60" |
| 1892 | 1892 | step="1" |
| 1893 | 1893 | value="<?php echo absint( get_option('wp_chatbot_icon_video_delay', 0) ); ?>" /> |
| 1894 | - <p class="description"><?php echo esc_html__('Wait this many seconds after page load before starting the video. Set to 0 for immediate autoplay.', 'wpchatbot'); ?></p> | |
| 1894 | + <p class="description"><?php echo esc_html__('Wait this many seconds after page load before starting the video. Set to 0 for immediate autoplay.', 'chatbot'); ?></p> | |
| 1895 | 1895 | |
| 1896 | 1896 | </div> |
| 1897 | 1897 | </div> |
| 1898 | 1898 | </div> |
| @@ -1904,10 +1904,10 @@ | ||
| 1904 | 1904 | // Video upload via WP Media Library |
| 1905 | 1905 | $('#wp_chatbot_icon_video_btn').on('click', function(e){ |
| 1906 | 1906 | e.preventDefault(); |
| 1907 | 1907 | var frame = wp.media({ |
| 1908 | - title: '<?php echo esc_js(__('Select or Upload Video', 'wpchatbot')); ?>', | |
| 1909 | - button: { text: '<?php echo esc_js(__('Use this video', 'wpchatbot')); ?>' }, | |
| 1908 | + title: '<?php echo esc_js(__('Select or Upload Video', 'chatbot')); ?>', | |
| 1909 | + button: { text: '<?php echo esc_js(__('Use this video', 'chatbot')); ?>' }, | |
| 1910 | 1910 | multiple: false, |
| 1911 | 1911 | library: { type: 'video' } |
| 1912 | 1912 | }); |
| 1913 | 1913 | frame.on('select', function(){ |
| @@ -2765,16 +2765,23 @@ | ||
| 2765 | 2765 | </div> |
| 2766 | 2766 | <div id="wp-chatbot-df-section-v2" style="display:block"> |
| 2767 | 2767 | <!-- Dialogflow V2 Configuration --> |
| 2768 | 2768 | |
| 2769 | - <?php if(!file_exists(QCLD_wpCHATBOT_GC_DIRNAME.'/autoload.php')): ?> | |
| 2769 | + <?php if(!file_exists(QCLD_wpCHATBOT_GC_DIRNAME.'/autoload.php')): | |
| 2770 | + global $wp_filesystem; | |
| 2771 | + if ( empty( $wp_filesystem ) ) { | |
| 2772 | + require_once ABSPATH . 'wp-admin/includes/file.php'; | |
| 2773 | + WP_Filesystem(); | |
| 2774 | + } | |
| 2775 | + $qcld_wpchatbot_gc_root_writable = ( $wp_filesystem && $wp_filesystem->is_writable( QCLD_wpCHATBOT_GC_ROOT ) ); | |
| 2776 | + ?> | |
| 2770 | 2777 | <div class="form-group"> <br> |
| 2771 | 2778 | <h4 class="qc-opt-title" style="color:red "><?php esc_html_e('For Interacting with Dialogflow V2 the Google Client Package is Required!', 'chatbot'); ?></h4> |
| 2772 | 2779 | <p><?php esc_html_e('Please click the download button below to download the Google Client package. The package will be downloaded inside your Wordpress`s', 'chatbot'); ?> <b><?php esc_html_e('/wp-content', 'chatbot'); ?></b> <?php esc_html_e('folder. This package is around', 'chatbot'); ?> <b><?php esc_html_e('0 MB', 'chatbot'); ?></b><?php esc_html_e(' in zip file format and it will be about', 'chatbot'); ?> <b><?php esc_html_e('49 MB', 'chatbot'); ?></b> <?php esc_html_e('after unzipping. Please make sure that your server has enough space to store that package.', 'chatbot'); ?></p> |
| 2773 | 2780 | <div class="qcld-wpbot-gcdownload-area"> |
| 2774 | - <button class="btn btn-primary" id="qc_wpbot_gc_download" <?php echo (!is_writable(QCLD_wpCHATBOT_GC_ROOT)?'disabled':''); ?>><?php esc_html_e('Download and Install the Google Client', 'chatbot'); ?></button> | |
| 2781 | + <button class="btn btn-primary" id="qc_wpbot_gc_download" <?php echo ( ! $qcld_wpchatbot_gc_root_writable ? 'disabled' : '' ); ?>><?php esc_html_e('Download and Install the Google Client', 'chatbot'); ?></button> | |
| 2775 | 2782 | <?php |
| 2776 | - if(!is_writable(QCLD_wpCHATBOT_GC_ROOT)){ | |
| 2783 | + if ( ! $qcld_wpchatbot_gc_root_writable ) { | |
| 2777 | 2784 | echo '<span style="color:red;font-size: 12px; "><b>'.esc_html('wp-content').' </b> '.esc_html('folder is not writable.').'</span>'; |
| 2778 | 2785 | } |
| 2779 | 2786 | ?> |
| 2780 | 2787 | <br> |