golden hour
/home/godaofbq/besthyperbaric.com/wp-content/plugins/oxygen/plugin/forms
⬆️ Go Up
Upload
File/Folder
Size
Actions
.htaccess
420 B
Del
OK
actions
-
Del
OK
ajax.php
2.39 KB
Del
OK
base.php
2.28 KB
Del
OK
custom
-
Del
OK
files.php
8.96 KB
Del
OK
forms.php
2.59 KB
Del
OK
shared
-
Del
OK
utils.php
1.69 KB
Del
OK
Edit: 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'); }
Save