<?php
/**
 * The Responsive setting configurations.
 *
 * @package Smart_Post_Show_Pro
 * @subpackage admin
 */

if ( ! defined( 'ABSPATH' ) ) {
	die;
} // Cannot access pages directly.

/**
 * The Layout building class.
 */
class SPSP_Responsive {

	/**
	 * Responsive Breakpoint setting section.
	 *
	 * @param string $prefix The settings.
	 * @return void
	 */
	public static function section( $prefix ) {
		SP_PCP::createSection(
			$prefix,
			array(
				'title'  => __( 'Responsive Breakpoints', 'smart-post-show-pro' ),
				'icon'   => 'fa fa-tablet',
				'fields' => array(
					array(
						'id'                    => 'pcp_responsive_screen_setting',
						'type'                  => 'column',
						'class'                 => 'pcp_responsive_breakpoint',
						'title'                 => __( 'Maximum Screen Width', 'smart-post-show-pro' ),
						'title_help'            => __( 'Set maximum width for different devices in pixels.', 'smart-post-show-pro' ),
						'min'                   => '300',
						'unit'                  => true,
						'lg_desktop'            => false,
						'units'                 => array(
							'px',
						),
						'desktop_icon'          => '<i class="fa fa-desktop"></i>',
						'tablet_icon'           => '<i class="fa fa-laptop"></i>',
						'mobile_landscape_icon' => '<i class="fa fa-tablet"></i>',
						'mobile_icon'           => '<i class="fa fa-mobile"></i>',
						'default'               => array(
							'desktop'          => '1200',
							'tablet'           => '992',
							'mobile_landscape' => '768',
							'mobile'           => '576',
						),
					),
				),
			)
		);
	}
}
