Skip to content

Commit

Permalink
Merge pull request concretecms#12247 from aembler/release/9.3.5
Browse files Browse the repository at this point in the history
Release/9.3.5
  • Loading branch information
aembler authored Oct 1, 2024
2 parents d4028aa + 3c76070 commit 0363dbf
Show file tree
Hide file tree
Showing 16 changed files with 54 additions and 41 deletions.
8 changes: 4 additions & 4 deletions build/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"production": "mix --production"
},
"devDependencies": {
"@concretecms/bedrock": "^1.5.2",
"@concretecms/bedrock": "^1.5.3",
"cross-env": "^5.1.1",
"download": "~8.0.0",
"grunt": "^1.5.3",
Expand Down
2 changes: 1 addition & 1 deletion build/tasks/build-release/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const download = require('download');

module.exports = function(grunt, config, parameters, done) {
var zipUrl = parameters.releaseSourceZip || 'https://github.com/concretecms/concretecms/archive/refs/tags/9.3.4.zip';
var zipUrl = parameters.releaseSourceZip || 'https://github.com/concretecms/concretecms/archive/refs/tags/9.3.5.zip';
var workFolder = parameters.releaseWorkFolder || './release';
function endForError(e) {
process.stderr.write(e.message || e);
Expand Down
10 changes: 9 additions & 1 deletion concrete/blocks/top_navigation_bar/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,15 @@
*/
if (count($item->getChildren()) > 0) { ?>
<li class="nav-item dropdown">
<a class="nav-link<?= $item->isActiveParent() ? " nav-path-selected" : ""; ?> dropdown-toggle<?= $item->isActive() ? " active" : ""; ?>" data-bs-toggle="dropdown" target="<?=$controller->getPageItemNavTarget($item)?>" href="<?= $item->getUrl() ?>">
<?php
// IMPORTANT NOTE! TO ANYONE WHO MIGHT WANT TO SWAP OUT DATA-CONCRETE-TOGGLE WITH DATA-BS-TOGGLE (see here: https://github.com/concretecms/concretecms/pull/12172)
// These are `data-concrete-toggle` because we need some custom behavior here. We don't just want to toggle the dropdowns, we need them to behave differently than bootstrap.
// Our dropdowns toggle on hover, but when clicked we want them to GO to the page (see the bug reported here): https://github.com/concretecms/concretecms/issues/12226
// So what do we do? We make sure that we include the navigation feature. This SHOULD automatically be included by the Top Navigation Bar. And if your theme doesn't include
// it, then it is included by the fallback asset inclusion routine. I strongly suspect that the original poster in issue #12172 had marked their theme as already including the
// navigation feature, but they hadn't actually included navigation/frontend.js in their theme's javascript.
?>
<a class="nav-link<?= $item->isActiveParent() ? " nav-path-selected" : ""; ?> dropdown-toggle<?= $item->isActive() ? " active" : ""; ?>" data-concrete-toggle="dropdown" target="<?=$controller->getPageItemNavTarget($item)?>" href="<?= $item->getUrl() ?>">
<?=h($item->getName())?>
</a>
<ul class="dropdown-menu">
Expand Down
2 changes: 1 addition & 1 deletion concrete/blocks/youtube/form_setup_html.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
</div>

<div class="form-check">
<?php echo $form->checkbox('iv_load_policy', '1', isset($iv_load_polict) && $iv_load_policy == 3); ?>
<?php echo $form->checkbox('iv_load_policy', '1', isset($iv_load_policy) && $iv_load_policy == 3); ?>
<?php echo $form->label("iv_load_policy", t('Hide annotations by default'), ["class" => "form-check-label"]); ?>
</div>

Expand Down
6 changes: 3 additions & 3 deletions concrete/config/concrete.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
*
* @var string
*/
'version' => '9.3.4',
'version_installed' => '9.3.4',
'version_db' => '20240711000000', // the key of the latest database migration
'version' => '9.3.5',
'version_installed' => '9.3.5',
'version_db' => '20240910000000', // the key of the latest database migration

/*
* Installation status
Expand Down
2 changes: 1 addition & 1 deletion concrete/elements/pages/schedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<?php } ?>

<div class="dialog-buttons">
<button type="submit" name="action" value="schedule" class="btn btn-primary">
<button type="submit" name="action" value="schedule" class="btn btn-primary ccm-check-in-schedule">
<?= t('Schedule') ?>
</button>
</div>
Expand Down
6 changes: 1 addition & 5 deletions concrete/images/icons/bedrock/sprites.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion concrete/js/cms.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion concrete/js/features/navigation/frontend.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 15 additions & 6 deletions concrete/single_pages/dashboard/system/express/entities/add.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<form method="post" class="ccm-dashboard-content-form" action="<?php echo $view->action('add') ?>">
<?php echo $token->output('add_entity') ?>

<div class="form-group <?php if ($error->containsField('name')) { ?>has-error<?php } ?>">
<div class="form-group <?php if ($error->containsField('name')) { ?>has-validation<?php } ?>">
<?php echo $form->label('name', t('Name')); ?>

<div class="float-end">
Expand All @@ -31,14 +31,17 @@
</span>
</div>

<?php echo $form->text('name', '', ['autofocus' => 'autofocus']) ?>
<?php echo $form->text('name', '', [
'class' => $error->containsField('name') ? 'is-invalid' : null,
'autofocus' => 'autofocus'
]) ?>

<p class="help-block">
<?php echo t('The name is how your entity will appear in the Dashboard.') ?>
</p>
</div>

<div class="form-group <?php if ($error->containsField('handle')) { ?>has-error<?php } ?>">
<div class="form-group <?php if ($error->containsField('handle')) { ?>has-validation<?php } ?>">
<?php echo $form->label('handle', t('Handle')); ?>

<div class="float-end">
Expand All @@ -47,16 +50,22 @@
</span>
</div>

<?php echo $form->text('handle') ?>
<?php echo $form->text('handle', ['class' => $error->containsField('handle') ? 'is-invalid' : null]) ?>

<p class="help-block">
<?php echo t('A unique string consisting of lowercase letters and underscores only.') ?>
</p>
</div>

<div class="form-group">
<div class="form-group <?php if ($error->containsField('plural_handle')) { ?>has-validation<?php } ?>">
<div class="float-end">
<span class="text-muted small">
<?php echo t('Required') ?>
</span>
</div>

<?php echo $form->label('plural_handle', t('Plural Handle')); ?>
<?php echo $form->text('plural_handle') ?>
<?php echo $form->text('plural_handle', ['class' => $error->containsField('plural_handle') ? 'is-invalid' : null]) ?>

<p class="help-block">
<?php echo t('The plural representation of the handle above. Used to retrieve this entity if it is used in associations.') ?>
Expand Down
18 changes: 9 additions & 9 deletions concrete/single_pages/dashboard/system/multilingual/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,28 +121,28 @@
<div class="form-group">
<div class="form-check">
<?= $form->checkbox('redirectHomeToDefaultLocale', 1, $redirectHomeToDefaultLocale) ?>
<label>
<span><?= t('Redirect home page to default locale.') ?></span>
<label class="form-check-label" for="redirectHomeToDefaultLocale">
<?= t('Redirect home page to default locale.') ?>
</label>
</div>
<div style="margin-left: 20px">
<div class="ms-4">
<div class="form-check <?= $redirectHomeToDefaultLocale ? '' : ' disabled' ?>">
<?= $form->checkbox('useBrowserDetectedLocale', 1, $useBrowserDetectedLocale, $redirectHomeToDefaultLocale ? [] : ['disabled' => 'disabled']) ?>
<label>
<span><?= t('Attempt to use visitor\'s locale based on their browser information.') ?></span>
<label class="form-check-label" for="useBrowserDetectedLocale">
<?= t('Attempt to use visitor\'s locale based on their browser information.') ?>
</label>
</div>
</div>
<div class="form-check">
<?= $form->checkbox('alwaysTrackUserLocale', 1, $alwaysTrackUserLocale) ?>
<label>
<span><?= t('Always track user locale.') ?> <i class="launch-tooltip control-label fas fa-question-circle" title="<?= h(t('Tracking user locales requires the creation of session cookies. Disable this option to avoid tracking user locale in case the session cookie is not yet set.')) ?>"></i></span>
<label class="form-check-label" for="alwaysTrackUserLocale">
<?= t('Always track user locale.') ?> <i class="launch-tooltip control-label fas fa-question-circle" title="<?= h(t('Tracking user locales requires the creation of session cookies. Disable this option to avoid tracking user locale in case the session cookie is not yet set.')) ?>"></i>
</label>
</div>
<div class="form-check">
<?= $form->checkbox('setAlternateHreflang', 1, $setAlternateHreflang) ?>
<label>
<span><?= t('Help search engines show the correct language version with Hreflang tags') ?></span>
<label class="form-check-label" for="setAlternateHreflang">
<?= t('Help search engines show the correct language version with Hreflang tags') ?>
</label>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion concrete/single_pages/dashboard/users/search/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ class="fas fa-minus-circle"></i></a></div>
<div v-if="groups.length === 0" class="mb-3"><?= t('None') ?></div>

<h4><?= t('Add Group') ?></h4>
<concrete-group-chooser mode="select" @select="addGroup"></concrete-group-chooser>
<concrete-group-chooser mode="select" @select="addGroup" filter="assign"></concrete-group-chooser>

</div>
<div class="modal-footer">
Expand Down
6 changes: 3 additions & 3 deletions concrete/src/Api/Controller/Pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public function listPages()
$list->setPermissionsChecker(
function ($page) {
$permissions = new Checker($page);
return $permissions->canViewPageInSitemap();
return $permissions->canViewPage();
}
);

Expand Down Expand Up @@ -226,7 +226,7 @@ public function sitemapPages($pageID)
$list->setPermissionsChecker(
function ($page) {
$permissions = new Checker($page);
return $permissions->canViewPageInSitemap();
return $permissions->canViewPage();
}
);

Expand Down Expand Up @@ -383,7 +383,7 @@ public function update($cID)
}

$checker = new Checker($page);
if (!$checker->canEditPage()) {
if (!$checker->canEditPageContents()) {
return $this->error(t('You do not have access to edit this page.', 401));
}

Expand Down
2 changes: 1 addition & 1 deletion concrete/themes/atomik/main.js

Large diffs are not rendered by default.

Loading

0 comments on commit 0363dbf

Please sign in to comment.