403Webshell
Server IP : 38.190.208.107  /  Your IP : 216.73.217.46
Web Server : nginx/1.28.1
System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64
User : root ( 0)
PHP Version : 8.2.28
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv,eval,assert,passthru,system,exec,shell_exec,popen,proc_open
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wwwroot/wp.10/wp-content/plugins/fluentform/app/Services/Blocks/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/wp.10/wp-content/plugins/fluentform/app/Services/Blocks/BlockAttributes.php
<?php

namespace FluentForm\App\Services\Blocks;

/**
 * BlockAttributes class for defining Gutenberg block attributes
 * @since 1.0.0
 */
class BlockAttributes
{
    /**
     * Get all attributes for the Fluent Forms Gutenberg block
     *
     * @return array Block attributes configuration
     */
    public static function getAttributes()
    {
        return array_merge(
            self::getFormAttributes(),
            self::getStylesAttribute()
        );
    }

    /**
     * Get form specific attributes
     *
     * @return array Form specific attributes
     */
    public static function getFormAttributes()
    {
        return [
            'formId' => [
                'type' => 'string',
                'default' => '',
            ],
            'className' => [
                'type' => 'string',
                'default' => '',
            ],
            'themeStyle' => [
                'type' => 'string',
                'default' => '',
            ],
            'isConversationalForm' => [
                'type' => 'boolean',
                'default' => false,
            ],
            'customCssClass' => [
                'type' => 'string',
                'default' => '',
            ],
            // Generated block custom styles
            'customCss' => [
                'type' => 'string',
                'default' => '',
            ]
        ];
    }

    /**
     * Get the consolidated styles attribute
     *
     * @return array Styles attribute configuration
     */
    public static function getStylesAttribute()
    {
        return [
            'styles' => [
                'type' => 'object',
                'default' => array_merge(
                    self::getTypographyAttributes(),
                    self::getColorAttributes(),
                    self::getBorderAttributes(),
                    self::getBoxShadowAttributes(),
                    self::getBackgroundAttributes(),
                    self::getSpacingAttributes(),
                    self::getButtonAttributes(),
                    self::getMessageAttributes(),
                    self::getAdvancedAttributes()
                ),
            ],
        ];
    }

    public static function getBoxShadowAttributes() {
        return [
            // Input box shadow
            'inputBoxShadow' => [
                'enable' => false,
                'color' => '',
                'position' => 'outline',
                'horizontal' => ['value' => '0', 'unit' => 'px'],
                'vertical' => ['value' => '0', 'unit' => 'px'],
                'blur' => ['value' => '5', 'unit' => 'px'],
                'spread' => ['value' => '0', 'unit' => 'px'],
            ],
            // Input box shadow focus
            'inputBoxShadowFocus' => [
                'enable' => false,
                'color' => '',
                'position' => 'outline',
                'horizontal' => ['value' => '0', 'unit' => 'px'],
                'vertical' => ['value' => '0', 'unit' => 'px'],
                'blur' => ['value' => '5', 'unit' => 'px'],
                'spread' => ['value' => '0', 'unit' => 'px'],
            ],
            // Container box shadow
            'containerBoxShadow' => [
                'enable' => false,
                'color' => '',
                'position' => 'outline',
                'horizontal' => ['value' => '0', 'unit' => 'px'],
                'vertical' => ['value' => '0', 'unit' => 'px'],
                'blur' => ['value' => '5', 'unit' => 'px'],
                'spread' => ['value' => '0', 'unit' => 'px'],
            ],
            // Button box shadow
            'buttonBoxShadow' => [
                'enable' => false,
                'color' => '',
                'position' => 'outline',
                'horizontal' => ['value' => '0', 'unit' => 'px'],
                'vertical' => ['value' => '0', 'unit' => 'px'],
                'blur' => ['value' => '5', 'unit' => 'px'],
                'spread' => ['value' => '0', 'unit' => 'px'],
            ],
            // Button hover box shadow
            'buttonHoverBoxShadow' => [
                'enable' => false,
                'color' => '',
                'position' => 'outline',
                'horizontal' => ['value' => '0', 'unit' => 'px'],
                'vertical' => ['value' => '0', 'unit' => 'px'],
                'blur' => ['value' => '5', 'unit' => 'px'],
                'spread' => ['value' => '0', 'unit' => 'px'],
            ],
        ];
    }

    /**
     * Get typography related attributes
     *
     * @return array Typography related attributes
     */
    public static function getTypographyAttributes()
    {
        return [
            'labelTypography' => [],
            'inputTypography' => [],
            'buttonTypography' => [],
            'placeholderTypography' => [],
            'radioCheckboxTypography' => [],
        ];
    }

    /**
     * Get color related attributes
     *
     * @return array Color related attributes
     */
    public static function getColorAttributes()
    {
        return [
            'backgroundColor' => '',
            'labelColor' => '',
            'inputTextColor' => '',
            'inputBackgroundColor' => '',
            'placeholderColor' => '',
            'placeholderFocusColor' => '',
            'buttonColor' => '',
            'buttonBGColor' => '',
            'buttonHoverColor' => '',
            'buttonHoverBGColor' => '',
            'radioCheckboxItemsColor' => '',
            'radioCheckboxLabelColor' => '',
            'checkboxSize' => '',
            'checkboxBorderColor' => '',
            'checkboxBgColor' => '',
            'checkboxCheckedColor' => '',
            'radioSize' => '',
            'radioBorderColor' => '',
            'radioBgColor' => '',
            'radioCheckedColor' => '',
            'errorMessageColor' => '',
            'errorMessageBgColor' => '',
            'successMessageColor' => '',
            'successMessageBgColor' => '',
            'submitErrorMessageColor' => '',
            'submitErrorMessageBgColor' => '',
            'gradientColor1' => '',
            'gradientColor2' => '',
            'backgroundOverlayColor' => '',
            'boxShadowColor' => '',
            'asteriskColor' => '',
            // Focus state colors
            'inputTextFocusColor' => '',
            'inputBackgroundFocusColor' => '',
            'inputFocusSpacing' => [],
        ];
    }

    /**
     * Get border related attributes
     *
     * @return array Border related attributes
     */
    public static function getBorderAttributes()
    {
        return [
            // Input border
            'inputBorder' => [
                'enable' => false,
                'type' => 'solid',
                'color' => '',
                'width' => [],
                'radius' => [],
            ],
            // Input focus border
            'inputBorderFocus' => [
                'enable' => false,
                'type' => 'solid',
                'color' => '',
                'width' => [],
                'radius' => [],
            ],
            // Form container border
            'formBorder' => [
                'enable' => false,
                'type' => 'solid',
                'color' => '',
                'width' => [],
                'radius' => [],
            ],
            // Button border
            'buttonBorder' => [
                'enable' => false,
                'type' => 'solid',
                'color' => '',
                'width' => [],
                'radius' => [],
            ],
            // Button hover border
            'buttonHoverBorder' => [
                'enable' => false,
                'type' => 'solid',
                'color' => '',
                'width' => [],
                'radius' => [],
            ],
        ];
    }

    /**
     * Get background related attributes
     *
     * @return array Background related attributes
     */
    public static function getBackgroundAttributes()
    {
        return [
            'backgroundType' => 'classic',
            'backgroundImage' => '',
            'backgroundImageId' => 0,
            'backgroundSize' => 'cover',
            'backgroundPosition' => 'center center',
            'backgroundRepeat' => 'no-repeat',
            'backgroundAttachment' => 'scroll',
            'gradientType' => 'linear',
            'gradientAngle' => 90,
            'backgroundOverlayOpacity' => 0.5,
        ];
    }

    /**
     * Get spacing related attributes
     *
     * @return array Spacing related attributes
     */
    public static function getSpacingAttributes()
    {
        return [
            'containerPadding' => [],
            'containerMargin' => [],
            'inputSpacing' => [],
            'inputSpacingHover' => [],
            'buttonPadding' => [],
            'buttonMargin' => [],
            'formWidth' => '',
            'formAlignment' => '',
        ];
    }

    /**
     * Get button related attributes
     *
     * @return array Button related attributes
     */
    public static function getButtonAttributes()
    {
        return [
            // Common button attributes
            'buttonWidth' => '',
            'buttonAlignment' => 'left',

            // Normal state button attributes
            'buttonTypography' => [],
            'buttonPadding' => [],
            'buttonMargin' => [],
            'buttonBorderType' => 'solid',
            'buttonBorderColor' => '',
            'buttonBorderWidth' => [],
            'buttonBorderRadius' => [],

            // Hover state button attributes
            'buttonHoverTypography' => [],
            'buttonHoverPadding' => [],
            'buttonHoverMargin' => [],
            'enableButtonHoverBorder' => false,
            'buttonHoverBorderType' => 'solid',
            'buttonHoverBorderColor' => '',
            'buttonHoverBorderWidth' => [],
            'buttonHoverBorderRadius' => [],
        ];
    }

    /**
     * Get message related attributes
     *
     * @return array Message related attributes
     */
    public static function getMessageAttributes()
    {
        return [
            'errorMessageAlignment' => '',
            'successMessageAlignment' => '',
            'submitErrorMessageAlignment' => '',
        ];
    }

    /**
     * Get advanced attributes
     *
     * @return array Advanced attributes
     */
    public static function getAdvancedAttributes()
    {
        return [
            'radioCheckboxItemsSize' => '',
            'customCss' => '',
            'hideOnDesktop' => false,
            'hideOnTablet' => false,
            'hideOnMobile' => false,
            'zIndex' => '',
        ];
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit