-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtemplate.php
32 lines (30 loc) · 936 Bytes
/
template.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<label class="label">
<?= $field->label(); ?>
<?= $field->counter(); ?>
<?php if($field->add()) echo $field->action('add'); ?>
</label>
<?php if($field->entries()->count()): ?>
<?= $field->layouts(); ?>
<?php else: ?>
<div class="sortable__empty">
<?php
echo $field->l('field.sortable.empty');
if($field->add()) {
echo $field->action('add', ['label' => $field->l('field.sortable.add.first'), 'icon' => '', 'class' => '']);
if($field->paste()) {
echo $field->l('field.sortable.or');
echo $field->action('paste', ['label' => $field->l('field.sortable.paste.first'), 'icon' => '', 'class' => '']);
}
}
?>
</div>
<?php endif; ?>
<div class="sortable__navigation">
<?php
if($field->copy()) echo $field->action('copy');
if($field->add()) {
if($field->paste()) echo $field->action('paste');
echo $field->action('add');
}
?>
</div>