>
', 'app-landing-page' ) ) ); // delimiter between crumbs $home = esc_html( get_theme_mod( 'app_landing_page_breadcrumb_home_text', __( 'Home', 'app-landing-page' ) ) ); // text for the 'Home' link $showCurrent = get_theme_mod( 'app_landing_page_ed_current', '1' ); // 1 - show current post/page title in breadcrumbs, 0 - don't show $before = ''; // tag before the current crumb $after = ''; // tag after the current crumb global $post; $homeLink = esc_url( home_url() ); if( ( get_theme_mod( 'app_landing_page_ed_breadcrumb' ) ) && !is_page_template( 'template-home.php' ) ){ if ( is_front_page()) { if ($showOnHome == 1) echo '
' . $home . '
'; } else { echo '
' . $home . ' ' . $delimiter . ' '; if ( is_category() ) { $thisCat = get_category(get_query_var('cat'), false); if ($thisCat->parent != 0) echo get_category_parents($thisCat->parent, TRUE, ' ' . $delimiter . ' '); echo $before . single_cat_title('', false) . $after; } elseif ( is_search() ) { echo $before . esc_html__( 'Search Result', 'app-landing-page' ) . $after; } elseif ( is_day() ) { echo '' . esc_html( get_the_time('Y') ) . ' ' . $delimiter . ' '; echo '' . esc_html( get_the_time('F') ) . ' ' . $delimiter . ' '; echo $before . esc_html( get_the_time('d') ) . $after; } elseif ( is_month() ) { echo '' . esc_html( get_the_time('Y') ) . ' ' . $delimiter . ' '; echo $before . esc_html( get_the_time('F') ) . $after; } elseif ( is_year() ) { echo $before . esc_html( get_the_time('Y') ) . $after; } elseif ( is_single() && !is_attachment() ) { if ( get_post_type() != 'post' ) { $post_type = get_post_type_object(get_post_type()); $slug = $post_type->rewrite; echo '' . esc_html( $post_type->labels->singular_name ) . ''; if ($showCurrent == 1) echo ' ' . $delimiter . ' ' . $before . esc_html( get_the_title() ) . $after; } else { $cat = get_the_category(); $cat = $cat[0]; $cats = get_category_parents($cat, TRUE, ' ' . $delimiter . ' '); if ($showCurrent == 0) $cats = preg_replace("#^(.+)\s$delimiter\s$#", "$1", $cats); echo $cats; if ($showCurrent == 1) echo $before . esc_html( get_the_title() ) . $after; } } elseif ( !is_single() && !is_page() && get_post_type() != 'post' && !is_404() ) { $post_type = get_post_type_object(get_post_type()); echo $before . esc_html( $post_type->labels->singular_name ) . $after; } elseif ( is_attachment() ) { $parent = get_post($post->post_parent); $cat = get_the_category($parent->ID); $cat = $cat[0]; echo get_category_parents($cat, TRUE, ' ' . $delimiter . ' '); echo '' . esc_html( $parent->post_title ) . ''; if ($showCurrent == 1) echo ' ' . $delimiter . ' ' . $before . esc_html( get_the_title() ) . $after; } elseif ( is_page() && !$post->post_parent ) { if ($showCurrent == 1) echo $before . esc_html( get_the_title() ) . $after; } elseif ( is_page() && $post->post_parent ) { $parent_id = $post->post_parent; $breadcrumbs = array(); while ($parent_id) { $page = get_page($parent_id); $breadcrumbs[] = '' . esc_html( get_the_title( $page->ID ) ) . ''; $parent_id = $page->post_parent; } $breadcrumbs = array_reverse($breadcrumbs); for ($i = 0; $i < count($breadcrumbs); $i++) { echo $breadcrumbs[$i]; if ($i != count($breadcrumbs)-1) echo ' ' . $delimiter . ' '; } if ($showCurrent == 1) echo ' ' . $delimiter . ' ' . $before . esc_html( get_the_title() ) . $after; } elseif ( is_tag() ) { echo $before . esc_html( single_tag_title('', false) ) . $after; } elseif ( is_author() ) { global $author; $userdata = get_userdata($author); echo $before . esc_html( $userdata->display_name ) . $after; } elseif ( is_404() ) { echo $before . esc_html__( '404 Error - Page not Found', 'app-landing-page' ) . $after; } elseif( is_home() ){ echo $before; single_post_title(); echo $after; } if ( get_query_var('paged') ) { if ( is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author() ) echo ' ('; echo __( 'Page', 'app-landing-page' ) . ' ' . get_query_var('paged'); if ( is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author() ) echo ')'; } echo '
'; } } }// end app_landing_page_breadcrumbs() endif; if( ! function_exists( 'app_landing_page_page_header' ) ) : /** * Page Header for inner pages * * @since 1.0.1 */ function app_landing_page_page_header(){ global $wp_query; if ( is_single() && get_theme_mod( 'app_landing_page_ed_breadcrumb' ) ){ echo '
'; do_action( 'app_landing_page_breadcrumbs' ); echo '
'; } if( ! is_single() ){ if( is_404() ){ echo '
'; } ?>
'; } } } endif; add_action( 'app_landing_page_header_main', 'app_landing_page_page_header'); if( ! function_exists( 'app_landing_page_content_start' ) ) : /** * Content Start * * @since 1.0.1 */ function app_landing_page_content_start(){ if( !is_page_template( 'template-home.php' ) ) { echo '
'; if( is_404() ) { do_action( 'app_landing_page_header_main'); echo '
'; } echo '
'; if( ! is_404() ) { do_action( 'app_landing_page_header_main'); } echo '
'; } } endif; if( ! function_exists( 'app_landing_page_page_content_image' ) ) : /** * Page Featured Image * * @since 1.0.1 */ function app_landing_page_page_content_image(){ $sidebar_layout = app_landing_page_sidebar_layout(); if( has_post_thumbnail() ) ( is_active_sidebar( 'right-sidebar' ) && ( $sidebar_layout == 'right-sidebar' ) ) ? the_post_thumbnail( 'app-landing-page-with-sidebar' ) : the_post_thumbnail( 'app-landing-page-without-sidebar' ); } endif; if( ! function_exists( 'app_landing_page_post_content_image' ) ) : /** * Post Featured Image * * @since 1.0.1 */ function app_landing_page_post_content_image(){ if( has_post_thumbnail() ){ echo ( !is_single() ) ? '' : '
'; ( is_active_sidebar( 'right-sidebar' ) ) ? the_post_thumbnail( 'app-landing-page-with-sidebar' ) : the_post_thumbnail( 'app-landing-page-without-sidebar' ) ; echo ( !is_single() ) ? '' : '
' ; } } endif; if( ! function_exists( 'app_landing_page_post_entry_header' ) ) : /** * Post Entry Header * * @since 1.0.1 */ function app_landing_page_post_entry_header_before(){ echo '
'; } endif; if( ! function_exists( 'app_landing_page_post_entry_header' ) ) : /** * Post Entry Header * * @since 1.0.1 */ function app_landing_page_post_entry_header(){ ?>
', '' ); } else { the_title( '

', '

' ); } if ( 'post' === get_post_type() ) : echo ''; endif; ?>
'; } endif; if( ! function_exists( 'app_landing_page_post_author' ) ) : /** * Post Author Bio * * @since 1.0.1 */ function app_landing_page_post_author(){ if( get_the_author_meta( 'description' ) ){ global $post; ?>

post_author ) ); ?> '; esc_html_e( 'Posted on ','app-landing-page' ); app_landing_page_author_posted_on(); echo ''; echo wpautop( esc_html( get_the_author_meta( 'description' ) ) ); ?>
'; if( is_404() ){ echo '
'; } echo '
';// .row /#content /.container } } endif; if( ! function_exists( 'app_landing_page_footer_start' ) ) : /** * Footer Start * * @since 1.0.1 */ function app_landing_page_footer_start(){ echo '
'; echo '
'; } endif; if( ! function_exists( 'app_landing_page_footer_widgets' ) ) : /** * Footer Bottom * * @since 1.0.1 */ function app_landing_page_footer_widgets(){ echo '
'; echo '
'; if( is_active_sidebar( 'footer-sidebar-one') ) dynamic_sidebar( 'footer-sidebar-one' ); echo '
'; echo '
'; if( is_active_sidebar( 'footer-sidebar-two') ) dynamic_sidebar( 'footer-sidebar-two' ); echo '
'; echo '
'; if( is_active_sidebar( 'footer-sidebar-three') ) dynamic_sidebar( 'footer-sidebar-three' ); echo '
'; echo '
'; } endif; if( ! function_exists( 'app_landing_page_footer_credit' ) ) : /** * Footer Credits */ function app_landing_page_footer_credit(){ echo '
'; esc_html_e( '© ', 'app-landing-page' ); echo esc_html( date_i18n( 'Y' ), 'app-landing-page' ); esc_html_e( ' ', 'app-landing-page' ); echo ' ' . esc_html( get_bloginfo( 'name' ) ) . ''; esc_html_e( '. ', 'app-landing-page' ); printf( esc_html__( '%s', 'app-landing-page' ), ''. esc_html__( 'App Landing Page By Rara Theme. ', 'app-landing-page' ) .'' ); printf( esc_html__( 'Powered by %s', 'app-landing-page' ), ''. esc_html__( 'WordPress', 'app-landing-page' ) . '' ); echo '
'; } endif; if( ! function_exists( 'app_landing_page_footer_end' ) ) : /** * Footer End * * @since 1.0.1 */ function app_landing_page_footer_end(){ echo '
'; echo '
'; // #colophon } endif; if( ! function_exists( 'app_landing_page_page_end' ) ) : /** * Page End * * @since 1.0.1 */ function app_landing_page_page_end(){ ?>