21 lines
No EOL
765 B
Twig
21 lines
No EOL
765 B
Twig
{% set _showIcon = config.showIcon|defined(true) %}
|
|
{% set _showLabel = config.showLabel|defined(true) %}
|
|
|
|
{% if _showLabel == false and _showIcon == false %}
|
|
{% set _showLabel = true %}
|
|
{% endif %}
|
|
|
|
<div id='frontend-edit-button' class='{{ vertical }} {{ horizontal }}'>
|
|
<div class='page-item' data-nav-id='/grav-cms{{ pageUrl }}'>
|
|
<a class='page-edit frontend-edit-button' target='_blank' href='{{ editUrl }}'>
|
|
{% if _showIcon == true %}
|
|
<i class='icon-feb-editor'></i>
|
|
{% endif %}
|
|
{% if _showLabel == true %}
|
|
<span class="label">
|
|
{{ 'PLUGIN_FRONTEND_EDIT_BUTTON.BUTTON_TEXT'|t }}
|
|
</span>
|
|
{% endif %}
|
|
</a>
|
|
</div>
|
|
</div> |