esc_html__('Purple', 'chaty'),
'#86CD91' => esc_html__('Green', 'chaty'),
'#4F6ACA' => esc_html__('Blue', 'chaty'),
'#FF6060' => esc_html__('Red', 'chaty'),
'#000000' => esc_html__('Black', 'chaty'),
'#EEF075' => esc_html__('Yellow', 'chaty'),
'#FF95EE' => esc_html__('Pink', 'chaty')
);
}
/**
* Returns an array of chatway icons in SVG format.
*
* @return array An associative array where keys are icon identifiers and values are SVG markup strings.
*/
public function get_chatway_icons()
{
return [
'icon_1' => '',
'icon_2' => '',
'icon_3' => '',
'icon_4' => ''
];
}
/**
* Get the widget types.
*
* This method returns an array of available widget types. Each type is represented by a key-value pair,
* where the key is the name of the type and the value is the display name of the type.
*
* @return array The array of widget types.
*/
public function get_widget_types()
{
return [
'default' => 'default',
'smile' => 'smile',
'points' => 'points',
'two' => 'two',
'custom' => 'custom'
];
}
/**
* Get the list of icons.
*
* This method returns an array containing icons information.
*
* @return array An array of icons, where each icon is represented as an associative array with the following keys:
* - example: A string representing an example value.
* - placeholder: A string representing the placeholder text.
* - help_title: A string representing the help title.
* - help: A string representing the help content.
* - slug: A string representing the slug.
* - svg: A string representing the SVG content.
* - title: A string representing the title.
* - color: A string representing the color in hexadecimal format.
* - attr: A string representing the attribute.
*/
public function get_icons_list()
{
return [
[
'example' => 'Chatway user id',
'placeholder' => esc_html__('Chatway user id', 'chaty'),
'help_title' => 'How do I use this?',
'help' => "Add Chatway Live Chat widget as Chaty's channel",
'slug' => 'Chatway',
'svg' => '',
'title' => 'Live Chat',
'color' => '#0446DE',
'attr' => 'chatway',
'icons' => [
'icon_1' => '',
'icon_2' => '',
'icon_3' => '',
'icon_4' => ''
]
],
[
'example' => 'Example: +1548587534',
'placeholder' => esc_html__('Example: +1548587534', 'chaty'),
'help_title' => 'How do I use this?',
'help' => 'Choose country code from the dropdown menu, or enter the country code (for example, +1), and then enter your phone number without the leading zero (example, 9878934509)',
'slug' => 'Whatsapp',
'svg' => '',
'title' => 'WhatsApp',
'color' => '#49E670',
'attr' => 'phone-number',
],
[
'example' => 'Example: https://m.me/Coca-Cola/',
'placeholder' => esc_html__('https://m.me/Coca-Cola/', 'chaty'),
'slug' => 'Facebook_Messenger',
'title' => 'Facebook Messenger',
'color' => '#1E88E5',
'help' => "Your Facebook page has to be available to all ages and countries (check your page's settings).
If you can't find your page's URL, click here and follow our guide.",
'svg' => '',
],
[
'example' => 'Example: +1548587534',
'placeholder' => esc_html__('Example: +1548587534', 'chaty'),
'help_title' => 'How do I use this?',
'help' => 'Enter your country code (in our example +1) and then your number without a leading zero (in our example 507854875)',
'slug' => 'Phone',
'title' => 'Phone',
'color' => '#03E78B',
'attr' => 'phone-number',
'svg' => '',
],
[
'example' => 'Example: someone@example.com',
'placeholder' => esc_html__('Example: someone@example.com', 'chaty'),
'help_title' => esc_html__('How do I use this?', 'chaty'),
'help' => 'Learn more here https://premio.io/help/chaty/how-to-add-a-preset-mail-subject-to-your-email-channel/',
'slug' => 'Email',
'title' => 'Email',
'color' => '#FF485F',
'svg' => '',
],
[
'example' => 'Example: my_handle or https://ig.me/m/my_handle',
'placeholder' => esc_html__('Example: my_handle or https://ig.me/m/my_handle', 'chaty'),
'slug' => 'Instagram_DM',
'title' => 'Instagram DM',
'color' => '#ffffff',
'help_title' => 'How do I use this?',
'help' => "This button will redirect users to your Instagram DMs. Add your Instagram username or DM link. For example, if your Instagram username is my_handle, you can add 'my_handle' or you can also add a full DM link like 'https://ig.me/m/my_handle'",
'svg' => ''
],
[
'example' => 'Example: my_handle or https://instagram.com/my_handle',
'placeholder' => esc_html__('Example: my_handle or https://instagram.com/my_handle', 'chaty'),
'slug' => 'Instagram',
'title' => 'Instagram Page',
'color' => '#ffffff',
'help_title' => 'How do I use this?',
'help' => "This button will redirect users to your Instagram page. Add your Instagram username or profile link. For example, in 'instagram.com/my_handle', the username is 'my_handle'. You can also add a full profile link like 'instagram.com/my_handle'.",
'svg' => '