<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );

/**
 * Common variables used in several configs to avoid translation duplications
 */

// Grid Layout description
$grid_layout_desc = '<div class="us-grid-layout-desc-edit hidden">';
$grid_layout_desc .= sprintf(
	_x( '%sEdit selected%s or %screate a new one%s.', 'Grid Layout', 'us' ),
	'<a href="#" class="edit-link" target="_blank">',
	'</a>',
	'<a href="' . admin_url() . 'post-new.php?post_type=us_grid_layout" target="_blank">',
	'</a>'
);
$grid_layout_desc .= '</div>';
$grid_layout_desc .= '<div class="us-grid-layout-desc-add hidden">';
$grid_layout_desc .= '<a href="' . admin_url() . 'post-new.php?post_type=us_grid_layout" target="_blank">';
$grid_layout_desc .= __( 'Add Grid Layout', 'us' );
$grid_layout_desc .= '</a>. ';
$grid_layout_desc .= sprintf(
	__( 'See %s', 'us' ),
	'<a href="http://impreza.us-themes.com/grid-templates/" target="_blank">' . __( 'Grid Layout Templates', 'us' ) . '</a>.'
);
$grid_layout_desc .= '</div>';

return array(

	// Columns
	'column_values' => array(
		'10' => sprintf( us_translate_n( '%s column', '%s columns', 10 ), 10 ),
		'9' => sprintf( us_translate_n( '%s column', '%s columns', 9 ), 9 ),
		'8' => sprintf( us_translate_n( '%s column', '%s columns', 8 ), 8 ),
		'7' => sprintf( us_translate_n( '%s column', '%s columns', 7 ), 7 ),
		'6' => sprintf( us_translate_n( '%s column', '%s columns', 6 ), 6 ),
		'5' => sprintf( us_translate_n( '%s column', '%s columns', 5 ), 5 ),
		'4' => sprintf( us_translate_n( '%s column', '%s columns', 4 ), 4 ),
		'3' => sprintf( us_translate_n( '%s column', '%s columns', 3 ), 3 ),
		'2' => sprintf( us_translate_n( '%s column', '%s columns', 2 ), 2 ),
		'1' => sprintf( us_translate_n( '%s column', '%s columns', 1 ), 1 ),
	),

	// Dropdown effects for header
	'dropdown_effect_values' => array(
		'none' => us_translate( 'None' ),
		'opacity' => __( 'Fade', 'us' ),
		'slide' => __( 'SlideDown', 'us' ),
		'height' => __( 'Fade + SlideDown', 'us' ),
		'afb' => __( 'Appear From Bottom', 'us' ),
		'hor' => __( 'Horizontal Slide', 'us' ),
		'mdesign' => __( 'Material Design Effect', 'us' ),
	),

	// HTML tags
	'html_tag_values' => array(
		'h1' => 'h1',
		'h2' => 'h2',
		'h3' => 'h3',
		'h4' => 'h4',
		'h5' => 'h5',
		'h6' => 'h6',
		'div' => 'div',
		'p' => 'p',
		'span' => 'span',
	),

	// Grid Layout description
	'desc_grid_layout' => $grid_layout_desc,

	// Aspect Ratio examples
	'desc_aspect_ratio' => __( 'Examples:', 'us' ) . ' <span class="usof-example">1</span>, <span class="usof-example">3/2</span>, <span class="usof-example">3/4</span>, <span class="usof-example">16/9</span>, <span class="usof-example">1000/500</span>',

	// Font size examples
	'desc_font_size' => __( 'Examples:', 'us' ) . ' <span class="usof-example">16px</span>, <span class="usof-example">1.2rem</span>, <span class="usof-example">clamp(16px, 1vw, 20px)</span>, <span class="usof-example">var(--h3-font-size)</span>',

	// Font weight examples
	'desc_font_weight' => __( 'Examples:', 'us' ) . ' <span class="usof-example">300</span>, <span class="usof-example">400</span>, <span class="usof-example">700</span>, <span class="usof-example">var(--h1-font-weight)</span>',

	// Line height examples
	'desc_line_height' => __( 'Examples:', 'us' ) . ' <span class="usof-example">28px</span>, <span class="usof-example">1.7</span>, <span  class="usof-example">var(--h1-line-height)</span>',

	// Letter spacing examples
	'desc_letter_spacing' => __( 'Examples:', 'us' ) . ' <span class="usof-example">1px</span>, <span class="usof-example">-0.04em</span>',

	// Z-index examples
	'desc_z_index' => __( 'Examples:', 'us' ) . ' <span class="usof-example">-1</span>, <span class="usof-example">1</span>, <span class="usof-example">3</span>, <span class="usof-example">50</span>',

	// Height examples
	'desc_height' => __( 'Examples:', 'us' ) . ' <span class="usof-example">200px</span>, <span class="usof-example">15rem</span>, <span class="usof-example">10vh</span>',

	// Width examples
	'desc_width' => __( 'Examples:', 'us' ) . ' <span class="usof-example">200px</span>, <span class="usof-example">100%</span>, <span class="usof-example">14rem</span>, <span class="usof-example">10vw</span>',

	// Padding examples
	'desc_padding' => __( 'Examples:', 'us' ) . ' <span class="usof-example">20px</span>, <span class="usof-example">15%</span>, <span class="usof-example">1rem</span>, <span class="usof-example">5vmin</span>',

	// Margin examples
	'desc_margin' => __( 'Examples:', 'us' ) . ' <span class="usof-example">20px</span>, <span class="usof-example">1.5rem</span>, <span class="usof-example">2%</span>',

	// Border radius examples
	'desc_border_radius' => __( 'Examples:', 'us' ) . ' <span class="usof-example">var(--site-border-radius)</span>, <span class="usof-example">5px</span>, <span class="usof-example">0.3em</span>, <span class="usof-example">12px 0</span>',

	// Pixels only
	'desc_pixels' => __( 'In pixels:', 'us' ) . ' <span class="usof-example">32px</span>, <span class="usof-example">64px</span>, <span class="usof-example">128px</span>',

	// Background Position
	'desc_bg_pos' => __( 'Examples:', 'us' ) . ' <span class="usof-example">50%</span>, <span class="usof-example">100px 200px</span>, <span class="usof-example">0 100%</span>, <span class="usof-example">20vw 0</span>',

	// Background Image Size
	'desc_bg_size' => __( 'Examples:', 'us' ) . ' <span class="usof-example">cover</span>, <span class="usof-example">contain</span>, <span class="usof-example">50%</span>, <span class="usof-example">300px 200px</span>',

	// Box/Text Shadow Offset
	'desc_shadow' => __( 'Examples:', 'us' ) . ' <span class="usof-example">0</span>, <span class="usof-example">3px</span>, <span class="usof-example">0.05em</span>, <span class="usof-example">2rem</span>',

	// Box Shadow
	'desc_box_shadow' => __( 'Examples:', 'us' ) . ' <span class="usof-example">var(--box-shadow)</span>, <span class="usof-example">0 0 0 2px var(--color-content-primary)</span>',

	// Menu selection
	'desc_menu_select' => sprintf( __( 'Add or edit a menu on the %s page', 'us' ), '<a href="' . admin_url( 'nav-menus.php' ) . '" target="_blank">' . us_translate( 'Menus' ) . '</a>' ),

	// Image Sizes
	'desc_img_sizes' => '<a target="_blank" href="' . admin_url( 'admin.php?page=us-theme-options#image_sizes' ) . '">' . __( 'Edit image sizes', 'us' ) . '</a>.',

	// Button styles
	'desc_btn_styles' => sprintf( __( 'Add or edit Button Styles on %sTheme Options%s', 'us' ), '<a href="' . admin_url( 'admin.php?page=us-theme-options#buttons' ) . '" target="_blank">', '</a>' ),

	// Field styles
	'desc_field_styles' => sprintf( __( 'Add or edit Field Styles on %sTheme Options%s', 'us' ), '<a href="' . admin_url( 'admin.php?page=us-theme-options#input_fields' ) . '" target="_blank">', '</a>' ),

	// Header Description
	'headers_description' => sprintf( __( 'Add or edit a Header on the %s page', 'us' ), '<a href="' . admin_url( 'edit.php?post_type=us_header' ) . '" target="_blank">' . _x( 'Headers', 'site top area', 'us' ) . '</a>' ),

	// Content Description
	'content_description' => sprintf( __( 'Add or edit a Page Template on the %s page', 'us' ), '<a href="' . admin_url( 'edit.php?post_type=us_content_template' ) . '" target="_blank">' . __( 'Page Templates', 'us' ) . '</a>' ),

	// Footer Description
	'footers_description' => sprintf( __( 'Add or edit a Footer on the %s page', 'us' ), '<a href="' . admin_url( 'edit.php?post_type=us_page_block' ) . '" target="_blank">' . __( 'Reusable Blocks', 'us' ) . '</a>' ),

	// Gap between Items
	'items_gap' => array(
		'px' => array(
			'min' => 0,
			'max' => 60,
		),
		'rem' => array(
			'min' => 0.0,
			'max' => 4.0,
			'step' => 0.1,
		),
		'cqw' => array(
			'min' => 0.0,
			'max' => 6.0,
			'step' => 0.1,
		),
		'cqh' => array(
			'min' => 0.0,
			'max' => 6.0,
			'step' => 0.1,
		),
		'vw' => array(
			'min' => 0.0,
			'max' => 6.0,
			'step' => 0.1,
		),
		'vh' => array(
			'min' => 0.0,
			'max' => 6.0,
			'step' => 0.1,
		),
		'vmin' => array(
			'min' => 0.0,
			'max' => 6.0,
			'step' => 0.1,
		),
		'vmax' => array(
			'min' => 0.0,
			'max' => 6.0,
			'step' => 0.1,
		),
	),
);
