mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Hide toolbar when no content available (#983)
This commit is contained in:
parent
cfb8cdfc06
commit
2bd7cf290e
@ -1,17 +1,21 @@
|
||||
<?php if ($controlPanel || $search): ?>
|
||||
<div class="toolbar-widget <?= $cssClasses ?>" id="<?= $this->getId() ?>">
|
||||
<div class="control-toolbar">
|
||||
|
||||
<?php if ($controlPanel): ?>
|
||||
<!-- Control Panel -->
|
||||
<div class="toolbar-item toolbar-primary">
|
||||
<?= ($controlPanel) ?: ' ' ?>
|
||||
<?= ($controlPanel) ?>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($search): ?>
|
||||
<!-- List Search -->
|
||||
<?php if ($search): ?>
|
||||
<div class="toolbar-item" data-calculate-width>
|
||||
<?= $search ?>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<div class="toolbar-item" data-calculate-width>
|
||||
<?= $search ?>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user