Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/mautic.corals.io/app/bundles/CoreBundle/Resources/views/Helper/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mautic.corals.io/app/bundles/CoreBundle/Resources/views/Helper/confirm.html.twig
{%- if template is defined %}
    {%- if template is same as 'batchdelete' %}
        {%- set confirmText = confirmText|default('mautic.core.form.delete'|trans) %}
        {%- set iconClass = iconClass|default('ri-delete-bin-line text-danger') %}
        {%- set btnText = btnText|default('mautic.core.form.delete_selected'|trans) %}
        {%- set btnClass = btnClass|default('') %}
        {%- set confirmCallback = confirmCallback|default('executeBatchAction') %}
        {% set wrapOpeningTag = wrapOpeningTag is defined ? wrapOpeningTag : '' %}
        {% set wrapClosingTag = wrapClosingTag is defined ? wrapClosingTag : '' %}
        {%- set precheck = precheck|default('batchActionPrecheck') %}
    {%- elseif template is same as 'delete' %}
        {%- set confirmText = confirmText|default('mautic.core.form.delete'|trans) %}
        {%- set iconClass = iconClass|default('ri-delete-bin-line text-danger') %}
        {%- set btnText = btnText|default('mautic.core.form.delete')|trans %}
    {%- endif %}
{%- endif %}

{%- set btnClass = btnClass ?? 'btn btn-default' %}

{%- set btnTextAttr = btnTextAttr|default('') %}

{%- if btnTextClass is defined %}
    {%- set btnTextAttr = btnTextAttr ~ ' class="' ~ btnTextClass ~ '"' %}
{%- endif %}

{%- set confirmAction = confirmAction|default('javascript:void(0);') %}

{%- if confirmCallback is not defined and confirmAction is not same as 'javascript:void(0);' %}
    {%- set confirmCallback = 'executeAction' %}
{%- endif %}

{%- set cancelText = cancelText|default('mautic.core.form.cancel'|trans) %}

{%- set cancelCallback = cancelCallback|default('dismissConfirmation') %}

{%- set attr = attr|default({}) %}
{%- if confirmCallback is not empty %}
    {%- set attr = attr|merge({'data-confirm-callback': confirmCallback}) %}
{%- endif %}
{%- if cancelText is not empty %}
    {%- set attr = attr|merge({'data-cancel-text': cancelText|escape('js')}) %}
{%- endif %}
{%- if confirmText is not empty %}
    {%- set attr = attr|merge({'data-confirm-text': confirmText|escape('js')}) %}
{%- endif %}
{%- if cancelCallback is not empty %}
    {%- set attr = attr|merge({'data-cancel-callback': cancelCallback}) %}
{%- endif %}
{%- if target is defined and target is not empty %}
    {%- set attr = attr|merge({'data-target': target}) %}
{%- endif %}

{%- set tag = tag|default('a') %}
{%- set buttonType = 'button' is same as tag ? ' type="button"' %}

{%- if wrapOpeningTag is not defined %}
    {% set wrapOpeningTag = '' %}
    {% set wrapClosingTag = '' %}
{%- endif %}

{%- set tooltipAttr = '' %}
{%- if tooltip is defined %}
    {% if tooltipPosition is not defined %}
        {% set tooltipPosition = 'left' %}
    {% endif %}
    {% set tooltipAttr = ' data-toogle="tooltip" title="' ~ tooltip ~ '" data-placement="' ~ tooltipPosition ~ '"' %}
{% endif %}

{%- set precheck = precheck|default('') %}
{{- wrapOpeningTag }}
<{{ tag }}{{ buttonType }}
    class="{{ btnClass }}"
    href="{{ confirmAction }}"
    data-toggle="confirmation"
    data-precheck="{{ precheck }}"
    data-message="{{ message|escape }}"
    {% if 'data-confirm-text' not in attr|keys %}data-confirm-text="{{ confirmText|escape }}"{% endif %}
    {{ attr|filter(v => v is not empty)|map((value, key) => key ~ '="' ~ value ~ '"')|join(' ')|raw }}>
<span{{ tooltipAttr }}>
    {% if iconClass is defined %}
        <i class="{{ iconClass }}"></i>
    {% endif %}
    {% if btnText is defined %}
        <span{{ btnTextAttr }}>{{ btnText }}</span>
    {% endif %}
</span>
</{{ tag }}>
{{ wrapClosingTag }}

Spamworldpro Mini