<?php
$styling->addSubSection( array(
	'name'     => esc_html__( 'Pattern', 'cakeart' ),
	'id'       => 'styling_pattern',
	'position' => 11,
) );


$styling->createOption( array(
	'name'    => esc_html__( 'Background Pattern', 'cakeart' ),
	'id'      => 'user_bg_pattern',
	'type'    => 'checkbox',
	'desc'    => esc_html__( 'Check the box to display a pattern in the background. If checked, select the pattern from below.', 'cakeart' ),
	'default' => false,
) );

$styling->createOption( array(
	'name'    => esc_html__( 'Select a Background Pattern', 'cakeart' ),
	'id'      => 'bg_pattern',
	'type'    => 'radio-image',
	'options' => array(
		THIM_URI . "/images/patterns/pattern1.png"  => THIM_URI . "/images/patterns/pattern1.png",
		THIM_URI . "/images/patterns/pattern2.png"  => THIM_URI . "/images/patterns/pattern2.png",
		THIM_URI . "/images/patterns/pattern3.png"  => THIM_URI . "/images/patterns/pattern3.png",
		THIM_URI . "/images/patterns/pattern4.png"  => THIM_URI . "/images/patterns/pattern4.png",
		THIM_URI . "/images/patterns/pattern5.png"  => THIM_URI . "/images/patterns/pattern5.png",
		THIM_URI . "/images/patterns/pattern6.png"  => THIM_URI . "/images/patterns/pattern6.png",
		THIM_URI . "/images/patterns/pattern7.png"  => THIM_URI . "/images/patterns/pattern7.png",
		THIM_URI . "/images/patterns/pattern8.png"  => THIM_URI . "/images/patterns/pattern8.png",
		THIM_URI . "/images/patterns/pattern9.png"  => THIM_URI . "/images/patterns/pattern9.png",
		THIM_URI . "/images/patterns/pattern10.png" => THIM_URI . "/images/patterns/pattern10.png",
	)
) );

$styling->createOption( array(
	'name'        => esc_html__( 'Upload Background', 'cakeart' ),
	'id'          => 'bg_pattern_upload',
	'type'        => 'upload',
	'desc'        => esc_html__( 'Upload your background', 'cakeart' ),
	'livepreview' => ''
) );

$styling->createOption( array(
	'name'    => esc_html__( 'Background Repeat', 'cakeart' ),
	'id'      => 'bg_repeat',
	'type'    => 'select',
	'options' => array(
		'repeat'    => 'repeat',
		'repeat-x'  => 'repeat-x',
		'repeat-y'  => 'repeat-y',
		'no-repeat' => 'no-repeat'
	),
	'default' => 'no-repeat'
) );

$styling->createOption( array(
	'name'    => esc_html__( 'Background Position', 'cakeart' ),
	'id'      => 'bg_position',
	'type'    => 'select',
	'options' => array(
		'left top'      => 'Left Top',
		'left center'   => 'Left Center',
		'left bottom'   => 'Left Bottom',
		'right top'     => 'Right Top',
		'right center'  => 'Right Center',
		'right bottom'  => 'Right Bottom',
		'center top'    => 'Center Top',
		'center center' => 'Center Center',
		'center bottom' => 'Center Bottom'
	),
	'default' => 'center center'
) );

$styling->createOption( array(
	'name'    => esc_html__( 'Background Attachment', 'cakeart' ),
	'id'      => 'bg_attachment',
	'type'    => 'select',
	'options' => array(
		'scroll'  => 'scroll',
		'fixed'   => 'fixed',
		'local'   => 'local',
		'initial' => 'initial',
		'inherit' => 'inherit'
	),
	'default' => 'inherit'
) );

$styling->createOption( array(
	'name'    => esc_html__( 'Background Size', 'cakeart' ),
	'id'      => 'bg_size',
	'type'    => 'select',
	'options' => array(
		'100% 100%' => '100% 100%',
		'contain'   => 'contain',
		'cover'     => 'cover',
		'inherit'   => 'inherit',
		'initial'   => 'initial'
	),
	'default' => 'inherit'
) );