bookmark-pages/Resources/Private/Layouts/Default.html
2021-08-16 16:15:21 +02:00

24 lines
958 B
HTML

<f:if condition="{settings.isComplementary as integer} === 1">
<f:then>
<div class="bookmark-pages">
<f:render section="main" />
</div>
</f:then>
<f:else>
<div class="bookmark-pages"
data-settings='{settings -> f:format.json()}'
data-bookmark='{bookmark -> f:format.json()}'
data-add-ajaxuri="{t:uri.ajaxAction(action: 'bookmark')}"
data-remove-ajaxuri="{t:uri.ajaxAction(action: 'delete')}"
data-update-ajaxuri="{t:uri.ajaxAction(action: 'listEntries')}"
id="bookmarks">
<f:render section="main" />
<template id="bookmark-template">
<f:render partial="ListItem" arguments="{bookmark: bookmark}" />
</template>
</div>
</f:else>
</f:if>
<f:asset.script identifier="bookmarkPages" src="EXT:ws_bookmark_pages/Resources/Public/Scripts/JavaScript/ws_bookmark_pages.js" />