Skip to content

Commit

Permalink
Merge branch '4.1-dev' into 4.2-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
roland-d committed Jun 7, 2022
2 parents 2d40c7a + 793c4c2 commit c297caa
Show file tree
Hide file tree
Showing 35 changed files with 59 additions and 40 deletions.
2 changes: 1 addition & 1 deletion administrator/components/com_associations/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<fieldset
name="permissions"
label="JCONFIG_PERMISSIONS_LABEL"
description="JCONFIG_PERMISSIONS_DESC" >
>
<field
name="rules"
type="rules"
Expand Down
1 change: 0 additions & 1 deletion administrator/components/com_banners/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@
<fieldset
name="permissions"
label="JCONFIG_PERMISSIONS_LABEL"
description="JCONFIG_PERMISSIONS_DESC"
>

<field
Expand Down
1 change: 0 additions & 1 deletion administrator/components/com_cache/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<fieldset
name="permissions"
label="JCONFIG_PERMISSIONS_LABEL"
description="JCONFIG_PERMISSIONS_DESC"
>
<field
name="rules"
Expand Down
1 change: 0 additions & 1 deletion administrator/components/com_checkin/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<fieldset
name="permissions"
label="JCONFIG_PERMISSIONS_LABEL"
description="JCONFIG_PERMISSIONS_DESC"
>

<field
Expand Down
1 change: 0 additions & 1 deletion administrator/components/com_contact/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,6 @@
<fieldset
name="permissions"
label="JCONFIG_PERMISSIONS_LABEL"
description="JCONFIG_PERMISSIONS_DESC"
>
<field
name="rules"
Expand Down
3 changes: 3 additions & 0 deletions administrator/components/com_content/forms/article.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<form>
<config>
<inlinehelp button="show"/>
</config>
<fieldset addfieldprefix="Joomla\Component\Content\Administrator\Field">
<field
name="id"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,9 @@ function (Toolbar $childBar) use ($checkedOut, $itemEditable, $canDo, $user)
}

$toolbar->divider();

ToolbarHelper::inlinehelp();

$toolbar->help('Articles:_Edit');
}
}
1 change: 0 additions & 1 deletion administrator/components/com_finder/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,6 @@
<fieldset
name="permissions"
label="JCONFIG_PERMISSIONS_LABEL"
description="JCONFIG_PERMISSIONS_DESC"
>

<field
Expand Down
1 change: 0 additions & 1 deletion administrator/components/com_installer/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
<fieldset
name="permissions"
label="JCONFIG_PERMISSIONS_LABEL"
description="JCONFIG_PERMISSIONS_DESC"
>

<field
Expand Down
1 change: 0 additions & 1 deletion administrator/components/com_languages/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<fieldset
name="permissions"
label="JCONFIG_PERMISSIONS_LABEL"
description="JCONFIG_PERMISSIONS_DESC"
>

<field
Expand Down
1 change: 0 additions & 1 deletion administrator/components/com_mails/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
<fieldset
name="permissions"
label="JCONFIG_PERMISSIONS_LABEL"
description="JCONFIG_PERMISSIONS_DESC"
>

<field
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_mails/forms/template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
type="radio"
label="COM_MAILS_FIELD_ALTERNATIVE_MAILCONFIG_LABEL"
layout="joomla.form.field.radio.switcher"
default="1"
default="0"
filter="boolean"
>
<option value="0">JNO</option>
Expand Down
1 change: 0 additions & 1 deletion administrator/components/com_media/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@
<fieldset
name="permissions"
label="JCONFIG_PERMISSIONS_LABEL"
description="JCONFIG_PERMISSIONS_DESC"
>

<field
Expand Down
1 change: 0 additions & 1 deletion administrator/components/com_messages/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<fieldset
name="permissions"
label="JCONFIG_PERMISSIONS_LABEL"
description="JCONFIG_PERMISSIONS_DESC"
>

<field
Expand Down
1 change: 0 additions & 1 deletion administrator/components/com_newsfeeds/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,6 @@
<fieldset
name="permissions"
label="JCONFIG_PERMISSIONS_LABEL"
description="JCONFIG_PERMISSIONS_DESC"
>

<field
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_plugins/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<fieldset
name="permissions"
label="JCONFIG_PERMISSIONS_LABEL"
description="JCONFIG_PERMISSIONS_DESC">
>

<field
name="rules"
Expand Down
1 change: 0 additions & 1 deletion administrator/components/com_postinstall/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<fieldset
name="permissions"
label="JCONFIG_PERMISSIONS_LABEL"
description="JCONFIG_PERMISSIONS_DESC"
>

<field
Expand Down
1 change: 0 additions & 1 deletion administrator/components/com_redirect/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
<fieldset
name="permissions"
label="JCONFIG_PERMISSIONS_LABEL"
description="JCONFIG_PERMISSIONS_DESC"
>
<field
name="rules"
Expand Down
1 change: 0 additions & 1 deletion administrator/components/com_tags/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,6 @@
<fieldset
name="permissions"
label="JCONFIG_PERMISSIONS_LABEL"
description="JCONFIG_PERMISSIONS_DESC"
>

<field
Expand Down
1 change: 0 additions & 1 deletion administrator/components/com_templates/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
<fieldset
name="permissions"
label="JCONFIG_PERMISSIONS_LABEL"
description="JCONFIG_PERMISSIONS_DESC"
>
<field
name="rules"
Expand Down
1 change: 0 additions & 1 deletion administrator/components/com_users/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,6 @@
<fieldset
name="permissions"
label="JCONFIG_PERMISSIONS_LABEL"
description="JCONFIG_PERMISSIONS_DESC"
>

<field
Expand Down
2 changes: 1 addition & 1 deletion administrator/language/en-GB/com_installer.ini
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ COM_INSTALLER_MSG_UPDATESITES_DELETE_ERROR="An error has occurred while trying t
COM_INSTALLER_MSG_UPDATESITES_N_DELETE_UPDATESITES_DELETED="%s update sites have been deleted."
COM_INSTALLER_MSG_UPDATESITES_N_DELETE_UPDATESITES_DELETED_1="Update site has been deleted."
COM_INSTALLER_MSG_UPDATESITES_REBUILD_EXTENSION_PLUGIN_NOT_ENABLED="The <a href=\"%s\">Joomla Extension Plugin</a> is disabled. This plugin must be enabled to rebuild the update sites."
COM_INSTALLER_MSG_UPDATESITES_REBUILD_MESSAGE="Update sites have been rebuilt. No extension with an update site has been discovered."
COM_INSTALLER_MSG_UPDATESITES_REBUILD_MESSAGE="Update sites have been rebuilt. No additional extension with an update site has been discovered."
COM_INSTALLER_MSG_UPDATESITES_REBUILD_NOT_PERMITTED="Rebuilding update sites is not permitted."
COM_INSTALLER_MSG_UPDATESITES_REBUILD_SUCCESS="Update sites have been rebuilt from manifest files."
COM_INSTALLER_MSG_UPDATESITES_REBUILD_WARNING="Update sites have been rebuilt. No extension with updates sites discovered."
Expand Down
2 changes: 1 addition & 1 deletion administrator/manifests/packages/pkg_search.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<extension type="package" version="4.0" method="upgrade">
<extension type="package" method="upgrade">
<name>pkg_search</name>
<packagename>search</packagename>
<creationDate>2021-08-17</creationDate>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ fieldset {
.com-users-profile__edit,
.com-users-registration {
#jform_privacyconsent_privacy,
#jform_profile_tos,
#jform_terms_terms {
.radio {
display: inline-flex;
Expand Down
2 changes: 1 addition & 1 deletion libraries/src/Mail/MailTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public function send()
$params = $mail->params;
$app = Factory::getApplication();

if ($config->get('alternative_mailconfig'))
if ((int) $config->get('alternative_mailconfig', 0) === 1 && (int) $params->get('alternative_mailconfig', 0) === 1)
{
if ($this->mailer->Mailer === 'smtp' || $params->get('mailer') === 'smtp')
{
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
"type": "git",
"url": "https://github.com/joomla/joomla-cms.git"
},
"__engines_upgrades__": "Dockerfiles @ github.com/joomla-projects/docker-images need also upgrade",
"engines": {
"node": ">=16",
"npm": ">=8.6.0"
"npm": ">=8.5.5"
},
"scripts": {
"build:js": "node build/build.js --compile-js",
Expand Down
29 changes: 22 additions & 7 deletions plugins/editors/tinymce/src/PluginTraits/DisplayTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,34 @@ public function onDisplay(
$editor .= !$this->app->client->mobile ? LayoutHelper::render('joomla.tinymce.togglebutton') : '';
$editor .= '</div>';

// Prepare the instance specific options, actually the ext-buttons
if (empty($options['tinyMCE'][$fieldName]['joomlaExtButtons']))
// Prepare the instance specific options
if (empty($options['tinyMCE'][$fieldName]))
{
$btns = $this->tinyButtons($id, $buttons);
// Width and height
if ($width)
{
$options['tinyMCE'][$fieldName]['width'] = $width;
}

if ($height)
{
$options['tinyMCE'][$fieldName]['height'] = $height;
}

// Set editor to readonly mode
if (!empty($params['readonly']))
{
$options['tinyMCE'][$fieldName]['readonly'] = 1;
}

$options['tinyMCE'][$fieldName]['joomlaMergeDefaults'] = true;
$options['tinyMCE'][$fieldName]['joomlaExtButtons'] = $btns;
// The ext-buttons
if (empty($options['tinyMCE'][$fieldName]['joomlaExtButtons']))
{
$btns = $this->tinyButtons($id, $buttons);

$options['tinyMCE'][$fieldName]['joomlaMergeDefaults'] = true;
$options['tinyMCE'][$fieldName]['joomlaExtButtons'] = $btns;
}

$doc->addScriptOptions('plg_editor_tinymce', $options, false);
}
Expand Down Expand Up @@ -471,8 +486,8 @@ public function onDisplay(
'document_base_url' => Uri::root(true) . '/',
'image_caption' => true,
'importcss_append' => true,
'height' => $height ?: $this->params->get('html_height', '550px'),
'width' => $width ?: $this->params->get('html_width', ''),
'height' => $this->params->get('html_height', '550px'),
'width' => $this->params->get('html_width', ''),
'elementpath' => (bool) $levelParams->get('element_path', true),
'resize' => $resizing,
'templates' => $templates,
Expand Down
3 changes: 1 addition & 2 deletions plugins/system/schedulerunner/schedulerunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,7 @@ public function generateWebcronKey(EventInterface $event): void
/** @var Extension $table */
[$context, $table] = $event->getArguments();

if ($context !== 'com_config.component'
|| ($table->name ?? '') !== 'COM_SCHEDULER')
if ($context !== 'com_config.component' || $table->name !== 'com_scheduler')
{
return;
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/system/schedulerunner/schedulerunner.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<extension version="4.1" type="plugin" group="system" method="upgrade">
<extension type="plugin" group="system" method="upgrade">
<name>plg_system_schedulerunner</name>
<author>Joomla! Project</author>
<creationDate>2021-08</creationDate>
Expand Down
2 changes: 1 addition & 1 deletion plugins/system/tasknotification/tasknotification.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<extension version="4.1" type="plugin" group="system" method="upgrade">
<extension type="plugin" group="system" method="upgrade">
<name>plg_system_task_notification</name>
<author>Joomla! Project</author>
<creationDate>2021-09</creationDate>
Expand Down
2 changes: 1 addition & 1 deletion plugins/task/checkfiles/checkfiles.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<extension version="4.1" type="plugin" group="task" method="upgrade">
<extension type="plugin" group="task" method="upgrade">
<name>plg_task_check_files</name>
<author>Joomla! Project</author>
<creationDate>2021-08</creationDate>
Expand Down
2 changes: 1 addition & 1 deletion plugins/task/demotasks/demotasks.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<extension version="4.1" type="plugin" group="task" method="upgrade">
<extension type="plugin" group="task" method="upgrade">
<name>plg_task_demo_tasks</name>
<author>Joomla! Project</author>
<creationDate>2021-07</creationDate>
Expand Down
2 changes: 1 addition & 1 deletion plugins/task/requests/requests.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<extension version="4.1" type="plugin" group="task" method="upgrade">
<extension type="plugin" group="task" method="upgrade">
<name>plg_task_requests</name>
<author>Joomla! Project</author>
<creationDate>2021-08</creationDate>
Expand Down
2 changes: 1 addition & 1 deletion plugins/task/sitestatus/sitestatus.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<extension version="4.1" type="plugin" group="task" method="upgrade">
<extension type="plugin" group="task" method="upgrade">
<name>plg_task_site_status</name>
<author>Joomla! Project</author>
<creationDate>2021-08</creationDate>
Expand Down
17 changes: 15 additions & 2 deletions templates/cassiopeia/html/mod_custom/banner.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,23 @@
*/

defined('_JEXEC') or die;
?>

use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Uri\Uri;

$modId = 'mod-custom' . $module->id;

if ($params->get('backgroundimage'))
{
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $app->getDocument()->getWebAssetManager();
$wa->addInlineStyle('
#' . $modId . '{background-image: url("' . Uri::root(true) . '/' . HTMLHelper::_('cleanImageURL', $params->get('backgroundimage'))->url . '");}
', ['name' => $modId]);
}
?>

<div class="mod-custom custom banner-overlay" <?php if ($params->get('backgroundimage')) : ?> style="background-image:url(<?php echo $params->get('backgroundimage'); ?>)"<?php endif; ?> >
<div class="mod-custom custom banner-overlay" id="<?php echo $modId; ?>">
<div class="overlay">
<?php echo $module->content; ?>
</div>
Expand Down

0 comments on commit c297caa

Please sign in to comment.