<?php wplc_stats("settings"); ?> <div class="wrap"> <style> .wplc_light_grey{ color: #666; } </style> <div id="icon-edit" class="icon32 icon32-posts-post"> <br> </div> <h2><?php _e("WP Live Chat Support Settings", "wplivechat"); ?> </h2> <?php $wplc_settings = get_option("WPLC_SETTINGS"); if ($wplc_settings["wplc_settings_align"]) { $wplc_settings_align[intval($wplc_settings["wplc_settings_align"])] = "SELECTED"; } if ($wplc_settings["wplc_settings_enabled"]) { $wplc_settings_enabled[intval($wplc_settings["wplc_settings_enabled"])] = "SELECTED"; } if ($wplc_settings["wplc_settings_fill"]) { $wplc_settings_fill = $wplc_settings["wplc_settings_fill"]; } else { $wplc_settings_fill = "ed832f"; } if ($wplc_settings["wplc_settings_font"]) {
function wplc_support_menu() { wplc_stats("support"); ?> <h1><?php _e("WP Live Chat Support", "wplivechat"); ?> </h1> <div class="wplc_row"> <div class='wplc_row_col' style='background-color:#FFF;'> <h2><i class="fa fa-book fa-2x"></i> <?php _e("Documentation", "wplivechat"); ?> </h2> <hr /> <p><?php _e("Getting started? Read through some of these articles to help you along your way.", "wplivechat"); ?> </p> <p><strong><?php _e("Documentation:", "wplivechat"); ?> </strong></p> <ul> <li><a href='http://wp-livechat.com/documentation/minimum-system-requirements/' target='_BLANK' title='<?php _e("Minimum System Requirements", "wplivechat"); ?> '><?php _e("Minimum System Requirements", "wplivechat"); ?> </a></li> <li><a href='http://wp-livechat.com/documentation/do-i-have-to-be-logged-into-the-dashboard-to-chat-with-visitors/' target='_BLANK' title='<?php _e("Do I have to be logged into the dashboard to chat with visitors?", "wplivechat"); ?> '><?php _e("Do I have to be logged into the dashboard to chat with visitors?", "wplivechat"); ?> </a></li> <li><a href='http://wp-livechat.com/documentation/what-are-quick-responses/' target='_BLANK' title='<?php _e("What are Quick Responses?", "wplivechat"); ?> '><?php _e("What are Quick Responses?", "wplivechat"); ?> </a></li> <li><a href='http://wp-livechat.com/documentation/troubleshooting/is-this-plugin-multi-site-friendly/' target='_BLANK' title='<?php _e("Can I use this plugin on my multi-site?", "wplivechat"); ?> '><?php _e("Can I use this plugin on my multi-site?", "wplivechat"); ?> </a></li> <li><a href='http://wp-livechat.com/documentation/how-do-i-disable-apc-object-cache/' target='_BLANK' title='<?php _e("How do I disable APC Object Cache?", "wplivechat"); ?> '><?php _e("How do I disable APC Object Cache?", "wplivechat"); ?> </a></li> <li><a href='http://wp-livechat.com/documentation/do-you-have-a-mobile-app/' target='_BLANK' title='<?php _e("Do you have a mobile app?", "wplivechat"); ?> '><?php _e("Do you have a mobile app?", "wplivechat"); ?> </a></li> <li><a href='http://wp-livechat.com/documentation/how-do-i-check-for-javascript-errors-on-my-site/' target='_BLANK' title='<?php _e("How do I check for JavaScript errors on my site?", "wplivechat"); ?> '><?php _e("How do I check for JavaScript errors on my site?", "wplivechat"); ?> </a></li> </ul> </div> <div class='wplc_row_col' style='background-color:#FFF;'> <h2><i class="fa fa-exclamation-circle fa-2x"></i> <?php _e("Troubleshooting", "wplivechat"); ?> </h2> <hr /> <p><?php _e("WP Live Chat Support has a diverse and wide range of features which may, from time to time, run into conflicts with the thousands of themes and other plugins on the market.", "wplivechat"); ?> </p> <p><strong><?php _e("Common issues:", "wplivechat"); ?> </strong></p> <ul> <li><a href='http://wp-livechat.com/documentation/troubleshooting/the-chat-box-doesnt-show-up/' target='_BLANK' title='<?php _e("The chat box doesnt show up", "wplivechat"); ?> '><?php _e("The chat box doesnt show up", "wplivechat"); ?> </a></li> <li><a href='http://wp-livechat.com/documentation/the-chat-window-disappears-when-i-logout-or-go-offline/' target='_BLANK' title='<?php _e("The chat window disappears when I logout or go offline", "wplivechat"); ?> '><?php _e("The chat window disappears when I logout or go offline", "wplivechat"); ?> </a></li> <li><a href='http://wp-livechat.com/this-chat-has-already-been-answered-please-close-the-chat-window/' target='_BLANK' title='<?php _e("This chat has already been answered. Please close the chat window", "wplivechat"); ?> '><?php _e("This chat has already been answered. Please close the chat window", "wplivechat"); ?> </a></li> <li><a href='http://wp-livechat.com/messages-only-show-when-i-refresh-the-chat-window/' target='_BLANK' title='<?php _e("Messages only show when I refresh the chat window", "wplivechat"); ?> '><?php _e("Messages only show when I refresh the chat window", "wplivechat"); ?> </a></li> <li><a href='http://wp-livechat.com/documentation/im-not-getting-any-notifications-of-a-new-chat/' target='_BLANK' title='<?php _e("I'm not getting any notifications of a new chat", "wplivechat"); ?> '><?php _e("I'm not getting any notifications of a new chat", "wplivechat"); ?> </a></li> <li><a href='http://wp-livechat.com/the-chat-window-never-goes-offline/' target='_BLANK' title='<?php _e("The chat window never goes offline", "wplivechat"); ?> '><?php _e("The chat window never goes offline", "wplivechat"); ?> </a></li> </ul> </div> <div class='wplc_row_col' style='background-color:#FFF;'> <h2><i class="fa fa-bullhorn fa-2x"></i> <?php _e("Support", "wplivechat"); ?> </h2> <hr /> <p><?php _e("Still need help? Use one of these links below.", "wplivechat"); ?> </p> <ul> <li><a href='http://wp-livechat.com/forums/forum/support/' target='_BLANK' title='<?php _e("Support forum", "wplivechat"); ?> '><?php _e("Support forum", "wplivechat"); ?> </a></li> <li><a href='http://wp-livechat.com/contact-us/' target='_BLANK' title='<?php _e("Contact us", "wplivechat"); ?> '><?php _e("Contact us", "wplivechat"); ?> </a></li> </ul> </div> </div> <?php }
function wplc_admin_survey_layout() { wplc_stats("surveys"); update_option("wplc_seen_surveys", true); $settings = get_option('WPLC_SURVEY_SETTINGS'); echo "<div class=\"wrap\">"; echo "<h1>" . __("WP Live Chat Surveys with Nimble Squirrel", "wplivechat") . "</h1>"; echo "<div style='width:100%; display:block; overflow:auto; background-color:#FFF; padding:10px; border-radius:10px;'>"; if (isset($settings['wplc_enable_surveys']) && intval($settings['wplc_enable_surveys']) == 1) { echo "<h2>" . __("Surveys", "wplivechat") . "</h2>"; echo "<p>" . __("To view your responses, click the button below and log in to your NimbleSquirrel account.", "wplivechat") . "</p>"; echo "<a href='http://app.nimblesquirrel.com/?utm_source=wplc&utm_medium=click&utm_campaign=view_responses' target='_BLANK' class='button button-primary'>View your responses</a>"; echo "<p> </p>"; echo "<p>" . __("Need help? <a href='https://wp-livechat.com/contact-us/' target='_BLANK'>Contact us</a> and we'll get back to you as soon as possible!", "wplivechat") . "</p>"; echo ""; echo ""; echo ""; echo ""; echo ""; } else { $link1 = sprintf(__('Register on <a href="%s" target="_BLANK" title="NimbleSquirrel">NimbleSquirrel</a> (It\'s free.)', 'wplivechat'), 'http://app.nimblesquirrel.com/join.php?email=' . get_option("admin_email") . "&site=" . get_option('siteurl') . '&utm_source=wplc&utm_medium=click&utm_campaign=plugin_register'); $link2 = sprintf(__('<a href="%s" target="_BLANK" title="Create a survey">Create a survey</a>.', 'wplivechat'), 'http://app.nimblesquirrel.com/my_account.php?a=add_survey_wizard&utm_source=wplc&utm_medium=click&utm_campaign=add_survey'); echo " <div style='display:block; width:50%; float:left; overflow:auto;'>"; echo " <div style='display:block; padding:10px;'>"; echo " <h2>" . __("Add a Survey to your live chat box", "wplivechat") . "</h2>"; echo " <p>" . __("Three simple steps:", "wplivechat") . "</p>"; echo " <ol>"; echo " <li>" . $link1 . "</li>"; echo " <li>" . $link2 . "</li>"; echo " <li>" . __("Enable surveys in your live chat <a href='admin.php?page=wplivechat-menu-settings'>settings page</a>.", "wplivechat") . "</li>"; echo " </ol>"; echo ""; echo ""; echo " </div>"; echo " </div>"; echo " <div style='display:block; width:50%; float:left; overflow:auto;'>"; echo " <div style='display:block; padding:10px;'>"; echo ""; echo ""; echo ""; echo ""; echo " <img src='http://nimblesquirrel.com/app/img/Survey_Box_Standard.jpg' style='max-width:100%;' />"; echo ""; echo ""; echo ""; echo ""; echo ""; echo " </div>"; echo " </div>"; } echo "</div>"; echo "</div>"; }