<?php
/**
 * Footer.
 */

// File Security Check
if ( ! defined( 'ABSPATH' ) ) { exit; }

$options[] = array( "name" => _x( 'Footer', 'theme-options', 'the7mk2' ), "type" => "heading" );

$options[] = array( "name" => _x( "Footer style", "theme-options", 'the7mk2' ), "type" => "block" );

	$options[] = array(
		"name"		=> _x( "Footer background &amp; lines", "theme-options", 'the7mk2' ),
		"id"		=> "footer-style",
		"std"		=> "content_width_line",
		'type'		=> 'images',
		'class'     => 'small',
		'options'	=> array(
			'content_width_line'	=> array(
				'title' => _x( "Content-width line", "theme-options", 'the7mk2' ),
				'src' => '/inc/admin/assets/images/footer-style-content-width-line.gif',
			),
			'full_width_line'		=> array(
				'title' => _x( "Full-width line", "theme-options", 'the7mk2' ),
				'src' => '/inc/admin/assets/images/footer-style-full-width-line.gif',
			),
			'solid_background'		=> array(
				'title' => _x( "Background", "theme-options", 'the7mk2' ),
				'src' => '/inc/admin/assets/images/footer-style-background.gif',
			),
		),
		'show_hide'	=> array(
			'solid_background'	=> "footer-solid-background-block",
		),
	);

	$options[] = array( "type" => "divider" );

	$options[] = array(
		"name"	=> _x( 'Color', 'theme-options', 'the7mk2' ),
		"id"	=> "footer-bg_color",
		"std"	=> "#1B1B1B",
		"type"	=> "color"
	);

	$options[] = array(
		"name"      => _x( 'Opacity', 'theme-options', 'the7mk2' ),
		"id"        => "footer-bg_opacity",
		"std"       => 100, 
		"type"      => "slider"
	);

	$options[] = array( "type" => "js_hide_begin", "class" => "footer-solid-background-block" );

		$options[] = array( "type" => "divider" );

		$options[] = array(
			"name"		=> _x( "Decoration", "theme-options", 'the7mk2' ),
			"id"		=> "footer-decoration",
			"std"		=> "none",
			'type'		=> 'images',
			'class'     => 'small',
			"show_hide"	=> array( 'outline'	=> true ),
			'options'	=> array(
				'none'		=> array(
					'title' => _x( 'None', 'theme-options', 'the7mk2' ),
					'src' => '/inc/admin/assets/images/footer-style-background.gif',
				),
				'outline'	=> array(
					'title' => _x( 'Line', 'theme-options', 'the7mk2' ),
					'src' => '/inc/admin/assets/images/footer-decoration-line.gif',
				),
			),
		);

		$options[] = array( "type" => "js_hide_begin" );

			$options[] = array(
				"name"	=> _x( 'Decoration outline color', 'theme-options', 'the7mk2' ),
				"id"	=> "footer-decoration_outline_color",
				"std"	=> "#FFFFFF",
				"type"	=> "color"
			);

			$options[] = array(
				"name"      => _x( 'Decoration outline opacity', 'theme-options', 'the7mk2' ),
				"id"        => "footer-decoration_outline_opacity",
				"std"       => 100, 
				"type"      => "slider"
			);

		$options[] = array( "type" => "js_hide_end" );

		$options[] = array( "type" => "divider" );

		$options[] = array(
			'type' 			=> 'background_img',
			'name'			=> _x( 'Add background image', 'theme-options', 'the7mk2' ),
			'id'			=> 'footer-bg_image',
			'std' 			=> array(
				'image'			=> '',
				'repeat'		=> 'repeat',
				'position_x'	=> 'center',
				'position_y'	=> 'center',
			),
		);

		$options[] = array( "type" => "divider" );

		$options[] = array(
			"name"		=> _x( "Slide-out mode", "theme-options", 'the7mk2' ),
			"desc"		=> _x( '"Slide-out mode" isn\'t compatible with transparent/semitransparent content area background.', "theme-options", 'the7mk2' ),
			"id"		=> "footer-slide-out-mode",
			"std"		=> "0",
			'type'		=> 'images',
			'class'     => 'small',
			'options'	=> array(
				'1'    => array(
					'title' => _x( 'Enabled', 'theme-options', 'the7mk2' ),
					'src' => '/inc/admin/assets/images/footer-slide-out-mode-enabled.gif',
				),
				'0'    => array(
					'title' => _x( 'Disabled', 'theme-options', 'the7mk2' ),
					'src' => '/inc/admin/assets/images/footer-slide-out-mode-disabled.gif',
				),	
			),
		);

	$options[] = array( "type" => "js_hide_end" );


$options[] = array(	"name" => _x( 'Footer font color', 'theme-options', 'the7mk2' ), "type" => "block" );

	$options[] = array(
		"name"	=> _x( 'Headers color', 'theme-options', 'the7mk2' ),
		"id"	=> "footer-headers_color",
		"std"	=> "#ffffff",
		"type"	=> "color"
	);

	$options[] = array(
		"name"	=> _x( 'Content color', 'theme-options', 'the7mk2' ),
		"id"	=> "footer-primary_text_color",
		"std"	=> "#828282",
		"type"	=> "color"
	);

$options[] = array( "name" => _x( "Footer layout", "theme-options", 'the7mk2' ), "type" => "block" );

	presscore_options_apply_template( $options, 'indents-v', 'footer-padding', array(
		'top' => array( 'std' => '50' ),
		'bottom' => array( 'std' => '50' ),
	) );

	$options[] = array( "type" => "divider" );

	$options[] = array(
		"desc"		=> _x( "E.g. 20 pixel padding will give you 40 pixel gap between columns.", "theme-options", 'the7mk2' ),
		"name"		=> _x( "Paddings between footer columns (px)", "theme-options", 'the7mk2' ),
		"id"		=> "footer-paddings-columns",
		"std"		=> 44,
		"type"		=> "text",
		"class"		=> "mini",
		"sanitize"	=> "dimensions"
	);

	$options[] = array( "type" => "divider" );

	$options[] = array(
		"name"		=> _x( "Layout", "theme-options", 'the7mk2' ),
		"desc"		=> _x( 'E.g. "1/4+1/4+1/2"', "theme-options", 'the7mk2' ),
		"id"		=> "footer-layout",
		"std"		=> "1/4+1/4+1/4+1/4",
		"type"		=> "text",
		// "class"		=> "mini"
	);

	$options[] = array( "type" => "divider" );

	$options[] = array(
		"name"		=> _x( "Collapse to one column after (px)", "theme-options", 'the7mk2' ),
		"desc"		=> _x( "Won't have any effect if responsiveness is disabled.", "theme-options", 'the7mk2' ),
		"id"		=> "footer-collapse_after",
		"std"		=> 760,
		"type"		=> "text",
		"class"		=> "mini",
		"sanitize"	=> "dimensions"
	);

$options[] = array( "name" => _x( "Bottom bar", "theme-options", 'the7mk2' ), "type" => "heading" );

$options[] = array( "name" => _x( "Bottom bar style", "theme-options", 'the7mk2' ), "type" => "block" );

	$options[] = array(
		"name" => _x( "Bottom bar", "theme-options", 'the7mk2' ),
		"id" => "bottom_bar-enabled",
		"type" => "radio",
		"std" => "1",
		"options" => array(
			"1" => _x( 'Enabled', 'theme-options', 'the7mk2' ),
			"0" => _x( 'Disabled', 'theme-options', 'the7mk2' ),
		),
	);

	$options[] = array( "type" => "divider" );

	$options[] = array(
		"name"		=> _x( "Bottom bar background &amp; lines", "theme-options", 'the7mk2' ),
		"id"		=> "bottom_bar-style",
		"std"		=> "content_width_line",
		'type'		=> 'images',
		'class'     => 'small',
		"options"	=> array(
			'content_width_line'	=> array(
				'title' => _x( "Content-width line", "theme-options", 'the7mk2' ),
				'src' => '/inc/admin/assets/images/bottom_bar-style-content-width-line.gif',
			),
			'full_width_line'		=>  array(
				'title' => _x( "Full-width line", "theme-options", 'the7mk2' ),
				'src' => '/inc/admin/assets/images/bottom_bar-style-full-width-line.gif',
			),
			'solid_background'		=>  array(
				'title' => _x( "Background", "theme-options", 'the7mk2' ),
				'src' => '/inc/admin/assets/images/bottom_bar-style-background.gif',
			),
		),
		'show_hide'	=> array(
			'solid_background'	=> "bottom-bar-solid-background-block"
		)
	);

	$options[] = array( "type" => "divider" );

	$options[] = array(
		"name"	=> _x( 'Color', 'theme-options', 'the7mk2' ),
		"id"	=> "bottom_bar-bg_color",
		"std"	=> "#ffffff",
		"type"	=> "color"
	);

	$options[] = array(
		"name"      => _x( 'Opacity', 'theme-options', 'the7mk2' ),
		"id"        => "bottom_bar-bg_opacity",
		"std"       => 100, 
		"type"      => "slider"
	);

	$options[] = array( "type" => "js_hide_begin", "class" => "bottom_bar-style bottom-bar-solid-background-block" );

		$options[] = array( "type" => "divider" );

		$options[] = array(
			'type' 			=> 'background_img',
			'id'			=> 'bottom_bar-bg_image',
			'name' 			=> _x( 'Add background image', 'theme-options', 'the7mk2' ),
			'std' 			=> array(
				'image'			=> '',
				'repeat'		=> 'repeat',
				'position_x'	=> 'center',
				'position_y'	=> 'center'
			),
		);

	$options[] = array( "type" => "js_hide_end" );

$options[] = array(	"name" => _x( 'Bottom bar font color', 'theme-options', 'the7mk2' ), "type" => "block" );

	$options[] = array(
		"name"	=> _x( 'Font color', 'theme-options', 'the7mk2' ),
		"id"	=> "bottom_bar-color",
		"std"	=> "#757575",
		"type"	=> "color"
	);

$options[] = array(	"name" => _x( 'Text area', 'theme-options', 'the7mk2' ), "type" => "block" );

	$options[] = array(
		"name"		=> _x( 'Text area', 'theme-options', 'the7mk2' ),
		"id"		=> "bottom_bar-text",
		"std"		=> false,
		"type"		=> 'textarea'
	);
