max_num_pages > 1 ) : ?>
- ' . _x( '←', 'Previous post link', 'ambition' ) . ' %title' ); ?>
- ' . _x( '→', 'Next post link', 'ambition' ) . '' ); ?>
', '' ); ?>
ID, 'ambition_sidebarlayout', true ); $frontpage_id = get_option('page_on_front'); // for front page $banner = get_post_meta( $frontpage_id, 'ambition_sidebarlayout', true ); $page_id = ( 'page' == get_option( 'show_on_front' ) ? get_option( 'page_for_posts' ) : get_the_ID() ); $home_blog = get_post_meta( $page_id, 'ambition_sidebarlayout', true ); } if( empty( $layout ) || is_archive() || is_search() || is_home() ) { $layout = 'default'; } if(is_front_page() && $banner): if( 'default' == $banner ) {//checked from the themeoptions. $themeoption_layout = $content_layout; if( 'left' == $themeoption_layout ) { get_template_part( 'content','leftsidebar' );//used content-leftsidebar.php } elseif( 'right' == $themeoption_layout ) { get_template_part( 'content','rightsidebar' );//used content-rightsidebar.php } else { get_template_part( 'content','nosidebar' );//used content-nosidebar.php } } elseif( 'left-sidebar' == $banner ) { //checked from the particular page / post. get_template_part( 'content','leftsidebar' );//used content-leftsidebar.php } elseif( 'right-sidebar' == $banner ) { get_template_part( 'content','rightsidebar' );//used content-rightsidebar.php } else { get_template_part( 'content','nosidebar' );//used content-nosidebar.php } elseif(is_front_page()): if( 'default' == $layout ) {//checked from the themeoptions. $themeoption_layout = $content_layout; if( 'left' == $themeoption_layout ) { get_template_part( 'content','leftsidebar' );//used content-leftsidebar.php } elseif( 'right' == $themeoption_layout ) { get_template_part( 'content','rightsidebar' );//used content-rightsidebar.php } else { get_template_part( 'content','nosidebar' );//used content-nosidebar.php } } elseif( 'left-sidebar' == $layout ) { //checked from the particular page / post. get_template_part( 'content','leftsidebar' );//used content-leftsidebar.php } elseif( 'right-sidebar' == $layout ) { get_template_part( 'content','rightsidebar' );//used content-rightsidebar.php } else { get_template_part( 'content','nosidebar' );//used content-nosidebar.php } elseif(is_home()): if( 'default' == $home_blog ) {//checked from the themeoptions. $themeoption_layout = $content_layout; if( 'left' == $themeoption_layout ) { get_template_part( 'content','leftsidebar' );//used content-leftsidebar.php } elseif( 'right' == $themeoption_layout ) { get_template_part( 'content','rightsidebar' );//used content-rightsidebar.php } else { get_template_part( 'content','nosidebar' );//used content-nosidebar.php } } elseif( 'left-sidebar' == $home_blog ) { //checked from the particular page / post. get_template_part( 'content','leftsidebar' );//used content-leftsidebar.php } elseif( 'right-sidebar' == $home_blog ) { get_template_part( 'content','rightsidebar' );//used content-rightsidebar.php } else { get_template_part( 'content','nosidebar' );//used content-nosidebar.php } else: if( 'default' == $layout ) { //checked from the themeoptions. $themeoption_layout = $content_layout; if( 'left' == $themeoption_layout ) { get_template_part( 'content','leftsidebar' );//used content-leftsidebar.php } elseif( 'right' == $themeoption_layout ) { get_template_part( 'content','rightsidebar' );//used content-rightsidebar.php } else { get_template_part( 'content','nosidebar' );//used content-nosidebar.php } } elseif( 'left-sidebar' == $layout ) {//checked from the particular page / post. get_template_part( 'content','leftsidebar' );//used content-leftsidebar.php } elseif( 'right-sidebar' == $layout ) { get_template_part( 'content','rightsidebar' );//used content-rightsidebar.php } else { get_template_part( 'content','nosidebar' );//used content-nosidebar.php } endif; } /****************************************************************************************/ add_action( 'ambition_before_loop_content', 'ambition_loop_before', 10 ); /** * Contains the opening div */ function ambition_loop_before() { echo '
', '' ); ?>