80 lines
2.3 KiB
PHP
80 lines
2.3 KiB
PHP
<?php
|
|
|
|
return array(
|
|
'type' => 'group',
|
|
'heading' => __( 'Background' ),
|
|
'options' => array(
|
|
'bg' => array(
|
|
'type' => 'image',
|
|
'heading' => __( 'Image' ),
|
|
'thumb_size' => 'bg_size',
|
|
'bg_position' => 'bg_pos',
|
|
),
|
|
'bg_size'=> array(
|
|
'type' => 'select',
|
|
'heading' => 'Size',
|
|
'default' => 'large',
|
|
'conditions' => 'bg',
|
|
'options' => array(
|
|
'original' => 'Original',
|
|
'large' => 'Large',
|
|
'medium' => 'Medium',
|
|
'thumbnail' => 'Thumbnail',
|
|
)
|
|
),
|
|
'bg_color' => array(
|
|
'type' => 'colorpicker',
|
|
'heading' => __('Color'),
|
|
'format' => 'rgb',
|
|
'position' => 'bottom right',
|
|
'helpers' => require( __DIR__ . '/../helpers/colors.php' ),
|
|
),
|
|
'bg_overlay' => array(
|
|
'type' => 'colorpicker',
|
|
'heading' => __('Overlay'),
|
|
'responsive' => true,
|
|
'alpha' => true,
|
|
'format' => 'rgb',
|
|
'position' => 'bottom right',
|
|
'helpers' => require( __DIR__ . '/../helpers/colors-overlay.php' ),
|
|
),
|
|
'bg_pos' => array(
|
|
'conditions' => 'bg',
|
|
'type' => 'textfield',
|
|
'heading' => __('Position'),
|
|
),
|
|
'hover' => array(
|
|
'conditions' => 'bg',
|
|
'type' => 'select',
|
|
'heading' => 'Hover',
|
|
'options' => require( __DIR__ . '/../values/image-hover.php' ),
|
|
),
|
|
'hover_alt' => array(
|
|
'conditions' => 'hover',
|
|
'type' => 'select',
|
|
'heading' => 'Hover Alt',
|
|
'options' => require( __DIR__ . '/../values/image-hover.php' ),
|
|
),
|
|
'parallax' => array(
|
|
'conditions' => 'bg',
|
|
'type' => 'slider',
|
|
'heading' => 'Parallax',
|
|
'unit' => '+',
|
|
'default' => 0,
|
|
'max' => 10,
|
|
'min' => 0,
|
|
),
|
|
'effect' => array(
|
|
'type' => 'select',
|
|
'heading' => 'Effects',
|
|
'options' => array(
|
|
'' => 'No effect',
|
|
'snow' => 'Snow',
|
|
'confetti' => 'Confetti',
|
|
'sliding-glass' => 'Sliding Glass',
|
|
'sparkle' => 'Sparkle',
|
|
'rain' => 'Rain',
|
|
),
|
|
),
|
|
),
|
|
); |