Example #1
0
function epanel_layout_mode() {

	global $epanel_layout;
	global $post;

	if(!epanel_is_posts_page() && isset($post) && get_post_meta($post->ID, '_epanel_layout_mode', true)){
		$epanel_layout->build_layout(get_post_meta($post->ID, '_epanel_layout_mode', true));
		return get_post_meta($post->ID, '_epanel_layout_mode', true);
	} elseif(epanel_is_posts_page() && epanel_option('posts_page_layout')){
		$epanel_layout->build_layout(epanel_option('posts_page_layout'));
		return epanel_option('posts_page_layout');
	} else {
		return $epanel_layout->layout_mode;
	}

}
Example #2
0
function epanel_non_meta_data_page(){
	if(epanel_is_posts_page() || is_404()) return true; 
	else return false;
}
Example #3
0
function get_epanel_meta($option, $post){
	$meta = get_post_meta($post, $option, true);
	if(isset($meta) && !epanel_is_posts_page()){
		return $meta;
	}else{
		return false;
	}
}