Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added upgrade to pro link in plugin lists #150

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion import-eventbrite-events.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,17 @@ public function iee_setting_doc_links( $links ) {
esc_html__( 'Docs', 'import-eventbrite-events' )
),
);
return array_merge( $links, $iee_setting_doc_link );

$upgrate_to_pro = array();
if( !iee_is_pro() ){
$upgrate_to_pro = array( 'iee-event-pro-link' => sprintf(
'<a href="%s" target="_blank" style="color:#1da867;font-weight: 900;">%s</a>',
esc_url( 'https://xylusthemes.com/plugins/import-eventbrite-events/' ),
esc_html__( 'Upgrade to Pro', 'import-eventbrite-events' )
) ) ;
}

return array_merge( $links, $iee_setting_doc_link, $upgrate_to_pro );
}

/**
Expand Down
49 changes: 13 additions & 36 deletions languages/import-eventbrite-events.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: Import Eventbrite Events 1.7.2\n"
"Project-Id-Version: Import Eventbrite Events 1.7.3\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/import-eventbrite-events\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2024-09-05T10:43:24+00:00\n"
"POT-Creation-Date: 2024-11-25T05:40:57+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.11.0\n"
"X-Domain: import-eventbrite-events\n"
Expand Down Expand Up @@ -55,6 +55,13 @@ msgstr ""
msgid "Docs"
msgstr ""

#: import-eventbrite-events.php:240
#: includes/class-import-eventbrite-events-admin.php:71
#: templates/admin/admin-sidebar.php:18
#: templates/admin/admin-sidebar.php:21
msgid "Upgrade to Pro"
msgstr ""

#: includes/class-iee-plugin-deactivation.php:49
msgid "I couldn't understand how to make it work"
msgstr ""
Expand Down Expand Up @@ -158,12 +165,6 @@ msgstr ""
msgid "Support & help"
msgstr ""

#: includes/class-import-eventbrite-events-admin.php:71
#: templates/admin/admin-sidebar.php:18
#: templates/admin/admin-sidebar.php:21
msgid "Upgrade to Pro"
msgstr ""

#: includes/class-import-eventbrite-events-admin.php:143
msgid "Eventbrite"
msgstr ""
Expand Down Expand Up @@ -1327,46 +1328,22 @@ msgstr ""
msgid "Plugins you should try"
msgstr ""

#: templates/admin/import-eventbrite-events-support.php:111
#: templates/admin/import-eventbrite-events-support.php:103
msgid "Active Installs: "
msgstr ""

#: templates/admin/import-eventbrite-events-support.php:117
#: templates/admin/import-eventbrite-events-support.php:109
msgid "Actived"
msgstr ""

#: templates/admin/import-eventbrite-events-support.php:120
#: templates/admin/import-eventbrite-events-support.php:112
msgid "Activate"
msgstr ""

#: templates/admin/import-eventbrite-events-support.php:124
#: templates/admin/import-eventbrite-events-support.php:116
msgid "Install Plugin"
msgstr ""

#: templates/admin/import-eventbrite-events-support.php:129
msgid "Version:"
msgstr ""

#: templates/admin/import-eventbrite-events-support.php:134
msgid "Requires:"
msgstr ""

#: templates/admin/import-eventbrite-events-support.php:134
msgid "WordPress "
msgstr ""

#: templates/admin/import-eventbrite-events-support.php:138
msgid "Active Installs:"
msgstr ""

#: templates/admin/import-eventbrite-events-support.php:143
msgid "Install Now"
msgstr ""

#: templates/admin/import-eventbrite-events-support.php:146
msgid "Buy Now"
msgstr ""

#: templates/iee-event-meta.php:38
msgid "Details"
msgstr ""
Expand Down