芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/www/wp-content/plugins/chaty/admin/class-social-icons.php
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') ); } /** * 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 array( array( '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' ), array( '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' => '
' ), array( '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' => '
' ), array( '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' => '
' ), array( 'example' => 'InstagramUsername', 'placeholder' => esc_html__('InstagramUsername', 'chaty'), 'slug' => 'Instagram', 'title' => 'Instagram', 'color' => '#ffffff', 'svg' => '
' ), array( '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' => '
' ), array( 'example' => '', 'placeholder' => '', 'slug' => 'Contact_Us', 'title' => 'Contact Form', 'color' => '#253974', 'svg' => '
' ), array( 'example' => 'https://app.popt.in/APIRequest/click/34e92354f927c', 'placeholder' => esc_html__('Enter a poptin link', 'chaty'), '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
', 'slug' => 'Poptin', 'title' => 'Poptin Popups', 'color' => '#47A2B1', 'svg' => '
' ), array( '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' => '
' ), array( 'example' => 'myusername', 'placeholder' => esc_html__('User Name', 'chaty'), 'slug' => 'Telegram', 'title' => 'Telegram', 'color' => '#3E99D8', 'svg' => '
' ), array( 'example' => 'https://goo.gl/maps/4m93C84v2DC2', 'placeholder' => esc_html__('Maps link', 'chaty'), 'slug' => 'Google_Maps', 'title' => 'Google Maps', 'color' => '#37AA66', 'svg' => '
' ), array( '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' => '
' ), array( 'example' => 'MyTwitterHandle', 'placeholder' => esc_html__('Twitter', 'chaty'), 'slug' => 'Twitter', 'title' => 'Twitter', 'color' => '#000000', // '#1ab2e8', 'svg' => '
', ), array( '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 available in the pro plan", 'svg' => '
' ), array( 'example' => 'myusername', 'placeholder' => esc_html__('Username', 'chaty'), 'slug' => 'Snapchat', 'title' => 'Snapchat', 'color' => '#FFE81D', 'svg' => '
' ), array( 'example' => '@TikTok_username', 'placeholder' => esc_html__('@TikTok_username', 'chaty'), 'slug' => 'TikTok', 'title' => 'TikTok', 'color' => '#000100', 'svg' => '
' ), array( 'example' => 'myusername', 'placeholder' => 'Skype', 'title' => 'Skype', 'slug' => 'Skype', 'color' => '#03A9F4', 'svg' => '
' ), array( 'example' => 'https://waze.com/ul/hdr5ru7vtv', 'placeholder' => esc_html__('Enter a waze link', 'chaty'), 'slug' => 'Waze', 'title' => 'Waze', 'color' => '#6ECCEF', 'svg' => '
' ), array( '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' => '
' ), array( 'example' => 'myusername', 'placeholder' => esc_html__('Link Vkontakte', 'chaty'), 'slug' => 'Vkontakte', 'title' => 'Vkontakte', 'color' => '#5076AA', 'svg' => '
' ), array( 'example' => 'https://workspace.slack.com/', 'placeholder' => esc_html__('Slack', 'chaty'), 'slug' => 'Slack', 'title' => 'Slack', 'color' => '#3f0e40', 'svg' => '
' ), array( 'example' => 'https://discord.gg/abcde', 'placeholder' => esc_html__('Discord', 'chaty'), 'slug' => 'Discord', 'title' => 'Discord', 'color' => '#5865F2', 'svg' => '
' ), array( 'example' => 'https://teams.microsoft.com/join/abcde', 'placeholder' => esc_html__('Microsoft Teams', 'chaty'), 'slug' => 'Microsoft_Teams', 'title' => 'Microsoft Teams', 'color' => '#4B53BC', 'svg' => '
' ), array( 'example' => 'https://www.example.com/contact', 'placeholder' => esc_html__('Link', 'chaty'), 'help_title' => 'How do I use this?', 'help' => 'Add a link to any page you want or a JavaScript code', 'slug' => 'Link', 'title' => 'Custom Link', 'color' => '#1E88E5', 'svg' => '
' ), array( 'example' => 'https://www.example.com/contact', 'placeholder' => esc_html__('Link', 'chaty'), 'slug' => 'Custom_Link', 'title' => 'Custom Link', 'help_title' => 'How do I use this?', 'help' => 'Add a link to any page you want or a JavaScript code', 'color' => '#8141FC', 'svg' => '
' ), array( 'example' => 'https://www.example.com/contact', 'placeholder' => esc_html__('Link', 'chaty'), 'slug' => 'Custom_Link_3', 'title' => 'Custom Link', 'help_title' => 'How do I use this?', 'help' => 'Add a link to any page you want or a JavaScript code', 'color' => '#FF7539', 'svg' => '
' ), array( 'example' => 'https://www.example.com/contact', 'placeholder' => esc_html__('Link', 'chaty'), 'slug' => 'Custom_Link_4', 'title' => 'Custom Link', 'help_title' => 'How do I use this?', 'help' => 'Add a link to any page you want or a JavaScript code', 'color' => '#2A9D8F', 'svg' => '
' ), array( 'example' => 'https://www.example.com/contact', 'placeholder' => esc_html__('Link', 'chaty'), 'slug' => 'Custom_Link_5', 'title' => 'Custom Link', 'help_title' => 'How do I use this?', 'help' => 'Add a link to any page you want or a JavaScript code', 'color' => '#E9C46A', 'svg' => '
' ) ); } }