Edit File by line
/home/zeestwma/richards.../wp-conte.../plugins/chaty/views/admin
File: chaty_widget.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Contact form leads
[2] Fix | Delete
*
[3] Fix | Delete
* @author : Premio <contact@premio.io>
[4] Fix | Delete
* @license : GPL2
[5] Fix | Delete
*
[6] Fix | Delete
* */
[7] Fix | Delete
[8] Fix | Delete
if (defined('ABSPATH') === false) {
[9] Fix | Delete
exit;
[10] Fix | Delete
}
[11] Fix | Delete
[12] Fix | Delete
$data = [
[13] Fix | Delete
'logo' => CHT_PLUGIN_URL . 'admin/assets/images/logo-color.svg',
[14] Fix | Delete
'upgrade_url' => $this->getUpgradeMenuItemUrl(),
[15] Fix | Delete
'upgrade_text' => esc_html__('Upgrade to Pro', 'chaty'),
[16] Fix | Delete
'title' => esc_html__( 'Create a new Chaty widgets for your website. What can you use it for?', 'chaty' ),
[17] Fix | Delete
'features' => array(
[18] Fix | Delete
[
[19] Fix | Delete
'logo' => CHT_PLUGIN_URL . "admin/assets/images/pro-devices.png",
[20] Fix | Delete
'title' => esc_html__("Create separate designs for desktop and mobile", "chaty"),
[21] Fix | Delete
'desc' => esc_html__("E.g. the mobile version can have a bigger widget, in a different color and a different position", "chaty")
[22] Fix | Delete
],
[23] Fix | Delete
[
[24] Fix | Delete
'logo' => CHT_PLUGIN_URL . "admin/assets/images/pro-language.png",
[25] Fix | Delete
'title' => esc_html__("Create separate designs for desktop and mobile", "chaty"),
[26] Fix | Delete
'desc' => esc_html__("You can show different form and buttons based on URL (E.g. WhatsApp message to a French number and call your French phone number)", "chaty")
[27] Fix | Delete
],
[28] Fix | Delete
[
[29] Fix | Delete
'logo' => CHT_PLUGIN_URL . "admin/assets/images/pro-widget.png",
[30] Fix | Delete
'title' => esc_html__("Show separate widgets for different products", "chaty"),
[31] Fix | Delete
'desc' => esc_html__("On your website (e.g. you can show the Facebook Messenger channel for products in the yourdomain.com/high-end/* category)", "chaty")
[32] Fix | Delete
],
[33] Fix | Delete
[
[34] Fix | Delete
'logo' => CHT_PLUGIN_URL . "admin/assets/images/pro-page.png",
[35] Fix | Delete
'title' => esc_html__("Display different channels for your landing pages", "chaty"),
[36] Fix | Delete
'desc' => esc_html__("This way you can track the results better and have the right person assign to the relevant channel.", "chaty")
[37] Fix | Delete
],
[38] Fix | Delete
[
[39] Fix | Delete
'logo' => CHT_PLUGIN_URL . "admin/assets/images/pro-support.png",
[40] Fix | Delete
'title' => esc_html__("Show one widget on your support and contact pages", "chaty"),
[41] Fix | Delete
'desc' => esc_html__("and a different widget on your sales pages.", "chaty")
[42] Fix | Delete
],
[43] Fix | Delete
[
[44] Fix | Delete
'logo' => CHT_PLUGIN_URL . "admin/assets/images/pro-chat.png",
[45] Fix | Delete
'title' => esc_html__("Display different call-to-action messages", "chaty"),
[46] Fix | Delete
'desc' => esc_html__("for different pages on your website or separate call-to-action messages for mobile and desktop", "chaty")
[47] Fix | Delete
]
[48] Fix | Delete
)
[49] Fix | Delete
]
[50] Fix | Delete
[51] Fix | Delete
?>
[52] Fix | Delete
<div class="container mt-6">
[53] Fix | Delete
<a href="<?php echo esc_url( $this->getDashboardUrl() ) ?>">
[54] Fix | Delete
<img src="<?php echo esc_url($data['logo']); ?>" alt="Chaty" class="logo">
[55] Fix | Delete
</a>
[56] Fix | Delete
<header class="flex py-4 flex-col items-start sm:flex-row sm:justify-between">
[57] Fix | Delete
<h2 class="font-primary text-cht-gray-150 text-[26px] font-semibold">
[58] Fix | Delete
<?php echo esc_attr($data['title']) ?>
[59] Fix | Delete
</h2>
[60] Fix | Delete
<a class="btn text-base mt-3 sm:mt-0 rounded-lg font-normal border-cht-primary bg-cht-primary text-white drop-shadow-3xl" href="<?php echo esc_url($data['upgrade_url']); ?>">
[61] Fix | Delete
<?php echo esc_attr($data['upgrade_text']) ?>
[62] Fix | Delete
</a>
[63] Fix | Delete
</header>
[64] Fix | Delete
<main>
[65] Fix | Delete
<div class="chaty-new-widget-row">
[66] Fix | Delete
<ul class="grid grid-cols-1 sm:grid-cols-3 gap-5 mt-2">
[67] Fix | Delete
<?php foreach( $data['features'] as $item ): ?>
[68] Fix | Delete
<li class="bg-white shadow-cht-gray-150/10 rounded-xl border border-solid border-gray-300 overflow-hidden">
[69] Fix | Delete
<div class="p-5 border-b-4 border-cht-primary h-full">
[70] Fix | Delete
<img class="mb-5" src="<?php echo esc_url($item['logo']) ?>"/>
[71] Fix | Delete
<h2 class="text-cht-gray-150 pb-3 font-semibold font-primary text-[18px]"><?php echo esc_attr($item['title']) ?></h2>
[72] Fix | Delete
<p class="text-sm font-primary font-normal text-[#49687ECC]"><?php echo esc_attr($item['desc']) ?></p>
[73] Fix | Delete
</div>
[74] Fix | Delete
</li>
[75] Fix | Delete
<?php endforeach; ?>
[76] Fix | Delete
</ul>
[77] Fix | Delete
</div>
[78] Fix | Delete
</main>
[79] Fix | Delete
</div>
[80] Fix | Delete
[81] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function