Skip to content
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
2 changes: 1 addition & 1 deletion apps/qubit/modules/digitalobject/templates/_imageflow.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class="accordion"
<div class="accordion-item border-0">
<h2 class="accordion-header rounded-0 rounded-top border border-bottom-0" id="heading-carousel">
<button class="accordion-button rounded-0 rounded-top text-primary" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-carousel" aria-expanded="true" aria-controls="collapse-carousel">
<span><?php echo __('Image carousel'); ?></span>
<span><?php echo __(sfConfig::get('app_ui_label_carousel')); ?></span>
</button>
</h2>
<div id="collapse-carousel" class="accordion-collapse collapse show" aria-labelledby="heading-carousel">
Expand Down
10 changes: 9 additions & 1 deletion data/fixtures/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ QubitSetting:
name: version
editable: 0
deleteable: 0
value: 197
value: 199
milestone:
name: milestone
editable: 0
Expand Down Expand Up @@ -1585,3 +1585,11 @@ QubitSetting:
value:
ar: 'عدد الإضافات الأرشيفية:&nbsp;'
en: 'Accession count:&nbsp;'
QubitSettings_carousel:
name: carousel
scope: ui_label
editable: 1
deleteable: 0
source_culture: en
value:
en: 'Image Carousel'
51 changes: 51 additions & 0 deletions lib/task/migrate/migrations/arMigration0199.class.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?php

/*
* This file is part of the Access to Memory (AtoM) software.
*
* Access to Memory (AtoM) is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Access to Memory (AtoM) is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Access to Memory (AtoM). If not, see <http://www.gnu.org/licenses/>.
*/

/*
* Add new UI labels for Image carousel.
*
* @package AccesstoMemory
* @subpackage migration
*/
class arMigration0199
{
public const VERSION = 199;
public const MIN_MILESTONE = 2;

/**
* Upgrade.
*
* @param mixed $configuration
*
* @return bool True if the upgrade succeeded, False otherwise
*/
public function up($configuration)
{
$setting = new QubitSetting();
$setting->name = 'carousel';
$setting->scope = 'ui_label';
$setting->editable = 1;
$setting->deleteable = 0;
$setting->source_culture = 'en';
$setting->setValue('Image Carousel', ['culture' => 'en']);
$setting->save();

return true;
}
}
Loading