Skip to content

Commit f7c5bdd

Browse files
Release 1.11.0
1 parent 1fc0280 commit f7c5bdd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+629
-228
lines changed

com_jdbuilder/administrator/helpers/jdbuilder.php

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
* @copyright 2020 www.joomdev.com
77
* @license GNU General Public License version 2 or later; see LICENSE.txt
88
*/
9+
10+
use JDPageBuilder\Helper;
11+
912
// No direct access
1013
defined('_JEXEC') or die;
1114

@@ -101,7 +104,7 @@ public static function versionMessage()
101104
$buiderConfig = JComponentHelper::getParams('com_jdbuilder');
102105
$key = $buiderConfig->get('key', '');
103106
$isPro = file_exists(JPATH_PLUGINS . '/system/jdbuilder/options/default-pro.xml');
104-
107+
105108
if ($isPro && !empty($key)) {
106109
return;
107110
}
@@ -114,4 +117,18 @@ public static function versionMessage()
114117
<h4>' . JText::_('COM_JDBUILDER_VER_MSG_' . $prefix . '_TITLE') . '</h4>
115118
<p>' . JText::_('COM_JDBUILDER_VER_MSG_' . $prefix . '_DESC') . '</p></div></div>';
116119
}
120+
121+
public static function updateMessage()
122+
{
123+
$latest = Helper::getJDBuilderLatestVersion();
124+
if ($latest == 'v' . JDB_VERSION) return '';
125+
$isPro = file_exists(JPATH_PLUGINS . '/system/jdbuilder/options/default-pro.xml');
126+
127+
$document = JFactory::getDocument();
128+
$document->addStyleDeclaration('.jdb-update-message{background-image:linear-gradient(110.7deg, #233879 6.3%, #385cc7 90.6%);box-shadow:8px 8px 8px rgba(221, 221, 221, 0.81);overflow:hidden;border-radius:4px;display:flex;color:#fff;margin-bottom:25px;line-height: 1.5rem;font-size:14px;}.jdb-update-message h4{font-size:16px;margin:0 0 10px;}body.admin.com_jdbuilder #content .jdb-update-message a{color:#fff;}.jdb-update-logo{color: white;width: 100px;display: grid;align-items: center;padding: 15px;box-sizing: border-box;background-image:linear-gradient(110.7deg, #233879 6.3%, #385cc7 90.6%);margin-right:10px;}.jdb-content{padding:20px 10px;align-self:center;}.jdb-content p{color:#f1f1f1;margin:0;}.jdb-content strong{color:#fff;}');
129+
130+
$link = $isPro ? 'https://www.joomdev.com/my-downloads/jd-builder-pro' : 'https://github.com/joomdev/JD-Builder/releases/tag/' . $latest;
131+
return '<div style="padding-right: 10px;" class="alert alert-danger">
132+
<div style="display:flex;justify-content:space-between;align-items:center">' . JText::sprintf('COM_JDBUILDER_UPDATE_MSG', ('v' . JDB_VERSION), $latest, $link) . '</div></div>';
133+
}
117134
}

com_jdbuilder/administrator/languages/en-GB/en-GB.com_jdbuilder.ini

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ COM_JDBUILDER_TITLE_INTEGRATIONS="Integrations"
3636
COM_JDBUILDER_TITLE_SETTINGS="Settings"
3737
COM_JDBUILDER_ARTICLE_INTEGRATION_ENABLED="Joomla article's JD Builder integration has been successfully enabled."
3838
COM_JDBUILDER_ARTICLE_INTEGRATION_DISABLED="Joomla article's JD Builder integration has been successfully disabled."
39+
COM_JDBUILDER_FA_INTEGRATION_ENABLED="FontAwesome Pro has been successfully enabled."
40+
COM_JDBUILDER_FA_INTEGRATION_DISABLED="FontAwesome Pro has been successfully disabled."
3941
COM_JDBUILDER_PAGES_ID="ID"
4042
COM_JDBUILDER_PAGES_CHECKED_OUT="N/A"
4143
COM_JDBUILDER_PAGES_CHECKED_OUT_TIME="N/A"
@@ -94,13 +96,20 @@ COM_JDBUILDER_VER_MSG_FREE_DESC="30+ premium elements, Priority email support, L
9496
COM_JDBUILDER_VER_MSG_PRO_TITLE="Unlock JD Builder by adding license key."
9597
COM_JDBUILDER_VER_MSG_PRO_DESC="Hello, In order to use the premium features and receive auto-updates, you need to add your license key. <a href='index.php?option=com_config&view=component&component=com_jdbuilder'><strong>Activate JD Builder Pro</strong></a>"
9698

99+
COM_JDBUILDER_UPDATE_MSG="<span>You are using outdated version of JD Builder %s. Please update to the latest version <strong>%s</strong></span><a style='color:#fff' class='btn btn-sm btn-danger' href='%s' target='_blank'>Download Updates</a>"
100+
97101
JDB_ACTIVATION_KEY="Builder Pro Activation Key"
98102
JDB_GOOGLE_MAP_KEY="Google Map API Key"
99103
JDB_FB_APP_ID="Facebook App ID"
100104
JDB_JOOMLA_ARTICLES_INTEGRATION="Joomla Articles Integration"
105+
JDB_JOOMLA_FA_INTEGRATION="FontAwesome Pro"
101106
JDB_DEBUG_BUILDER="Debug Builder"
102107

103108
JDB_FIELD_SPACER="<hr>"
104109

105110
JDB_RECAPTCHA_SITE_KEY="reCAPTCHA Site Key"
106-
JDB_RECAPTCHA_SECRET_KEY="reCAPTCHA Secret Key"
111+
JDB_RECAPTCHA_SECRET_KEY="reCAPTCHA Secret Key"
112+
113+
COM_JDBUILDER_PRO_FEATURE_WARNING="<div style='display:flex;justify-content: space-between;'><span>You are using free version of JD Builder. In order to use this feature please update to the pro version.</span><a style='color:#fff;display:inline-block;text-decoration:underline' href='https://www.joomdev.com/jd-builder/pricing?utm_source=Builder_Admin&utm_medium=Intergrations&utm_campaign=Builder_Pro' target='_blank'>Go Pro</a></div>"
114+
115+
COM_JDBUILDER_FA_PRO_DESC="<span>Font Awesome Pro <a href='#'>license</a> is required and you need to <a href='#'>whitelist</a> your domain</span>"

com_jdbuilder/administrator/views/pages/tmpl/default.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,12 @@
4242
<div id="j-main-container" class="span10">
4343
<?php
4444
echo JdbuilderHelper::versionMessage();
45+
echo JdbuilderHelper::updateMessage();
4546
else : ?>
4647
<div id="j-main-container">
4748
<?php
4849
echo JdbuilderHelper::versionMessage();
50+
echo JdbuilderHelper::updateMessage();
4951
endif; ?>
5052

5153
<?php echo JLayoutHelper::render('joomla.searchtools.default', array('view' => $this)); ?>

com_jdbuilder/jdbuilder.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<author>Team Joomdev</author>
99
<authorEmail>[email protected]</authorEmail>
1010
<authorUrl>https://www.joomdev.com</authorUrl>
11-
<version>1.10.1</version>
11+
<version>1.11.0</version>
1212
<description>{jdbcomdesc}</description>
1313
<install> <!-- Runs on install -->
1414
<sql>

com_jdbuilder/media/css/style.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

com_jdbuilder_j4/admin/languages/en-GB/en-GB.com_jdbuilder.ini

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ COM_JDBUILDER_TITLE_INTEGRATIONS="Integrations"
3737
COM_JDBUILDER_TITLE_SETTINGS="Settings"
3838
COM_JDBUILDER_ARTICLE_INTEGRATION_ENABLED="Joomla article's JD Builder integration has been successfully enabled."
3939
COM_JDBUILDER_ARTICLE_INTEGRATION_DISABLED="Joomla article's JD Builder integration has been successfully disabled."
40+
COM_JDBUILDER_FA_INTEGRATION_ENABLED="FontAwesome Pro has been successfully enabled."
41+
COM_JDBUILDER_FA_INTEGRATION_DISABLED="FontAwesome Pro has been successfully disabled."
4042
COM_JDBUILDER_PAGES_ID="ID"
4143
COM_JDBUILDER_PAGES_CHECKED_OUT="N/A"
4244
COM_JDBUILDER_PAGES_CHECKED_OUT_TIME="N/A"
@@ -95,13 +97,20 @@ COM_JDBUILDER_VER_MSG_FREE_DESC="30+ premium elements, Priority email support, L
9597
COM_JDBUILDER_VER_MSG_PRO_TITLE="Unlock JD Builder by adding license key."
9698
COM_JDBUILDER_VER_MSG_PRO_DESC="Hello, In order to use the premium features and receive auto-updates, you need to add your license key. <a href='index.php?option=com_config&view=component&component=com_jdbuilder'><strong>Activate JD Builder Pro</strong></a>"
9799

100+
COM_JDBUILDER_UPDATE_MSG="<span>You are using outdated version of JD Builder %s. Please update to the latest version <strong>%s</strong></span><a style='color:#fff' class='btn btn-sm btn-danger' href='%s' target='_blank'>Download Updates</a>"
101+
98102
JDB_ACTIVATION_KEY="Builder Pro Activation Key"
99103
JDB_GOOGLE_MAP_KEY="Google Map API Key"
100104
JDB_FB_APP_ID="Facebook App ID"
101105
JDB_JOOMLA_ARTICLES_INTEGRATION="Joomla Articles Integration"
106+
JDB_JOOMLA_FA_INTEGRATION="FontAwesome Pro"
102107
JDB_DEBUG_BUILDER="Debug Builder"
103108

104109
JDB_FIELD_SPACER="<hr>"
105110

106111
JDB_RECAPTCHA_SITE_KEY="reCAPTCHA Site Key"
107-
JDB_RECAPTCHA_SECRET_KEY="reCAPTCHA Secret Key"
112+
JDB_RECAPTCHA_SECRET_KEY="reCAPTCHA Secret Key"
113+
114+
COM_JDBUILDER_PRO_FEATURE_WARNING="<div style='display:flex;justify-content: space-between;'><span>You are using free version of JD Builder. In order to use this feature please update to the pro version.</span><a style='color:#fff;display:inline-block;text-decoration:underline' href='https://www.joomdev.com/jd-builder/pricing?utm_source=Builder_Admin&utm_medium=Intergrations&utm_campaign=Builder_Pro' target='_blank'>Go Pro</a></div>"
115+
116+
COM_JDBUILDER_FA_PRO_DESC="<span>Font Awesome Pro <a href='#'>license</a> is required and you need to <a href='#'>whitelist</a> your domain</span>"

com_jdbuilder_j4/jdbuilder.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<author>Team Joomdev</author>
99
<authorEmail>[email protected]</authorEmail>
1010
<authorUrl>https://www.joomdev.com</authorUrl>
11-
<version>1.10.0</version>
11+
<version>1.11.0</version>
1212
<description>{jdbcomdesc}</description>
1313
<namespace>Joomdev\Component\JDBuilder</namespace>
1414

com_jdbuilder_j4/media/css/style.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

com_jdbuilder_j4/media/scss/bootstrap.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -681,11 +681,15 @@ body {
681681
border: 1px solid #eee;
682682
box-shadow: 0px 0px 10px #eee;
683683
border-radius: 5px;
684-
margin: 20px 0px;
684+
margin: 20px;
685+
display: inline-flex;
686+
flex-direction: column;
687+
justify-content: center;
688+
align-items: center;
689+
text-align: center;
685690

686691
>.item-icon {
687692
width: 80px;
688-
margin: auto;
689693
margin-bottom: 10px;
690694
}
691695

mod_jdbuilder/mod_jdbuilder.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<authorUrl>https://www.joomdev.com</authorUrl>
88
<copyright>Copyright (C) 2020 Joomdev, Inc. All rights reserved.</copyright>
99
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
10-
<version>1.10.1</version>
10+
<version>1.11.0</version>
1111
<description>This Module allows you to create your own Module using the JD Builder.</description>
1212
<files>
1313
<filename>mod_jdbuilder.xml</filename>

0 commit comments

Comments
 (0)