| @@ -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> |
| @@ -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> |