|
|
render_field(array('id' => 'answerrails_chat_enabled', 'type' => 'checkbox', 'label' => __('Enable chat functionality', 'answerrails'), 'default' => true)); ?>
|
|
|
render_field(array(
'id' => 'answerrails_display_mode',
'type' => 'select',
'options' => array(
'disabled' => __('Disabled - Use shortcode only', 'answerrails'),
'home_only' => __('Home Page Only (Recommended)', 'answerrails'),
'all_pages' => __('All Pages', 'answerrails'),
'custom_pages' => __('Custom Pages (select below)', 'answerrails'),
'shortcode_only' => __('Shortcode Only', 'answerrails'),
),
'default' => 'home_only'
)); ?>
|
style="display:none;" aria-hidden="true">
|
|
|
render_field(array('id' => 'answerrails_business_name', 'type' => 'text', 'default' => 'Your Business')); ?>
|
|
|
render_field(array('id' => 'answerrails_chat_title', 'type' => 'text', 'default' => 'How can we help you today?')); ?>
|
|
|
render_field(array('id' => 'answerrails_theme_accent', 'type' => 'color', 'default' => AnswerRails_Theme::DEFAULT_ACCENT)); ?>
render_contrast_guard(array(
'bg_field' => 'answerrails_theme_accent',
'bg_default' => AnswerRails_Theme::DEFAULT_ACCENT,
'label' => __('Theme colour', 'answerrails'),
)); ?>
|
|
|
render_field(array(
'id' => 'answerrails_theme_header',
'type' => 'select',
'options' => array(
'accent' => __('Theme colour (default)', 'answerrails'),
'surface' => __('Plain / minimal', 'answerrails'),
'custom' => __('Custom colour…', 'answerrails'),
),
'default' => 'accent',
)); ?>
|
|
|
render_field(array(
'id' => 'answerrails_theme_mode',
'type' => 'select',
'options' => array(
'light' => __('Light (default)', 'answerrails'),
'dark' => __('Dark', 'answerrails'),
'auto' => __('Auto (follow visitor\'s system)', 'answerrails'),
),
'default' => 'light',
)); ?>
|
|
|
render_field(array(
'id' => 'answerrails_window_preset',
'type' => 'select',
'options' => array(
'compact' => __('Compact (360 × 520)', 'answerrails'),
'standard' => __('Standard (380 × 600, default)', 'answerrails'),
'tall' => __('Tall (420 wide, 85% of screen height)', 'answerrails'),
),
'default' => 'standard',
)); ?>
|
|
|
render_field(array('id' => 'answerrails_launcher_tagline', 'type' => 'text', 'default' => __('Chat with us', 'answerrails'))); ?>
|
|
|
|
|
|
__('Speech bubble icon', 'answerrails'),
'avatar' => __('Avatar and tagline', 'answerrails'),
);
$this->render_field(array(
'id' => 'answerrails_launcher_visual',
'type' => 'select',
'options' => $launcher_visual_options,
'default' => 'bubble',
));
?>
|
|
|
render_field(array(
'id' => 'answerrails_launcher_size',
'type' => 'select',
'options' => array(
'compact' => __('Compact', 'answerrails'),
'comfortable' => __('Comfortable', 'answerrails'),
'spacious' => __('Spacious', 'answerrails'),
),
'default' => 'comfortable',
)); ?>
|
|
|
render_field(array(
'id' => 'answerrails_launcher_position',
'type' => 'select',
'options' => array(
'bottom-right' => __('Bottom right', 'answerrails'),
'bottom-left' => __('Bottom left', 'answerrails'),
'bottom-center' => __('Bottom center', 'answerrails'),
),
'default' => 'bottom-right',
)); ?>
|
|
|
render_field(array('id' => 'answerrails_launcher_bg_color', 'type' => 'color', 'default' => AnswerRails_Theme::settings()['accent'])); ?>
render_field(array('id' => 'answerrails_launcher_text_color', 'type' => 'color', 'default' => '#ffffff')); ?>
render_contrast_guard(array(
'bg_field' => 'answerrails_launcher_bg_color',
'bg_default' => AnswerRails_Theme::settings()['accent'],
'text_field' => 'answerrails_launcher_text_color',
'text_default' => '#ffffff',
'label' => __('Launcher colours', 'answerrails'),
)); ?>
|
|
|
render_field(array('id' => 'answerrails_welcome_message', 'type' => 'textarea', 'default' => 'Hi! I\'m here to help with any questions about our products and services.')); ?>
|
|
|
render_field(array('id' => 'answerrails_show_powered_by', 'type' => 'checkbox', 'label' => __('Show a "Powered by AnswerRails" link in the chat window footer', 'answerrails'), 'default' => false)); ?>
|