<?php 
/*
	* Name: Metabox Page
	* Develope: Smartaddons
*/
/*
** Build array
*/
function emarket_build_array( $case ){
	$build_arr = array();
	if( $case == 'page' ) :
		$build_arr = array( '' => esc_html__( 'Select Page', 'emarket' ) );
	$pages = get_pages(); 
	foreach( $pages as $page ) {
		$build_arr[$page->ID] = $page->post_title;
	}
	elseif( $case == 'sidebar' ) :
		$wp_registered_sidebars = emarket_widget_setup_args();
	$build_arr = array( '' => esc_html__( 'Select Sidebar', 'emarket' ) );
	foreach( $wp_registered_sidebars as $sidebar ) {
		$build_arr[$sidebar['id']] = $sidebar['name'];
	}
	endif;
	return $build_arr;
}

/*
** Metabox array define
*/
function emarket_metabox_init(){
	$emarket_metabox_pages[] = array(
		'title' 	=> esc_html__( 'General', 'emarket' ),
		'fields'	=> array(
			array(
				'type'	=> 'upload',
				'title'	=> esc_html__( 'Custom Logo', 'emarket' ),
				'id'	=> 'page_logo',
				'description' => esc_html__( 'Upload custom Logo for this page', 'emarket' ),
				'std' => ''
				),
			
			array(
				'type'	=> 'select',
				'title'	=> esc_html__( 'Home Template', 'emarket' ),
				'id'	=> 'page_home_template',
				'description' => esc_html__( 'Select home template', 'emarket' ),
				'std'	 => '',
				'values' => apply_filters( 'sw_homepage_layout_args', array() )
				),
			array(
				'type'	=> 'radio_img',
				'title'	=> esc_html__( 'Color Scheme', 'emarket' ),
				'id'	=> 'scheme',
				'description' => esc_html__( 'Select one color scheme for this page', 'emarket' ),
				'std'	 => 'none',
				'values' => array( 
					'none' => '#000000',
					'default'	=> '#ff3c20',
					'orange'	=> '#ff9600',
					'orange2'	=> '#ff5c00',
					'orange3'	=> '#fcb700',
					'orange4'	=> '#ffd200',
					'orange5'	=> '#fbb71c',
					'orange6'	=> '#cb9400',
					'blue'	    => '#18bcec',
					'blue3'	    => '#09abfe',
					'plum'      => '#9e0b0f',
					'brown'      => '#886016',
					'brown2'      => '#a55e40',
					'green'      => '#90b939',
					'green2'      => '#78a206',
					'green3'      => '#388a95',
					'green4'      => '#01728e',
					'green5'      => '#13bf98',
					'green6'      => '#125430',
					'green7'      => '#2cb9a8',
					'green36'      => '#0c9245',
					'green37'      => '#00cc96',
					'pink'      => '#e30078',
					'blue2'      => '#5bc0ec',
					'red'      => '#e82223',
					'red2'      => '#ff4157',
					'red3'      => '#eb0036',
					'red4'      => '#d14031',
					'red5'      => '#ed1b24',
					'red6'      => '#e95225',
					'red7'      => '#c12950',
					)
				)
			)
);

$emarket_metabox_pages[] = array(
	'title' 	=> esc_html__( 'Typography', 'emarket' ),
	'fields'	=> array(
		array(
			'type'	=> 'text',
			'title'	=> esc_html__( 'Google Fonts', 'emarket' ),
			'id'	=> 'google_webfonts',
			'description' => esc_html__( ' Insert font style that you actually need on your webpage. Each font seperate by commas', 'emarket' ),
			'std'	 => ''	
			),
		array(
			'type'	=> 'multiselect',
			'title'	=> esc_html__( 'Webfont Weight', 'emarket' ),
			'id'	=> 'webfonts_weight',
			'description' => esc_html__( 'For weight, see Google Fonts to custom for each font style.', 'emarket' ),
			'std'	 => '',
			'values' => array( 
				'100' => '100',
				'200' => '200',
				'300' => '300',
				'400' => '400',
				'500' => '500',
				'600' => '600',
				'700' => '700',
				'800' => '800',
				'900' => '900'
				)
			),
		array(
			'type'	=> 'select',
			'title'	=> esc_html__( 'Webfont Assign to', 'emarket' ),
			'id'	=> 'webfonts_assign',
			'description' => esc_html__( 'Select the place will apply the font style headers, every where or custom.', 'emarket' ),
			'std'	 => '',
			'values' => array( 
				'' 		  => esc_html__( 'Select Option', 'emarket' ),
				'headers' => esc_html__( 'Headers',    'emarket' ),
				'all'     => esc_html__( 'Everywhere', 'emarket' ),
				'custom'  => esc_html__( 'Custom',     'emarket' )
				)
			),		
		array(
			'type'	=> 'text',
			'title'	=> esc_html__( 'Webfont Custom Selector', 'emarket' ),
			'id'	=> 'webfonts_custom',
			'description' => esc_html__( 'Insert the places will be custom here, after selected custom Webfont assign.', 'emarket' ),
			'std'	 => ''	
			),		
		)
);
if( class_exists( 'Vc_Manager' ) ){
	$emarket_metabox_pages[] = array(
		'title' 	=> esc_html__( 'Header', 'emarket' ),
		'fields'	=> array(
			array(
				'type'	=> 'checkbox',
				'title'	=> esc_html__( 'Hide header', 'emarket' ),
				'id'	=> 'page_header_hide',
				'description' => esc_html__( 'Choose to show or hide the header. ', 'emarket' ),
				'std' => '0'
				),
			array(
				'type'	=> 'select',
				'title'	=> esc_html__( 'Header Style Select', 'emarket' ),
				'id'	=> 'page_header_style',
				'description' => esc_html__( ' Chose to select header page content for this page. ', 'emarket' ),
				'std'	 => '',
				'values' => array( '' => esc_html__( 'Header Style', 'emarket' ), 'style1' => esc_html__( 'Header Style1', 'emarket' ), 'style2' => esc_html__( 'Header Style2', 'emarket' ), 
					'style3' => esc_html__( 'Header Style3', 'emarket' ), 'style4' => esc_html__( 'Header Style4', 'emarket' ), 'style5' => esc_html__( 'Header Style5', 'emarket' ),
					'style6' => esc_html__( 'Header Style6', 'emarket' ), 'style7' => esc_html__( 'Header Style7', 'emarket' ), 'style8' => esc_html__( 'Header Style8', 'emarket' ),
					'style9' => esc_html__( 'Header Style9', 'emarket' ), 'style10' => esc_html__( 'Header Style10', 'emarket' ), 'style11' => esc_html__( 'Header Style11', 'emarket' ),
					'style12' => esc_html__( 'Header Style12', 'emarket' ), 'style13' => esc_html__( 'Header Style13', 'emarket' ),'style14' => esc_html__( 'Header Style14', 'emarket' ),
					'style15' => esc_html__( 'Header Style15', 'emarket' ), 'style16' => esc_html__( 'Header Style16', 'emarket' ), 'style17' => esc_html__( 'Header Style17', 'emarket' ),
					'style18' => esc_html__( 'Header Style18', 'emarket' )
					)
				)
			)
		);

	$emarket_metabox_pages[] = array(
		'title' 	=> esc_html__( 'Footer', 'emarket' ),
		'fields'	=> array(
			array(
				'type'	=> 'checkbox',
				'title'	=> esc_html__( 'Hide Footer', 'emarket' ),
				'id'	=> 'page_footer_hide',
				'description' => esc_html__( 'Choose to show or hide the footer. ', 'emarket' ),
				'std'	 => '0',
				),
			array(
				'type'	=> 'select',
				'title'	=> esc_html__( 'Footer Page Select', 'emarket' ),
				'id'	=> 'page_footer_style',
				'description' => esc_html__( ' Chose to select footer page content for this page. ', 'emarket' ),
				'std'	 => '',
				'values' => emarket_build_array( 'page' )
				),
			array(
				'type'	=> 'select',
				'title'	=> esc_html__( 'Footer Copyright Select', 'emarket' ),
				'id'	=> 'copyright_footer_style',
				'description' => esc_html__( ' Choose to select footer copyright style for this page. ', 'emarket' ),
				'std'	 => '',
				'values' => array(
					'' 		 => esc_html__( 'Default', 'emarket' ),
					'style1' => esc_html__( 'Style1', 'emarket' ), 
					'style2' => esc_html__( 'Style2', 'emarket' ), 
					'style3' => esc_html__( 'Style3', 'emarket' ), 
					'style4' => esc_html__( 'Style4', 'emarket' ), 
					'style5' => esc_html__( 'Style5', 'emarket' ), 
					)
				)
			)
		);

	$emarket_metabox_pages[] = array(
		'title' 	=> esc_html__( 'Sidebar', 'emarket' ),
		'fields'	=> array(
			array(
				'type'	=> 'select',
				'title'	=> esc_html__( 'Sidebar Layout', 'emarket' ),
				'id'	=> 'page_sidebar_layout',
				'description' => esc_html__( 'Choose layout sidebar for page', 'emarket' ),
				'std'	 => '',
				'values' => array( '' => esc_html__( 'Select Sidebar', 'emarket' ), 'full' => esc_html__( 'No Sidebar', 'emarket' ), 'left' => esc_html__( 'Sidebar Left', 'emarket' ), 'right' => esc_html__( 'Sidebar Right', 'emarket' ) )
				),
			array(
				'type'	=> 'select',
				'title'	=> esc_html__( 'Sidebar ', 'emarket' ),
				'id'	=> 'page_sidebar_template',
				'description' => esc_html__( ' Chose sidebar to show.', 'emarket' ),
				'std'	 => '',
				'values' => emarket_build_array( 'sidebar' )
				)		
			)
		);
}

return $emarket_metabox_pages;
}
add_action( 'init', 'emarket_metabox_init' );

add_action( 'admin_init', 'emarket_page_init' );
function emarket_page_init(){
	add_meta_box( 'emarket_page_meta', esc_html__( 'Page Metabox', 'emarket' ), 'emarket_page_meta', array( 'page', 'post', 'product' ), 'normal', 'low' );
	add_action( 'save_post', 'emarket_page_save_meta', 100 );
}	

/*
** Metabox HTML
*/
function emarket_page_meta(){
	global $post;
	$emarket_metabox_pages = emarket_metabox_init();
	$except_args = array( 'General', 'Typography' );
	$current_screen =  get_current_screen()->post_type;
	wp_nonce_field( 'emarket_page_save_meta', 'emarket_metabox_plugin_nonce' );
	if( in_array( $current_screen, array( 'post', 'page', 'product' ) ) ) : 
		wp_enqueue_style( 'metabox_style', get_template_directory_uri() . '/lib/admin/css/metabox.css', array(), null );
		wp_enqueue_script( 'tab_script', get_template_directory_uri() . '/lib/admin/js/tab.js', array(), null, true );
		wp_enqueue_script( 'emarket-opts-field-radio_img-js',	EMARKET_URL.'/options/fields/radio_img/field_radio_img.js',	array('jquery'), time(), true	);
	endif; 
	?>
	<div class="emarket-metabox" id="emarket_metabox">
		<div class="emarket-metabox-content">
			<ul class="nav nav-tabs">
				<?php 
				$i = 0;
				foreach( $emarket_metabox_pages as $metabox ){ 
					if( ( $current_screen == 'post' || $current_screen == 'product' ) && ( in_array( $metabox['title'], $except_args ) ) ){
						continue;
					}
					$active = ( $i == 0 ) ? 'active' : '';
					echo '<li class="' . esc_attr( $active ) . '"><a href="#emarket_'. strtolower( $metabox['title'] ) .'" data-toggle="tab">' . $metabox['title'] . '</a></li>';
					$i ++;
				} 
				?>
			</ul>
			<div class="tab-content">
				<?php 
				$i = 0;
				foreach( $emarket_metabox_pages as $metabox ){ 
					$active = ( $i == 0 ) ? 'active' : '';	
					if( ( $current_screen == 'post' || $current_screen == 'product' ) && ( in_array( $metabox['title'], $except_args ) ) ){
						continue;
					}
					?>
					<div class="tab-pane <?php echo esc_attr( $active ); ?>" id="emarket_<?php echo strtolower( $metabox['title'] ) ; ?>">
						<?php if( isset( $metabox['fields'] ) && count( $metabox['fields'] ) > 0 ) {?>
						<?php 
						foreach( $metabox['fields'] as $meta_field ) { 
							$values = isset( $meta_field['values'] ) ? $meta_field['values'] : '';
							?>
							<div class="tab-inner clearfix">
								<div class="flytab-description pull-left">
									
									<!-- Title meta field -->
									<?php if( $meta_field['title'] != '' ) { ?>
									<div class="flytab-item-title">
										<?php echo esc_html( $meta_field['title'] ); ?>
									</div>
									<?php } ?>
									
									<!-- Description -->
									<?php if( $meta_field['description'] != '' ) { ?>
									<div class="flytab-item-shortdes">
										<?php echo esc_html( $meta_field['description'] ); ?>
									</div>
									<?php } ?>
								</div>
								<!-- Meta content -->
								<div class="flytab-content">
									<?php emarket_render_html( $meta_field['id'], $meta_field['type'], $values, $meta_field['std'] ); ?>									
								</div>
							</div>
							<?php } ?>
							<?php } ?>
						</div>
						<?php $i ++; } ?>
					</div>
				</div>
			</div>
			<?php 
		}

/*
** Function Render HTML
*/
function emarket_render_html( $id, $type, $values, $std ){
	global $post;
	$meta_value = '';
	if( get_post_meta( $post->ID, $id, true ) != '' ){
		$meta_value = get_post_meta( $post->ID, $id, true );
	}else if( isset( $std ) && $std != '' ){
		$meta_value = $std;
	}
	$html = '';
	switch( $type ) {
		case 'text' :
		$html .= '<input type="text" value="'. esc_attr( $meta_value ) .'" id="'. esc_attr( $id ) .'" name="'. esc_attr( $id ) .'"/>';
		break;
		
		case 'textarea' :
		$html .= '<texarea id="'. esc_attr( $id ) .'" name="'. esc_attr( $id ) .'"/>'. esc_attr( $meta_value ) .'</texarea>';
		break;
		
		case 'editor' :
		wp_editor( $meta_value, $id, array() );
		break;
		
		case 'select' :
		$html .= '<select id="'. esc_attr( $id ) .'" name="'. esc_attr( $id ) .'">';
		foreach( $values as $key => $value ) {
			$html .= '<option value="'. esc_attr( $key ) .'" '. selected( $meta_value, $key, false ) .'>'. $value .'</option>';
		}
		$html .= '</select>';
		break;
		
		case 'multiselect' :
		$multi_value = array();
		if( is_array( $meta_value ) ){
			$multi_value = $meta_value;
		}else{
			$multi_value[] = $meta_value;
		}
		$select_value = $multi_value;
		$html .= '<select id="'. esc_attr( $id ) .'" name="'. esc_attr( $id ) .'[]" multiple>';
		foreach( $values as $key => $value ) {
			$check = ( in_array( $key, $select_value ) ) ? 'selected="selected"' : '';
			$html .= '<option value="'. esc_attr( $key ) .'" '. $check .'>'. $value .'</option>';
		}
		$html .= '</select>';
		break;
		
		case 'checkbox' :
		$html .= '<input type="checkbox" name="'. esc_attr( $id ) .'" value="1" '. checked( $meta_value, 1, false ) .'/>';
		break;
		
		case 'radio_img' :
		$i = 0;
		$html .= '<div class="page-metabox-radio-img">';
		foreach( $values as $key => $value ) {
			$key_val = ( $key == 'none' ) ? esc_html__( 'No Select', 'emarket' ) : $key; 
			$selected = ( checked( $meta_value, $key, false ) != '' ) ? ' emarket-radio-img-selected' : '';
			$html .= '<label class="radio-label emarket-radio-img'.$selected.' emarket-radio-img-'. esc_attr( $id ) .'" for="'. esc_attr( $id ) .'_'. $i .'">';
			$html .= '<input type="radio" id="'. esc_attr( $id ) .'_'. $i .'" name="'. esc_attr( $id ) .'" value="'. esc_attr( $key ) .'" '.checked($meta_value, $key, false).'/>';
			$html .= '<div class="page-radio-color" style="background: '. esc_attr( $value ) .'" onclick="jQuery:emarket_radio_img_select(\''. esc_attr( $id ) .'_'. $i .'\', \''. esc_attr( $id ) .'\');"></div>';
			$html .= '<br/><span>'. esc_attr( $key_val ) .'</span>';
			$html .= '</label>';
			$i ++;
		}
		$html .= '</div>';
		break;
		
		case 'radio' :
		$i = 0;
		$html .= '<div class="page-metabox-radio">';
		foreach( $values as $key => $value ) {
			$html .= '<label class="radio-label '. esc_attr( $id ) .'" for="'. esc_attr( $id ) .'_'. $i .'">';
			$html .= '<input type="radio" id="'. esc_attr( $id ) .'_'. $i .'" name="'. esc_attr( $id ) .'" value="'. esc_attr( $key ) .'" '.checked($meta_value, $key, false).'/>';
			$html .= '';
			$html .= '<br/><span>'. esc_attr( $value ) .'</span>';
			$html .= '</label>';
			$i ++;
		}
		$html .= '</div>';
		break;
		
		case 'multicheckbox' :
		$multi_value = array();
		if( is_array( $meta_value ) ){
			$multi_value = $meta_value;
		}else{
			$multi_value[] = $meta_value;
		}
		$checkbox_value = $multi_value;
		foreach( $values as $key => $value ) {
			$check = ( in_array( $key, $checkbox_value ) ) ? 'checked' : '';
			$html .= '<div class="metabox-multicheck pull-left"><input type="checkbox" name="'. esc_attr( $id ) .'[]" value="'. esc_attr( $key ) .'" '. $check .'/>';
			$html .= '<br/><label>'. $value .'</label></div>';
		}
		break;
		
		case 'upload' :
		$upload_img = wp_get_attachment_image_url( $meta_value, 'thumbnail' ) ? wp_get_attachment_image_url( intval($meta_value), 'thumbnail' ) : '';
		ob_start();
		?>
		<div class="upload-formfield">
			<div id="metabox_thumbnail" style="float: left; margin-right: 10px;"><img src="<?php echo esc_url( $upload_img ); ?>" alt="" width="30" height="30" /></div>
			<div class="metabox-thumbnail-wrapper">
				<input type="hidden" id="<?php echo esc_attr( $id ); ?>" name="<?php echo esc_attr( $id ); ?>" value="<?php echo esc_attr( $meta_value ) ?>"/>
				<button type="button" class="upload_image_button button"><?php echo esc_html__( 'Upload/Add image', 'emarket' ) ?></button>
				<button type="button" class="remove_image_button button"><?php echo esc_html__( 'Remove image', 'emarket' ) ?></button>
			</div>
			<script type="text/javascript">

					// Only show the "remove image" button when needed
					if ( ! jQuery( '#<?php echo esc_js( $id ); ?>' ).val() ) {
						jQuery( '.remove_image_button' ).hide();
					}

					// Uploading files
					var file_frame;

					jQuery( document ).on( 'click', '.upload_image_button', function( event ) {

						event.preventDefault();

						// If the media frame already exists, reopen it.
						if ( file_frame ) {
							file_frame.open();
							return;
						}

						// Create the media frame.
						file_frame = wp.media.frames.downloadable_file = wp.media({
							title: '<?php esc_html_e( "Choose an image", 'emarket' ); ?>',
							button: {
								text: '<?php esc_html_e( "Use image", 'emarket' ); ?>'
							},
							multiple: false
						});

						// When an image is selected, run a callback.
						file_frame.on( 'select', function() {
							var attachment = file_frame.state().get( 'selection' ).first().toJSON();
							
							jQuery( '#<?php echo esc_js( $id ); ?>' ).val( attachment.id );
							jQuery( '#metabox_thumbnail > img' ).attr( 'src', attachment.sizes.thumbnail.url );
							jQuery( '.remove_image_button' ).show();
						});

						// Finally, open the modal.
						file_frame.open();
					});

jQuery( document ).on( 'click', '.remove_image_button', function() {
	jQuery( '#metabox_thumbnail > img' ).attr( 'src', 'http://placehold.it/30x30' );
	jQuery( '#<?php echo esc_js( $id ); ?>' ).val( '' );
	jQuery( '.remove_image_button' ).hide();
	return false;
});

</script>
<div class="clear"></div>
</div>
<?php
$html .= ob_get_clean();
break;

case 'color' :
$color_value = isset( $meta_value ) ? $meta_value : $std;			
$html .= '<input type="text" id="'.esc_attr( $id ).'" name="'. esc_attr( $id ) .'" value="'.esc_attr( $color_value ).'" class="emarket-popup-colorpicker" style="width:70px;"/>';
break;
}
echo $html;
}

function emarket_page_save_meta( $post_id ){
	if ( ! isset( $_POST['emarket_metabox_plugin_nonce'] ) ) {
		return;
	}
	if ( ! wp_verify_nonce( $_POST['emarket_metabox_plugin_nonce'], 'emarket_page_save_meta' ) ) {
		return;
	}
	$emarket_metabox_pages = emarket_metabox_init(); 
	$except_args = array( 'General', 'Typography' );
	$current_screen = isset( get_current_screen()->post_type ) ? get_current_screen()->post_type : '';	
	foreach( $emarket_metabox_pages as $key => $metabox ){ 
		if( ( $current_screen == 'post' || $current_screen == 'product' ) && ( in_array( $metabox['title'], $except_args ) ) ){
			continue;
		}
		foreach( $metabox['fields'] as $meta_field ) {
			$checkbox_val = isset( $_POST[$meta_field['id']] ) ? $_POST[$meta_field['id']] : 0;
			update_post_meta( $post_id, $meta_field['id'], $checkbox_val );	
			
			if( isset( $_POST[$meta_field['id']] ) ){
				$data = $_POST[$meta_field['id']];
				switch( $meta_field['type'] ) {
					case 'text' :
					$data = sanitize_text_field( $_POST[$meta_field['id']] );
					break;
					
					case 'email' :
					$data = sanitize_email( $_POST[$meta_field['id']] );
					break;
					
					case 'number' :
					$data = intval( $_POST[$meta_field['id']] );
					break;
					
					case 'upload' :
					$data = intval( $_POST[$meta_field['id']] );
					break;
					
					case 'radio_img' :
					$data = $_POST[$meta_field['id']];
					break;

				}
				if( strlen( trim( $data ) ) > 0 ) :
					update_post_meta( $post_id, $meta_field['id'], $data );
				else: 
					delete_post_meta( $post_id, $meta_field['id'] );
				endif;
			}
		}
	}
}


add_filter( 'sw_homepage_layout_args', 'emarket_custom_layout_homepage_metabox' );
function emarket_custom_layout_homepage_metabox(){
	return array( '' => esc_html__( 'Default', 'emarket' ), 'home-style1' => esc_html__( 'Home Style1', 'emarket' ), 'home-style2' => esc_html__( 'Home Style2', 'emarket' ),
	'home-style3' => esc_html__( 'Home Style3', 'emarket' ), 'home-style4' => esc_html__( 'Home Style4', 'emarket' ),  'home-style5' => esc_html__( 'Home Style5', 'emarket' ),
	 'home-style6' => esc_html__( 'Home Style6', 'emarket' ),  'home-style7' => esc_html__( 'Home Style7', 'emarket' ), 'home-style8' => esc_html__( 'Home Style8', 'emarket' ),
	 'home-style9' => esc_html__( 'Home Style9', 'emarket' ), 'home-style10' => esc_html__( 'Home Style10', 'emarket' ), 'home-style11' => esc_html__( 'Home Style11', 'emarket' ),
	 'home-style12' => esc_html__( 'Home Style12', 'emarket'), 'home-style13' => esc_html__( 'Home Style13', 'emarket' ), 'home-style14' => esc_html__( 'Home Style14', 'emarket' ),
	 'home-style15' => esc_html__( 'Home Style15', 'emarket'), 'home-style16' => esc_html__( 'Home Style16', 'emarket' ), 'home-style17' => esc_html__( 'Home Style17', 'emarket' ),
	 'home-style18' => esc_html__( 'Home Style18', 'emarket' ), 'home-style19' => esc_html__( 'Home Style19', 'emarket' ), 'home-style20' => esc_html__( 'Home Style20', 'emarket' ),
	 'home-style21' => esc_html__( 'Home Style21', 'emarket' ), 'home-style22' => esc_html__( 'Home Style22', 'emarket' ), 'home-style23' => esc_html__( 'Home Style23', 'emarket' ),
	 'home-style24' => esc_html__( 'Home Style24', 'emarket' ), 'home-style25' => esc_html__( 'Home Style25', 'emarket' ), 'home-style26' => esc_html__( 'Home Style26', 'emarket' ),
	 'home-style27' => esc_html__( 'Home Style27', 'emarket' ), 'home-style28' => esc_html__( 'Home Style28', 'emarket' ), 'home-style29' => esc_html__( 'Home Style29', 'emarket' ),
	 'home-style30' => esc_html__( 'Home Style30', 'emarket' ), 'home-style31' => esc_html__( 'Home Style31', 'emarket' ), 'home-style32' => esc_html__( 'Home Style32', 'emarket' ),
	 'home-style33' => esc_html__( 'Home Style33', 'emarket' ), 'home-style34' => esc_html__( 'Home Style34', 'emarket' ), 'home-style35' => esc_html__( 'Home Style35', 'emarket' ),
	 'home-style36' => esc_html__( 'Home Style36', 'emarket' ),'home-style37' => esc_html__( 'Home Style37', 'emarket' ), 'home-style38' => esc_html__( 'Home Style38', 'emarket' ),
	 'home-style39' => esc_html__( 'Home Style39', 'emarket' ), 'home-style40' => esc_html__( 'Home Style40', 'emarket' ), 'home-style41' => esc_html__( 'Home Style41', 'emarket' ),
	 'home-style42' => esc_html__( 'Home Style42', 'emarket' ), 'home-style43' => esc_html__( 'Home Style43', 'emarket' ), 'home-style44' => esc_html__( 'Home Style44', 'emarket' ),
	 'home-style45' => esc_html__( 'Home Style45', 'emarket' ), 'home-style46' => esc_html__( 'Home Style46', 'emarket' ), 'home-style47' => esc_html__( 'Home Style47', 'emarket' ),
	 'home-style48' => esc_html__( 'Home Style48', 'emarket' ), 'home-style49' => esc_html__( 'Home Style49', 'emarket' ), 'home-style50' => esc_html__( 'Home Style50', 'emarket' ),
	 'home-style51' => esc_html__( 'Home Style51', 'emarket' ), 'home-style52' => esc_html__( 'Home Style52', 'emarket' ), 'home-style53' => esc_html__( 'Home Style53', 'emarket' ),
	 'home-style54' => esc_html__( 'Home Style54', 'emarket' ), 'home-style55' => esc_html__( 'Home Style55', 'emarket' ), 'home-style56' => esc_html__( 'Home Style56', 'emarket' ),
	 'home-style57' => esc_html__( 'Home Style57', 'emarket' ),'home-style58' => esc_html__( 'Home Style58', 'emarket' ), 'home-style59' => esc_html__( 'Home Style59', 'emarket' ),
	 'home-style60' => esc_html__( 'Home Style60', 'emarket' ),'home-style61' => esc_html__( 'Home Style61', 'emarket' ),
	 'page-template-home50' => esc_html__( 'Page Template Home 50', 'emarket' ), 'page-template-home52' => esc_html__( 'Page Template Home 52', 'emarket' ),
	);
}
