GIF94; MINI MO Shell - Tarih Gösterimli

MINI MINI MANI MO - TARİH GÖSTERİMLİ

Path : /var/www/wordpress/wp-content/plugins/oxygen/plugin/forms/
File Upload :
Current File : /var/www/wordpress/wp-content/plugins/oxygen/plugin/forms/forms.php

<?php

namespace Breakdance\Forms;

/**
 * Get a list of front-end assets to load in the builder/frontend for Ajax Forms.
 * @return ElementDependenciesAndConditions[]
 */
function getAjaxDependencies()
{
    $maskCondition = "
{% set has_mask = false %}
{% for field in content.form.fields %}
  {% if field.advanced.mask is defined and field.advanced.mask %}
    {% set has_mask = true %}
  {% endif %}
{% endfor %}
{% if has_mask %}
  return true;
{% endif %}
";

    return [
        [
            'styles' => [
                '%%BREAKDANCE_ELEMENTS_PLUGIN_URL%%dependencies-files/awesome-form@1/css/form.css',
            ],
        ],
        [
            'scripts' => [
                '%%BREAKDANCE_ELEMENTS_PLUGIN_URL%%dependencies-files/awesome-form@1/js/form.js',
            ],
            'inlineScripts' => [
                "breakdanceForm.init('%%SELECTOR%% .breakdance-form')",
            ],
            'builderCondition' => "return false;", // Don't run JavaScript the builder.
        ],
        [
            'scripts' => [
                '%%BREAKDANCE_ELEMENTS_PLUGIN_URL%%dependencies-files/awesome-form@1/js/form.js',
            ],
            'inlineStyles' => [
                '%%SELECTOR%% .breakdance-form-field--condition-hidden {display:flex;opacity:0.5;}',
            ],
            'frontendCondition' => "return false;", // This is just for the builder
        ],
        [
            'scripts' => [
                '%%BREAKDANCE_ELEMENTS_PLUGIN_URL%%dependencies-files/maska@3/maska.js',
            ],
            'frontendCondition' => $maskCondition,
            'builderCondition' => $maskCondition
        ],
        [
            'inlineStyles' => [
                '%%SELECTOR%% .breakdance-form-button.breakdance-form-button__submit, %%SELECTOR%% .breakdance-form-field .breakdance-form-file-upload, %%SELECTOR%% .breakdance-form-field .breakdance-form-field__label {pointer-events: none}',
            ],
            'frontendCondition' => "return false;", // This is just for the builder
        ],
    ];
}

/**
 * Get a list of front-end assets to load in the builder/frontend for Third Party Forms.
 * E.g. Ninja Forms, Gravity Forms
 * @return ElementDependenciesAndConditions[]
 */
function getThirdPartyDependencies()
{
    return [
        [
            'styles' => [
                '%%BREAKDANCE_ELEMENTS_PLUGIN_URL%%dependencies-files/awesome-form@1/css/form.css',
            ],
        ],
    ];
}

/**
 * Builder: Get an empty template for when no form ID is selected.
 * @return false|string
 */
function getEmptyTemplate()
{
    return file_get_contents(__DIR__ . '/shared/empty.twig');
}

OHA YOOO - Tarih: 2026-08-04 00:02:23