Skip to content

Commit 1606ca8

Browse files
v1.11.3
1 parent ab38f9e commit 1606ca8

File tree

18 files changed

+91
-92
lines changed

18 files changed

+91
-92
lines changed

com_jdbuilder/administrator/config.xml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,35 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<config>
3+
<fieldset label="COM_JDBUILDER" name="jdbuilder">
4+
<field name="key" type="text" default="" label="JDB_ACTIVATION_KEY"></field>
5+
<field name="gmapkey" type="text" default="" label="JDB_GOOGLE_MAP_KEY"></field>
6+
<field type="spacer" name="gmapkeySpacer" hr="true" />
7+
<field name="fbAppId" type="text" default="" description="JDB_FACEBOOK_SDK_ALERT" label="JDB_FB_APP_ID"></field>
8+
<field type="spacer" name="fbAppIdSpacer" hr="false" label="JDB_FACEBOOK_SDK_ALERT" />
9+
<field name="captchaspacer" type="spacer" label="JDB_FIELD_SPACER"></field>
10+
<field name="recaptchaSiteKey" type="text" default="" label="JDB_RECAPTCHA_SITE_KEY"></field>
11+
<field name="recaptchaSecretKey" type="text" default="" label="JDB_RECAPTCHA_SECRET_KEY"></field>
12+
<field type="spacer" name="mailchimpSpacer" hr="true" />
13+
<field name="mailchimp_keys" type="subform" multiple="true" label="MailChimp Key(s)">
14+
<form>
15+
<field required="true" name="prefix" label="Server Prefix" type="text" description="To find the value for the server prefix, log into your Mailchimp account and look at the URL in your browser. You’ll see something like https://us19.admin.mailchimp.com/ — the us19 part is the server prefix. Note that your specific value may be different." />
16+
<field required="true" name="key" label="Key" type="text" />
17+
</form>
18+
</field>
19+
<field name="convertkit_keys" type="subform" multiple="true" label="ConvertKit Key(s)">
20+
<form>
21+
<field required="true" name="key" label="API Key" type="text" />
22+
<field required="true" name="secret" label="API Secret" type="text" />
23+
</form>
24+
</field>
25+
<field name="activecampaign_keys" type="subform" multiple="true" label="ActiveCampaign Key(s)">
26+
<form>
27+
<field required="true" name="url" label="URL" type="text" />
28+
<field required="true" name="key" label="Key" type="text" />
29+
</form>
30+
</field>
31+
</fieldset>
32+
333
<fieldset name="permissions" description="JCONFIG_PERMISSIONS_DESC" label="JCONFIG_PERMISSIONS_LABEL">
434
<field name="rules" type="rules" component="com_jdbuilder" class="inputbox" filter="rules" validate="rules" label="JCONFIG_PERMISSIONS_LABEL" section="component" />
535
</fieldset>
@@ -19,4 +49,15 @@
1949
<option value="1">JDB_YES</option>
2050
</field>
2151
</fieldset>
52+
<fieldset label="JDB_INTEGRATIONS_TITLE" name="integrations">
53+
<field name="article_integration" type="radio" class="btn-group btn-group-yesno" default="1" label="JDB_JOOMLA_ARTICLES_INTEGRATION">
54+
<option value="0">JDB_DISABLED</option>
55+
<option value="1">JDB_ENABLED</option>
56+
</field>
57+
<field name="fontawesomepro_integration" type="radio" class="btn-group btn-group-yesno" default="0" label="JDB_JOOMLA_FA_INTEGRATION">
58+
<option value="0">JDB_DISABLED</option>
59+
<option value="1">JDB_ENABLED</option>
60+
</field>
61+
<field type="spacer" name="fontawesomepro_integration_spacer" hr="false" label="COM_JDBUILDER_FA_PRO_DESC" />
62+
</fieldset>
2263
</config>

com_jdbuilder/administrator/controllers/integrations.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function faToggle()
7373
}
7474
try {
7575
$params = JComponentHelper::getParams('com_jdbuilder');
76-
$fontawesomepro_integration = $params->get('fontawesomepro_integration', 1);
76+
$fontawesomepro_integration = 0;
7777

7878
$fontawesomepro_integration = $fontawesomepro_integration ? 0 : 1;
7979
$params->set('fontawesomepro_integration', $fontawesomepro_integration);

com_jdbuilder/administrator/helpers/jdbuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,14 @@ public static function versionMessage()
127127
public static function updateMessage()
128128
{
129129
$latest = Helper::getJDBuilderLatestVersion();
130-
if ($latest == 'v' . JDB_VERSION) return '';
130+
if ($latest == JDB_VERSION) return '';
131131
$isPro = file_exists(JPATH_PLUGINS . '/system/jdbuilder/options/default-pro.xml');
132132

133133
$document = JFactory::getDocument();
134134
$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;}');
135135

136136
$link = $isPro ? 'https://www.joomdev.com/my-downloads/jd-builder-pro' : 'https://github.com/joomdev/JD-Builder/releases/tag/' . $latest;
137137
return '<div style="padding-right: 10px;" class="alert alert-danger">
138-
<div style="display:flex;justify-content:space-between;align-items:center">' . JText::sprintf('COM_JDBUILDER_UPDATE_MSG', ('v' . JDB_VERSION), $latest, $link) . '</div></div>';
138+
<div style="display:flex;justify-content:space-between;align-items:center">' . JText::sprintf('COM_JDBUILDER_UPDATE_MSG', ('v' . JDB_VERSION), 'v' . $latest, $link) . '</div></div>';
139139
}
140140
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
$article_integration = $buiderConfig->get('article_integration', 1);
2020
$article_integration = defined('JDB_PRO') && !JDB_PRO ? 0 : $article_integration;
2121

22-
$fa_integration = $buiderConfig->get('fontawesomepro_integration', 0);
22+
$fa_integration = 0;
2323
$fa_integration = defined('JDB_PRO') && !JDB_PRO ? 0 : $fa_integration;
2424

2525
?>

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>info@joomdev.com</authorEmail>
1010
<authorUrl>https://www.joomdev.com</authorUrl>
11-
<version>1.11.2</version>
11+
<version>1.11.3</version>
1212
<description>{jdbcomdesc}</description>
1313
<install> <!-- Runs on install -->
1414
<sql>

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.11.2</version>
10+
<version>1.11.3</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>

pkg_jdbuilder.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<packagerurl>https://www.joomdev.com</packagerurl>
88
<author>Team JoomDev</author>
99
<creationDate>Oct 2020</creationDate>
10-
<version>1.11.2</version>
10+
<version>1.11.3</version>
1111
<url>https://www.joomdev.com</url>
1212
<copyright>Copyright (C) 2020 Joomdev, Inc. All rights reserved.</copyright>
1313
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>

plg_jdbuilder/elements/inner-row/inner-row.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@
8383
<option value="">JDB_INHERIT</option>
8484
<option value="cover">JDB_BACKGROUND_SIZE_COVER</option>
8585
<option value="contain">JDB_BACKGROUND_SIZE_CONTAIN</option>
86+
<option value="custom">JDB_CUSTOM</option>
87+
</field>
88+
89+
<field type="slider" name="backgroundWidth" label="Background Width" description="" default='{"value":100,"unit":"%"}' max="1600" min="0" units="px,%,vw" showon="params.background=='image'[AND]params.backgroundImage!=''[AND]params.backgroundSize=='custom'" group="background" responsive="true">
8690
</field>
8791

8892
<field type="list" search="false" name="backgroundAttachment" label="JDB_BACKGROUND_ATTACHMENT" group="background" showon="params.background=='image'[AND]params.backgroundImage!=''" width="6" default="">
@@ -101,6 +105,13 @@
101105
<option value="center top">JDB_BACKGROUND_POSITION_CENTER_TOP</option>
102106
<option value="center center">JDB_BACKGROUND_POSITION_LABEL_CENTER_CENTER</option>
103107
<option value="center bottom">JDB_BACKGROUND_POSITION_CENTER_BOTTOM</option>
108+
<option value="custom">JDB_CUSTOM</option>
109+
</field>
110+
111+
<field type="slider" name="backgroundXPosition" label="JDB_BACKGROUND_OVERLAY_X_POSITION" default='{"value":0,"unit":"px"}' max="1600" min="-1600" units="px,%,vw" showon="params.backgroundPosition=='custom'" group="background" responsive="true">
112+
</field>
113+
114+
<field type="slider" name="backgroundYPosition" label="JDB_BACKGROUND_OVERLAY_Y_POSITION" default='{"value":0,"unit":"px"}' max="1600" min="-1600" units="px,%,vh" showon="params.backgroundPosition=='custom'" group="background" responsive="true">
104115
</field>
105116

106117
<!-- Background Video -->

plg_jdbuilder/jdbuilder.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function onAfterRoute()
2929
define('JDB_JOOMLA_VERSION', Helper::getJoomlaVersion());
3030
\JDPageBuilder\Builder::init($this->app);
3131
$stat = stat(JDBPATH_PLUGIN . '/jdbuilder.php');
32-
define('JDB_MEDIA_VERSION', JDB_DEV ? 149 : md5($stat['mtime']));
32+
define('JDB_MEDIA_VERSION', JDB_DEV ? 151 : md5($stat['mtime']));
3333
if ($this->app->isClient('administrator')) {
3434
$buiderConfig = JComponentHelper::getParams('com_jdbuilder');
3535

@@ -508,10 +508,19 @@ public function addAdminMenu()
508508
$adminMenu = '<ul class="nav"><li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">' . \JText::_('COM_JDBUILDER') . '' . \JText::_('JDBUILDER_VERSION_LABEL') . '<span class="caret"></span></a><ul class="dropdown-menu scroll-menu"><li><a class="no-dropdown" href="index.php?option=com_jdbuilder&view=pages">' . \JText::_('COM_JDBUILDER_TITLE_PAGES') . '</a></li><li><a class="no-dropdown" href="index.php?option=com_categories&extension=com_jdbuilder">' . \JText::_('JCATEGORIES') . '</a></li><li><a class="no-dropdown" href="index.php?option=com_jdbuilder&view=integrations">' . \JText::_('COM_JDBUILDER_TITLE_INTEGRATIONS') . '</a></li><li><a class="no-dropdown" href="index.php?option=com_config&view=component&component=com_jdbuilder">' . \JText::_('COM_JDBUILDER_TITLE_SETTINGS') . '</a></li></ul></li></ul>';
509509
}
510510
$body = $this->app->getBody();
511-
$body = str_replace('<ul id="nav-empty"', $adminMenu . '<ul id="nav-empty"', $body);
511+
$body = preg_replace('/' . preg_quote('<ul id="nav-empty"', '/') . '/', $adminMenu . '<ul id="nav-empty"', $body, 1);
512512
$this->app->setBody($body);
513513
}
514514

515+
public function onContentBeforeSave($context, $article, $isNew)
516+
{
517+
if ($context == 'com_advancedmodules.module') {
518+
return $this->onExtensionBeforeSave($context, $article, $isNew);
519+
}
520+
521+
return true;
522+
}
523+
515524
public function onExtensionBeforeSave($context, $item, $isNew)
516525
{
517526
if (($context !== 'com_modules.module' && $context != 'com_advancedmodules.module') || $item->module !== 'mod_jdbuilder') {

plg_jdbuilder/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.11.2</version>
10+
<version>1.11.3</version>
1111
<description>{jdbplgdesc}</description>
1212
<files>
1313
<filename plugin="jdbuilder">jdbuilder.php</filename>

0 commit comments

Comments
 (0)