Files
wyczarujprezent.pl/modules/arcontactus/classes/ArContactUsAbstract.php
2024-10-28 22:14:22 +01:00

1461 lines
93 KiB
PHP

<?php
/**
* 2012-2017 Azelab
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@areama.net so we can send you a copy immediately.
*
* @author Azelab <support@azelab.com>
* @copyright 2017 Azelab
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of Azelab
*/
include_once dirname(__FILE__).'/ArContactUsModel.php';
abstract class ArContactUsAbstract extends ArContactUsModel
{
public static function getIcons()
{
return array(
'facebook-messenger' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M224 32C15.9 32-77.5 278 84.6 400.6V480l75.7-42c142.2 39.8 285.4-59.9 285.4-198.7C445.8 124.8 346.5 32 224 32zm23.4 278.1L190 250.5 79.6 311.6l121.1-128.5 57.4 59.6 110.4-61.1-121.1 128.5z"></path></svg>',
'facebook' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M448 56.7v398.5c0 13.7-11.1 24.7-24.7 24.7H309.1V306.5h58.2l8.7-67.6h-67v-43.2c0-19.6 5.4-32.9 33.5-32.9h35.8v-60.5c-6.2-.8-27.4-2.7-52.2-2.7-51.6 0-87 31.5-87 89.4v49.9h-58.4v67.6h58.4V480H24.7C11.1 480 0 468.9 0 455.3V56.7C0 43.1 11.1 32 24.7 32h398.5c13.7 0 24.8 11.1 24.8 24.7z"></path></svg>',
'facebook-f' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 264 512"><path fill="currentColor" d="M76.7 512V283H0v-91h76.7v-71.7C76.7 42.4 124.3 0 193.8 0c33.3 0 61.9 2.5 70.2 3.6V85h-48.2c-37.8 0-45.1 18-45.1 44.3V192H256l-11.7 91h-73.6v229"></path></svg>',
'viber' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M444 49.9C431.3 38.2 379.9.9 265.3.4c0 0-135.1-8.1-200.9 52.3C27.8 89.3 14.9 143 13.5 209.5c-1.4 66.5-3.1 191.1 117 224.9h.1l-.1 51.6s-.8 20.9 13 25.1c16.6 5.2 26.4-10.7 42.3-27.8 8.7-9.4 20.7-23.2 29.8-33.7 82.2 6.9 145.3-8.9 152.5-11.2 16.6-5.4 110.5-17.4 125.7-142 15.8-128.6-7.6-209.8-49.8-246.5zM457.9 287c-12.9 104-89 110.6-103 115.1-6 1.9-61.5 15.7-131.2 11.2 0 0-52 62.7-68.2 79-5.3 5.3-11.1 4.8-11-5.7 0-6.9.4-85.7.4-85.7-.1 0-.1 0 0 0-101.8-28.2-95.8-134.3-94.7-189.8 1.1-55.5 11.6-101 42.6-131.6 55.7-50.5 170.4-43 170.4-43 96.9.4 143.3 29.6 154.1 39.4 35.7 30.6 53.9 103.8 40.6 211.1zm-139-80.8c.4 8.6-12.5 9.2-12.9.6-1.1-22-11.4-32.7-32.6-33.9-8.6-.5-7.8-13.4.7-12.9 27.9 1.5 43.4 17.5 44.8 46.2zm20.3 11.3c1-42.4-25.5-75.6-75.8-79.3-8.5-.6-7.6-13.5.9-12.9 58 4.2 88.9 44.1 87.8 92.5-.1 8.6-13.1 8.2-12.9-.3zm47 13.4c.1 8.6-12.9 8.7-12.9.1-.6-81.5-54.9-125.9-120.8-126.4-8.5-.1-8.5-12.9 0-12.9 73.7.5 133 51.4 133.7 139.2zM374.9 329v.2c-10.8 19-31 40-51.8 33.3l-.2-.3c-21.1-5.9-70.8-31.5-102.2-56.5-16.2-12.8-31-27.9-42.4-42.4-10.3-12.9-20.7-28.2-30.8-46.6-21.3-38.5-26-55.7-26-55.7-6.7-20.8 14.2-41 33.3-51.8h.2c9.2-4.8 18-3.2 23.9 3.9 0 0 12.4 14.8 17.7 22.1 5 6.8 11.7 17.7 15.2 23.8 6.1 10.9 2.3 22-3.7 26.6l-12 9.6c-6.1 4.9-5.3 14-5.3 14s17.8 67.3 84.3 84.3c0 0 9.1.8 14-5.3l9.6-12c4.6-6 15.7-9.8 26.6-3.7 14.7 8.3 33.4 21.2 45.8 32.9 7 5.7 8.6 14.4 3.8 23.6z"></path></svg>',
'telegram-plane' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M446.7 98.6l-67.6 318.8c-5.1 22.5-18.4 28.1-37.3 17.5l-103-75.9-49.7 47.8c-5.5 5.5-10.1 10.1-20.7 10.1l7.4-104.9 190.9-172.5c8.3-7.4-1.8-11.5-12.9-4.1L117.8 284 16.2 252.2c-22.1-6.9-22.5-22.1 4.6-32.7L418.2 66.4c18.4-6.9 34.5 4.1 28.5 32.2z"></path></svg>',
'skype' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M424.7 299.8c2.9-14 4.7-28.9 4.7-43.8 0-113.5-91.9-205.3-205.3-205.3-14.9 0-29.7 1.7-43.8 4.7C161.3 40.7 137.7 32 112 32 50.2 32 0 82.2 0 144c0 25.7 8.7 49.3 23.3 68.2-2.9 14-4.7 28.9-4.7 43.8 0 113.5 91.9 205.3 205.3 205.3 14.9 0 29.7-1.7 43.8-4.7 19 14.6 42.6 23.3 68.2 23.3 61.8 0 112-50.2 112-112 .1-25.6-8.6-49.2-23.2-68.1zm-194.6 91.5c-65.6 0-120.5-29.2-120.5-65 0-16 9-30.6 29.5-30.6 31.2 0 34.1 44.9 88.1 44.9 25.7 0 42.3-11.4 42.3-26.3 0-18.7-16-21.6-42-28-62.5-15.4-117.8-22-117.8-87.2 0-59.2 58.6-81.1 109.1-81.1 55.1 0 110.8 21.9 110.8 55.4 0 16.9-11.4 31.8-30.3 31.8-28.3 0-29.2-33.5-75-33.5-25.7 0-42 7-42 22.5 0 19.8 20.8 21.8 69.1 33 41.4 9.3 90.7 26.8 90.7 77.6 0 59.1-57.1 86.5-112 86.5z"></path></svg>',
'envelope' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M464 64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM48 96h416c8.8 0 16 7.2 16 16v41.4c-21.9 18.5-53.2 44-150.6 121.3-16.9 13.4-50.2 45.7-73.4 45.3-23.2.4-56.6-31.9-73.4-45.3C85.2 197.4 53.9 171.9 32 153.4V112c0-8.8 7.2-16 16-16zm416 320H48c-8.8 0-16-7.2-16-16V195c22.8 18.7 58.8 47.6 130.7 104.7 20.5 16.4 56.7 52.5 93.3 52.3 36.4.3 72.3-35.5 93.3-52.3 71.9-57.1 107.9-86 130.7-104.7v205c0 8.8-7.2 16-16 16z"></path></svg>',
'phone' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z"></path></svg>',
'whatsapp' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"></path></svg>',
'twitter' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"></path></svg>',
'odnoklassniki' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M275.1 334c-27.4 17.4-65.1 24.3-90 26.9l20.9 20.6 76.3 76.3c27.9 28.6-17.5 73.3-45.7 45.7-19.1-19.4-47.1-47.4-76.3-76.6L84 503.4c-28.2 27.5-73.6-17.6-45.4-45.7 19.4-19.4 47.1-47.4 76.3-76.3l20.6-20.6c-24.6-2.6-62.9-9.1-90.6-26.9-32.6-21-46.9-33.3-34.3-59 7.4-14.6 27.7-26.9 54.6-5.7 0 0 36.3 28.9 94.9 28.9s94.9-28.9 94.9-28.9c26.9-21.1 47.1-8.9 54.6 5.7 12.4 25.7-1.9 38-34.5 59.1zM30.3 129.7C30.3 58 88.6 0 160 0s129.7 58 129.7 129.7c0 71.4-58.3 129.4-129.7 129.4s-129.7-58-129.7-129.4zm66 0c0 35.1 28.6 63.7 63.7 63.7s63.7-28.6 63.7-63.7c0-35.4-28.6-64-63.7-64s-63.7 28.6-63.7 64z"></path></svg>',
'vk' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="currentColor" d="M545 117.7c3.7-12.5 0-21.7-17.8-21.7h-58.9c-15 0-21.9 7.9-25.6 16.7 0 0-30 73.1-72.4 120.5-13.7 13.7-20 18.1-27.5 18.1-3.7 0-9.4-4.4-9.4-16.9V117.7c0-15-4.2-21.7-16.6-21.7h-92.6c-9.4 0-15 7-15 13.5 0 14.2 21.2 17.5 23.4 57.5v86.8c0 19-3.4 22.5-10.9 22.5-20 0-68.6-73.4-97.4-157.4-5.8-16.3-11.5-22.9-26.6-22.9H38.8c-16.8 0-20.2 7.9-20.2 16.7 0 15.6 20 93.1 93.1 195.5C160.4 378.1 229 416 291.4 416c37.5 0 42.1-8.4 42.1-22.9 0-66.8-3.4-73.1 15.4-73.1 8.7 0 23.7 4.4 58.7 38.1 40 40 46.6 57.9 69 57.9h58.9c16.8 0 25.3-8.4 20.4-25-11.2-34.9-86.9-106.7-90.3-111.5-8.7-11.2-6.2-16.2 0-26.2.1-.1 72-101.3 79.4-135.6z"></path></svg>',
'slack-hash' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M446.2 270.4c-6.2-19-26.9-29.1-46-22.9l-45.4 15.1-30.3-90 45.4-15.1c19.1-6.2 29.1-26.8 23-45.9-6.2-19-26.9-29.1-46-22.9l-45.4 15.1-15.7-47c-6.2-19-26.9-29.1-46-22.9-19.1 6.2-29.1 26.8-23 45.9l15.7 47-93.4 31.2-15.7-47c-6.2-19-26.9-29.1-46-22.9-19.1 6.2-29.1 26.8-23 45.9l15.7 47-45.3 15c-19.1 6.2-29.1 26.8-23 45.9 5 14.5 19.1 24 33.6 24.6 6.8 1 12-1.6 57.7-16.8l30.3 90L78 354.8c-19 6.2-29.1 26.9-23 45.9 5 14.5 19.1 24 33.6 24.6 6.8 1 12-1.6 57.7-16.8l15.7 47c5.9 16.9 24.7 29 46 22.9 19.1-6.2 29.1-26.8 23-45.9l-15.7-47 93.6-31.3 15.7 47c5.9 16.9 24.7 29 46 22.9 19.1-6.2 29.1-26.8 23-45.9l-15.7-47 45.4-15.1c19-6 29.1-26.7 22.9-45.7zm-254.1 47.2l-30.3-90.2 93.5-31.3 30.3 90.2-93.5 31.3z"></path></svg>',
'intercom' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 32"><path style="fill: currentColor" d="M28,32 C28,32 23.2863266,30.1450667 19.4727818,28.6592 L3.43749107,28.6592 C1.53921989,28.6592 0,27.0272 0,25.0144 L0,3.6448 C0,1.632 1.53921989,0 3.43749107,0 L24.5615088,0 C26.45978,0 27.9989999,1.632 27.9989999,3.6448 L27.9989999,22.0490667 L28,22.0490667 L28,32 Z M23.8614088,20.0181333 C23.5309223,19.6105242 22.9540812,19.5633836 22.5692242,19.9125333 C22.5392199,19.9392 19.5537934,22.5941333 13.9989999,22.5941333 C8.51321617,22.5941333 5.48178311,19.9584 5.4277754,19.9104 C5.04295119,19.5629428 4.46760991,19.6105095 4.13759108,20.0170667 C3.97913051,20.2124916 3.9004494,20.4673395 3.91904357,20.7249415 C3.93763774,20.9825435 4.05196575,21.2215447 4.23660523,21.3888 C4.37862552,21.5168 7.77411059,24.5386667 13.9989999,24.5386667 C20.2248893,24.5386667 23.6203743,21.5168 23.7623946,21.3888 C23.9467342,21.2215726 24.0608642,20.9827905 24.0794539,20.7254507 C24.0980436,20.4681109 24.0195551,20.2135019 23.8614088,20.0181333 Z"></path></svg>',
'line' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M272.1 204.2v71.1c0 1.8-1.4 3.2-3.2 3.2h-11.4c-1.1 0-2.1-.6-2.6-1.3l-32.6-44v42.2c0 1.8-1.4 3.2-3.2 3.2h-11.4c-1.8 0-3.2-1.4-3.2-3.2v-71.1c0-1.8 1.4-3.2 3.2-3.2H219c1 0 2.1.5 2.6 1.4l32.6 44v-42.2c0-1.8 1.4-3.2 3.2-3.2h11.4c1.8-.1 3.3 1.4 3.3 3.1zm-82-3.2h-11.4c-1.8 0-3.2 1.4-3.2 3.2v71.1c0 1.8 1.4 3.2 3.2 3.2h11.4c1.8 0 3.2-1.4 3.2-3.2v-71.1c0-1.7-1.4-3.2-3.2-3.2zm-27.5 59.6h-31.1v-56.4c0-1.8-1.4-3.2-3.2-3.2h-11.4c-1.8 0-3.2 1.4-3.2 3.2v71.1c0 .9.3 1.6.9 2.2.6.5 1.3.9 2.2.9h45.7c1.8 0 3.2-1.4 3.2-3.2v-11.4c0-1.7-1.4-3.2-3.1-3.2zM332.1 201h-45.7c-1.7 0-3.2 1.4-3.2 3.2v71.1c0 1.7 1.4 3.2 3.2 3.2h45.7c1.8 0 3.2-1.4 3.2-3.2v-11.4c0-1.8-1.4-3.2-3.2-3.2H301v-12h31.1c1.8 0 3.2-1.4 3.2-3.2V234c0-1.8-1.4-3.2-3.2-3.2H301v-12h31.1c1.8 0 3.2-1.4 3.2-3.2v-11.4c-.1-1.7-1.5-3.2-3.2-3.2zM448 113.7V399c-.1 44.8-36.8 81.1-81.7 81H81c-44.8-.1-81.1-36.9-81-81.7V113c.1-44.8 36.9-81.1 81.7-81H367c44.8.1 81.1 36.8 81 81.7zm-61.6 122.6c0-73-73.2-132.4-163.1-132.4-89.9 0-163.1 59.4-163.1 132.4 0 65.4 58 120.2 136.4 130.6 19.1 4.1 16.9 11.1 12.6 36.8-.7 4.1-3.3 16.1 14.1 8.8 17.4-7.3 93.9-55.3 128.2-94.7 23.6-26 34.9-52.3 34.9-81.5z"></path></svg>',
'wechat' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="currentColor" d="M385.2 167.6c6.4 0 12.6.3 18.8 1.1C387.4 90.3 303.3 32 207.7 32 100.5 32 13 104.8 13 197.4c0 53.4 29.3 97.5 77.9 131.6l-19.3 58.6 68-34.1c24.4 4.8 43.8 9.7 68.2 9.7 6.2 0 12.1-.3 18.3-.8-4-12.9-6.2-26.6-6.2-40.8-.1-84.9 72.9-154 165.3-154zm-104.5-52.9c14.5 0 24.2 9.7 24.2 24.4 0 14.5-9.7 24.2-24.2 24.2-14.8 0-29.3-9.7-29.3-24.2.1-14.7 14.6-24.4 29.3-24.4zm-136.4 48.6c-14.5 0-29.3-9.7-29.3-24.2 0-14.8 14.8-24.4 29.3-24.4 14.8 0 24.4 9.7 24.4 24.4 0 14.6-9.6 24.2-24.4 24.2zM563 319.4c0-77.9-77.9-141.3-165.4-141.3-92.7 0-165.4 63.4-165.4 141.3S305 460.7 397.6 460.7c19.3 0 38.9-5.1 58.6-9.9l53.4 29.3-14.8-48.6C534 402.1 563 363.2 563 319.4zm-219.1-24.5c-9.7 0-19.3-9.7-19.3-19.6 0-9.7 9.7-19.3 19.3-19.3 14.8 0 24.4 9.7 24.4 19.3 0 10-9.7 19.6-24.4 19.6zm107.1 0c-9.7 0-19.3-9.7-19.3-19.6 0-9.7 9.7-19.3 19.3-19.3 14.5 0 24.4 9.7 24.4 19.3.1 10-9.9 19.6-24.4 19.6z"></path></svg>',
'google-play' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M325.3 234.3L104.6 13l280.8 161.2-60.1 60.1zM47 0C34 6.8 25.3 19.2 25.3 35.3v441.3c0 16.1 8.7 28.5 21.7 35.3l256.6-256L47 0zm425.2 225.6l-58.9-34.1-65.7 64.5 65.7 64.5 60.1-34.1c18-14.3 18-46.5-1.2-60.8zM104.6 499l280.8-161.2-60.1-60.1L104.6 499z"></path></svg>',
'app-store-ios' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM127 384.5c-5.5 9.6-17.8 12.8-27.3 7.3-9.6-5.5-12.8-17.8-7.3-27.3l14.3-24.7c16.1-4.9 29.3-1.1 39.6 11.4L127 384.5zm138.9-53.9H84c-11 0-20-9-20-20s9-20 20-20h51l65.4-113.2-20.5-35.4c-5.5-9.6-2.2-21.8 7.3-27.3 9.6-5.5 21.8-2.2 27.3 7.3l8.9 15.4 8.9-15.4c5.5-9.6 17.8-12.8 27.3-7.3 9.6 5.5 12.8 17.8 7.3 27.3l-85.8 148.6h62.1c20.2 0 31.5 23.7 22.7 40zm98.1 0h-29l19.6 33.9c5.5 9.6 2.2 21.8-7.3 27.3-9.6 5.5-21.8 2.2-27.3-7.3-32.9-56.9-57.5-99.7-74-128.1-16.7-29-4.8-58 7.1-67.8 13.1 22.7 32.7 56.7 58.9 102h52c11 0 20 9 20 20 0 11.1-9 20-20 20z"></path></svg>',
'android' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M89.6 204.5v115.8c0 15.4-12.1 27.7-27.5 27.7-15.3 0-30.1-12.4-30.1-27.7V204.5c0-15.1 14.8-27.5 30.1-27.5 15.1 0 27.5 12.4 27.5 27.5zm10.8 157c0 16.4 13.2 29.6 29.6 29.6h19.9l.3 61.1c0 36.9 55.2 36.6 55.2 0v-61.1h37.2v61.1c0 36.7 55.5 36.8 55.5 0v-61.1h20.2c16.2 0 29.4-13.2 29.4-29.6V182.1H100.4v179.4zm248-189.1H99.3c0-42.8 25.6-80 63.6-99.4l-19.1-35.3c-2.8-4.9 4.3-8 6.7-3.8l19.4 35.6c34.9-15.5 75-14.7 108.3 0L297.5 34c2.5-4.3 9.5-1.1 6.7 3.8L285.1 73c37.7 19.4 63.3 56.6 63.3 99.4zm-170.7-55.5c0-5.7-4.6-10.5-10.5-10.5-5.7 0-10.2 4.8-10.2 10.5s4.6 10.5 10.2 10.5c5.9 0 10.5-4.8 10.5-10.5zm113.4 0c0-5.7-4.6-10.5-10.2-10.5-5.9 0-10.5 4.8-10.5 10.5s4.6 10.5 10.5 10.5c5.6 0 10.2-4.8 10.2-10.5zm94.8 60.1c-15.1 0-27.5 12.1-27.5 27.5v115.8c0 15.4 12.4 27.7 27.5 27.7 15.4 0 30.1-12.4 30.1-27.7V204.5c0-15.4-14.8-27.5-30.1-27.5z"></path></svg>',
'apple' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 376 512"><path fill="currentColor" d="M314.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C59.3 141.2 0 184.8 0 273.5c0 26.2 4.8 53.3 14.4 81.2 12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"></path></svg>',
'comment-lines-solid' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32zm32 264c0 4.4-3.6 8-8 8H136c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm96-96c0 4.4-3.6 8-8 8H136c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16z"></path></svg>',
'comment-lines-light' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M280 272H136c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h144c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8zm96-96H136c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h240c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8zM256 32C114.6 32 0 125.1 0 240c0 47.6 19.9 91.2 52.9 126.3C38 405.7 7 439.1 6.5 439.5c-6.6 7-8.4 17.2-4.6 26S14.4 480 24 480c61.5 0 110-25.7 139.1-46.3C192 442.8 223.2 448 256 448c141.4 0 256-93.1 256-208S397.4 32 256 32zm0 384c-28.3 0-56.3-4.3-83.2-12.8l-15.2-4.8-13 9.2c-23 16.3-58.5 35.3-102.6 39.6 12-15.1 29.8-40.4 40.8-69.6l7.1-18.7-13.7-14.6C47.3 313.7 32 277.6 32 240c0-97 100.5-176 224-176s224 79 224 176-100.5 176-224 176z"></path></svg>',
'comment-dots-solid' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32zM128 272c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"></path></svg>',
'comment-dots-light' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M128 216c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm128 0c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm128 0c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zM256 32C114.6 32 0 125.1 0 240c0 47.6 19.9 91.2 52.9 126.3C38 405.7 7 439.1 6.5 439.5c-6.6 7-8.4 17.2-4.6 26S14.4 480 24 480c61.5 0 110-25.7 139.1-46.3C192 442.8 223.2 448 256 448c141.4 0 256-93.1 256-208S397.4 32 256 32zm0 384c-28.3 0-56.3-4.3-83.2-12.8l-15.2-4.8-13 9.2c-23 16.3-58.5 35.3-102.6 39.6 12-15.1 29.8-40.4 40.8-69.6l7.1-18.7-13.7-14.6C47.3 313.7 32 277.6 32 240c0-97 100.5-176 224-176s224 79 224 176-100.5 176-224 176z"></path></svg>',
'comment-check-solid' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32zm114.1 163.8l-131 130c-4.3 4.3-11.3 4.3-15.6-.1l-75.7-76.3c-4.3-4.3-4.2-11.3.1-15.6l26-25.8c4.3-4.3 11.3-4.2 15.6.1l42.1 42.5 97.2-96.4c4.3-4.3 11.3-4.2 15.6.1l25.8 26c4.2 4.3 4.2 11.3-.1 15.5z"></path></svg>',
'comment-check-light' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M345.3 166.5c-1.6-1.6-3.6-2.3-5.7-2.3-2 0-4.1.8-5.7 2.3L226.5 273.9 178 225.4c-1.6-1.6-3.6-2.3-5.7-2.3-2 0-4.1.8-5.7 2.3l-11.3 11.3c-3.1 3.1-3.1 8.2 0 11.3l65.5 65.5c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3L356.7 189c3.1-3.1 3.1-8.2 0-11.3l-11.4-11.2zM256 32C114.6 32 0 125.1 0 240c0 47.6 19.9 91.2 52.9 126.3C38 405.7 7 439.1 6.5 439.5c-6.6 7-8.4 17.2-4.6 26S14.4 480 24 480c61.5 0 110-25.7 139.1-46.3C192 442.8 223.2 448 256 448c141.4 0 256-93.1 256-208S397.4 32 256 32zm0 384c-28.3 0-56.3-4.3-83.2-12.8l-15.2-4.8-13 9.2c-23 16.3-58.5 35.3-102.6 39.6 12-15.1 29.8-40.4 40.8-69.6l7.1-18.7-13.7-14.6C47.3 313.7 32 277.6 32 240c0-97 100.5-176 224-176s224 79 224 176-100.5 176-224 176z"></path></svg>',
'comment-alt-smile-solid' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M448 0H64C28.7 0 0 28.7 0 64v288c0 35.3 28.7 64 64 64h96v84c0 9.8 11.2 15.5 19.1 9.7L304 416h144c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64zM320 133.2c14.8 0 26.8 12 26.8 26.8s-12 26.8-26.8 26.8-26.8-12-26.8-26.8 12-26.8 26.8-26.8zm-128 0c14.8 0 26.8 12 26.8 26.8s-12 26.8-26.8 26.8-26.8-12-26.8-26.8 12-26.8 26.8-26.8zm164.2 140.9C331.3 303.3 294.8 320 256 320c-38.8 0-75.3-16.7-100.2-45.9-5.8-6.7-5-16.8 1.8-22.5 6.7-5.7 16.8-5 22.5 1.8 18.8 22 46.5 34.6 75.8 34.6 29.4 0 57-12.6 75.8-34.7 5.8-6.7 15.9-7.5 22.6-1.8 6.8 5.8 7.6 15.9 1.9 22.6z"></path></svg>',
'comment-alt-smile-light' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M448 0H64C28.7 0 0 28.7 0 64v288c0 35.3 28.7 64 64 64h96v84c0 7.1 5.8 12 12 12 2.4 0 4.9-.7 7.1-2.4L304 416h144c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64zm32 352c0 17.6-14.4 32-32 32H293.3l-8.5 6.4L192 460v-76H64c-17.6 0-32-14.4-32-32V64c0-17.6 14.4-32 32-32h384c17.6 0 32 14.4 32 32v288zM331.8 237.3C313 259.4 285.4 272 256 272s-57-12.6-75.8-34.6c-5.7-6.7-15.8-7.4-22.5-1.8-6.8 5.8-7.5 15.8-1.8 22.6C180.7 287.3 217.2 304 256 304s75.3-16.7 100.2-45.9c5.8-6.7 4.9-16.8-1.8-22.6-6.7-5.7-16.8-4.9-22.6 1.8zM192 184c13.3 0 24-10.7 24-24s-10.7-24-24-24-24 10.7-24 24 10.7 24 24 24zm128 0c13.3 0 24-10.7 24-24s-10.7-24-24-24-24 10.7-24 24 10.7 24 24 24z"></path></svg>',
'comment-alt-lines-solid' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M448 0H64C28.7 0 0 28.7 0 64v288c0 35.3 28.7 64 64 64h96v84c0 9.8 11.2 15.5 19.1 9.7L304 416h144c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64zM288 264c0 4.4-3.6 8-8 8H136c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm96-96c0 4.4-3.6 8-8 8H136c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16z"></path></svg>',
'comment-alt-lines-light' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M448 0H64C28.7 0 0 28.7 0 64v288c0 35.3 28.7 64 64 64h96v84c0 7.1 5.8 12 12 12 2.4 0 4.9-.7 7.1-2.4L304 416h144c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64zm32 352c0 17.6-14.4 32-32 32H293.3l-8.5 6.4L192 460v-76H64c-17.6 0-32-14.4-32-32V64c0-17.6 14.4-32 32-32h384c17.6 0 32 14.4 32 32v288zM280 240H136c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h144c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8zm96-96H136c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h240c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8z"></path></svg>',
'comment-alt-dots-solid' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M448 0H64C28.7 0 0 28.7 0 64v288c0 35.3 28.7 64 64 64h96v84c0 9.8 11.2 15.5 19.1 9.7L304 416h144c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64zM128 240c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"></path></svg>',
'comment-alt-dots-light' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M448 0H64C28.7 0 0 28.7 0 64v288c0 35.3 28.7 64 64 64h96v84c0 7.1 5.8 12 12 12 2.4 0 4.9-.7 7.1-2.4L304 416h144c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64zm32 352c0 17.6-14.4 32-32 32H293.3l-8.5 6.4L192 460v-76H64c-17.6 0-32-14.4-32-32V64c0-17.6 14.4-32 32-32h384c17.6 0 32 14.4 32 32v288zM128 184c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm128 0c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm128 0c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24z"></path></svg>',
'comments-alt-solid' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="currentColor" d="M416 224V64c0-35.3-28.7-64-64-64H64C28.7 0 0 28.7 0 64v160c0 35.3 28.7 64 64 64v54.2c0 8 9.1 12.6 15.5 7.8l82.8-62.1H352c35.3.1 64-28.6 64-63.9zm96-64h-64v64c0 52.9-43.1 96-96 96H192v64c0 35.3 28.7 64 64 64h125.7l82.8 62.1c6.4 4.8 15.5.2 15.5-7.8V448h32c35.3 0 64-28.7 64-64V224c0-35.3-28.7-64-64-64z"></path></svg>',
'comments-alt-light' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="currentColor" d="M512 160h-96V64c0-35.3-28.7-64-64-64H64C28.7 0 0 28.7 0 64v160c0 35.3 28.7 64 64 64h32v52c0 7.1 5.8 12 12 12 2.4 0 4.9-.7 7.1-2.4L224 288h128c35.3 0 64-28.7 64-64v-32h96c17.6 0 32 14.4 32 32v160c0 17.6-14.4 32-32 32h-64v49.6l-80.2-45.4-7.3-4.2H256c-17.6 0-32-14.4-32-32v-96l-32 18.1V384c0 35.3 28.7 64 64 64h96l108.9 61.6c2.2 1.6 4.7 2.4 7.1 2.4 6.2 0 12-4.9 12-12v-52h32c35.3 0 64-28.7 64-64V224c0-35.3-28.7-64-64-64zm-128 64c0 17.6-14.4 32-32 32H215.6l-7.3 4.2-80.3 45.4V256H64c-17.6 0-32-14.4-32-32V64c0-17.6 14.4-32 32-32h288c17.6 0 32 14.4 32 32v160z"></path></svg>',
'comments' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="currentColor" d="M416 192c0-88.4-93.1-160-208-160S0 103.6 0 192c0 34.3 14.1 65.9 38 92-13.4 30.2-35.5 54.2-35.8 54.5-2.2 2.3-2.8 5.7-1.5 8.7S4.8 352 8 352c36.6 0 66.9-12.3 88.7-25 32.2 15.7 70.3 25 111.3 25 114.9 0 208-71.6 208-160zm122 220c23.9-26 38-57.7 38-92 0-66.9-53.5-124.2-129.3-148.1.9 6.6 1.3 13.3 1.3 20.1 0 105.9-107.7 192-240 192-10.8 0-21.3-.8-31.7-1.9C207.8 439.6 281.8 480 368 480c41 0 79.1-9.2 111.3-25 21.8 12.7 52.1 25 88.7 25 3.2 0 6.1-1.9 7.3-4.8 1.3-2.9.7-6.3-1.5-8.7-.3-.3-22.4-24.2-35.8-54.5z"></path></svg>',
'comments-light' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="currentColor" d="M532 386.2c27.5-27.1 44-61.1 44-98.2 0-80-76.5-146.1-176.2-157.9C368.4 72.5 294.3 32 208 32 93.1 32 0 103.6 0 192c0 37 16.5 71 44 98.2-15.3 30.7-37.3 54.5-37.7 54.9-6.3 6.7-8.1 16.5-4.4 25 3.6 8.5 12 14 21.2 14 53.5 0 96.7-20.2 125.2-38.8 9.1 2.1 18.4 3.7 28 4.8 31.5 57.5 105.5 98 191.8 98 20.8 0 40.8-2.4 59.8-6.8 28.5 18.5 71.6 38.8 125.2 38.8 9.2 0 17.5-5.5 21.2-14 3.6-8.5 1.9-18.3-4.4-25-.5-.4-22.6-24.2-37.9-54.9zM142.2 311l-11.4 7.4c-20.1 13.1-50.5 28.2-87.7 32.5 8.8-11.3 20.2-27.6 29.5-46.4L83 283.7l-16.5-16.3C50.7 251.9 32 226.2 32 192c0-70.6 79-128 176-128s176 57.4 176 128-79 128-176 128c-17.7 0-35.4-2-52.6-6l-13.2-3zm303 103.4l-11.4-7.4-13.2 3.1c-17.2 4-34.9 6-52.6 6-65.1 0-122-25.9-152.4-64.3C326.9 348.6 416 278.4 416 192c0-9.5-1.3-18.7-3.3-27.7C488.1 178.8 544 228.7 544 288c0 34.2-18.7 59.9-34.5 75.4L493 379.7l10.3 20.7c9.4 18.9 20.8 35.2 29.5 46.4-37.1-4.2-67.5-19.4-87.6-32.4zm-37.8-267.7c.1.2.1.4.2.6-.1-.2-.1-.4-.2-.6z"></path></svg>',
'comment-smile-solid' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32zm64 133.2c14.8 0 26.8 12 26.8 26.8s-12 26.8-26.8 26.8-26.8-12-26.8-26.8 12-26.8 26.8-26.8zm-128 0c14.8 0 26.8 12 26.8 26.8s-12 26.8-26.8 26.8-26.8-12-26.8-26.8 12-26.8 26.8-26.8zm164.2 140.9C331.3 335.3 294.8 352 256 352c-38.8 0-75.3-16.7-100.2-45.9-5.8-6.7-5-16.8 1.8-22.5 6.7-5.7 16.8-5 22.5 1.8 18.8 22 46.5 34.6 75.8 34.6 29.4 0 57-12.6 75.8-34.7 5.8-6.7 15.9-7.5 22.6-1.8 6.8 5.8 7.6 15.9 1.9 22.6z"></path></svg>',
'comment-smile-light' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M256 32C114.6 32 0 125.1 0 240c0 47.6 19.9 91.2 52.9 126.3C38 405.7 7 439.1 6.5 439.5c-6.6 7-8.4 17.2-4.6 26S14.4 480 24 480c61.5 0 110-25.7 139.1-46.3C192 442.8 223.2 448 256 448c141.4 0 256-93.1 256-208S397.4 32 256 32zm0 384c-28.3 0-56.3-4.3-83.2-12.8l-15.2-4.8-13 9.2c-23 16.3-58.5 35.3-102.6 39.6 12-15.1 29.8-40.4 40.8-69.6l7.1-18.7-13.7-14.6C47.3 313.7 32 277.6 32 240c0-97 100.5-176 224-176s224 79 224 176-100.5 176-224 176zm75.8-130.7C313 307.4 285.4 320 256 320s-57-12.6-75.8-34.6c-5.7-6.7-15.8-7.4-22.5-1.8-6.8 5.8-7.5 15.8-1.8 22.6C180.7 335.3 217.2 352 256 352s75.3-16.7 100.2-45.9c5.8-6.7 4.9-16.8-1.8-22.6-6.7-5.7-16.8-4.9-22.6 1.8zM192 216c13.3 0 24-10.7 24-24s-10.7-24-24-24-24 10.7-24 24 10.7 24 24 24zm128 0c13.3 0 24-10.7 24-24s-10.7-24-24-24-24 10.7-24 24 10.7 24 24 24z"></path></svg>',
'hangouts' => '<svg viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Canvas" transform="translate(-825 -308)"><g id="Vector"><use xlink:href="#path0_fill0123" transform="translate(825 308)" fill="currentColor"></use></g></g><defs><path id="path0_fill0123" d="M 19 4L 17 4L 17 13L 4 13L 4 15C 4 15.55 4.45 16 5 16L 16 16L 20 20L 20 5C 20 4.45 19.55 4 19 4ZM 15 10L 15 1C 15 0.45 14.55 0 14 0L 1 0C 0.45 0 0 0.45 0 1L 0 15L 4 11L 14 11C 14.55 11 15 10.55 15 10Z"></path></defs></svg>',
'zalo' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 460.1 436.6"><path fill="currentColor" class="st0" d="M82.6 380.9c-1.8-.8-3.1-1.7-1-3.5 1.3-1 2.7-1.9 4.1-2.8 13.1-8.5 25.4-17.8 33.5-31.5 6.8-11.4 5.7-18.1-2.8-26.5C69 269.2 48.2 212.5 58.6 145.5 64.5 107.7 81.8 75 107 46.6c15.2-17.2 33.3-31.1 53.1-42.7 1.2-.7 2.9-.9 3.1-2.7-.4-1-1.1-.7-1.7-.7-33.7 0-67.4-.7-101 .2C28.3 1.7.5 26.6.6 62.3c.2 104.3 0 208.6 0 313 0 32.4 24.7 59.5 57 60.7 27.3 1.1 54.6.2 82 .1 2 .1 4 .2 6 .2H290c36 0 72 .2 108 0 33.4 0 60.5-27 60.5-60.3v-.6-58.5c0-1.4.5-2.9-.4-4.4-1.8.1-2.5 1.6-3.5 2.6-19.4 19.5-42.3 35.2-67.4 46.3-61.5 27.1-124.1 29-187.6 7.2-5.5-2-11.5-2.2-17.2-.8-8.4 2.1-16.7 4.6-25 7.1-24.4 7.6-49.3 11-74.8 6zm72.5-168.5c1.7-2.2 2.6-3.5 3.6-4.8 13.1-16.6 26.2-33.2 39.3-49.9 3.8-4.8 7.6-9.7 10-15.5 2.8-6.6-.2-12.8-7-15.2-3-.9-6.2-1.3-9.4-1.1-17.8-.1-35.7-.1-53.5 0-2.5 0-5 .3-7.4.9-5.6 1.4-9 7.1-7.6 12.8 1 3.8 4 6.8 7.8 7.7 2.4.6 4.9.9 7.4.8 10.8.1 21.7 0 32.5.1 1.2 0 2.7-.8 3.6 1-.9 1.2-1.8 2.4-2.7 3.5-15.5 19.6-30.9 39.3-46.4 58.9-3.8 4.9-5.8 10.3-3 16.3s8.5 7.1 14.3 7.5c4.6.3 9.3.1 14 .1 16.2 0 32.3.1 48.5-.1 8.6-.1 13.2-5.3 12.3-13.3-.7-6.3-5-9.6-13-9.7-14.1-.1-28.2 0-43.3 0zm116-52.6c-12.5-10.9-26.3-11.6-39.8-3.6-16.4 9.6-22.4 25.3-20.4 43.5 1.9 17 9.3 30.9 27.1 36.6 11.1 3.6 21.4 2.3 30.5-5.1 2.4-1.9 3.1-1.5 4.8.6 3.3 4.2 9 5.8 14 3.9 5-1.5 8.3-6.1 8.3-11.3.1-20 .2-40 0-60-.1-8-7.6-13.1-15.4-11.5-4.3.9-6.7 3.8-9.1 6.9zm69.3 37.1c-.4 25 20.3 43.9 46.3 41.3 23.9-2.4 39.4-20.3 38.6-45.6-.8-25-19.4-42.1-44.9-41.3-23.9.7-40.8 19.9-40 45.6zm-8.8-19.9c0-15.7.1-31.3 0-47 0-8-5.1-13-12.7-12.9-7.4.1-12.3 5.1-12.4 12.8-.1 4.7 0 9.3 0 14v79.5c0 6.2 3.8 11.6 8.8 12.9 6.9 1.9 14-2.2 15.8-9.1.3-1.2.5-2.4.4-3.7.2-15.5.1-31 .1-46.5z"/></svg>',
'linked-in' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M4.98 3.5c0 1.381-1.11 2.5-2.48 2.5s-2.48-1.119-2.48-2.5c0-1.38 1.11-2.5 2.48-2.5s2.48 1.12 2.48 2.5zm.02 4.5h-5v16h5v-16zm7.982 0h-4.968v16h4.969v-8.399c0-4.67 6.029-5.052 6.029 0v8.399h4.988v-10.131c0-7.88-8.922-7.593-11.018-3.714v-2.155z"/></svg>',
'linked-in2' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"/></svg>',
'zendesk' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path xmlns="http://www.w3.org/2000/svg" fill="currentColor" d="M12 8.2v14.5H0zM12 3c0 3.3-2.7 6-6 6S0 6.3 0 3h12zm2 19.7c0-3.3 2.7-6 6-6s6 2.7 6 6H14zm0-5.2V3h12z"/></svg>',
'instagram' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z" class=""></path></svg>',
'open-book' => '<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 297.001 297.001" style="enable-background:new 0 0 297.001 297.001;" xml:space="preserve"><g><g><path style="fill: currentColor" d="M287.034,60.873l-20.819-0.001V39.321c0-4.934-3.61-9.126-8.49-9.856c-0.852-0.128-21.134-3.074-45.557,1.37 c-27.227,4.954-48.941,17.171-63.668,35.64c-14.728-18.469-36.442-30.686-63.668-35.64c-24.424-4.443-44.706-1.498-45.557-1.37 c-4.88,0.731-8.49,4.923-8.49,9.856v21.551H9.966C4.463,60.872,0,65.335,0,70.839v187.805c0,3.227,1.562,6.254,4.193,8.124 s6.004,2.35,9.051,1.288c0.748-0.259,75.431-25.747,131.12-0.345c2.628,1.199,5.645,1.199,8.273,0 c55.533-25.33,130.376,0.088,131.12,0.345c1.068,0.372,2.174,0.555,3.276,0.555c2.043,0,4.065-0.628,5.775-1.842 c2.631-1.87,4.193-4.897,4.193-8.124V70.84C297,65.336,292.538,60.873,287.034,60.873z M19.933,245.309V80.805h10.852v132.726 c0,2.896,1.267,5.646,3.458,7.539c2.191,1.893,5.105,2.742,7.969,2.319c0.55-0.08,43.846-6.024,75.478,15.679 C78.725,232.405,39.727,240.112,19.933,245.309z M138.534,230.08c-13.932-12.588-32.079-21.1-53.702-25.034 c-10.406-1.894-20.06-2.446-27.78-2.446c-2.292,0-4.414,0.049-6.333,0.126V48.473h-0.001c19.155-0.864,65.752,1.184,87.816,38.587 V230.08z M158.466,87.061c21.985-37.243,68.655-39.384,87.816-38.563v154.228c-8.383-0.338-20.62-0.136-34.114,2.32 c-21.623,3.934-39.77,12.445-53.702,25.034V87.061z M179.277,239.074c31.636-21.716,74.955-15.766,75.495-15.686 c2.871,0.431,5.783-0.413,7.981-2.305c2.198-1.894,3.462-4.65,3.462-7.552V80.806h10.852v164.503 C257.267,240.11,218.253,232.4,179.277,239.074z"/></g></g></svg>',
'open-book-2' => '<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 296.999 296.999" style="enable-background:new 0 0 296.999 296.999;" xml:space="preserve"><g><g><g><path style="fill: currentColor" d="M45.432,35.049c-0.008,0-0.017,0-0.025,0c-2.809,0-5.451,1.095-7.446,3.085c-2.017,2.012-3.128,4.691-3.128,7.543 v159.365c0,5.844,4.773,10.61,10.641,10.625c24.738,0.059,66.184,5.215,94.776,35.136V84.023c0-1.981-0.506-3.842-1.461-5.382 C115.322,40.849,70.226,35.107,45.432,35.049z"/><path style="fill: currentColor" d="M262.167,205.042V45.676c0-2.852-1.111-5.531-3.128-7.543c-1.995-1.99-4.639-3.085-7.445-3.085c-0.009,0-0.018,0-0.026,0 c-24.793,0.059-69.889,5.801-93.357,43.593c-0.955,1.54-1.46,3.401-1.46,5.382v166.779 c28.592-29.921,70.038-35.077,94.776-35.136C257.394,215.651,262.167,210.885,262.167,205.042z"/><path style="fill: currentColor" d="M286.373,71.801h-7.706v133.241c0,14.921-12.157,27.088-27.101,27.125c-20.983,0.05-55.581,4.153-80.084,27.344 c42.378-10.376,87.052-3.631,112.512,2.171c3.179,0.724,6.464-0.024,9.011-2.054c2.538-2.025,3.994-5.052,3.994-8.301V82.427 C297,76.568,292.232,71.801,286.373,71.801z"/><path style="fill: currentColor" d="M18.332,205.042V71.801h-7.706C4.768,71.801,0,76.568,0,82.427v168.897c0,3.25,1.456,6.276,3.994,8.301 c2.545,2.029,5.827,2.78,9.011,2.054c25.46-5.803,70.135-12.547,112.511-2.171c-24.502-23.19-59.1-27.292-80.083-27.342 C30.49,232.13,18.332,219.963,18.332,205.042z"/></g></g></g></svg>',
'pinterest' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path fill="currentColor" d="M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z"></path></svg>'
);
}
public function buttonIconSizeSelectOptions()
{
return array(
array(
'id' => '24',
'name' => $this->l('24px', 'ArContactUsAbstract')
),
array(
'id' => '28',
'name' => $this->l('28px', 'ArContactUsAbstract')
),
array(
'id' => '32',
'name' => $this->l('32px', 'ArContactUsAbstract')
),
array(
'id' => '36',
'name' => $this->l('36px', 'ArContactUsAbstract')
),
array(
'id' => '42',
'name' => $this->l('42px', 'ArContactUsAbstract')
),
array(
'id' => '48',
'name' => $this->l('48px', 'ArContactUsAbstract')
),
);
}
public function buttonHookSelectOptions()
{
return array(
array(
'id' => 'displayFooter',
'name' => $this->l('displayFooter', 'ArContactUsAbstract')
),
array(
'id' => 'displayHeader',
'name' => $this->l('displayHeader', 'ArContactUsAbstract')
),
array(
'id' => 'displayBeforeBodyClosingTag',
'name' => $this->l('displayBeforeBodyClosingTag', 'ArContactUsAbstract')
)
);
}
public function buttonIconTypeSelectOptions()
{
return array(
array(
'id' => 'builtin',
'name' => $this->l('Built-in', 'ArContactUsAbstract')
),
array(
'id' => 'fa',
'name' => $this->l('FontAwesome icon', 'ArContactUsAbstract')
),
array(
'id' => 'uploaded',
'name' => $this->l('Uploaded', 'ArContactUsAbstract')
),
);
}
public function modeSelectOptions()
{
return array(
array(
'id' => 'regular',
'name' => $this->l('Menu', 'ArContactUsAbstract')
),
array(
'id' => 'callback',
'name' => $this->l('Callback only', 'ArContactUsAbstract')
),
);
}
public function promptPositionSelectOptions()
{
return array(
array(
'id' => 'top',
'name' => $this->l('Above the button', 'ArContactUsAbstract')
),
array(
'id' => 'side',
'name' => $this->l('Side of the button', 'ArContactUsAbstract')
),
);
}
public function menuSizeSelectOptions()
{
return array(
array(
'id' => 'large',
'name' => $this->l('Large', 'ArContactUsAbstract')
),
array(
'id' => 'small',
'name' => $this->l('Small', 'ArContactUsAbstract')
)
);
}
public function menuStyleSelectOptions()
{
return array(
array(
'id' => 0,
'name' => $this->l('Popup', 'ArContactUsAbstract'),
),
array(
'id' => 1,
'name' => $this->l('Sidebar', 'ArContactUsAbstract'),
),
);
}
public function sidebarAnimationSelectOptions()
{
return array(
array(
'id' => 'elastic',
'name' => $this->l('Elastic', 'ArContactUsAbstract'),
),
array(
'id' => 'bubble',
'name' => $this->l('Bubble', 'ArContactUsAbstract'),
),
);
}
public function popupAnimationSelectOptions()
{
return array(
array(
'id' => 'scale',
'name' => $this->l('ScaleIn', 'ArContactUsAbstract'),
),
array(
'id' => 'scaleout',
'name' => $this->l('ScaleOut', 'ArContactUsAbstract'),
),
array(
'id' => 'fadeindown',
'name' => $this->l('FadeInDown', 'ArContactUsAbstract'),
),
array(
'id' => 'fadeinup',
'name' => $this->l('FadeInUp', 'ArContactUsAbstract'),
),
);
}
public function itemsAnimationSelectOptions()
{
return array(
array(
'id' => '',
'name' => $this->l('None', 'ArContactUsAbstract'),
),
array(
'id' => 'downtoup',
'name' => $this->l('Down to up', 'ArContactUsAbstract'),
),
array(
'id' => 'uptodown',
'name' => $this->l('Up to down', 'ArContactUsAbstract'),
),
array(
'id' => 'fromaside',
'name' => $this->l('From aside', 'ArContactUsAbstract'),
),
);
}
public function itemBorderStyleSelectOptions()
{
return array(
array(
'id' => 'none',
'name' => $this->l('None', 'ArContactUsAbstract'),
),
array(
'id' => 'solid',
'name' => $this->l('Solid', 'ArContactUsAbstract'),
),
array(
'id' => 'dashed',
'name' => $this->l('Dashed', 'ArContactUsAbstract'),
),
);
}
public function itemStyleSelectOptions()
{
return array(
array(
'id' => 'rounded',
'name' => $this->l('Icon in circle', 'ArContactUsAbstract'),
),
array(
'id' => 'non-rounded',
'name' => $this->l('Icon without circle', 'ArContactUsAbstract'),
),
);
}
public function buttonSizeSelectOptions()
{
return array(
array(
'id' => 'large',
'name' => $this->l('Large', 'ArContactUsAbstract')
),
array(
'id' => 'medium',
'name' => $this->l('Medium', 'ArContactUsAbstract')
),
array(
'id' => 'small',
'name' => $this->l('Small', 'ArContactUsAbstract')
)
);
}
public function skypeTypeSelectOptions()
{
return array(
array(
'id' => 'user',
'name' => $this->l('Skype user', 'ArContactUsAbstract')
),
array(
'id' => 'bot',
'name' => $this->l('Skype bot', 'ArContactUsAbstract')
)
);
}
public function animationSelectOptions()
{
return array(
array(
'id' => 'bounce',
'name' => $this->l('Bounce'),
'items' => array(
array(
'id' => 'bounceIn',
'name' => $this->l('bounceIn')
),
array(
'id' => 'bounceInDown',
'name' => $this->l('bounceInDown')
),
array(
'id' => 'bounceInLeft',
'name' => $this->l('bounceInLeft')
),
array(
'id' => 'bounceInRight',
'name' => $this->l('bounceInRight')
),
array(
'id' => 'bounceInUp',
'name' => $this->l('bounceInUp')
),
)
),
array(
'id' => 'fade',
'name' => $this->l('Fade'),
'items' => array(
array(
'id' => 'fadeIn',
'name' => $this->l('fadeIn')
),
array(
'id' => 'fadeInDown',
'name' => $this->l('fadeInDown')
),
array(
'id' => 'fadeInDownBig',
'name' => $this->l('fadeInDownBig')
),
array(
'id' => 'fadeInLeft',
'name' => $this->l('fadeInLeft')
),
array(
'id' => 'fadeInLeftBig',
'name' => $this->l('fadeInLeftBig')
),
array(
'id' => 'fadeInRight',
'name' => $this->l('fadeInRight')
),
array(
'id' => 'fadeInRightBig',
'name' => $this->l('fadeInRightBig')
),
array(
'id' => 'fadeInUp',
'name' => $this->l('fadeInUp')
),
array(
'id' => 'fadeInUpBig',
'name' => $this->l('fadeInUpBig')
),
)
),
array(
'id' => 'flip',
'name' => $this->l('Flip'),
'items' => array(
array(
'id' => 'flip',
'name' => $this->l('flip')
),
array(
'id' => 'flipInX',
'name' => $this->l('flipInX')
),
array(
'id' => 'flipInY',
'name' => $this->l('flipInY')
),
)
),
array(
'id' => 'lightSpeed',
'name' => $this->l('LightSpeed'),
'items' => array(
array(
'id' => 'lightSpeedIn',
'name' => $this->l('lightSpeedIn')
),
)
),
array(
'id' => 'rotate',
'name' => $this->l('Rotate'),
'items' => array(
array(
'id' => 'rotateIn',
'name' => $this->l('rotateIn')
),
array(
'id' => 'rotateInDownLeft',
'name' => $this->l('rotateInDownLeft')
),
array(
'id' => 'rotateInDownRight',
'name' => $this->l('rotateInDownRight')
),
array(
'id' => 'rotateInUpLeft',
'name' => $this->l('rotateInUpLeft')
),
array(
'id' => 'rotateInUpRight',
'name' => $this->l('rotateInUpRight')
),
)
),
array(
'id' => 'slide',
'name' => $this->l('Slide'),
'items' => array(
array(
'id' => 'slideInUp',
'name' => $this->l('slideInUp')
),
array(
'id' => 'slideInDown',
'name' => $this->l('slideInDown')
),
array(
'id' => 'slideInLeft',
'name' => $this->l('slideInLeft')
),
array(
'id' => 'slideInRight',
'name' => $this->l('slideInRight')
),
)
),
array(
'id' => 'zoom',
'name' => $this->l('Zoom'),
'items' => array(
array(
'id' => 'zoomIn',
'name' => $this->l('zoomIn')
),
array(
'id' => 'zoomInDown',
'name' => $this->l('zoomInDown')
),
array(
'id' => 'zoomInLeft',
'name' => $this->l('zoomInLeft')
),
array(
'id' => 'zoomInRight',
'name' => $this->l('zoomInRight')
),
array(
'id' => 'zoomInUp',
'name' => $this->l('zoomInUp')
),
)
),
array(
'id' => 'roll',
'name' => $this->l('Roll'),
'items' => array(
array(
'id' => 'rollIn',
'name' => $this->l('rollIn')
),
)
)
);
}
public function positionSelectOptions()
{
return array(
array(
'id' => 'left',
'name' => $this->l('Left', 'ArContactUsAbstract')
),
array(
'id' => 'right',
'name' => $this->l('Right', 'ArContactUsAbstract')
)
);
}
public function fbPositionSelectOptions()
{
return array(
array(
'id' => 'left',
'name' => $this->l('Left', 'ArContactUsAbstract')
),
array(
'id' => 'right',
'name' => $this->l('Right', 'ArContactUsAbstract')
)
);
}
public static function getIcon($name)
{
$icons = self::getIcons();
return isset($icons[$name])? $icons[$name] : null;
}
public function rules()
{
return array(
array(
array(
'button_icon_img',
),
'validateImage',
'params' => array(
'mime' => array(
'image/png',
'image/jpg',
'image/jpeg',
'image/svg+xml',
'text/plain',
'image/gif'
),
'size' => array(
'min' => '48x48'
),
'dimensions' => array(
1
)
),
'message' => $this->l('Please check is file format is allowed, dimensions of file is min 48*48px and image proportions is 1:1')
),
array(
array(
'mobile',
'desktop',
'pages',
'sandbox',
'allowed_ips',
'font_awesome',
'desktop_css',
'mobile_css',
'button_hook',
'mode',
'button_icon_type',
'button_icon',
'button_icon_svg',
'button_color',
'button_size',
'button_icon_size',
'position',
'animation',
'x_offset',
'y_offset',
'pulsate_speed',
'icon_speed',
'icon_animation_pause',
'text',
'drag',
'menu_style',
'item_style',
'sidebar_animation',
'popup_animation',
'items_animation',
'item_border_style',
'item_border_color',
'menu_header_on',
'menu_header',
'header_close',
'header_close_bg',
'header_close_color',
'menu_subtitle_color',
'menu_subtitle_hcolor',
'menu_size',
'menu_bg',
'menu_color',
'menu_hbg',
'menu_hcolor',
'shadow_size',
'shadow_opacity',
'enable_prompt',
'prompt_position',
'first_delay',
'loop',
'close_last',
'typing_time',
'message_time',
'name',
'name_validation',
'name_max_len',
'name_filter_laters',
'name_required',
'name_title',
'name_placeholder',
'email_field',
'email_required',
'email_title',
'email_placeholder',
'hhr1',
'hhr2',
'hhr3',
'hhr4',
'twilio',
'twilio_api_key',
'twilio_auth_token',
'twilio_phone',
'twilio_tophone',
'twilio_message',
'tawk_to_head',
'tawk_to_on',
'tawk_to_site_id',
'tawk_to_widget',
'tawk_to_userinfo',
'tawk_to_custom_script',
'hr1',
'crisp_head',
'crisp_on',
'crisp_site_id',
'hr2',
'intercom_head',
'intercom_on',
'intercom_app_id',
'hr3',
'fb_head',
'fb_on',
'fb_page_id',
'fb_init',
'fb_color',
'fb_lang',
'fb_xfbml',
'fb_version',
'fb_one_line',
'hr4',
'vk_head',
'vk_page_id',
'vk_on',
'hr5',
'zopim_head',
'zopim_id',
'zopim_on',
'zopim_userinfo',
'hr6',
'skype_head',
'skype_id',
'skype_type',
'skype_on',
'skype_message_color',
'hr7',
'zalo_head',
'zalo_id',
'zalo_on',
'zalo_welcome',
'hr8',
'lhc_head',
'lhc_on',
'lhc_uri',
'lhc_department',
'hr9',
'ss_head',
'ss_on',
'ss_key',
'ss_userinfo',
'hr10',
'lc_head',
'lc_on',
'lc_userinfo',
'hr11',
'tidio_head',
'tidio_on',
'tidio_userinfo',
'hr12',
'lcp_head',
'lcp_on',
'hr13',
'lz_head',
'lz_on',
'jivosite_head',
'jivosite_on',
'jivosite_id',
'jivosite_userinfo',
'hr15',
'zoho_head',
'zoho_on',
'zoho_id',
'zoho_userinfo',
'hr16',
'fc_head',
'fc_on',
'fc_token',
'fc_host',
'fc_userinfo',
'hr17',
'phplive_head',
'phplive_on',
'phplive_src',
'phplive_userinfo',
'hr18',
'paldesk_head',
'paldesk_on',
'paldesk_key',
//'paldesk_userinfo',
'hr19',
'hubspot_head',
'hubspot_on',
'hubspot_id',
'hubspot_userinfo',
'hr20',
'socialintents_head',
'socialintents_on',
'socialintents_id',
'socialintents_userinfo',
'hr21',
'botmake_head',
'botmake_on',
'botmake_id',
'hr22',
'timeout',
'message',
'phone_placeholder',
'phone_mask',
'maskedinput',
'phone_mask_on',
'proccess_message',
'success_message',
'fail_message',
'btn_title',
'onesignal',
'onesignal_title',
'onesignal_message',
'tg',
'tg_token',
'tg_chat_id',
'tg_text',
'gdpr',
'gdpr_title',
'email',
'email_list',
'recaptcha',
'key',
'secret'
), 'safe'
),
array(
array(
'timeout',
'popup_width',
'menu_width',
'x_offset',
'y_offset',
'pulsate_speed',
'icon_speed',
'icon_icon_animation_pause',
'show_after_close',
'close_timeout',
'icon_animation_pause',
'close_timeout'
), 'isInt'
)
);
}
public function attributeLabels()
{
return array(
'mobile' => $this->l('Enable on mobile', 'ArContactUsAbstract'),
'desktop' => $this->l('Enable on desktop', 'ArContactUsAbstract'),
'sandbox' => $this->l('Sandbox mode', 'ArContactUsAbstract'),
'allowed_ips' => $this->l('Allowed IPs', 'ArContactUsAbstract'),
'font_awesome' => $this->l('Include FontAwesome CSS file', 'ArContactUsAbstract'),
'desktop_css' => $this->l('Desktop custom CSS styles', 'ArContactUsAbstract'),
'mobile_css' => $this->l('Mobile custom CSS styles', 'ArContactUsAbstract'),
'button_hook' => $this->l('Render button in hook', 'ArContactUsAbstract'),
'mode' => $this->l('Button mode', 'ArContactUsAbstract'),
'button_icon_type' => $this->l('Button icon type', 'ArContactUsAbstract'),
'button_icon' => $this->l('Button icon', 'ArContactUsAbstract'),
'button_icon_svg' => $this->l('FontAwesome icon code', 'ArContactUsAbstract'),
'button_icon_img' => $this->l('Upload image', 'ArContactUsAbstract'),
'button_icon_preview' => $this->l('Current button icon', 'ArContactUsAbstract'),
'button_color' => $this->l('Color theme', 'ArContactUsAbstract'),
'button_size' => $this->l('Button size', 'ArContactUsAbstract'),
'button_icon_size' => $this->l('Button icon size', 'ArContactUsAbstract'),
'position' => $this->l('Position', 'ArContactUsAbstract'),
'animation' => $this->l('Appearing animation', 'ArContactUsAbstract'),
'x_offset' => $this->l('X-axis offset', 'ArContactUsAbstract'),
'y_offset' => $this->l('Y-axis offset', 'ArContactUsAbstract'),
'pulsate_speed' => $this->l('Pulsate speed', 'ArContactUsAbstract'),
'icon_speed' => $this->l('Icon slider speed', 'ArContactUsAbstract'),
'icon_animation_pause' => $this->l('Icon slider animation pause', 'ArContactUsAbstract'),
'text' => $this->l('Text', 'ArContactUsAbstract'),
'drag' => $this->l('Enable button drag', 'ArContactUsAbstract'),
'enable_prompt' => $this->l('Enable', 'ArContactUsAbstract'),
'prompt_position' => $this->l('Position', 'ArContactUsAbstract'),
'first_delay' => $this->l('Delay first message', 'ArContactUsAbstract'),
'loop' => $this->l('Loop mesages', 'ArContactUsAbstract'),
'close_last' => $this->l('Close last message', 'ArContactUsAbstract'),
'typing_time' => $this->l('Typing time', 'ArContactUsAbstract'),
'message_time' => $this->l('Message time', 'ArContactUsAbstract'),
'show_after_close' => $this->l('Show after closed', 'ArContactUsAbstract'),
'menu_style' => $this->l('Menu style', 'ArContactUsAbstract'),
'item_style' => $this->l('Items style', 'ArContactUsAbstract'),
'sidebar_animation' => $this->l('Sidebar animation', 'ArContactUsAbstract'),
'popup_animation' => $this->l('Popup animation', 'ArContactUsAbstract'),
'items_animation' => $this->l('Items animation', 'ArContactUsAbstract'),
'item_border_style' => $this->l('Items border', 'ArContactUsAbstract'),
'item_border_color' => $this->l('Items border color', 'ArContactUsAbstract'),
'menu_header_on' => $this->l('Show header', 'ArContactUsAbstract'),
'menu_header' => $this->l('Header text', 'ArContactUsAbstract'),
'header_close' => $this->l('Show close button in header', 'ArContactUsAbstract'),
'menu_subtitle_color' => $this->l('Item subtitle color', 'ArContactUsAbstract'),
'menu_subtitle_hcolor' => $this->l('Hovered item subtitle color', 'ArContactUsAbstract'),
'header_close_bg' => $this->l('Close button background color', 'ArContactUsAbstract'),
'header_close_color' => $this->l('Close button icon color', 'ArContactUsAbstract'),
'shadow_size' => $this->l('Shadow size', 'ArContactUsAbstract'),
'shadow_opacity' => $this->l('Shadow opacity', 'ArContactUsAbstract'),
'menu_size' => $this->l('Menu size', 'ArContactUsAbstract'),
'menu_width' => $this->l('Menu width', 'ArContactUsAbstract'),
'menu_bg' => $this->l('Menu background color', 'ArContactUsAbstract'),
'menu_color' => $this->l('Item title color', 'ArContactUsAbstract'),
'menu_hbg' => $this->l('Hovered item background color', 'ArContactUsAbstract'),
'menu_hcolor' => $this->l('Hovered item title color', 'ArContactUsAbstract'),
'popup_width' => $this->l('Popup desktop width', 'ArContactUsAbstract'),
'timeout' => $this->l('Countdown', 'ArContactUsAbstract'),
'message' => $this->l('Message', 'ArContactUsAbstract'),
'phone_placeholder' => $this->l('Phone field placeholder', 'ArContactUsAbstract'),
'phone_mask' => $this->l('Phone mask', 'ArContactUsAbstract'),
'phone_mask_on' => $this->l('Enable phone mask', 'ArContactUsAbstract'),
'maskedinput' => $this->l('Include jquery.maskedinput.min.js', 'ArContactUsAbstract'),
'proccess_message' => $this->l('Proccess message', 'ArContactUsAbstract'),
'success_message' => $this->l('Success message', 'ArContactUsAbstract'),
'fail_message' => $this->l('Fail message', 'ArContactUsAbstract'),
'close_timeout' => $this->l('Close callback popup timeout', 'ArContactUsAbstract'),
'btn_title' => $this->l('Button title', 'ArContactUsAbstract'),
'onesignal' => $this->l('Enable Onesignal integration', 'ArContactUsAbstract'),
'onesignal_title' => $this->l('Webpush message title', 'ArContactUsAbstract'),
'onesignal_message' => $this->l('Webpush message text', 'ArContactUsAbstract'),
'name' => $this->l('Show Name field', 'ArContactUsAbstract'),
'name_validation' => $this->l('Validate name value', 'ArContactUsAbstract'),
'name_max_len' => $this->l('Max lenght for name value', 'ArContactUsAbstract'),
'name_filter_laters' => $this->l('Enable only laters, numbers and spaces in name field.', 'ArContactUsAbstract'),
'name_required' => $this->l('Name field required', 'ArContactUsAbstract'),
'name_title' => $this->l('Name field title', 'ArContactUsAbstract'),
'name_placeholder' => $this->l('Name field placeholder', 'ArContactUsAbstract'),
'email_field' => $this->l('Show email field', 'ArContactUsAbstract'),
'email_required' => $this->l('Email field required', 'ArContactUsAbstract'),
'email_title' => $this->l('Email field title', 'ArContactUsAbstract'),
'email_placeholder' => $this->l('Email field placeholder', 'ArContactUsAbstract'),
'gdpr' => $this->l('Show GDPR checkbox', 'ArContactUsAbstract'),
'gdpr_title' => $this->l('GDPR checkbox title', 'ArContactUsAbstract'),
'email' => $this->l('Send email', 'ArContactUsAbstract'),
'email_list' => $this->l('Email list', 'ArContactUsAbstract'),
'recaptcha' => $this->l('Integrate with Google reCaptcha', 'ArContactUsAbstract'),
'key' => $this->l('Google reCaptcha Site Key', 'ArContactUsAbstract'),
'secret' => $this->l('Google reCaptcha Secret', 'ArContactUsAbstract'),
'tawk_to_head' => '',
'hr1' => '',
'tawk_to_widget' => $this->l('Widget', 'ArContactUsAbstract'),
'tawk_to_site_id' => $this->l('Site ID', 'ArContactUsAbstract'),
'tawk_to_userinfo' => $this->l('Send customer info to Tawk.to', 'ArContactUsAbstract'),
'tawk_to_custom_script' => $this->l('Use custom Tawk.to script', 'ArContactUsAbstract'),
'crisp_head' => '',
'crisp_site_id' => $this->l('Site ID', 'ArContactUsAbstract'),
'hr2' => '',
'intercom_head' => '',
'hr3' => '',
'fb_head' => '',
'hr4' => '',
'intercom_app_id' => $this->l('App ID', 'ArContactUsAbstract'),
'tawk_to_on' => $this->l('Enable', 'ArContactUsAbstract'),
'crisp_on' => $this->l('Enable', 'ArContactUsAbstract'),
'intercom_on' => $this->l('Enable', 'ArContactUsAbstract'),
'fb_on' => $this->l('Enable', 'ArContactUsAbstract'),
'fb_page_id' => $this->l('Facebook page ID', 'ArContactUsAbstract'),
'fb_init' => $this->l('Initilize Facebook SDK', 'ArContactUsAbstract'),
'fb_color' => $this->l('Color scheme', 'ArContactUsAbstract'),
'fb_lang' => $this->l('Language', 'ArContactUsAbstract'),
'fb_xfbml' => $this->l('XFBML', 'ArContactUsAbstract'),
'fb_version' => $this->l('Script version', 'ArContactUsAbstract'),
'fb_one_line' => $this->l('One-line init', 'ArContactUsAbstract'),
'vk_head' => '',
'vk_page_id' => $this->l('VK page ID', 'ArContactUsAbstract'),
'vk_on' => $this->l('Enable', 'ArContactUsAbstract'),
'hr5' => '',
'zopim_head' => '',
'zopim_id' => $this->l('Widget ID', 'ArContactUsAbstract'),
'zopim_on' => $this->l('Enable', 'ArContactUsAbstract'),
'zopim_userinfo' => $this->l('Send customer info to Zendesk', 'ArContactUsAbstract'),
'hr6' => '',
'skype_head' => '',
'skype_id' => $this->l('Skype ID/Microsoft App ID', 'ArContactUsAbstract'),
'skype_type' => $this->l('Set receiver', 'ArContactUsAbstract'),
'skype_on' => $this->l('Enable', 'ArContactUsAbstract'),
'skype_message_color' => $this->l('Message color', 'ArContactUsAbstract'),
'hr7' => '',
'zalo_head' => '',
'zalo_id' => $this->l('Account ID', 'ArContactUsAbstract'),
'zalo_on' => $this->l('Enable', 'ArContactUsAbstract'),
'zalo_welcome' => $this->l('Welcome message', 'ArContactUsAbstract'),
'zalo_height' => $this->l('Height', 'ArContactUsAbstract'),
'zalo_width' => $this->l('Width', 'ArContactUsAbstract'),
'hr8' => '',
'lhc_head' => '',
'lhc_on' => $this->l('Enable', 'ArContactUsAbstract'),
'lhc_uri' => $this->l('Installation URL', 'ArContactUsAbstract'),
'lhc_width' => $this->l('Width', 'ArContactUsAbstract'),
'lhc_height' => $this->l('Height', 'ArContactUsAbstract'),
'lhc_popup_height' => $this->l('Popup height', 'ArContactUsAbstract'),
'lhc_popup_width' => $this->l('Popup width', 'ArContactUsAbstract'),
'lhc_department' => $this->l('Department', 'ArContactUsAbstract'),
'hr9' => '',
'ss_head' => '',
'ss_on' => $this->l('Enable', 'ArContactUsAbstract'),
'ss_key' => $this->l('Smartsupp Key', 'ArContactUsAbstract'),
'ss_userinfo' => $this->l('Send customer info to smartsupp', 'ArContactUsAbstract'),
'hr10' => '',
'lc_head' => '',
'lc_on' => $this->l('Enable', 'ArContactUsAbstract'),
'lc_key' => $this->l('License ID', 'ArContactUsAbstract'),
'lc_userinfo' => $this->l('Send customer info to LiveChat', 'ArContactUsAbstract'),
'hr11' => '',
'tidio_head' => '',
'tidio_on' => $this->l('Enable', 'ArContactUsAbstract'),
'tidio_key' => $this->l('Public key', 'ArContactUsAbstract'),
'tidio_userinfo' => $this->l('Send customer info to Tidio', 'ArContactUsAbstract'),
'hr12' => '',
'lcp_head' => '',
'lcp_on' => $this->l('Enable', 'ArContactUsAbstract'),
'lcp_uri' => $this->l('Script URL', 'ArContactUsAbstract'),
'hr13' => '',
'lz_head' => '',
'lz_id' => $this->l('Script URL', 'ArContactUsAbstract'),
'lz_on' => $this->l('Enable', 'ArContactUsAbstract'),
'twilio' => $this->l('Enable Twilio integration', 'ArContactUsAbstract'),
'twilio_api_key' => $this->l('Twilio API Key', 'ArContactUsAbstract'),
'twilio_auth_token' => $this->l('Twilio Auth Token', 'ArContactUsAbstract'),
'twilio_phone' => $this->l('Twilio phone', 'ArContactUsAbstract'),
'twilio_tophone' => $this->l('Send SMS to this phone', 'ArContactUsAbstract'),
'twilio_message' => $this->l('SMS text', 'ArContactUsAbstract'),
'jivosite_head' => '',
'jivosite_on' => $this->l('Enable', 'ArContactUsAbstract'),
'jivosite_id' => $this->l('Jivosite ID', 'ArContactUsAbstract'),
'jivosite_userinfo' => $this->l('Send customer info to Jivosite', 'ArContactUsAbstract'),
'hr15' => '',
'zoho_head' => '',
'zoho_on' => $this->l('Enable', 'ArContactUsAbstract'),
'zoho_id' => $this->l('Zoho SalesIQ widget ID', 'ArContactUsAbstract'),
'zoho_userinfo' => $this->l('Send customer info to SalesIQ', 'ArContactUsAbstract'),
'hr16' => '',
'fc_head' => '',
'fc_on' => $this->l('Enable', 'ArContactUsAbstract'),
'fc_token' => $this->l('FreshChat token', 'ArContactUsAbstract'),
'fc_host' => $this->l('FreshChat host', 'ArContactUsAbstract'),
'fc_userinfo' => $this->l('Send customer info to FreshChat', 'ArContactUsAbstract'),
'hr17' => '',
'phplive_head' => '',
'phplive_on' => $this->l('Enable', 'ArContactUsAbstract'),
'phplive_src' => $this->l('PhpLive widget URL', 'ArContactUsAbstract'),
'phplive_userinfo' => $this->l('Send customer info to PhpLive', 'ArContactUsAbstract'),
'hr18' => '',
'paldesk_head' => '',
'paldesk_on' => $this->l('Enable', 'ArContactUsAbstract'),
'paldesk_key' => $this->l('Paldesk API Key', 'ArContactUsAbstract'),
'paldesk_userinfo' => $this->l('Send customer info to Paldesk', 'ArContactUsAbstract'),
'hr19' => '',
'hubspot_head' => '',
'hubspot_on' => $this->l('Enable', 'ArContactUsAbstract'),
'hubspot_id' => $this->l('Hubspot ID', 'ArContactUsAbstract'),
'hubspot_userinfo' => $this->l('Send customer info to Hubspot', 'ArContactUsAbstract'),
'hr20' => '',
'socialintents_head' => '',
'socialintents_on' => $this->l('Enable', 'ArContactUsAbstract'),
'socialintents_id' => $this->l('Socialintents ID', 'ArContactUsAbstract'),
'socialintents_userinfo' => $this->l('Send customer info to SocialIntents', 'ArContactUsAbstract'),
'hr21' => '',
'botmake_head' => '',
'botmake_on' => $this->l('Enable', 'ArContactUsAbstract'),
'botmake_id' => $this->l('Botmake ID', 'ArContactUsAbstract'),
'hr22' => '',
'tg' => $this->l('Enable telegram integration', 'ArContactUsAbstract'),
'tg_token' => $this->l('Telegram bot token', 'ArContactUsAbstract'),
'tg_chat_id' => $this->l('Telegram chat id', 'ArContactUsAbstract'),
'tg_text' => $this->l('Telegram message', 'ArContactUsAbstract'),
'hr1' => '',
'hr2' => '',
'hhr1' => '',
'hhr2' => '',
'hhr3' => '',
'hhr4' => '',
);
}
public function fieldSuffix()
{
return array(
'x_offset' => $this->l('px', 'ArContactUsAbstract'),
'y_offset' => $this->l('px', 'ArContactUsAbstract'),
'pulsate_speed' => $this->l('ms', 'ArContactUsAbstract'),
'icon_speed' => $this->l('ms', 'ArContactUsAbstract'),
'icon_animation_pause' => $this->l('ms', 'ArContactUsAbstract'),
'menu_border' => $this->l('px', 'ArContactUsAbstract'),
'timeout' => $this->l('seconds', 'ArContactUsAbstract'),
'first_delay' => $this->l('ms', 'ArContactUsAbstract'),
'typing_time' => $this->l('ms', 'ArContactUsAbstract'),
'message_time' => $this->l('ms', 'ArContactUsAbstract'),
'zalo_width' => $this->l('px', 'ArContactUsAbstract'),
'zalo_height' => $this->l('px', 'ArContactUsAbstract'),
'show_after_close' => $this->l('minutes', 'ArContactUsAbstract'),
'lhc_width' => $this->l('px', 'ArContactUsAbstract'),
'lhc_height' => $this->l('px', 'ArContactUsAbstract'),
'lhc_popup_height' => $this->l('px', 'ArContactUsAbstract'),
'lhc_popup_width' => $this->l('px', 'ArContactUsAbstract'),
'shadow_size' => $this->l('px', 'ArContactUsAbstract'),
'menu_width' => $this->l('px', 'ArContactUsAbstract'),
'popup_width' => $this->l('px', 'ArContactUsAbstract'),
'close_timeout' => $this->l('seconds', 'ArContactUsAbstract')
);
}
public function attributeTypes()
{
return array(
'mobile' => 'switch',
'desktop' => 'switch',
'sandbox' => 'switch',
'allowed_ips' => 'textarea',
'font_awesome' => 'switch',
'desktop_css' => 'textarea',
'mobile_css' => 'textarea',
'button_hook' => 'select',
'mode' => 'select',
'button_icon_type' => 'select',
'button_icon' => 'html',
'button_icon_svg' => 'textarea',
'button_icon_img' => 'file',
'button_icon_preview' => 'html',
'button_color' => 'color',
'button_size' => 'select',
'button_icon_size' => 'select',
'position' => 'select',
'animation' => 'select',
'x_offset' => 'text',
'y_offset' => 'text',
'pulsate_speed' => 'text',
'icon_speed' => 'text',
'text' => 'textarea',
'drag' => 'switch',
'enable_prompt' => 'switch',
'loop' => 'switch',
'close_last' => 'switch',
'menu_style' => 'select',
'item_style' => 'select',
'sidebar_animation' => 'select',
'popup_animation' => 'select',
'items_animation' => 'select',
'item_border_style' => 'select',
'item_border_color' => 'color',
'menu_header_on' => 'switch',
'menu_header' => 'text',
'header_close' => 'switch',
'menu_subtitle_color' => 'color',
'menu_subtitle_hcolor' => 'color',
'header_close_bg' => 'color',
'header_close_color' => 'color',
'shadow_size' => 'text',
'shadow_opacity' => 'text',
'prompt_position' => 'select',
'menu_size' => 'select',
'menu_bg' => 'color',
'menu_color' => 'color',
'menu_hbg' => 'color',
'menu_hcolor' => 'color',
'tawk_to_head' => 'html',
'crisp_head' => 'html',
'intercom_head' => 'html',
'fb_head' => 'html',
'hr1' => 'html',
'hr2' => 'html',
'hr3' => 'html',
'hr4' => 'html',
'tawk_to_on' => 'switch',
'tawk_to_userinfo' => 'switch',
'tawk_to_custom_script' => 'switch',
'crisp_on' => 'switch',
'intercom_on' => 'switch',
'fb_on' => 'switch',
'fb_init' => 'switch',
'fb_color' => 'color',
'fb_xfbml' => 'switch',
'fb_one_line' => 'switch',
'fb_version' => 'text',
'vk_head' => 'html',
'vk_on' => 'switch',
'hr5' => 'html',
'zopim_head' => 'html',
'zopim_on' => 'switch',
'zopim_userinfo' => 'switch',
'hr6' => 'html',
'skype_head' => 'html',
'skype_on' => 'switch',
'skype_type' => 'select',
'skype_message_color' => 'color',
'hr7' => 'html',
'zalo_head' => 'html',
'zalo_on' => 'switch',
'hr8' => 'html',
'lhc_head' => 'html',
'lhc_on' => 'switch',
'hr9' => 'html',
'ss_head' => 'html',
'ss_on' => 'switch',
'ss_userinfo' => 'switch',
'hr10' => 'html',
'lc_head' => 'html',
'lc_on' => 'switch',
'lc_userinfo' => 'switch',
'hr11' => 'html',
'tidio_head' => 'html',
'tidio_on' => 'switch',
'tidio_userinfo' => 'switch',
'hr12' => 'html',
'lcp_head' => 'html',
'lcp_on' => 'switch',
'hr13' => 'html',
'lz_head' => 'html',
'lz_on' => 'switch',
'jivosite_head' => 'html',
'jivosite_on' => 'switch',
'jivosite_userinfo' => 'switch',
'hr15' => 'html',
'zoho_head' => 'html',
'zoho_on' => 'switch',
'zoho_userinfo' => 'switch',
'hr16' => 'html',
'fc_head' => 'html',
'fc_on' => 'switch',
'fc_userinfo' => 'switch',
'hr17' => 'html',
'phplive_head' => 'html',
'phplive_on' => 'switch',
'phplive_userinfo' => 'switch',
'hr18' => 'html',
'paldesk_head' => 'html',
'paldesk_on' => 'switch',
'paldesk_userinfo' => 'switch',
'hr19' => 'html',
'socialintents_head' => 'html',
'socialintents_on' => 'switch',
'socialintents_userinfo' => 'switch',
'hr21' => 'html',
'hubspot_head' => 'html',
'hubspot_on' => 'switch',
'hubspot_userinfo' => 'switch',
'hr20' => 'html',
'botmake_head' => 'html',
'botmake_on' => 'switch',
'botmake_id' => 'text',
'hr22' => 'html',
'twilio' => 'switch',
'message' => 'textarea',
'proccess_message' => 'textarea',
'success_message' => 'textarea',
'phone_mask_on' => 'switch',
'maskedinput' => 'switch',
'fail_message' => 'textarea',
'onesignal' => 'switch',
'onesignal_message' => 'textarea',
'name' => 'switch',
'name_validation' => 'switch',
'name_filter_laters' => 'switch',
'email_field' => 'switch',
'email_required' => 'switch',
'name_required' => 'switch',
'name_title' => 'text',
'name_placeholder' => 'text',
'gdpr' => 'switch',
'gdpr_title' => 'textarea',
'email_list' => 'textarea',
'email' => 'switch',
'recaptcha' => 'switch',
'tg' => 'switch',
'tg_text' => 'textarea',
'hr1' => 'html',
'hr2' => 'html',
'hhr1' => 'html',
'hhr2' => 'html',
'hhr3' => 'html',
'hhr4' => 'html',
);
}
public function attributeDescriptions()
{
return array(
'timeout' => $this->l('Set to 0 to disable countdown.', 'ArContactUsAbstract'),
'allowed_ips' => sprintf($this->l('One IP address per line. Your current IP %s', 'ArContactUsAbstract'), $this->getCurrentIP()),
'font_awesome' => $this->l('If you have already included FontAwesome CSS file, please disable this option', 'ArContactUsAbstract'),
'button_icon_img' => $this->l('Minimum size is 48x48. Allowed formats: PNG, JPG, JPEG, SVG. Proportions should be 1:1', 'ArContactUsAbstract'),
'sandbox' => $this->l('If enabled, module will be shown from allowed IPs only.', 'ArContactUsAbstract'),
'email_list' => $this->l('One email per line.', 'ArContactUsAbstract'),
'recaptcha' => $this->l('You can use Google reCaptcha to prevent bots from sending callback requests. This module uses invisible reCaptcha V3', 'ArContactUsAbstract'),
'onesignal' => $this->l('Onesignal module is detected on your shop. You can use this option to enable send web push notification to admin users if customer requested callback. To receive these messages you need to subscribe for onesignal admin push notifications.', 'ArContactUsAbstract'),
'key' => $this->l('You can get your Key here https://g.co/recaptcha/v3', 'ArContactUsAbstract'),
'secret' => $this->l('You can get your Secret here https://g.co/recaptcha/v3', 'ArContactUsAbstract'),
'icon_speed' => $this->l('Type 0 here to disable button animation', 'ArContactUsAbstract'),
'icon_animation_pause' => $this->l('Pause beetwen slide icon animations loop', 'ArContactUsAbstract'),
'twilio_phone' => $this->l('Your Twilio phone in international format', 'ArContactUsAbstract'),
'twilio_tophone' => $this->l('SMS message will be send to this phone number. Use international format', 'ArContactUsAbstract'),
'twilio_message' => $this->l('{phone} token will be replaced to phone entered in callback request form. {site} token will be replaced to site domain. {name} token will be replaced to customer name. {referer} token will be replaced to page url which used for callback request. {email} token will be replaced to customer email address (if filled).', 'ArContactUsAbstract'),
'onesignal_title' => $this->l('{phone} token will be replaced to phone entered in callback request form. {site} token will be replaced to site domain. {name} token will be replaced to customer name. {referer} token will be replaced to page url which used for callback request. {email} token will be replaced to customer email address (if filled).', 'ArContactUsAbstract'),
'onesignal_message' => $this->l('{phone} token will be replaced to phone entered in callback request form. {site} token will be replaced to site domain. {name} token will be replaced to customer name. {referer} token will be replaced to page url which used for callback request. {email} token will be replaced to customer email address (if filled).', 'ArContactUsAbstract'),
'fb_lang' => $this->l('SDK locale. For example: en_EN, ru_RU, fr_FR. Default: en_EN', 'ArContactUsAbstract'),
'fb_init' => $this->l('You can disable Facebook SDK initialization to avoid conflicts with other modules that uses Facebook SDK', 'ArContactUsAbstract'),
'phone_mask' => $this->l('X means any number', 'ArContactUsAbstract'),
'maskedinput' => $this->l('Please toggle off this option if you already using maskedinput.js on your site', 'ArContactUsAbstract'),
'vk_page_id' => $this->l('You need to enable "Community messages" for your page in your page administration section', 'ArContactUsAbstract'),
'zopim_id' => $this->l('Zopim or Zendesk chat Widget ID', 'ArContactUsAbstract'),
'show_after_close' => $this->l('Show prompt messages again if visitor has closed prompts after this interval (in minutes). Type 0 if you want to show prompts on next session. Type -1 to show prompts after page reload', 'ArContactUsAbstract'),
'close_timeout' => $this->l('If positive, callback popup will be closed after this interval. Leave 0 value if your want disable this feature.', 'ArContactUsAbstract'),
'tg_token' => $this->l('To create new bot please write to bot t.me/botFather. Write /start then /newbot and follow instructions', 'ArContactUsAbstract'),
'tg_chat_id' => $this->l('Messages will be received to this chatID. To know your chatID please write to bot t.me/userinfobot. You can set few chatID comma-separated. Please note that each chatID must be subscribed to your bot to receive messages from the bot. To subscribe please find your bot in telegram and write /start to the bot.', 'ArContactUsAbstract'),
'tg_text' => $this->l('This message will be received to your telegram. {phone} token will be replaced to phone entered in callback request form. {name} token will be replaced to customer name. {referer} token will be replaced to page url which used for callback request. {email} token will be replaced to customer email address (if filled).', 'ArContactUsAbstract'),
'fb_version' => $this->l('Default is "10.0"', 'ArContactUsAbstract'),
);
}
public function multiLangFields()
{
return array(
'text' => true,
'message' => true,
'phone_placeholder' => true,
'proccess_message' => true,
'success_message' => true,
'fail_message' => true,
'btn_title' => true,
'tawk_to_widget' => true,
'tawk_to_site_id' => true,
'fb_lang' => true,
'phone_mask' => true,
'zalo_welcome' => true,
'gdpr_title' => true,
'menu_header' => true,
'name_title' => true,
'name_placeholder' => true,
'email_title' => true,
'email_placeholder' => true,
'onesignal_message' => true,
'onesignal_title' => true,
'tg_text' => true
);
}
public function htmlFields()
{
return array(
'tawk_to_head' => '<h3 class="section-head">' . $this->l('Tawk.to integration', 'ArContactUsAbstract') . '</h3>',
'hr1' => '<hr/>',
'crisp_head' => '<h3 class="section-head">' . $this->l('Crisp integration', 'ArContactUsAbstract') . '</h3>',
'hr2' => '<hr/>',
'intercom_head' => '<h3 class="section-head">' . $this->l('Intercom integration', 'ArContactUsAbstract') . '</h3>',
'hr3' => '<hr/>',
'fb_head' => '<h3 class="section-head">' . $this->l('Facebook customer chat', 'ArContactUsAbstract') . '</h3>',
'hr4' => '<hr/>',
'vk_head' => '<h3 class="section-head">' . $this->l('VK community messages', 'ArContactUsAbstract') . '</h3>',
'hr5' => '<hr/>',
'zopim_head' => '<h3 class="section-head">' . $this->l('Zendesk chat', 'ArContactUsAbstract') . '</h3>',
'hr6' => '<hr/>',
'skype_head' => '<h3 class="section-head">' . $this->l('Skype Web Control', 'ArContactUsAbstract') . '</h3>',
'hr7' => '<hr/>',
'hr8' => '<hr/>',
'hr9' => '<hr/>',
'hr10' => '<hr/>',
'hr11' => '<hr/>',
'hr12' => '<hr/>',
'hr13' => '<hr/>',
'hr14' => '<hr/>',
'hr15' => '<hr/>',
'hr16' => '<hr/>',
'hr17' => '<hr/>',
'hr18' => '<hr/>',
'hr19' => '<hr/>',
'hr20' => '<hr/>',
'hr21' => '<hr/>',
'hr22' => '<hr/>',
'hr1' => '<hr/>',
'hr2' => '<hr/>',
'hhr1' => '<hr/>',
'hhr2' => '<hr/>',
'hhr3' => '<hr/>',
'hhr4' => '<hr/>',
'zalo_head' => '<h3 class="section-head">' . $this->l('Zalo chat widget', 'ArContactUsAbstract') . '</h3>',
'fb_alert' => '<div class="ui orange message" style="display: block">' . $this->l('Facebook customer chat requires HTTPS for full functionality', 'ArContactUsAbstract') . '</div>',
'onesignal_alert' => '<div class="ui orange message" style="display: block">' . $this->l('Onesignal requires HTTPS', 'ArContactUsAbstract') . '</div>',
'lhc_head' => '<h3 class="section-head">' . $this->l('Live helper chat', 'ArContactUsAbstract') . '</h3>',
'ss_head' => '<h3 class="section-head">' . $this->l('Smartsupp', 'ArContactUsAbstract') . '</h3>',
'lc_head' => '<h3 class="section-head">' . $this->l('LiveChat', 'ArContactUsAbstract') . '</h3>',
'tidio_head' => '<h3 class="section-head">' . $this->l('Tidio', 'ArContactUsAbstract') . '</h3>',
'lcp_head' => '<h3 class="section-head">' . $this->l('LiveChat Pro', 'ArContactUsAbstract') . '</h3>',
'lz_head' => '<h3 class="section-head">' . $this->l('LiveZilla chat widget', 'ArContactUsAbstract') . '</h3>',
'jivosite_head' => '<h3 class="section-head">' . $this->l('Jivosite chat widget', 'ArContactUsAbstract') . '</h3>',
'zoho_head' => '<h3 class="section-head">' . $this->l('Zoho SalesIQ chat widget', 'ArContactUsAbstract') . '</h3>',
'fc_head' => '<h3 class="section-head">' . $this->l('FreshChat chat widget', 'ArContactUsAbstract') . '</h3>',
'phplive_head' => '<h3 class="section-head">' . $this->l('PhpLive chat widget', 'ArContactUsAbstract') . '</h3>',
'paldesk_head' => '<h3 class="section-head">' . $this->l('Paldesk chat widget', 'ArContactUsAbstract') . '</h3>',
'hubspot_head' => '<h3 class="section-head">' . $this->l('Hubspot chat widget', 'ArContactUsAbstract') . '</h3>',
'socialintents_head' => '<h3 class="section-head">' . $this->l('SocialIntents chat widget', 'ArContactUsAbstract') . '</h3>',
'botmake_head' => '<h3 class="section-head">' . $this->l('Botmake chat widget', 'ArContactUsAbstract') . '</h3>'
);
}
public function groupedSelects()
{
return array(
'animation' => true
);
}
public function getCurrentIP()
{
if (isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] != '127.0.0.1') {
return $_SERVER['REMOTE_ADDR'];
}
if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
return $_SERVER['HTTP_X_FORWARDED_FOR'];
}
}
}