11 <link rel=
"stylesheet" type=
"text/css" href=
"<?= $block->escapeUrl($block->getViewFileUrl('prototype/windows/themes/default.css')) ?>"/>
12 <link rel=
"stylesheet" type=
"text/css" href=
"<?= $block->escapeUrl($block->getViewFileUrl('mage/translate-inline.css')) ?>"/>
14 <script
id=
"translate-inline-icon" type=
"text/x-magento-template">
15 <img src=
"<%- data.img %>" height=
"16" width=
"16" class=
"translate-edit-icon">
17 <script
id=
"translate-form-template" type=
"text/x-magento-template">
18 <
form id=
"<%- data.id %>">
19 <% _.each(data.items,
function(item, i) { %>
20 <div class=
"translate-table-container">
22 <% _.each(item, function(value, index) { %>
24 <th class=
"label" style=
"text-transform: capitalize;"><%- index %>:</th>
25 <td class=
"value"><%- value %></td>
30 <label
for=
"perstore_<%- i %>">Store View Specific:</label>
33 <input
id=
"perstore_<%- i %>" name=
"translate[<%- i %>][perstore]" type=
"checkbox" value=
"1"/>
38 <label
for=
"custom_<%- i %>">Custom:</label>
41 <input
name=
"translate[<%- i %>][original]" type=
"hidden" value=
"<%- item.original %>"/>
42 <input
id=
"custom_<%- i %>" 43 name=
"translate[<%- i %>][custom]" 45 value=
"<%- item.translated %>" />
51 <%
if (data.message) { %>
52 <p
class=
"a-center accent"><%- data.message %></p>
56 <div data-role=
"translate-dialog" data-
mage-init=
'{"translateInline":{"ajaxUrl":"<?= $block->escapeJs($block->escapeUrl($block->getAjaxUrl())) ?>"},"loader":{}}'></div>
61 "mage/translate-inline" 63 $(
'body').editTrigger(
65 img:
'<?= $block->escapeJs($block->escapeUrl($block->getViewFileUrl('Magento_Theme::fam_book_open.png
'))) ?>',
71 $(
'body').addClass(
'trnslate-inline-area');
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
if( $form)() ?>< script > require(['jquery' mage mage
jquery extjs ext tree mage adminhtml form
if($block->getLink()) line height