Skip to content

Commit

Permalink
Updated triggers help info
Browse files Browse the repository at this point in the history
  • Loading branch information
pacotole committed Jun 13, 2022
1 parent bfc14a4 commit 8496aef
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 51 deletions.
33 changes: 18 additions & 15 deletions admin/class-joinchat-admin-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -682,25 +682,28 @@ public function help_tab() {
'id' => 'triggers',
'title' => __( 'Triggers', 'creame-whatsapp-me' ),
'content' =>
'<p>' . __( 'You can interact on your page with Join.chat in two ways:', 'creame-whatsapp-me' ) . '</p>' .
'<p>' . __( 'With anchor links:', 'creame-whatsapp-me' ) . '</p>' .
'<p>' . __( 'Any element in your pages can be a chat trigger:', 'creame-whatsapp-me' ) . '</p>' .
'<p><strong>' . __( 'On click:', 'creame-whatsapp-me' ) . '</strong></p>' .
'<ul>' .
'<li><code>#joinchat</code> ' . __( 'to show Chat Window (or open WhatsApp if there is no CTA) on click.', 'creame-whatsapp-me' ) . '</li>' .
'<li><code>#whatsapp</code> ' . __( 'to open WhatsApp directly on click.', 'creame-whatsapp-me' ) . '</li>' .
'<li>class <code>joinchat_app</code> ' . __( 'to open WhatsApp directly.', 'creame-whatsapp-me' ) . '</li>' .
'<li>class <code>joinchat_open</code> ' . __( 'to show chat window (or open WhatsApp if there is no CTA).', 'creame-whatsapp-me' ) . '</li>' .
'<li>href <code>#whatsapp</code> ' . __( 'to open WhatsApp directly.', 'creame-whatsapp-me' ) . '</li>' .
'<li>href <code>#joinchat</code> ' . __( 'to show chat window (or open WhatsApp if there is no CTA).', 'creame-whatsapp-me' ) . '</li>' .
'</ul>' .
'<p>' . __( 'Example:', 'creame-whatsapp-me' ) . '<code>&lt;a href="#whatsapp"&gt;' . __( 'Contact us', 'creame-whatsapp-me' ) . '&lt;/a&gt;</code></p>' .
'<p>' . __( 'Adding some CSS classes in your HTML:', 'creame-whatsapp-me' ) . '</p>' .
'<p><strong>' . __( 'On scroll (when element appears on screen):', 'creame-whatsapp-me' ) . '</strong></p>' .
'<ul>' .
'<li><code>joinchat_open</code> ' . __( 'to show Chat Window (or open WhatsApp if there is no CTA) on click.', 'creame-whatsapp-me' ) . '</li>' .
'<li><code>joinchat_close</code> ' . __( 'to hide Chat Window on click.', 'creame-whatsapp-me' ) . '</li>' .
'<li><code>joinchat_app</code> ' . __( 'to open WhatsApp directly on click.', 'creame-whatsapp-me' ) . '</li>' .
'<li>' . __( 'To show Chat Window when an HTML element appears on screen when user scrolls:', 'creame-whatsapp-me' ) .
'<ul>' .
'<li><code>joinchat_show</code> ' . __( 'only show if it\'s an not seen CTA.', 'creame-whatsapp-me' ) . '</li>' .
'<li><code>joinchat_force_show</code> ' . __( 'to show always.', 'creame-whatsapp-me' ) . '</li>' .
'</ul></li>' .
'<li>class <code>joinchat_show</code> ' . __( 'only show if it\'s an not seen CTA.', 'creame-whatsapp-me' ) . '</li>' .
'<li>class <code>joinchat_force_show</code> ' . __( 'to show always.', 'creame-whatsapp-me' ) . '</li>' .
'</ul>' .
'<p>' . __( 'Example:', 'creame-whatsapp-me' ) . '<code>&lt;img src="contact.jpg" class="joinchat_open" alt="' . __( 'Contact us', 'creame-whatsapp-me' ) . '"&gt;</code></p>',
'<p>' . sprintf(
/* translators: 1: attribute phone, 2: attribute message. */
__( 'You can set <strong>custom phone and initial message</strong> for direct WhatsApp triggers with attributes %1$s and %2$s.', 'creame-whatsapp-me' ),
'<code>data-phone</code>',
'<code>data-message</code>'
) . '</p>' .
'<p>' . __( 'Examples:', 'creame-whatsapp-me' ) . '</p>' .
'<p><code>&lt;a href="#whatsapp" data-phone="99999999"&gt;' . __( 'Contact us', 'creame-whatsapp-me' ) . '&lt;/a&gt;</code></p>' .
'<p><code>&lt;img src="contact.jpg" class="joinchat_open" alt="' . __( 'Contact us', 'creame-whatsapp-me' ) . '"&gt;</code></p>',
),
array(
'id' => 'support',
Expand Down
1 change: 0 additions & 1 deletion gutenberg/class-joinchat-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ public function register_patterns() {
}

// Comming soon.

}

/**
Expand Down
66 changes: 31 additions & 35 deletions languages/creame-whatsapp-me.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the GPL-2.0+.
msgid ""
msgstr ""
"Project-Id-Version: Join.chat 4.5.1\n"
"Project-Id-Version: Join.chat 4.5.6\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/creame-whatsapp-me\n"
"Last-Translator: Pacotoleo <[email protected]>\n"
"Language-Team: Creame <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2022-05-27T16:11:33+00:00\n"
"POT-Creation-Date: 2022-06-13T17:53:15+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.6.0\n"
"X-Domain: creame-whatsapp-me\n"
Expand Down Expand Up @@ -223,7 +223,7 @@ msgid "If it's defined a \"Call to Action\", the Chat Window can be displayed au
msgstr ""

#: admin/class-joinchat-admin-page.php:380
#: admin/class-joinchat-admin-page.php:809
#: admin/class-joinchat-admin-page.php:812
msgid "Show Help"
msgstr ""

Expand Down Expand Up @@ -463,92 +463,88 @@ msgid "Triggers"
msgstr ""

#: admin/class-joinchat-admin-page.php:685
msgid "You can interact on your page with Join.chat in two ways:"
msgid "Any element in your pages can be a chat trigger:"
msgstr ""

#: admin/class-joinchat-admin-page.php:686
msgid "With anchor links:"
msgid "On click:"
msgstr ""

#: admin/class-joinchat-admin-page.php:688
#: admin/class-joinchat-admin-page.php:694
msgid "to show Chat Window (or open WhatsApp if there is no CTA) on click."
#: admin/class-joinchat-admin-page.php:690
msgid "to open WhatsApp directly."
msgstr ""

#: admin/class-joinchat-admin-page.php:689
#: admin/class-joinchat-admin-page.php:696
msgid "to open WhatsApp directly on click."
msgstr ""

#: admin/class-joinchat-admin-page.php:691
#: admin/class-joinchat-admin-page.php:703
msgid "Example:"
msgid "to show chat window (or open WhatsApp if there is no CTA)."
msgstr ""

#: admin/class-joinchat-admin-page.php:691
#: admin/class-joinchat-admin-page.php:703
msgid "Contact us"
#: admin/class-joinchat-admin-page.php:693
msgid "On scroll (when element appears on screen):"
msgstr ""

#: admin/class-joinchat-admin-page.php:692
msgid "Adding some CSS classes in your HTML:"
#: admin/class-joinchat-admin-page.php:695
msgid "only show if it's an not seen CTA."
msgstr ""

#: admin/class-joinchat-admin-page.php:695
msgid "to hide Chat Window on click."
#: admin/class-joinchat-admin-page.php:696
msgid "to show always."
msgstr ""

#: admin/class-joinchat-admin-page.php:697
msgid "To show Chat Window when an HTML element appears on screen when user scrolls:"
#. translators: 1: attribute phone, 2: attribute message.
#: admin/class-joinchat-admin-page.php:700
msgid "You can set <strong>custom phone and initial message</strong> for direct WhatsApp triggers with attributes %1$s and %2$s."
msgstr ""

#: admin/class-joinchat-admin-page.php:699
msgid "only show if it's an not seen CTA."
#: admin/class-joinchat-admin-page.php:704
msgid "Examples:"
msgstr ""

#: admin/class-joinchat-admin-page.php:700
msgid "to show always."
#: admin/class-joinchat-admin-page.php:705
#: admin/class-joinchat-admin-page.php:706
msgid "Contact us"
msgstr ""

#: admin/class-joinchat-admin-page.php:707
#: admin/class-joinchat-admin-page.php:710
#: admin/class-joinchat-admin.php:204
msgid "Support"
msgstr ""

#. translators: 1: docs url, 2: wordpress.org plugin support url, 3: premium support url.
#: admin/class-joinchat-admin-page.php:711
#: admin/class-joinchat-admin-page.php:714
msgid "If you need help, first review our <a href=\"%1$s\" target=\"_blank\">documentation</a> and if you don't find a solution check the <a href=\"%2$s\" target=\"_blank\">free plugin support forum</a> or buy our <a href=\"%3$s\" target=\"_blank\">premium support</a>."
msgstr ""

#: admin/class-joinchat-admin-page.php:716
#: admin/class-joinchat-admin-page.php:719
msgid "If you like Join.chat 😍"
msgstr ""

#. translators: %s: Add review link.
#: admin/class-joinchat-admin-page.php:720
#: admin/class-joinchat-admin-page.php:723
msgid "Please leave us a %s rating. We'll thank you."
msgstr ""

#. translators: %s: Join.chat page link.
#: admin/class-joinchat-admin-page.php:725
#: admin/class-joinchat-admin-page.php:728
msgid "Subscribe to our newsletter and visit our blog at %s."
msgstr ""

#. translators: %s: Join.chat twitter link.
#: admin/class-joinchat-admin-page.php:730
#: admin/class-joinchat-admin-page.php:733
msgid "Follow %s on twitter."
msgstr ""

#: admin/class-joinchat-admin-page.php:766
#: admin/class-joinchat-admin-page.php:769
msgid "Join.chat Settings"
msgstr ""

#: admin/class-joinchat-admin-page.php:808
#: admin/class-joinchat-admin-page.php:811
msgid "You can use vars"
msgstr ""

#. translators: 1: Join.chat, 2: Add review link.
#: admin/class-joinchat-admin-page.php:829
#: admin/class-joinchat-admin-page.php:832
msgid "Do you like %1$s? Please help us with a %2$s rating."
msgstr ""

Expand Down

0 comments on commit 8496aef

Please sign in to comment.