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', '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__('Phone number', '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__('Phone number', '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' => 'Email',
'help_title' => 'How do I use this?',
'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' => 'Instagram DM Example: Instagram_handle',
'placeholder' => esc_html__('InstagramUsername', 'chaty'),
'slug' => 'Instagram_DM',
'title' => 'Instagram DM',
'color' => '#ffffff',
'svg' => ''
],
[
'example' => 'Instagram Page Example: Instagram_handle',
'placeholder' => esc_html__('InstagramUsername', 'chaty'),
'slug' => 'Instagram',
'title' => 'Instagram Page',
'color' => '#ffffff',
'svg' => '
',
'svg_front' => '
',
],
[
'example' => 'Example: +1507854875',
'placeholder' => esc_html__('Phone number', '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' => 'SMS',
'title' => 'SMS',
'color' => '#FF549C',
'attr' => 'phone-number',
'svg' => '',
],
[
'example' => '',
'placeholder' => '',
'slug' => 'Contact_Us',
'title' => 'Contact Form',
'color' => '#253974',
'svg' => '',
],
[
'example' => 'https://app.popt.in/APIRequest/click/34e92354f927c',
'placeholder' => esc_html__('Enter a poptin link', 'chaty'),
'slug' => 'Poptin',
'title' => 'Poptin Popups',
'color' => '#47A2B1',
'help_title' => 'How do I use this?',
'help' => 'You can create a free poptin account by clicking here, and use it to create popups and forms on your site. You can also learn how to use Poptin and Chaty here',
'svg' => '',
],
[
'example' => 'Example: http://line.me/ti/p/2a-s5A2B8B',
'placeholder' => esc_html__('User Name', 'chaty'),
'slug' => 'Line',
'title' => 'Line',
'color' => '#38B900',
'help' => '',
'help_title' => "Find your link",
'help_link' => "https://developers.line.biz/en/docs/messaging-api/sharing-bot/#url-scheme-to-link-to-the-add-friend-screen",
'svg' => '',
],
[
'example' => 'Example: myusername',
'placeholder' => esc_html__('User Name', 'chaty'),
'slug' => 'Telegram',
'title' => 'Telegram',
'color' => '#3E99D8',
'svg' => '',
],
[
'example' => 'Example: https://goo.gl/maps/4m93C84v2DC2',
'placeholder' => esc_html__('Maps link', 'chaty'),
'slug' => 'Google_Maps',
'title' => 'Google Maps',
'color' => '#37AA66',
'svg' => '',
],
[
'example' => 'Example: +18006927753 or your Viber ID',
'placeholder' => esc_html__('Phone number', 'chaty'),
'slug' => 'Viber',
'title' => 'Viber',
'color' => '#665CAC',
'attr' => 'phone-number',
'help' => 'Try to remove the "+" and your country code',
'header_help' => esc_html__('Enter your Viber ID or full phone number that you registered with Viber. Example:+18006927753', "chaty"),
'svg' => '',
],
[
'example' => 'Example: MyTwitterHandle',
'placeholder' => esc_html__('Twitter', 'chaty'),
'slug' => 'Twitter',
'title' => 'Twitter',
'color' => '#000000', // '#1ab2e8',
'svg' => '',
],
[
'example' => 'Example: UserID',
'placeholder' => esc_html__('User Name', 'chaty'),
'slug' => 'WeChat',
'title' => 'WeChat',
'color' => '#45DC00',
'help' => "Unfortunately, WeChat doesn't have a click-to-chat API, therefore we can only show your username so visitors can look-up for it. We have a QR upload option that visitors can use to quickly launch your WeChat profile.",
'svg' => '',
],
[
'example' => 'Example: myusername',
'placeholder' => esc_html__('Username', 'chaty'),
'slug' => 'Snapchat',
'title' => 'Snapchat',
'color' => '#FFE81D',
'svg' => '',
],
[
'example' => 'Example: @TikTok_username',
'placeholder' => esc_html__('@TikTok_username', 'chaty'),
'slug' => 'TikTok',
'title' => 'TikTok',
'color' => '#000100',
'svg' => '',
],
[
'example' => 'Example: https://waze.com/ul/hdr5ru7vtv',
'placeholder' => esc_html__('Enter a waze link', 'chaty'),
'slug' => 'Waze',
'title' => 'Waze',
'color' => '#6ECCEF',
'svg' => '',
],
[
'example' => 'Example: My-Name-512b1413b',
'placeholder' => esc_html__('My-Name-512b1413b', 'chaty'),
'slug' => 'Linkedin',
'title' => 'LinkedIn',
'color' => '#0077b5',
'help' => "To find your username and suffix, go to your LinkedIn account and click on your profile picture. Once you see your profile, copy the last part of the URL after https://www.linkedin.com/in/",
'svg' => '',
],
[
'example' => 'Example: myusername',
'placeholder' => esc_html__('Link Vkontakte', 'chaty'),
'slug' => 'Vkontakte',
'title' => 'Vkontakte',
'color' => '#5076AA',
'svg' => '',
],
[
'example' => 'Example: https://workspace.slack.com/',
'placeholder' => esc_html__('Slack', 'chaty'),
'slug' => 'Slack',
'title' => 'Slack',
'color' => '#3f0e40',
'svg' => '',
],
[
'example' => 'Example: https://discord.gg/abcde',
'placeholder' => esc_html__('Discord', 'chaty'),
'slug' => 'Discord',
'title' => 'Discord',
'color' => '#5865F2',
'svg' => '',
],
[
'example' => 'Example: https://teams.microsoft.com/join/abcde',
'placeholder' => esc_html__('Microsoft Teams', 'chaty'),
'slug' => 'Microsoft_Teams',
'title' => 'Microsoft Teams',
'color' => '#4B53BC',
'svg' => '',
],
[
'example' => 'Example: https://www.example.com/contact',
'placeholder' => esc_html__('Link', 'chaty'),
'slug' => 'Link',
'title' => 'Custom Link',
'color' => '#1E88E5',
'help_title' => 'How do I use this?',
'help' => 'Add a link to any page you want or a JavaScript code',
'svg' => '',
],
[
'example' => 'Example: https://www.example.com/contact',
'placeholder' => esc_html__('Link', 'chaty'),
'slug' => 'Custom_Link',
'title' => 'Custom Link',
'color' => '#8141FC',
'help_title' => 'How do I use this?',
'help' => 'Add a link to any page you want or a JavaScript code',
'svg' => '',
],
[
'example' => 'Example: https://www.example.com/contact',
'placeholder' => esc_html__('Link', 'chaty'),
'slug' => 'Custom_Link_3',
'title' => 'Custom Link',
'color' => '#FF7539',
'help_title' => 'How do I use this?',
'help' => 'Add a link to any page you want or a JavaScript code',
'svg' => '',
],
[
'example' => 'Example: https://www.example.com/contact',
'placeholder' => esc_html__('Link', 'chaty'),
'slug' => 'Custom_Link_4',
'title' => 'Custom Link',
'color' => '#2A9D8F',
'help_title' => 'How do I use this?',
'help' => 'Add a link to any page you want or a JavaScript code',
'svg' => '',
],
[
'example' => 'Example: https://www.example.com/contact',
'placeholder' => esc_html__('Link', 'chaty'),
'slug' => 'Custom_Link_5',
'title' => 'Custom Link',
'color' => '#E9C46A',
'help_title' => 'How do I use this?',
'help' => 'Add a link to any page you want or a JavaScript code',
'svg' => '',
],
];
}
}