?? GreyFile — Mystic File Browser

Current path: home/webdevt/www/wdp/wp-content/themes/quadric/framework/admin/options/parallax/



?? Go up: /home/webdevt/www/wdp/wp-content/themes/quadric/framework/admin/options

?? Viewing: map.php

<?php

if ( ! function_exists('edgtf_quadric_parallax_options_map') ) {
	/**
	 * Parallax options page
	 */
	function edgtf_quadric_parallax_options_map()
	{

		$panel_parallax = edgtf_quadric_add_admin_panel(
			array(
				'page'  => '_elements_page',
				'name'  => 'panel_parallax',
				'title' => esc_html__( 'Parallax', 'quadric' )
			)
		);

		edgtf_quadric_add_admin_field(array(
			'type'			=> 'onoff',
			'name'			=> 'parallax_on_off',
			'default_value'	=> 'off',
			'label' => esc_html__( 'Parallax on touch devices', 'quadric' ),
			'description' => esc_html__( 'Enabling this option will allow parallax on touch devices', 'quadric' ),
			'parent'		=> $panel_parallax
		));

		edgtf_quadric_add_admin_field(array(
			'type'			=> 'text',
			'name'			=> 'parallax_min_height',
			'default_value'	=> '400',
			'label' => esc_html__( 'Parallax Min Height', 'quadric' ),
			'description' => esc_html__( 'Set a minimum height for parallax images on small displays (phones, tablets, etc.)', 'quadric' ),
			'args'			=> array(
				'col_width'	=> 3,
				'suffix'	=> 'px'
			),
			'parent'		=> $panel_parallax
		));

	}

	add_action( 'edgtf_quadric_options_elements_map', 'edgtf_quadric_parallax_options_map',1000 );

}


??

??