File "attributes.php"

Full path: C:/Inetpub/vhosts/drshti.com/httpdocs/wp-content/plugins/ultimate-addons-for-gutenberg/includes/blocks/container/attributes.php
File size: 13.06 B (13.06 KB bytes)
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Editor &nnbsp; Back

<?php
/**
 * Block Information & Attributes File.
 *
 * @since 2.0.0
 *
 * @package uagb
 */

$border_attribute     = UAGB_Block_Helper::uag_generate_border_attribute( 'container' );
$default_width        = UAGB_Admin_Helper::get_global_content_width();
$default_padding      = UAGB_Admin_Helper::get_admin_settings_option( 'uag_container_global_padding', '' );
$default_elements_gap = UAGB_Admin_Helper::get_admin_settings_option( 'uag_container_global_elements_gap', 20 );
$grid_css_object      = array(
	array(
		'default' => 'custom',
		'min'     => array(
			'unit'  => 'px',
			'value' => 10,
		),
		'max'     => array(
			'unit'  => 'fr',
			'value' => 1,
		),
		'custom'  => array(
			'unit'  => 'fr',
			'value' => 1,
		),
	),
);

return array_merge(
	array(
		'block_id'                           => '',
		'widthDesktop'                       => 100,
		'widthTablet'                        => '',
		'widthMobile'                        => 100,
		'widthType'                          => '%',
		'minHeightDesktop'                   => '',
		'minHeightTablet'                    => '',
		'minHeightMobile'                    => '',
		'minHeightType'                      => 'px',
		'minHeightTypeTablet'                => 'px',
		'minHeightTypeMobile'                => 'px',
		'directionDesktop'                   => 'column',
		'directionTablet'                    => '',
		'directionMobile'                    => '',
		'alignItemsDesktop'                  => 'center',
		'alignItemsTablet'                   => '',
		'alignItemsMobile'                   => '',
		'justifyContentDesktop'              => 'center',
		'justifyContentTablet'               => '',
		'justifyContentMobile'               => '',
		'wrapDesktop'                        => 'nowrap',
		'wrapTablet'                         => '',
		'wrapMobile'                         => 'wrap',
		'alignContentDesktop'                => '',
		'alignContentTablet'                 => '',
		'alignContentMobile'                 => '',
		'backgroundType'                     => 'none',
		'backgroundImageDesktop'             => '',
		'backgroundImageTablet'              => '',
		'backgroundImageMobile'              => '',
		'backgroundPositionDesktop'          => array(
			'x' => 0.5,
			'y' => 0.5,
		),
		'backgroundPositionTablet'           => '',
		'backgroundPositionMobile'           => '',
		'backgroundSizeDesktop'              => 'cover',
		'backgroundSizeTablet'               => '',
		'backgroundSizeMobile'               => '',
		'backgroundRepeatDesktop'            => 'no-repeat',
		'backgroundRepeatTablet'             => '',
		'backgroundRepeatMobile'             => '',
		'backgroundAttachmentDesktop'        => 'scroll',
		'backgroundAttachmentTablet'         => '',
		'backgroundAttachmentMobile'         => '',
		'backgroundColor'                    => '',
		'backgroundOpacity'                  => '',
		'backgroundImageColor'               => '#FFFFFF75',
		'gradientValue'                      => 'linear-gradient(90deg, rgba(6, 147, 227, 0.5) 0%, rgba(155, 81, 224, 0.5) 100%)',
		'boxShadowColor'                     => '#00000070',
		'boxShadowHOffset'                   => 0,
		'boxShadowVOffset'                   => 0,
		'boxShadowBlur'                      => '',
		'boxShadowSpread'                    => '',
		'boxShadowPosition'                  => 'outset',
		'boxShadowColorHover'                => '',
		'boxShadowHOffsetHover'              => 0,
		'boxShadowVOffsetHover'              => 0,
		'boxShadowBlurHover'                 => '',
		'boxShadowSpreadHover'               => '',
		'boxShadowPositionHover'             => 'outset',

		'topPaddingDesktop'                  => $default_padding,
		'bottomPaddingDesktop'               => $default_padding,
		'leftPaddingDesktop'                 => $default_padding,
		'rightPaddingDesktop'                => $default_padding,
		'topPaddingTablet'                   => '',
		'bottomPaddingTablet'                => '',
		'leftPaddingTablet'                  => '',
		'rightPaddingTablet'                 => '',
		'topPaddingMobile'                   => '',
		'bottomPaddingMobile'                => '',
		'leftPaddingMobile'                  => '',
		'rightPaddingMobile'                 => '',
		'paddingType'                        => 'px',
		'paddingTypeTablet'                  => 'px',
		'paddingTypeMobile'                  => 'px',
		'paddingLink'                        => true,
		'topMarginDesktop'                   => '',
		'bottomMarginDesktop'                => '',
		'leftMarginDesktop'                  => '',
		'rightMarginDesktop'                 => '',
		'topMarginTablet'                    => '',
		'bottomMarginTablet'                 => '',
		'leftMarginTablet'                   => '',
		'rightMarginTablet'                  => '',
		'topMarginMobile'                    => '',
		'bottomMarginMobile'                 => '',
		'leftMarginMobile'                   => '',
		'rightMarginMobile'                  => '',
		'marginType'                         => 'px',
		'marginTypeTablet'                   => 'px',
		'marginTypeMobile'                   => 'px',
		'marginLink'                         => true,
		'rowGapDesktop'                      => $default_elements_gap,
		'rowGapTablet'                       => '',
		'rowGapMobile'                       => '',
		'rowGapType'                         => 'px',
		'rowGapTypeTablet'                   => 'px',
		'rowGapTypeMobile'                   => 'px',
		'columnGapDesktop'                   => $default_elements_gap,
		'columnGapTablet'                    => '',
		'columnGapMobile'                    => '',
		'columnGapType'                      => 'px',
		'columnGapTypeTablet'                => 'px',
		'columnGapTypeMobile'                => 'px',
		'contentWidth'                       => 'alignfull',
		'innerContentWidth'                  => 'alignwide',
		'innerContentCustomWidthDesktop'     => $default_width,
		'innerContentCustomWidthTablet'      => 1024,
		'innerContentCustomWidthMobile'      => 767,
		'innerContentCustomWidthType'        => 'px',
		'innerContentCustomWidthTypeTablet'  => 'px',
		'innerContentCustomWidthTypeMobile'  => 'px',
		'bottomType'                         => 'none',
		'bottomColor'                        => '#333',
		'bottomHeight'                       => '',
		'bottomHeightTablet'                 => '',
		'bottomHeightMobile'                 => '',
		'bottomWidth'                        => 100,
		'topType'                            => 'none',
		'topColor'                           => '#333',
		'topHeight'                          => '',
		'topHeightTablet'                    => '',
		'topHeightMobile'                    => '',
		'topWidth'                           => 100,
		'topFlip'                            => false,
		'bottomFlip'                         => false,
		'topContentAboveShape'               => false,
		'bottomContentAboveShape'            => false,
		'backgroundCustomSizeDesktop'        => 100,
		'backgroundCustomSizeTablet'         => '',
		'backgroundCustomSizeMobile'         => '',
		'backgroundCustomSizeType'           => '%',
		'overlayType'                        => 'none',
		'overlayOpacity'                     => 1,
		'overlayBlendMode'                   => 'normal',
		'overlayBlendModeTablet'             => '',
		'overlayBlendModeMobile'             => '',
		'customPosition'                     => 'default',
		'centralizedPosition'                => false,
		'xPositionDesktop'                   => '',
		'xPositionTablet'                    => '',
		'xPositionMobile'                    => '',
		'xPositionType'                      => 'px',
		'xPositionTypeTablet'                => 'px',
		'xPositionTypeMobile'                => 'px',
		'yPositionDesktop'                   => '',
		'yPositionTablet'                    => '',
		'yPositionMobile'                    => '',
		'yPositionType'                      => 'px',
		'yPositionTypeTablet'                => 'px',
		'yPositionTypeMobile'                => 'px',
		'backgroundVideoColor'               => '#FFFFFF75',
		'backgroundVideo'                    => '',
		'backgroundVideoOpacity'             => '',
		'topInvert'                          => false,
		'bottomInvert'                       => false,
		'textColor'                          => '',
		'linkColor'                          => '',
		'linkHoverColor'                     => '',
		'isBlockRootParent'                  => false,
		'widthTypeTablet'                    => '%',
		'widthTypeMobile'                    => '%',
		'overflow'                           => 'visible',
		'equalHeight'                        => false,
		'gradientColor1'                     => '#06558a',
		'gradientColor2'                     => '#0063A1',
		'gradientType'                       => 'linear',
		'gradientLocation1'                  => 0,
		'gradientLocationTablet1'            => '',
		'gradientLocationMobile1'            => '',
		'gradientLocation2'                  => 100,
		'gradientLocationTablet2'            => '',
		'gradientLocationMobile2'            => '',
		'gradientAngle'                      => 0,
		'gradientAngleTablet'                => '',
		'gradientAngleMobile'                => '',
		'selectGradient'                     => 'basic',
		'backgroundOverlayType'              => 'none',
		'backgroundOverlayImageDesktop'      => '',
		'backgroundOverlayImageTablet'       => '',
		'backgroundOverlayImageMobile'       => '',
		'backgroundPositionOverlayDesktop'   => array(
			'x' => 0.5,
			'y' => 0.5,
		),
		'backgroundPositionOverlayTablet'    => '',
		'backgroundPositionOverlayMobile'    => '',
		'backgroundSizeOverlayDesktop'       => 'cover',
		'backgroundSizeOverlayTablet'        => '',
		'backgroundSizeOverlayMobile'        => '',
		'backgroundRepeatOverlayDesktop'     => 'no-repeat',
		'backgroundRepeatOverlayTablet'      => '',
		'backgroundRepeatOverlayMobile'      => '',
		'backgroundAttachmentOverlayDesktop' => 'scroll',
		'backgroundAttachmentOverlayTablet'  => '',
		'backgroundAttachmentOverlayMobile'  => '',
		'backgroundOverlayOpacity'           => 1,
		'backgroundOverlayColor'             => '#FFFFFF75',
		'backgroundImageOverlayColor'        => '#FFFFFF75',
		'backgroundCustomSizeOverlayDesktop' => 100,
		'backgroundCustomSizeOverlayTablet'  => '',
		'backgroundCustomSizeOverlayMobile'  => '',
		'backgroundCustomOverlaySizeType'    => '%',
		'customOverlayPosition'              => 'default',
		'xPositionOverlayDesktop'            => '',
		'xPositionOverlayTablet'             => '',
		'xPositionOverlayMobile'             => '',
		'xPositionOverlayType'               => 'px',
		'xPositionOverlayTypeTablet'         => 'px',
		'xPositionOverlayTypeMobile'         => 'px',
		'yPositionOverlayDesktop'            => '',
		'yPositionOverlayTablet'             => '',
		'yPositionOverlayMobile'             => '',
		'yPositionOverlayType'               => 'px',
		'yPositionOverlayTypeTablet'         => 'px',
		'yPositionOverlayTypeMobile'         => 'px',
		'gradientOverlayColor1'              => '#06558a',
		'gradientOverlayColor2'              => '#0063A1',
		'gradientOverlayType'                => 'linear',
		'gradientOverlayLocation1'           => 0,
		'gradientOverlayLocationTablet1'     => '',
		'gradientOverlayLocationMobile1'     => '',
		'gradientOverlayLocation2'           => 100,
		'gradientOverlayLocationTablet2'     => '',
		'gradientOverlayLocationMobile2'     => '',
		'gradientOverlayAngle'               => 0,
		'gradientOverlayAngleTablet'         => '',
		'gradientOverlayAngleMobile'         => '',
		'selectOverlayGradient'              => 'basic',
		'backgroundVideoFallbackImage'       => '',
		// For Global Block Styles.
		'globalBlockStyleName'               => '',
		'globalBlockStyleId'                 => '',
		'childrenWidthDesktop'               => '',
		'childrenWidthTablet'                => '',
		'childrenWidthMobile'                => '',
		// Grid attributes.
		'layout'                             => '',
		'gridColumnDesktop'                  => $grid_css_object,
		'gridColumnTablet'                   => $grid_css_object,
		'gridColumnMobile'                   => $grid_css_object,
		'gridRowDesktop'                     => $grid_css_object,
		'gridRowTablet'                      => $grid_css_object,
		'gridRowMobile'                      => $grid_css_object,
		'gridAlignItemsDesktop'              => 'stretch',
		'gridAlignItemsTablet'               => 'stretch',
		'gridAlignItemsMobile'               => 'stretch',
		'gridJustifyItemsDesktop'            => 'stretch',
		'gridJustifyItemsTablet'             => 'stretch',
		'gridJustifyItemsMobile'             => 'stretch',
		'gridAlignContentDesktop'            => 'stretch',
		'gridAlignContentTablet'             => 'stretch',
		'gridAlignContentMobile'             => 'stretch',
		'gridJustifyContentDesktop'          => 'stretch',
		'gridJustifyContentTablet'           => 'stretch',
		'gridJustifyContentMobile'           => 'stretch',
		'orderDesktop'                       => 'initial',
		'orderTablet'                        => 'initial',
		'orderMobile'                        => 'initial',
		'customOrderDesktop'                 => '',
		'customOrderTablet'                  => '',
		'customOrderMobile'                  => '',
	),
	$border_attribute
);