File: /home/cafsindia/sblt.co.in/wp-content/plugins/wp-live-chat-support/includes/settings_page.php
<style>
.ui-tabs-vertical { }
.ui-tabs-vertical .ui-tabs-nav {
padding: .2em .1em .2em .2em;
float: left;
/* width: 10%; */
max-width: 20%;
min-width: 190px;
}
.ui-tabs-vertical .ui-tabs-nav li { clear: left; width: 100%; border-bottom-width: 1px !important; border-right-width: 0 !important; margin: 0 -1px .2em 0; }
.ui-tabs-vertical .ui-tabs-nav li a { display:block; }
.ui-tabs-vertical .ui-tabs-nav li.ui-tabs-active { padding-bottom: 0; padding-right: .1em; border-right-width: 1px; }
.ui-tabs-vertical .ui-tabs-panel {
/* padding: 1em; */
float: left;
min-width: 67%;
max-width: 67%;
}
textarea, input[type='text'], input[type='email'], input[type='password']{ width: 100% !important; }
</style>
<?php
/**
* Removes the ajax loader and forces the settings page to load as is after 3 seconds.
*
* This has been put here to counter any PHP fatal warnings that may be experienced on the settings page.
*
* Putting this in the wplc_tabs.js file will not work as that file is not loaded if there is a PHP fatal error
*/
?>
<script>
setTimeout( function() {
jQuery("#wplc_settings_page_loader").remove();
jQuery(".wrap").css('display','block');
jQuery(".wplc_settings_save_notice").css('display','block');
},3000);
</script>
<?php wplc_stats("settings");
if (function_exists("wplc_string_check")) { wplc_string_check(); }
$wplc_settings = get_option("WPLC_SETTINGS");
?>
<?php
if (get_option("WPLC_HIDE_CHAT") == true) {
$wplc_hide_chat = "checked";
} else {
$wplc_hide_chat = "";
};
?>
<img src='<?php echo WPLC_BASIC_PLUGIN_URL.'images/ajax-loader.gif'; ?>' id='wplc_settings_page_loader' style='display: block; margin: 20px auto;' />
<div class="wrap wplc_wrap" style='display: none;'>
<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_mail_type = get_option("wplc_mail_type");
if (!isset($wplc_mail_type) || $wplc_mail_type == "" || !$wplc_mail_type) { $wplc_mail_type = "wp_mail"; }
if (isset($wplc_settings["wplc_settings_align"])) { $wplc_settings_align[intval($wplc_settings["wplc_settings_align"])] = "SELECTED"; }
if (isset($wplc_settings["wplc_settings_enabled"])) { $wplc_settings_enabled[intval($wplc_settings["wplc_settings_enabled"])] = "SELECTED"; }
if (isset($wplc_settings["wplc_settings_fill"])) { $wplc_settings_fill = $wplc_settings["wplc_settings_fill"]; } else { $wplc_settings_fill = "ed832f"; }
if (isset($wplc_settings["wplc_settings_font"])) { $wplc_settings_font = $wplc_settings["wplc_settings_font"]; } else { $wplc_settings_font = "FFFFFF"; }
if (isset($wplc_settings["wplc_settings_color1"])) { $wplc_settings_color1 = $wplc_settings["wplc_settings_color1"]; } else { $wplc_settings_color1 = "ED832F"; }
if (isset($wplc_settings["wplc_settings_color2"])) { $wplc_settings_color2 = $wplc_settings["wplc_settings_color2"]; } else { $wplc_settings_color2 = "FFFFFF"; }
if (isset($wplc_settings["wplc_settings_color3"])) { $wplc_settings_color3 = $wplc_settings["wplc_settings_color3"]; } else { $wplc_settings_color3 = "EEEEEE"; }
if (isset($wplc_settings["wplc_settings_color4"])) { $wplc_settings_color4 = $wplc_settings["wplc_settings_color4"]; } else { $wplc_settings_color4 = "666666"; }
if (isset($wplc_settings["wplc_environment"])) { $wplc_environment[intval($wplc_settings["wplc_environment"])] = "SELECTED"; }
if(get_option("WPLC_HIDE_CHAT") == true) { $wplc_hide_chat = "checked"; } else { $wplc_hide_chat = ""; };
?>
<form action='' name='wplc_settings' method='POST' id='wplc_settings'>
<div id="wplc_tabs">
<ul>
<?php
$tab_array = array(
0 => array(
"href" => "#tabs-1",
"icon" => 'fa fa-gear',
"label" => __("General Settings","wplivechat")
),
1 => array(
"href" => "#tabs-2",
"icon" => 'fa fa-envelope',
"label" => __("Chat Box","wplivechat")
),
2 => array(
"href" => "#tabs-3",
"icon" => 'fa fa-book',
"label" => __("Offline Messages","wplivechat")
),
3 => array(
"href" => "#tabs-4",
"icon" => 'fa fa-pencil',
"label" => __("Styling","wplivechat")
),
4 => array(
"href" => "#tabs-5",
"icon" => 'fa fa-users',
"label" => __("Agents","wplivechat")
),
5 => array(
"href" => "#tabs-7",
"icon" => 'fa fa-gavel',
"label" => __("Blocked Visitors","wplivechat")
)
);
$tabs_top = apply_filters("wplc_filter_setting_tabs",$tab_array);
foreach ($tabs_top as $tab) {
echo "<li><a href=\"".$tab['href']."\"><i class=\"".$tab['icon']."\"></i> ".$tab['label']."</a></li>";
}
?>
</ul>
<div id="tabs-1">
<h3><?php _e("General Settings",'wplivechat')?></h3>
<table class='wp-list-table wplc_list_table widefat fixed striped pages' width='700'>
<tr>
<td width='350' valign='top'><?php _e("Chat enabled","wplivechat")?>: </td>
<td>
<select id='wplc_settings_enabled' name='wplc_settings_enabled'>
<option value="1" <?php if (isset($wplc_settings_enabled[1])) { echo $wplc_settings_enabled[1]; } ?>><?php _e("Yes","wplivechat"); ?></option>
<option value="2" <?php if (isset($wplc_settings_enabled[2])) { echo $wplc_settings_enabled[2]; }?>><?php _e("No","wplivechat"); ?></option>
</select>
</td>
</tr>
<?php /*
<tr>
<td width='200' valign='top'>
<?php _e("Show the 'Powered by WP Live Chat Support' link", "wplivechat") ?>: <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e('Checking this will display a Powered by WP Live Chat Support link', 'wplivechat'); ?>"></i>
</td>
<td>
<input type="checkbox" value="1" name="wplc_powered_by_link" <?php if (isset($wplc_settings['wplc_powered_by_link']) && $wplc_settings['wplc_powered_by_link'] == 1) { echo "checked"; } ?> />
</td>
</tr>
*/ ?>
<!--
<tr>
<td width='400' valign='top'>
<?php _e("Hide Chat", "wplivechat") ?>: <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("Hides chat for 24hrs when user clicks X", "wplivechat") ?>"></i>
</td>
<td valign='top'>
<input type="checkbox" name="wplc_hide_chat" value="true" <?php echo $wplc_hide_chat ?>/>
</td>
</tr>
-->
<tr>
<td width='300' valign='top'>
<?php _e("Required Chat Box Fields","wplivechat")?>: <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("Set default fields that will be displayed when users starting a chat", "wplivechat") ?>"></i>
</td>
<td valign='top'>
<div class="wplc-require-user-info__item">
<input type="radio" value="1" name="wplc_require_user_info" id="wplc_require_user_info_both" <?php if (isset($wplc_settings['wplc_require_user_info']) && $wplc_settings['wplc_require_user_info'] == '1') { echo "checked"; } ?> />
<label for="wplc_require_user_info_both"><?php _e( 'Name and email', 'wplivechat' ); ?></label>
</div>
<div class="wplc-require-user-info__item">
<input type="radio" value="email" name="wplc_require_user_info" id="wplc_require_user_info_email" <?php if (isset($wplc_settings['wplc_require_user_info']) && $wplc_settings['wplc_require_user_info'] == 'email') { echo "checked"; } ?> />
<label for="wplc_require_user_info_email"><?php _e( 'Email', 'wplivechat' ); ?></label>
</div>
<div class="wplc-require-user-info__item">
<input type="radio" value="name" name="wplc_require_user_info" id="wplc_require_user_info_name" <?php if (isset($wplc_settings['wplc_require_user_info']) && $wplc_settings['wplc_require_user_info'] == 'name') { echo "checked"; } ?> />
<label for="wplc_require_user_info_name"><?php _e( 'Name', 'wplivechat' ); ?></label>
</div>
<div class="wplc-require-user-info__item">
<input type="radio" value="0" name="wplc_require_user_info" id="wplc_require_user_info_none" <?php if (isset($wplc_settings['wplc_require_user_info']) && $wplc_settings['wplc_require_user_info'] == '0') { echo "checked"; } ?> />
<label for="wplc_require_user_info_none"><?php _e( 'No fields', 'wplivechat' ); ?></label>
</div>
</td>
</tr>
<tr class="wplc-user-default-visitor-name__row">
<td width='300' valign='top'>
<?php _e("Default visitor name","wplivechat"); ?>: <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("This name will be displayed for all not logged in visitors", "wplivechat") ?>"></i>
</td>
<td valign='top'>
<input type="text" name="wplc_user_default_visitor_name" id="wplc_user_default_visitor_name" value="<?php if ( isset( $wplc_settings['wplc_user_default_visitor_name'] ) ) { echo stripslashes( $wplc_settings['wplc_user_default_visitor_name'] ); } else { echo __( "Guest", "wplivechat" ); } ?>" />
</td>
</tr>
<tr>
<td width='300' valign='top'>
<?php _e("Input Field Replacement Text","wplivechat")?>: <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("This is the text that will show in place of the Name And Email fields", "wplivechat") ?>"></i>
</td>
<td valign='top'>
<textarea cols="45" rows="5" name="wplc_user_alternative_text" ><?php if(isset($wplc_settings['wplc_user_alternative_text'])) { echo stripslashes($wplc_settings['wplc_user_alternative_text']); } ?></textarea>
</td>
</tr>
<tr>
<td width='300' valign='top'>
<?php _e("Use Logged In User Details","wplivechat")?>: <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("A user's Name and Email Address will be used by default if they are logged in.", "wplivechat") ?>"></i>
</td>
<td valign='top'>
<input type="checkbox" value="1" name="wplc_loggedin_user_info" <?php if(isset($wplc_settings['wplc_loggedin_user_info']) && $wplc_settings['wplc_loggedin_user_info'] == 1 ) { echo "checked"; } ?> />
</td>
</tr>
<tr>
<td width='200' valign='top'>
<?php _e("Enable On Mobile Devices","wplivechat"); ?>: <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("Disabling this will mean that the Chat Box will not be displayed on mobile devices. (Smartphones and Tablets)", "wplivechat") ?>"></i>
</td>
<td valign='top'>
<input type="checkbox" value="1" name="wplc_enabled_on_mobile" <?php if(isset($wplc_settings['wplc_enabled_on_mobile']) && $wplc_settings['wplc_enabled_on_mobile'] == 1 ) { echo "checked"; } ?> />
</td>
</tr>
<!--<tr>
<td width='350' valign='top'>
<?php _e("Record a visitor's IP Address","wplivechat"); ?>: <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("Disable this to enable anonymity for your visitors", "wplivechat") ?>"></i>
</td>
<td valign='top'>
<input type="checkbox" value="1" name="wplc_record_ip_address" <?php if(isset($wplc_settings['wplc_record_ip_address']) && $wplc_settings['wplc_record_ip_address'] == 1 ) { echo "checked"; } ?> />
</td>
</tr>-->
<?php if( isset( $wplc_settings['wplc_use_node_server'] ) && intval( $wplc_settings['wplc_use_node_server'] ) == 1 ){ ?>
<tr>
<td width='300' valign='top'>
<?php _e("Play a sound when there is a new visitor","wplivechat"); ?>: <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("Disable this to mute the sound that is played when a new visitor arrives", "wplivechat") ?>"></i>
</td>
<td valign='top'>
<input type="checkbox" value="1" name="wplc_enable_visitor_sound" <?php if(isset($wplc_settings['wplc_enable_visitor_sound']) && $wplc_settings['wplc_enable_visitor_sound'] == 1 ) { echo "checked"; } ?> />
</td>
</tr>
<?php } ?>
<tr>
<td width='300' valign='top'>
<?php _e("Play a sound when a new message is received","wplivechat"); ?>: <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("Disable this to mute the sound that is played when a new chat message is received", "wplivechat") ?>"></i>
</td>
<td valign='top'>
<input type="checkbox" value="1" name="wplc_enable_msg_sound" <?php if(isset($wplc_settings['wplc_enable_msg_sound']) && $wplc_settings['wplc_enable_msg_sound'] == 1 ) { echo "checked"; } ?> />
</td>
</tr>
<tr>
<td width='300' valign='top'>
<?php _e("Enable Font Awesome set","wplivechat"); ?>: <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("Disable this if you have Font Awesome set included with your theme", "wplivechat") ?>"></i>
</td>
<td valign='top'>
<input type="checkbox" value="1" name="wplc_enable_font_awesome" <?php if(isset($wplc_settings['wplc_enable_font_awesome']) && $wplc_settings['wplc_enable_font_awesome'] == 1 ) { echo "checked"; } ?> />
</td>
</tr>
<tr>
<td width='300' valign='top'>
<?php _e("Enable chat dashboard and notifications on all admin pages","wplivechat"); ?>: <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("This will load the chat dashboard on every admin page.", "wplivechat") ?>"></i>
</td>
<td valign='top'>
<input type="checkbox" value="1" name="wplc_enable_all_admin_pages" <?php if(isset($wplc_settings['wplc_enable_all_admin_pages']) && $wplc_settings['wplc_enable_all_admin_pages'] == 1 ) { echo "checked"; } ?> />
</td>
</tr>
<?php if (!function_exists("wplc_pro_activate")) { ?>
<tr>
<td width='300' valign='top'>
<?php _e("Include chat window on the following pages","wplivechat"); ?>: <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("Show the chat window on the following pages. Leave blank to show on all. (Use comma-separated Page ID's)", "wplivechat") ?>"></i>
</td>
<td valign='top'>
<input type="text" readonly="readonly" />
<small>
<i>
<?php _e("available in the","wplivechat")?>
<a href="http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=include_pages" title="<?php _e("Pro Add-on","wplivechat")?>" target="_BLANK"><?php _e("Pro Add-on","wplivechat")?></a>
<?php _e("only","wplivechat")?>
</i>
</small>
</td>
</tr>
<tr>
<td width='200' valign='top'>
<?php _e("Exclude chat window on the following pages","wplivechat"); ?>: <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("Do not show the chat window on the following pages. Leave blank to show on all. (Use comma-separated Page ID's)", "wplivechat") ?>"></i>
</td>
<td valign='top'>
<input type="text" readonly="readonly"/>
<small>
<i>
<?php _e("available in the","wplivechat")?>
<a href="http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=exclude_pages" title="<?php _e("Pro Add-on","wplivechat")?>" target="_BLANK"><?php _e("Pro Add-on","wplivechat")?></a>
<?php _e("only","wplivechat")?>
</i>
</small>
</td>
</tr>
<tr class="wplc-exclude-post-types__row">
<td width='200' valign='top'>
<?php _e("Exclude chat window on selected post types","wplivechat"); ?>: <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("Do not show the chat window on the following post types pages.", "wplivechat") ?>"></i>
</td>
<td valign='top'>
<input type="text" readonly="readonly"/>
<small>
<i>
<?php _e("available in the","wplivechat")?>
<a href="http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=exclude_pages" title="<?php _e("Pro Add-on","wplivechat")?>" target="_BLANK"><?php _e("Pro Add-on","wplivechat")?></a>
<?php _e("only","wplivechat")?>
</i>
</small>
</td>
</tr>
<?php } ?>
</table>
<?php do_action('wplc_hook_admin_settings_main_settings_after'); ?>
</div>
<div id="tabs-2">
<h3><?php _e("Chat Window Settings",'wplivechat')?></h3>
<table class='wp-list-table wplc_list_table widefat fixed striped pages'>
<tr>
<td width='300' valign='top'><?php _e("Chat box alignment","wplivechat")?>:</td>
<td>
<select id='wplc_settings_align' name='wplc_settings_align'>
<option value="1" <?php if (isset($wplc_settings_align[1])) { echo $wplc_settings_align[1]; } ?>><?php _e("Bottom left","wplivechat"); ?></option>
<option value="2" <?php if (isset($wplc_settings_align[2])) { echo $wplc_settings_align[2]; } ?>><?php _e("Bottom right","wplivechat"); ?></option>
<option value="3" <?php if (isset($wplc_settings_align[3])) { echo $wplc_settings_align[3]; } ?>><?php _e("Left","wplivechat"); ?></option>
<option value="4" <?php if (isset($wplc_settings_align[4])) { echo $wplc_settings_align[4]; } ?>><?php _e("Right","wplivechat"); ?></option>
</select>
</td>
</tr>
<tr>
<td width='300'>
<?php _e("Auto Pop-up","wplivechat") ?> <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("Expand the chat box automatically (prompts the user to enter their name and email address).","wplivechat") ?>"></i>
</td>
<td>
<input type="checkbox" name="wplc_auto_pop_up" value="1" <?php if(isset($wplc_settings['wplc_auto_pop_up']) && $wplc_settings['wplc_auto_pop_up'] == 1 ) { echo "checked"; } ?>/>
</td>
</tr>
<?php if (!function_exists("wplc_pro_activate")) { ?>
<tr>
<td width='300'>
<?php _e("Display typing indicator","wplivechat") ?> <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("Display a typing animation as soon as someone starts typing.","wplivechat") ?>"></i>
</td>
<td>
<input type="checkbox" name="" value="" disabled />
<small>
<i>
<?php _e("available in the","wplivechat")?>
<a href="http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=typing" title="<?php _e("Pro Add-on","wplivechat")?>" target="_BLANK"><?php _e("Pro Add-on","wplivechat")?></a>
<?php _e("only","wplivechat")?>
</i>
</small>
</td>
</tr>
<tr>
<tr>
<td width='300' valign='top'>
<?php _e("Name","wplivechat")?>:
</td>
<td>
<input type='text' size='50' maxlength='50' disabled readonly value='admin' />
<small>
<i>
<?php _e("available in the","wplivechat")?>
<a href="http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=name" title="<?php _e("Pro Add-on","wplivechat")?>" target="_BLANK"><?php _e("Pro Add-on","wplivechat")?></a>
<?php _e("only","wplivechat")?>
</i>
</small>
</td>
</tr>
<!--<tr>
<td width='300'>
<?php _e("Avatar","wplivechat") ?> <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("Choose which picture to use as your avatar.","wplivechat") ?>"></i>
</td>
<td>
<select name="wplc_avatar_source">
<option value="gravatar" <?php echo (isset($wplc_settings['wplc_avatar_source']) && $wplc_settings['wplc_avatar_source'] == 'gravatar') ? 'selected' : ''; ?>>Gravatar</option>
<option value="wp_avatar" <?php echo (isset($wplc_settings['wplc_avatar_source']) && $wplc_settings['wplc_avatar_source'] == 'wp_avatar') ? 'selected' : ''; ?>>WP User Avatar</option>
</select>
</td>
</tr>-->
<!-- Chat Icon-->
<tr>
<td width='300' valign='top'>
<?php _e("Icon","wplivechat")?>:
</td>
<td>
<input id="wplc_pro_chat_button" type="button" value="<?php _e("Upload Image","wplivechat")?>" readonly disabled />
<small>
<i>
<?php _e("available in the","wplivechat")?>
<a href="http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=pic" title="<?php _e("Pro Add-on","wplivechat")?>" target="_BLANK"><?php _e("Pro Add-on","wplivechat")?></a>
<?php _e("only","wplivechat")?>
</i>
</small>
</td>
</tr>
<!-- Chat Pic-->
<tr>
<td width='300' valign='top'>
<?php _e("Picture","wplivechat")?>:
</td>
<td>
<input id="wplc_pro_pic_button" type="button" value="<?php _e("Upload Image","wplivechat")?>" readonly disabled />
<small>
<i>
<?php _e("available in the","wplivechat")?>
<a href="http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=pic" title="<?php _e("Pro Add-on","wplivechat")?>" target="_BLANK"><?php _e("Pro Add-on","wplivechat")?></a>
<?php _e("only","wplivechat")?>
</i>
</small>
</td>
</tr>
<!-- Chat Logo-->
<tr>
<td width='300' valign='top'>
<?php _e("Logo","wplivechat")?>:
</td>
<td>
<input id="wplc_pro_logo_button" type="button" value="<?php _e("Upload Image","wplivechat")?>" readonly disabled />
<small>
<i>
<?php _e("available in the","wplivechat")?>
<a href="http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=pic" title="<?php _e("Pro Add-on","wplivechat")?>" target="_BLANK"><?php _e("Pro Add-on","wplivechat")?></a>
<?php _e("only","wplivechat")?>
</i>
</small>
</td>
</tr>
<!-- Chat Delay-->
<tr>
<td width='300' valign='top'>
<?php _e("Chat delay (seconds)","wplivechat")?>:
</td>
<td>
<input type='text' size='50' maxlength='50' disabled readonly value='10' />
<small>
<i>
<?php _e("available in the","wplivechat")?>
<a href="http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=delay" title="<?php _e("Pro Add-on","wplivechat")?>" target="_BLANK"><?php _e("Pro Add-on","wplivechat")?></a>
<?php _e("only","wplivechat")?>
</i>
</small>
</td>
</tr>
<!-- Chat Notification if want to chat-->
<tr>
<td width='300' valign='top'>
<?php _e("Chat notifications", "wplivechat") ?>:
</td>
<td>
<input id='wplc_pro_chat_notification' name='wplc_pro_chat_notification' type='checkbox' value='yes' disabled="disabled" readonly/>
<?php _e("Alert me via email as soon as someone wants to chat", "wplivechat") ?>
<small>
<i>
<?php _e("available in the", "wplivechat") ?>
<a href="http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=alert" title="<?php _e("Pro Add-on", "wplivechat") ?>" target="_BLANK"><?php _e("Pro Add-on", "wplivechat") ?></a>
<?php _e("only", "wplivechat") ?>
</i>
</small>
</td>
</tr>
<?php } ?>
<!-- <tr>
<td>
<?php //_e("Display name and avatar in chat", "wplivechat") ?> <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php //_e("Display the agent and user name above each message in the chat window.", "wplivechat") ?>"></i>
</td>
<td>
<input type="checkbox" name="wplc_display_name" value="1" <?php //if (isset($wplc_settings['wplc_display_name']) && $wplc_settings['wplc_display_name'] == 1) {
//echo "checked";
//} ?>/>
</td>
</tr> -->
<tr>
<td>
<?php _e("Display details in chat message", "wplivechat") ?>
</td>
<td> <!-- $wplc_settings['wplc_display_name'] Remember for backwards compat -->
<?php if (isset($wplc_settings['wplc_show_name']) && $wplc_settings['wplc_show_name'] == 1) { $checked = "checked"; } else { $checked = ''; } ?>
<input type="checkbox" name="wplc_show_name" value="1" <?php echo $checked; ?>/> <label><?php _e("Show Name", "wplivechat"); ?></label><br/>
<?php if (isset($wplc_settings['wplc_show_avatar']) && $wplc_settings['wplc_show_avatar'] == 1) { $checked = "checked"; } else { $checked = ''; } ?>
<input type="checkbox" name="wplc_show_avatar" value="1" <?php echo $checked; ?>/> <label><?php _e("Show Avatar", "wplivechat"); ?></label>
</td>
</tr>
<tr>
<td>
<?php _e("Only show the chat window to users that are logged in", "wplivechat") ?> <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("By checking this, only users that are logged in will be able to chat with you.", "wplivechat") ?>"></i>
</td>
<td>
<input type="checkbox" name="wplc_display_to_loggedin_only" value="1" <?php
if (isset($wplc_settings['wplc_display_to_loggedin_only']) && $wplc_settings['wplc_display_to_loggedin_only'] == 1) {
echo "checked";
}
?>/>
</td>
</tr>
<tr>
<td>
<?php _e("Display a timestamp in the chat window", "wplivechat") ?>
</td>
<td>
<?php if (isset($wplc_settings['wplc_show_date']) && $wplc_settings['wplc_show_date'] == 1) { $checked = "checked"; } else { $checked = ''; } ?>
<input type="checkbox" name="wplc_show_date" value="1" <?php echo $checked; ?>/> <label><?php _e("Show Date", "wplivechat"); ?></label><br/>
<?php if (isset($wplc_settings['wplc_show_time']) && $wplc_settings['wplc_show_time'] == 1) { $checked = "checked"; } else { $checked = ''; } ?>
<input type="checkbox" name="wplc_show_time" value="1" <?php echo $checked; ?>/> <label><?php _e("Show Time", "wplivechat"); ?></label>
</td>
</tr>
<tr>
<td>
<?php _e("Redirect user to thank you page when chat is ended", "wplivechat") ?> <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("By checking this, users will be redirected to your thank you page when a chat is completed.", "wplivechat") ?>"></i>
</td>
<td>
<input type="checkbox" name="wplc_redirect_to_thank_you_page" value="1" <?php echo (isset($wplc_settings['wplc_redirect_to_thank_you_page']) && $wplc_settings['wplc_redirect_to_thank_you_page'] == 1 ? "checked" : "" ); ?> />
<input type="text" name="wplc_redirect_thank_you_url" value="<?php echo (isset($wplc_settings['wplc_redirect_thank_you_url']) ? urldecode($wplc_settings['wplc_redirect_thank_you_url']) : '' ); ?>" placeholder="<?php _e('Thank You Page URL', 'wplivechat'); ?>" />
</td>
</tr>
<?php
if(defined('WPLC_PRO_PLUGIN'))
{
?>
<tr>
<td>
<?php
_e('Disable Emojis', 'wplivechat');
?>
</td>
<td>
<input type="checkbox" name="wplc_disable_emojis"
<?php
if(!empty($wplc_settings['wplc_disable_emojis']))
echo 'checked="checked"';
?>
/>
</tr>
<?php
}
?>
</table>
<?php if(!function_exists("wplc_chat_social_div") && !function_exists("wplc_pro_activate")){ ?>
<h3><?php _e("Social", 'wplivechat') ?></h3>
<hr>
<table class='wp-list-table wplc_list_table widefat fixed striped pages' >
<tbody>
<tr>
<td width='300' valign='top'><?php _e("Facebook URL", "wplivechat") ?>: <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("Link your Facebook page here. Leave blank to hide", "wplivechat") ?>"></i></td>
<td>
<input id='wplc_social_fb' name='wplc_social_fb' placeholder="<?php _e("Facebook URL...", "wplivechat") ?>" type='text' disabled/>
<small>
<i>
<?php _e("available in the","wplivechat")?>
<a href="http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=social_media" title="<?php _e("Pro Add-on","wplivechat")?>" target="_BLANK"><?php _e("Pro Add-on","wplivechat")?></a>
<?php _e("only","wplivechat")?>
</i>
</small>
</td>
</tr>
<tr>
<td width='300' valign='top'><?php _e("Twitter URL", "wplivechat") ?>: <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("Link your Twitter page here. Leave blank to hide", "wplivechat") ?>"></i></td>
<td>
<input id='wplc_social_tw' name='wplc_social_tw' placeholder="<?php _e("Twitter URL...", "wplivechat") ?>" type='text' disabled/>
<small>
<i>
<?php _e("available in the","wplivechat")?>
<a href="http://www.wp-livechat.com/purchase-pro/?utm_source=plugin&utm_medium=link&utm_campaign=social_media" title="<?php _e("Pro Add-on","wplivechat")?>" target="_BLANK"><?php _e("Pro Add-on","wplivechat")?></a>
<?php _e("only","wplivechat")?>
</i>
</small>
</td>
</tr>
</tbody>
</table>
<?php } ?>
<?php do_action('wplc_hook_admin_settings_chat_box_settings_after'); ?>
</div>
<div id="tabs-3">
<h3><?php _e("Offline Messages", 'wplivechat') ?></h3>
<table class='form-table wp-list-table wplc_list_table widefat fixed striped pages' width='100%'>
<tr>
<td width='300'>
<?php _e("Do not allow users to send offline messages", "wplivechat") ?> <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("The chat window will be hidden when it is offline. Users will not be able to send offline messages to you", "wplivechat") ?>"></i>
</td>
<td>
<input type="checkbox" name="wplc_hide_when_offline" value="1" <?php
if (isset($wplc_settings['wplc_hide_when_offline']) && $wplc_settings['wplc_hide_when_offline'] == 1) {
echo "checked";
}
?>/>
</td>
</tr>
<tr>
<td width="300" valign="top"><?php _e("Offline Chat Box Title", "wplivechat") ?>:</td>
<td>
<input id="wplc_pro_na" name="wplc_pro_na" type="text" size="50" maxlength="50" class="regular-text" value="<?php if (isset($wplc_settings['wplc_pro_na'])) { echo stripslashes($wplc_settings['wplc_pro_na']); } ?>" /> <br />
</td>
</tr>
<tr>
<td width="300" valign="top"><?php _e("Offline Text Fields", "wplivechat") ?>:</td>
<td>
<input id="wplc_pro_offline1" name="wplc_pro_offline1" type="text" size="50" maxlength="150" class="regular-text" value="<?php if (isset($wplc_settings['wplc_pro_offline1'])) { echo stripslashes($wplc_settings['wplc_pro_offline1']); } ?>" /> <br />
<input id="wplc_pro_offline2" name="wplc_pro_offline2" type="text" size="50" maxlength="50" class="regular-text" value="<?php if (isset($wplc_settings['wplc_pro_offline2'])) { echo stripslashes($wplc_settings['wplc_pro_offline2']); } ?>" /> <br />
<input id="wplc_pro_offline3" name="wplc_pro_offline3" type="text" size="50" maxlength="150" class="regular-text" value="<?php if (isset($wplc_settings['wplc_pro_offline3'])) { echo stripslashes($wplc_settings['wplc_pro_offline3']); } ?>" /> <br />
</td>
</tr>
<tr>
<td width="300" valign="top"><?php _e("Offline Button Text", "wplivechat") ?>:</td>
<td>
<input id="wplc_pro_offline_btn" name="wplc_pro_offline_btn" type="text" size="50" maxlength="50" class="regular-text" value="<?php if (isset($wplc_settings['wplc_pro_offline_btn'])) { echo stripslashes($wplc_settings['wplc_pro_offline_btn']); } ?>" /> <br />
</td>
</tr>
<tr>
<td width="300" valign="top"><?php _e("Offline Send Button Text", "wplivechat") ?>:</td>
<td>
<input id="wplc_pro_offline_btn_send" name="wplc_pro_offline_btn_send" type="text" size="50" maxlength="50" class="regular-text" value="<?php if (isset($wplc_settings['wplc_pro_offline_btn_send'])) { echo stripslashes($wplc_settings['wplc_pro_offline_btn_send']); } ?>" /> <br />
</td>
</tr>
<tr>
<td width="300" valign="top"><?php _e("Custom fields", "wplivechat") ?>:</td>
<td>
<?php do_action( "wplc_hook_offline_custom_fields_integration_settings" ); ?>
</td>
</tr>
</table>
<h4><?php _e("Email settings", 'wplivechat') ?></h4>
<table class='form-table wp-list-table wplc_list_table widefat fixed striped pages'>
<tr>
<td width='300' valign='top'>
<?php _e("Email Address", "wplivechat") ?>: <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("Email address where offline messages are delivered to. Use comma separated email addresses to send to more than one email address", "wplivechat") ?>"></i>
</td>
<td>
<input id="wplc_pro_chat_email_address" name="wplc_pro_chat_email_address" class="regular-text" type="text" value="<?php if (isset($wplc_settings['wplc_pro_chat_email_address'])) {
echo $wplc_settings['wplc_pro_chat_email_address']; } ?>" />
</td>
</tr>
<tr>
<td width='300' valign='top'>
<?php _e("Subject", "wplivechat") ?>: <i class="fa fa-question-circle wplc_light_grey wplc_settings_tooltip" title="<?php _e("User name will be appended to the end of the subject.", "wplivechat") ?>"></i>
</td>
<td>
<input id="wplc_pro_chat_email_offline_subject" name="wplc_pro_chat_email_offline_subject" class="regular-text" type="text" value="<?php echo(isset($wplc_settings['wplc_pro_chat_email_offline_subject']) ? $wplc_settings['wplc_pro_chat_email_offline_subject'] : ""); ?>" placeholder="<?php echo __("WP Live Chat Support - Offline Message from ", "wplivechat"); ?>"/>
</td>
</tr>
</table>
<table class='form-table wp-list-table wplc_list_table widefat fixed striped pages'>
<tr>
<td width="33%"><?php _e("Sending Method", "wplivechat") ?></td>
<td width="33%" style="text-align: center;"><?php _e("WP Mail", "wplivechat") ?></td>
<td width="33%" style="text-align: center;"><?php _e("PHP Mailer", "wplivechat") ?></td>
</tr>
<tr>
<td></td>
<td style="text-align: center;"><input class="wplc_mail_type_radio" type="radio" value="wp_mail" name="wplc_mail_type" <?php if ($wplc_mail_type == "wp_mail") {
echo "checked";
} ?>></td>
<td style="text-align: center;"><input id="wpcl_mail_type_php" class="wplc_mail_type_radio" type="radio" value="php_mailer" name="wplc_mail_type" <?php if ($wplc_mail_type == "php_mailer") {
echo "checked";
} ?>></td>
</tr>
</table>
<hr/>
<table id="wplc_smtp_details" class='form-table wp-list-table wplc_list_table widefat fixed striped pages' width='100%'>
<tr>
<td width="300" valign="top">
<?php _e("Host", "wplivechat") ?>:
</td>
<td>
<input id="wplc_mail_host" name="wplc_mail_host" type="text" class="regular-text" value="<?php echo get_option("wplc_mail_host") ?>" placeholder="smtp.example.com" />
</td>
</tr>
<tr>
<td>
<?php _e("Port", "wplivechat") ?>:
</td>
<td>
<input id="wplc_mail_port" name="wplc_mail_port" type="text" class="regular-text" value="<?php echo get_option("wplc_mail_port") ?>" placeholder="25" />
</td>
</tr>
<tr>
<td>
<?php _e("Username", "wplivechat") ?>:
</td>
<td>
<input id="wplc_mail_username" name="wplc_mail_username" type="text" class="regular-text" value="<?php echo get_option("wplc_mail_username") ?>" placeholder="me@example.com" />
</td>
</tr>
<tr>
<td>
<?php _e("Password", "wplivechat") ?>:
</td>
<td>
<input id="wplc_mail_password" name="wplc_mail_password" type="password" class="regular-text" value="<?php echo get_option("wplc_mail_password") ?>" placeholder="Password" />
</td>
</tr>
</table>
<?php do_action('wplc_hook_admin_settings_offline_messages_settings_after'); ?>
</div>
<div id="tabs-4">
<style>
.wplc_theme_block img{
border: 1px solid #CCC;
border-radius: 5px;
padding: 5px;
margin: 5px;
}
.wplc_theme_single{
width: 162px;
height: 162px;
text-align: center;
display: inline-block;
vertical-align: top;
margin: 5px;
}
.wplc_animation_block div{
display: inline-block;
width: 150px;
height: 150px;
border: 1px solid #CCC;
border-radius: 5px;
text-align: center;
margin: 10px;
}
.wplc_animation_block i{
font-size: 3em;
line-height: 150px;
}
.wplc_animation_block .wplc_red{
color: #E31230;
}
.wplc_animation_block .wplc_orange{
color: #EB832C;
}
.wplc_animation_active, .wplc_theme_active{
box-shadow: 2px 2px 2px #666666;
}
</style>
<style>
.wplc_animation_block div{
display: inline-block;
width: 150px;
height: 150px;
border: 1px solid #CCC;
border-radius: 5px;
text-align: center;
margin: 10px;
}
.wplc_animation_block i{
font-size: 3em;
line-height: 150px;
}
.wplc_animation_block .wplc_red{
color: #E31230;
}
.wplc_animation_block .wplc_orange{
color: #EB832C;
}
.wplc_animation_active{
box-shadow: 2px 2px 2px #CCC;
}
</style>
<h3><?php _e("Styling",'wplivechat')?></h3>
<table class='form-table wp-list-table wplc_list_table widefat fixed striped pages'>
<tr style='margin-bottom: 10px;'>
<td width='200'><label for=""><?php _e('Choose a theme', 'wplivechat'); ?></label></td>
<td>
<div class='wplc_theme_block'>
<div class='wplc_theme_image' id=''>
<div class='wplc_theme_single'>
<img style='width:162px;' src='<?php echo WPLC_BASIC_PLUGIN_URL.'images/themes/newtheme-1.jpg'; ?>' title="<?php _e('Classic', 'wplivechat'); ?>" alt="<?php _e('Classic', 'wplivechat'); ?>" class='<?php if (isset($wplc_settings['wplc_newtheme']) && $wplc_settings['wplc_newtheme'] == 'theme-1') { echo 'wplc_theme_active'; } ?>' id='wplc_newtheme_1'/>
<?php _e('Classic', 'wplivechat'); ?>
</div>
<div class='wplc_theme_single'>
<img style='width:162px;' src='<?php echo WPLC_BASIC_PLUGIN_URL.'images/themes/newtheme-2.jpg'; ?>' title="<?php _e('Modern', 'wplivechat'); ?>" alt="<?php _e('Modern', 'wplivechat'); ?>" class='<?php if (isset($wplc_settings['wplc_newtheme']) && $wplc_settings['wplc_newtheme'] == 'theme-2') { echo 'wplc_theme_active'; } ?>' id='wplc_newtheme_2'/>
<?php _e('Modern', 'wplivechat'); ?>
</div>
</div>
</div>
<input type="radio" name="wplc_newtheme" value="theme-1" class="wplc_hide_input" id="wplc_new_rb_theme_1" <?php if (isset($wplc_settings['wplc_newtheme']) && $wplc_settings['wplc_newtheme'] == 'theme-1') { echo 'checked'; } ?>/>
<input type="radio" name="wplc_newtheme" value="theme-2" class="wplc_hide_input" id="wplc_new_rb_theme_2" <?php if (isset($wplc_settings['wplc_newtheme']) && $wplc_settings['wplc_newtheme'] == 'theme-2') { echo 'checked'; } ?>/>
</td>
</tr>
<tr height="30">
<td> </td>
<td> </td>
</tr>
<tr style='margin-bottom: 10px;'>
<td><label for=""><?php _e('Color Scheme', 'wplivechat'); ?></label></td>
<td>
<div class='wplc_theme_block'>
<div class='wplc_palette'>
<div class='wplc_palette_single'>
<div class='wplc-palette-selection <?php if (isset($wplc_settings['wplc_theme']) && $wplc_settings['wplc_theme'] == 'theme-default') { echo 'wplc_theme_active'; } ?>' id='wplc_theme_default'>
<div class='wplc-palette-top' style='background-color:#ED832F;'></div>
<div class='wplc-palette-top' style='background-color:#FFF;'></div>
<div class='wplc-palette-top' style='background-color:#EEE;'></div>
<div class='wplc-palette-top' style='background-color:#666;'></div>
</div>
</div>
<div class='wplc_palette_single'>
<div class='wplc-palette-selection <?php if (isset($wplc_settings['wplc_theme']) && $wplc_settings['wplc_theme'] == 'theme-1') { echo 'wplc_theme_active'; } ?>' id='wplc_theme_1'>
<div class='wplc-palette-top' style='background-color:#DB0000;'></div>
<div class='wplc-palette-top' style='background-color:#FFF;'></div>
<div class='wplc-palette-top' style='background-color:#000;'></div>
<div class='wplc-palette-top' style='background-color:#666;'></div>
</div>
</div>
<div class='wplc_palette_single'>
<div class='wplc-palette-selection <?php if (isset($wplc_settings['wplc_theme']) && $wplc_settings['wplc_theme'] == 'theme-2') { echo 'wplc_theme_active'; } ?>' id='wplc_theme_2'>
<div class='wplc-palette-top' style='background-color:#000;'></div>
<div class='wplc-palette-top' style='background-color:#FFF;'></div>
<div class='wplc-palette-top' style='background-color:#888;'></div>
<div class='wplc-palette-top' style='background-color:#666;'></div>
</div>
</div>
<div class='wplc_palette_single'>
<div class='wplc-palette-selection <?php if (isset($wplc_settings['wplc_theme']) && $wplc_settings['wplc_theme'] == 'theme-3') { echo 'wplc_theme_active'; } ?>' id='wplc_theme_3'>
<div class='wplc-palette-top' style='background-color:#B97B9D;'></div>
<div class='wplc-palette-top' style='background-color:#FFF;'></div>
<div class='wplc-palette-top' style='background-color:#EEE;'></div>
<div class='wplc-palette-top' style='background-color:#5A0031;'></div>
</div>
</div>
<div class='wplc_palette_single'>
<div class='wplc-palette-selection <?php if (isset($wplc_settings['wplc_theme']) && $wplc_settings['wplc_theme'] == 'theme-4') { echo 'wplc_theme_active'; } ?>' id='wplc_theme_4'>
<div class='wplc-palette-top' style='background-color:#1A14DB;'></div>
<div class='wplc-palette-top' style='background-color:#FDFDFF;'></div>
<div class='wplc-palette-top' style='background-color:#7F7FB3;'></div>
<div class='wplc-palette-top' style='background-color:#666;'></div>
</div>
</div>
<div class='wplc_palette_single'>
<div class='wplc-palette-selection <?php if (isset($wplc_settings['wplc_theme']) && $wplc_settings['wplc_theme'] == 'theme-5') { echo 'wplc_theme_active'; } ?>' id='wplc_theme_5'>
<div class='wplc-palette-top' style='background-color:#3DCC13;'></div>
<div class='wplc-palette-top' style='background-color:#FDFDFF;'></div>
<div class='wplc-palette-top' style='background-color:#EEE;'></div>
<div class='wplc-palette-top' style='background-color:#666;'></div>
</div>
</div>
<div class='wplc_palette_single'>
<div class='wplc-palette-selection <?php if (isset($wplc_settings['wplc_theme']) && $wplc_settings['wplc_theme'] == 'theme-6') { echo 'wplc_theme_active'; } ?>' id='wplc_theme_6'>
<div class='wplc-palette-top' style='padding-top:3px'><?php _e("Choose","wplivechat"); ?></div>
<div class='wplc-palette-top' style='padding-top:3px'><?php _e("Your","wplivechat"); ?></div>
<div class='wplc-palette-top' style='padding-top:3px'><?php _e("Colors","wplivechat"); ?></div>
<div class='wplc-palette-top' style='padding-top:3px'><?php _e("Below","wplivechat"); ?></div>
</div>
</div>
</div>
</div>
<input type="radio" name="wplc_theme" value="theme-default" class="wplc_hide_input" id="wplc_rb_theme_default" <?php if (isset($wplc_settings['wplc_theme']) && $wplc_settings['wplc_theme'] == 'theme-default') { echo 'checked'; } ?>/>
<input type="radio" name="wplc_theme" value="theme-1" class="wplc_hide_input" id="wplc_rb_theme_1" <?php if (isset($wplc_settings['wplc_theme']) && $wplc_settings['wplc_theme'] == 'theme-1') { echo 'checked'; } ?>/>
<input type="radio" name="wplc_theme" value="theme-2" class="wplc_hide_input" id="wplc_rb_theme_2" <?php if (isset($wplc_settings['wplc_theme']) && $wplc_settings['wplc_theme'] == 'theme-2') { echo 'checked'; } ?>/>
<input type="radio" name="wplc_theme" value="theme-3" class="wplc_hide_input" id="wplc_rb_theme_3" <?php if (isset($wplc_settings['wplc_theme']) && $wplc_settings['wplc_theme'] == 'theme-3') { echo 'checked'; } ?>/>
<input type="radio" name="wplc_theme" value="theme-4" class="wplc_hide_input" id="wplc_rb_theme_4" <?php if (isset($wplc_settings['wplc_theme']) && $wplc_settings['wplc_theme'] == 'theme-4') { echo 'checked'; } ?>/>
<input type="radio" name="wplc_theme" value="theme-5" class="wplc_hide_input" id="wplc_rb_theme_5" <?php if (isset($wplc_settings['wplc_theme']) && $wplc_settings['wplc_theme'] == 'theme-5') { echo 'checked'; } ?>/>
<input type="radio" name="wplc_theme" value="theme-6" class="wplc_hide_input" id="wplc_rb_theme_6" <?php if (isset($wplc_settings['wplc_theme']) && $wplc_settings['wplc_theme'] == 'theme-6') { echo 'checked'; } ?>/>
</td>
</tr>
<tr>
<td width='300' valign='top'><?php _e("Chat background","wplivechat")?>:</td>
<td>
<select id='wplc_settings_bg' name='wplc_settings_bg'>
<option value="cloudy.jpg" <?php if (!isset($wplc_settings['wplc_settings_bg']) || ($wplc_settings['wplc_settings_bg'] == "cloudy.jpg") ) { echo "selected"; } ?>><?php _e("Cloudy","wplivechat"); ?></option>
<option value="geometry.jpg" <?php if (isset($wplc_settings['wplc_settings_bg']) && $wplc_settings['wplc_settings_bg'] == "geometry.jpg") { echo "selected"; } ?>><?php _e("Geometry","wplivechat"); ?></option>
<option value="tech.jpg" <?php if (isset($wplc_settings['wplc_settings_bg']) && $wplc_settings['wplc_settings_bg'] == "tech.jpg") { echo "selected"; } ?>><?php _e("Tech","wplivechat"); ?></option>
<option value="social.jpg" <?php if (isset($wplc_settings['wplc_settings_bg']) && $wplc_settings['wplc_settings_bg'] == "social.jpg") { echo "selected"; } ?>><?php _e("Social","wplivechat"); ?></option>
<option value="0" <?php if (isset($wplc_settings['wplc_settings_bg']) && $wplc_settings['wplc_settings_bg'] == "0") { echo "selected"; } ?>><?php _e("None","wplivechat"); ?></option>
</select>
</td>
</tr>
<tr>
<td width='200' valign='top'><?php _e("Palette Color 1","wplivechat")?>:</td>
<td>
<input id="wplc_settings_color1" name="wplc_settings_color1" type="text" class="color" value="<?php if (isset($wplc_settings_color1)) { echo $wplc_settings_color1; } else { echo 'ED832F'; } ?>" />
</td>
</tr>
<tr>
<td width='200' valign='top'><?php _e("Palette Color 2","wplivechat")?>:</td>
<td>
<input id="wplc_settings_color2" name="wplc_settings_color2" type="text" class="color" value="<?php if (isset($wplc_settings_color2)) { echo $wplc_settings_color2; } else { echo 'FFFFFF'; } ?>" />
</td>
</tr>
<tr>
<td width='200' valign='top'><?php _e("Palette Color 3","wplivechat")?>:</td>
<td>
<input id="wplc_settings_color3" name="wplc_settings_color3" type="text" class="color" value="<?php if (isset($wplc_settings_color3)) { echo $wplc_settings_color3; } else { echo 'EEEEEE'; } ?>" />
</td>
</tr>
<tr>
<td width='200' valign='top'><?php _e("Palette Color 4","wplivechat")?>:</td>
<td>
<input id="wplc_settings_color4" name="wplc_settings_color4" type="text" class="color" value="<?php if (isset($wplc_settings_color4)) { echo $wplc_settings_color4; } else { echo '666666'; } ?>" />
</td>
</tr>
<tr>
<td width="200" valign="top"><?php _e("I'm using a localization plugin", "wplivechat") ?></td>
<td>
<input type="checkbox" name="wplc_using_localization_plugin" id="wplc_using_localization_plugin" value="1" <?php if (isset($wplc_settings['wplc_using_localization_plugin']) && $wplc_settings['wplc_using_localization_plugin'] == 1) { echo 'checked'; } ?>/>
<br/><small><?php echo sprintf( __("Enable this if you are using a localization plugin. Should you wish to change the below strings with this option enabled, please visit the documentation %s", "wplivechat"), "<a href='https://wp-livechat.com/documentation/changing-strings-in-the-chat-window-when-using-a-localization-plugin/' target='_BLANK'>".__("here", "wplivechat") ); ?></small>
</td>
</tr>
<tr style='height:30px;'><td></td><td></td></tr>
<tr class="wplc_localization_strings">
<td width="200" valign="top"><?php _e("First Section Text", "wplivechat") ?>:</td>
<td>
<input id="wplc_pro_fst1" name="wplc_pro_fst1" type="text" size="50" maxlength="50" class="regular-text" value="<?php echo stripslashes($wplc_settings['wplc_pro_fst1']) ?>" /> <br />
<input id="wplc_pro_fst2" name="wplc_pro_fst2" type="text" size="50" maxlength="50" class="regular-text" value="<?php echo stripslashes($wplc_settings['wplc_pro_fst2']) ?>" /> <br />
</td>
</tr>
<tr class="wplc_localization_strings">
<td width="200" valign="top"><?php _e("Intro Text", "wplivechat") ?>:</td>
<td>
<input id="wplc_pro_intro" name="wplc_pro_intro" type="text" size="50" maxlength="150" class="regular-text" value="<?php echo stripslashes($wplc_settings['wplc_pro_intro']) ?>" /> <br />
</td>
</tr>
<tr class="wplc_localization_strings">
<td width="200" valign="top"><?php _e("Second Section Text", "wplivechat") ?>:</td>
<td>
<input id="wplc_pro_sst1" name="wplc_pro_sst1" type="text" size="50" maxlength="30" class="regular-text" value="<?php echo stripslashes($wplc_settings['wplc_pro_sst1']) ?>" /> <br />
<input id="wplc_pro_sst2" name="wplc_pro_sst2" type="text" size="50" maxlength="70" class="regular-text" value="<?php echo stripslashes($wplc_settings['wplc_pro_sst2']) ?>" /> <br />
</td>
</tr>
<tr class="wplc_localization_strings">
<td width="200" valign="top"><?php _e("Reactivate Chat Section Text", "wplivechat") ?>:</td>
<td>
<input id="wplc_pro_tst1" name="wplc_pro_tst1" type="text" size="50" maxlength="50" class="regular-text" value="<?php echo stripslashes($wplc_settings['wplc_pro_tst1']) ?>" /> <br />
</td>
</tr>
<?php /* removed as this has been replaced with the "welcome_msg" below
<tr class="wplc_localization_strings">
<td width="200" valign="top"><?php _e("User chat welcome", "wplivechat") ?>:</td>
<td>
<input id="wplc_user_welcome_chat" name="wplc_user_welcome_chat" type="text" size="50" maxlength="150" class="regular-text" value="<?php echo stripslashes($wplc_settings['wplc_user_welcome_chat']) ?>" /> <br />
</td>
</tr>
*/ ?>
<tr class="wplc_localization_strings">
<td width="200" valign="top"><?php _e("Welcome message", "wplivechat") ?>:</td>
<td>
<input id="wplc_welcome_msg" name="wplc_welcome_msg" type="text" size="50" maxlength="350" class="regular-text" value="<?php echo stripslashes($wplc_settings['wplc_welcome_msg']) ?>" /> <span class='description'><?php _e('This text is shown as soon as a user starts a chat and waits for an agent to join', 'wplivechat'); ?></span><br />
</td>
</tr>
<tr class="wplc_localization_strings">
<td width="200" valign="top"><?php _e("No answer", "wplivechat") ?>:</td>
<td>
<input id="wplc_user_no_answer" name="wplc_user_no_answer" type="text" size="50" maxlength="150" class="regular-text" value="<?php echo (isset($wplc_settings['wplc_user_no_answer']) ? stripslashes($wplc_settings['wplc_user_no_answer']) : __("There is No Answer. Please Try Again Later.","wplivechat")); ?>" /> <span class='description'><?php _e('This text is shown to the user when an agent has failed to answer a chat ', 'wplivechat'); ?></span><br />
</td>
</tr>
<tr class="wplc_localization_strings">
<td width="200" valign="top"><?php _e("Other text", "wplivechat") ?>:</td>
<td>
<input id="wplc_user_enter" name="wplc_user_enter" type="text" size="50" maxlength="150" class="regular-text" value="<?php echo stripslashes($wplc_settings['wplc_user_enter']) ?>" /><br />
<input id="wplc_text_chat_ended" name="wplc_text_chat_ended" type="text" size="50" maxlength="150" class="regular-text" value="<?php echo ( empty( $wplc_settings['wplc_text_chat_ended'] ) ) ? stripslashes(__("The chat has been ended by the operator.", "wplivechat")) : stripslashes( $wplc_settings['wplc_text_chat_ended'] ) ?>" /> <br />
</td>
</tr>
<!--
<tr class="wplc_localization_strings">
<td width="200" valign="top"><?php _e("Close Button Text", "wplivechat") ?>:</td>
<td>
<input id="wplc_close_btn_text" name="wplc_close_btn_text" type="text" size="50" maxlength="150" class="regular-text" value="<?php echo stripslashes($wplc_settings['wplc_close_btn_text']) ?>" /><br />
</td>
</tr>
-->
<tr>
<th><label for=""><?php _e('Choose an animation', 'wplivechat'); ?></label></th>
<td>
<div class='wplc_animation_block'>
<div class='wplc_animation_image <?php if (isset($wplc_settings['wplc_animation']) && $wplc_settings['wplc_animation'] == 'animation-1') {
echo 'wplc_animation_active';
} ?>' id='wplc_animation_1'>
<i class="fa fa-arrow-circle-up wplc_orange"></i>
<p><?php _e('Slide Up', 'wplivechat'); ?></p>
</div>
<div class='wplc_animation_image <?php if (isset($wplc_settings['wplc_animation']) && $wplc_settings['wplc_animation'] == 'animation-2') {
echo 'wplc_animation_active';
} ?>' id='wplc_animation_2'>
<i class="fa fa-arrows-h wplc_red"></i>
<p><?php _e('Slide From The Side', 'wplivechat'); ?></p>
</div>
<div class='wplc_animation_image <?php if (isset($wplc_settings['wplc_animation']) && $wplc_settings['wplc_animation'] == 'animation-3') {
echo 'wplc_animation_active';
} ?>' id='wplc_animation_3'>
<i class="fa fa-arrows-alt wplc_orange"></i>
<p><?php _e('Fade In', 'wplivechat'); ?></p>
</div>
<div class='wplc_animation_image <?php if ((isset($wplc_settings['wplc_animation']) && $wplc_settings['wplc_animation'] == 'animation-4') || !isset($wplc_settings['wplc_animation'])) {
echo 'wplc_animation_active';
} ?>' id='wplc_animation_4'>
<i class="fa fa-thumb-tack wplc_red"></i>
<p><?php _e('No Animation', 'wplivechat'); ?></p>
</div>
</div>
<input type="radio" name="wplc_animation" value="animation-1" class="wplc_hide_input" id="wplc_rb_animation_1" class='wplc_hide_input' <?php if (isset($wplc_settings['wplc_animation']) && $wplc_settings['wplc_animation'] == 'animation-1') {
echo 'checked';
} ?>/>
<input type="radio" name="wplc_animation" value="animation-2" class="wplc_hide_input" id="wplc_rb_animation_2" class='wplc_hide_input' <?php if (isset($wplc_settings['wplc_animation']) && $wplc_settings['wplc_animation'] == 'animation-2') {
echo 'checked';
} ?>/>
<input type="radio" name="wplc_animation" value="animation-3" class="wplc_hide_input" id="wplc_rb_animation_3" class='wplc_hide_input' <?php if (isset($wplc_settings['wplc_animation']) && $wplc_settings['wplc_animation'] == 'animation-3') {
echo 'checked';
} ?>/>
<input type="radio" name="wplc_animation" value="animation-4" class="wplc_hide_input" id="wplc_rb_animation_4" class='wplc_hide_input' <?php if (isset($wplc_settings['wplc_animation']) && $wplc_settings['wplc_animation'] == 'animation-4') {
echo 'checked';
} ?>/>
</td>
</tr>
</table>
</div>
<div id="tabs-5">
<?php do_action("wplc_hook_agents_settings"); ?>
</div>
<div id="tabs-7">
<h3><?php _e("Blocked Visitors - Based on IP Address", "wplivechat") ?></h3>
<table class='form-table wp-list-table wplc_list_table widefat fixed striped pages' width='100%'>
<tr>
<td>
<textarea name="wplc_ban_users_ip" style="width: 50%; min-height: 200px;" placeholder="<?php _e('Enter each IP Address you would like to block on a new line', 'wplivechat'); ?>" autocomplete="false"><?php
$ip_addresses = get_option('WPLC_BANNED_IP_ADDRESSES');
if($ip_addresses){
$ip_addresses = maybe_unserialize($ip_addresses);
if ($ip_addresses && is_array($ip_addresses)) {
foreach($ip_addresses as $ip){
echo $ip."\n";
}
}
}
?></textarea>
<p class="description"><?php _e('Blocking a user\'s IP Address here will hide the chat window from them, preventing them from chatting with you. Each IP Address must be on a new line', 'wplivechat'); ?></p>
</td>
</tr>
</table>
</div>
<?php do_action("wplc_hook_settings_page_more_tabs"); ?>
</div>
<p class='submit'><input type='submit' name='wplc_save_settings' class='button-primary' value='<?php _e("Save Settings","wplivechat")?>' /></p>
</form>
</div>