<?php
defined( 'ABSPATH' ) || exit;

$options[] = array(
	'name' => _x( 'Advanced Settings', 'theme-options', 'the7mk2' ),
	'type' => 'heading',
	'id'   => 'advanced-settings',
);

$options[] = array(
	'name' => _x( 'Margin for pages, posts & templates', 'theme-options', 'the7mk2' ),
	'type' => 'block',
);

$options['general-page_content_margin'] = array(
	'name'   => _x( 'Margin', 'theme-options', 'the7mk2' ),
	'id'     => 'general-page_content_margin',
	'type'   => 'spacing',
	'std'    => '50px 50px',
	'units'  => 'px',
	'fields' => array(
		_x( 'Top', 'theme-options', 'the7mk2' ),
		_x( 'Bottom', 'theme-options', 'the7mk2' ),
	),
);

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

$options['general-responsive'] = array(
	'name'    => _x( 'Responsive layout', 'theme-options', 'the7mk2' ),
	'id'      => 'general-responsive',
	'std'     => '1',
	'type'    => 'radio',
	'options' => array(
		'1' => _x( 'Enabled', 'theme-options', 'the7mk2' ),
		'0' => _x( 'Disabled', 'theme-options', 'the7mk2' ),
	),
);

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

$options[] = array( 'type' => 'title', 'name' => _x( 'Side padding', 'theme-options', 'the7mk2' ) );

$options['general-side_content_paddings'] = array(
	'name'  => _x( 'Side padding', 'theme-options', 'the7mk2' ),
	'id'    => 'general-side_content_paddings',
	'std'   => '40px',
	'type'  => 'number',
	'units' => 'px',
);

$options['general-switch_content_paddings'] = array(
	'name'  => _x( 'When screen width is less then..', 'theme-options', 'the7mk2' ),
	'id'    => 'general-switch_content_paddings',
	'std'   => '640px',
	'type'  => 'number',
	'units' => 'px',
);

$options['general-mobile_side_content_paddings'] = array(
	'name'  => _x( '..make padding', 'theme-options', 'the7mk2' ),
	'id'    => 'general-mobile_side_content_paddings',
	'std'   => '20px',
	'type'  => 'number',
	'units' => 'px',
);

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

$options['general-images_lazy_loading'] = array(
	'id'      => 'general-images_lazy_loading',
	'name'    => _x( 'Images lazy loading', 'theme-options', 'the7mk2' ),
	'desc'    => _x( 'Can dramatically reduce page loading speed. Recommended.', 'theme-options', 'the7mk2' ),
	'std'     => '1',
	'type'    => 'radio',
	'options' => array(
		'1' => _x( 'Enabled', 'theme-options', 'the7mk2' ),
		'0' => _x( 'Disabled', 'theme-options', 'the7mk2' ),
	),
);

$options['general-smooth_scroll'] = array(
	'name'    => _x( 'Enable "scroll-behaviour: smooth" for next gen browsers', 'theme-options', 'the7mk2' ),
	'id'      => 'general-smooth_scroll',
	'std'     => 'on',
	'type'    => 'radio',
	'options' => array(
		'on'          => _x( 'Yes', 'theme-options', 'the7mk2' ),
		'off'         => _x( 'No', 'theme-options', 'the7mk2' ),
		'on_parallax' => _x( 'On only on pages with parallax', 'theme-options', 'the7mk2' ),
	),
);

$options['advanced-speed_img_resize'] = array(
	'id'      => 'advanced-speed_img_resize',
	'name'    => _x( 'Images fast resize', 'theme-options', 'the7mk2' ),
	'desc'    => _x( 'Can slightly reduce page load time.', 'theme-options', 'the7mk2' ),
	'std'     => '1',
	'type'    => 'radio',
	'options' => array(
		'1' => _x( 'Enabled', 'theme-options', 'the7mk2' ),
		'0' => _x( 'Disabled', 'theme-options', 'the7mk2' ),
	),
);

$options['advanced-normalize_resize_on_mobile'] = array(
	'id'      => 'advanced-normalize_resize_on_mobile',
	'name'    => _x( 'Normalize resize event on mobile devices', 'theme-options', 'the7mk2' ),
	'desc'    => _x( 'Can improve scrolling performance on mobile devices', 'theme-options', 'the7mk2' ),
	'std'     => '1',
	'type'    => 'radio',
	'options' => array(
		'1' => _x( 'Enabled', 'theme-options', 'the7mk2' ),
		'0' => _x( 'Disabled', 'theme-options', 'the7mk2' ),
	),
);

$options[] = array(
	'name' => _x( 'Custom CSS', 'theme-options', 'the7mk2' ),
	'type' => 'heading',
	'id'   => 'custom-css',
);

$options[] = array( 'name' => _x( 'Custom CSS', 'theme-options', 'the7mk2' ), 'type' => 'block' );

$options['general-custom_css'] = array(
	'settings' => array( 'rows' => 16, 'code_style' => 'text/css' ),
	'id'       => 'general-custom_css',
	'std'      => false,
	'type'     => 'code_editor',
	'sanitize' => 'without_sanitize',
);

$options[] = array(
	'name' => _x( 'Custom JavaScript', 'theme-options', 'the7mk2' ),
	'type' => 'heading',
	'id'   => 'custom-javascript',
);

$options[] = array(
	'name' => _x( 'Tracking code (e.g. Google analytics) or arbitrary JavaScript', 'theme-options', 'the7mk2' ),
	'type' => 'block',
);

$options['general-tracking_code'] = array(
	'settings' => array( 'rows' => 16, 'code_style' => 'htmlmixed' ),
	'id'       => 'general-tracking_code',
	'std'      => false,
	'type'     => 'code_editor',
	'sanitize' => 'without_sanitize',
);
