Home Archives Search


<?php /**

// Exit if accessed directly if ( ! defined( ABSPATH ) ) { exit; }

// Exit if disabled via Customizer or Metabox if ( ! weberium_get_mod( featured_title’, true ) || weberium_metabox(‘hide_featured_title’) ) return;

// Get text more $blog_title = weberium_get_mod( blog_featured_title’ ); $blog_title = $blog_title ? $blog_title : esc_html__( BLOG, weberium’ );

$shop_title = weberium_get_mod( shop_featured_title’ ); $shop_title = $shop_title ? $shop_title : esc_html__( Shop’, weberium’ );

$title = esc_html__( Archives’, weberium’ ); if ( weberium_is_woocommerce_shop() ) $title = $shop_title; if ( is_post_type_archive( project’ ) ) $title = esc_html__( Project Archives’, weberium’ ); if ( is_home() or is_singular(‘post’) ) { $title = $blog_title; } elseif ( is_singular() ) { $title = get_the_title(); } elseif ( is_search() ) { $title = sprintf( esc_html( Search results for %s”’, weberium’ ), get_search_query() ); } elseif ( is_404() ) { $title = esc_html( Error 404’, weberium’ ); } elseif ( is_author() ) { the_post(); $title = sprintf( esc_html( Author Archives: %s’, weberium’ ), get_the_author() ); rewind_posts(); } elseif ( is_day() ) { $title = sprintf( esc_html( Daily Archives: %s’, weberium’ ), get_the_date() ); } elseif ( is_month() ) { $title = sprintf( esc_html( Monthly Archives: %s’, weberium’ ), get_the_date( F Y’ ) ); } elseif ( is_year() ) { $title = sprintf( esc_html( Yearly Archives: %s’, weberium’ ), get_the_date( Y’ ) ); } elseif ( is_tax() || is_category() || is_tag() ) { $title = single_term_title( ’, false ); }

// Return array to order contents $featured_title_content = weberium_get_mod( featured_title_style’ ) ? explode( _‘, weberium_get_mod( featured_title_style’ ) ) : array( heading”, breadcrumbs” ); ?>

Posted on March 16, 2020






Previous post →