@@ -22,60 +22,44 @@ $buttons = $viewModel->getButtons();
2222$ mainSaveAction = false ;
2323$ otherSaveActions = [];
2424?>
25- <div class="<?= $ css ( ' page-main-actions ' ) ?> ">
26- <div class="<?= $ css ( ' page-actions-placeholder ' , ' placeholder ' ) ?> "></div>
25+ <div class="page-main-actions">
26+ <div class="page-actions-placeholder"></div>
2727
28- <div class="<?= $ css ( ' page-actions ' , ' actions ' ) ?> ">
29- <div class="<?= $ css ( ' page-actions-inner ' , ' actions-inner ' ) ?> ">
30- <div class="<?= $ css ( ' page-actions-buttons ' , ' actions-buttons ' ) ?> ">
28+ <div class="page-actions">
29+ <div class="page-actions-inner">
30+ <div class="page-actions-buttons">
3131 <?php foreach ($ buttons as $ button ) : ?>
3232 <?php $ subButtons = $ button ->getSubButtons (); ?>
3333 <button
34- @click="<?= $ escaper ->escapeHtml (
35- $ button ->getMethod ()
36- ) ?> "
37- title="<?= $ escaper ->escapeHtml (
38- __ ($ button ->getLabel ())
39- ) ?> "
34+ @click="<?= $ escaper ->escapeHtml ($ button ->getMethod ()) ?> "
35+ title="<?= $ escaper ->escapeHtml (__ ($ button ->getLabel ())) ?> "
4036 type="button"
41- class="action- scalable <?= $ escaper ->escapeHtml (
42- $ button ->getCssClass ()
43- ) ?> ">
44- <span><?= $ escaper ->escapeHtml (
45- __ ($ button ->getLabel ())
46- ) ?> </span>
37+ class="action- scalable <?= $ escaper ->escapeHtml ($ button ->getCssClass ()) ?> ">
38+ <span><?= $ escaper ->escapeHtml (__ ($ button ->getLabel ())) ?> </span>
4739 </button>
4840 <?php endforeach ; ?>
4941
5042 <?php if (!empty ($ otherSaveActions )) : ?>
5143 <div
5244 title="Save and Continue"
53- class="<?= $ css (
54- 'actions-split save primary ' , 'button-container '
55- ) ?> "
45+ class="actions-split save primary"
5646 >
5747 <button
5848 @click="saveAndContinueAction"
5949 title="Save and Continue"
60- class="<?= $ css (
61- 'action-default primary ' ,
62- 'button-save-and-continue '
63- ) ?> "
50+ class="action-default primary"
6451 >
6552 <span>Save and Continue</span>
6653 </button>
6754
6855 <button @click="toggleOtherActions"
6956 title="Save and Continue"
70- class="<?= $ css (
71- 'action-toggle primary save ' ,
72- 'button-toggle-actions '
73- ) ?> ">
57+ class="action-toggle primary save">
7458 <span>Select</span>
7559 </button>
7660
7761 <ul
78- class="<?= $ css ( ' dropdown-menu ' , ' listing ' ) ?> "
62+ class="dropdown-menu"
7963 x-cloak x-show="showOtherActions"
8064 >
8165 <?php foreach (
@@ -85,11 +69,9 @@ $otherSaveActions = [];
8569 <span
8670 @click="saveAndDuplicateAction"
8771 title="Save & Duplicate"
88- class="<?= $ css (
89- 'item ' , 'action-label '
90- ) ?> "
72+ class="item"
9173 >
92- Save & Duplicate
74+ Save &amp; Duplicate
9375 </span>
9476 </li>
9577 <?php endforeach ; ?>
0 commit comments