Compare commits

..

3 Commits

Author SHA1 Message Date
buttle 27be85cf29 removes more unwanted blocks 2021-05-17 19:34:13 +02:00
buttle 0d865d84f2 disables page pagination 2021-05-17 16:34:35 +02:00
buttle caf4ed8472 removes HTML block 2021-05-17 16:26:51 +02:00
3 changed files with 80 additions and 3 deletions

View File

@ -0,0 +1,74 @@
<?php
$translate = $this->plugin('translate');
$escape = $this->plugin('escapeHtml');
$this->htmlElement('body')->appendAttribute('class', 'site-pages edit');
$this->ckEditor();
$this->headScript()->appendFile($this->assetUrl('vendor/sortablejs/Sortable.min.js', 'Omeka'));
$this->headScript()->appendFile($this->assetUrl('js/site-page-edit.js', 'Omeka'));
$this->blockLayout()->prepareForm();
$form->prepare();
?>
<?php echo $this->pageTitle($page->title(), 1, $translate('Pages'), $translate('Edit')); ?>
<?php echo $this->form()->openTag($form); ?>
<div id="page-actions">
<?php if ($page->isPublic()): ?>
<?php echo $this->hyperlink('', '#', [
'class' => 'o-icon-public button',
'title' => $translate('Make private'),
]); ?>
<input type="hidden" name="o:is_public" value="1">
<?php else: ?>
<?php echo $this->hyperlink('', '#', [
'class' => 'o-icon-private button',
'title' => $translate('Make public'),
]); ?>
<input type="hidden" name="o:is_public" value="0">
<?php endif; ?>
<a href="<?php echo $page->siteUrl(); ?>" class="button" target="_blank"><?php echo $translate('View'); ?></a>
<a href="#" class="delete button"><?php echo $translate('Delete'); ?></a>
<?php echo $this->cancelButton(); ?>
<button><?php echo $translate('Save'); ?></button>
</div>
<?php echo $this->formCollection($form, false); ?>
<?php echo $this->blockLayout()->forms($page); ?>
<?php echo $this->form()->closeTag(); ?>
<div id="new-block" class="active sidebar" data-url="<?php echo $this->url('admin/site/slug/page/default', ['action' => 'block'], true); ?>">
<h3><?php echo $translate('Add new block'); ?></h3>
<?php foreach ($this->blockLayout()->getLayouts() as $layout): ?>
<?php if ($layout == "html") { continue; } ?>
<?php if ($layout == "tableOfContents") { continue; } ?>
<?php if ($layout == "searchingForm") { continue; } ?>
<button type="button" value="<?php echo $escape($layout); ?>" class="option">
<?php echo $escape($translate($this->blockLayout()->getLayoutLabel($layout))); ?>
</button>
<?php endforeach; ?>
</div>
<div id="attachment-options" class="sidebar" data-url="<?php echo $this->url(null, ['action' => 'attachment-item-options'], true); ?>">
<div id="attachment-options-main" class="confirm-main">
<a href="#" class="sidebar-close o-icon-close"><span class="screen-reader-text"><?php echo $translate('Close'); ?></span></a>
<div id="attachment-item"></div>
<div id="attachment-caption" class="option">
<h3><?php echo $translate('Caption'); ?></h3>
<?php echo $this->hyperlink('', '#', [
'class' => 'collapse',
'title' => $translate('Collapse'),
]); ?>
<div class="collapsible">
<textarea class="caption wysiwyg"></textarea>
</div>
</div>
</div>
<div id="attachment-confirm-panel" class="confirm-panel">
<button><?php echo $translate('Apply changes'); ?></button>
</div>
</div>
<?php echo $this->deleteConfirm($page, 'page'); ?>
<?php echo $this->partial('common/resource-select-sidebar'); ?>

View File

@ -8,7 +8,9 @@ $title = $this->setting('installation_title', 'Omeka S');
$subtitle = $translate('Sites');
$this->headTitle($subtitle);
?>
<h1><?php echo $this->hyperlink($title, $this->url('top', ['action' => 'index'])); ?></h1>
<h1>
<?php echo $this->hyperlink($title, $this->url('top', ['action' => 'index'])); ?>
</h1>
omeka/site/index.phtml

View File

@ -25,7 +25,7 @@ if ($img_src) {
</style>
<?php } ?>
<?= $page->id(); ?>
<?php /* echo $page->id(); */ ?>
<?php
$nav = $site->publicNav();
@ -78,6 +78,7 @@ if ($activePage):
<?php $this->trigger('view.show.after'); ?>
<?php if ($showPagePagination): ?>
<?php /* if ($showPagePagination): */ ?>
<?php if (1 == 0): ?>
<?php echo $this->sitePagePagination(); ?>
<?php endif; ?>