Skip to content
This repository was archived by the owner on Jul 5, 2022. It is now read-only.
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 styles/items.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="structure-entry structure-entry-<?php echo strtolower($entry->_fieldset()) ?> builder-entry builder-entry-<?php echo strtolower($entry->_fieldset()) ?>" id="structure-entry-<?php echo $entry->id() ?>">
<div class="structure-entry-content builder-entry-content text">
<?php if($field->fieldsets() && isset($field->fieldsets()[$entry->_fieldset()])) : ?>
<label class="builder-entry-fieldset-name"><?php echo html($field->fieldset($entry->_fieldset())->label()) ?></label>
<label class="builder-entry-fieldset-name"><?php echo html(i18n($field->fieldset($entry->_fieldset())->label())) ?></label>
<?php endif ?>
<?php echo $field->entry($entry) ?>
</div>
Expand Down
2 changes: 1 addition & 1 deletion styles/table.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<td class="structure-table-fieldset-name">
<a data-modal href="<?php __($field->url($entry->id() . '/update')) ?>">
<?php if($field->fieldsets() && isset($field->fieldsets()[$entry->_fieldset()])) : ?>
<?php echo html($field->fieldset($entry->_fieldset())->label()) ?>
<?php echo html($field->fieldset(i18n($entry->_fieldset())->label())) ?>
<?php else: ?>
No fieldset found.
<?php endif ?>
Expand Down
2 changes: 1 addition & 1 deletion template.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<?php foreach ($field->fieldsets as $fieldsetName => $fieldset):
$fieldset = $field->fieldset($fieldsetName);
?>
<a class="btn btn-rounded" data-quickform href="#" data-href="<?= purl($field->page, 'field/' . $field->name . '/builder/add?fieldset=' . $fieldsetName) ?>"><i class="icon icon-left fa fa-plus-circle"></i><?= $fieldset->label ?></a>
<a class="btn btn-rounded" data-quickform href="#" data-href="<?= purl($field->page, 'field/' . $field->name . '/builder/add?fieldset=' . $fieldsetName) ?>"><i class="icon icon-left fa fa-plus-circle"></i><?= i18n($fieldset->label) ?></a>
<?php endforeach ?>
</div>

Expand Down