????
Current Path : /home2/morganrand/backup.morganrand.com/wp-content/themes/wanderfuls/partials/ |
Current File : /home2/morganrand/backup.morganrand.com/wp-content/themes/wanderfuls/partials/page-header-title.php |
<?php /** * Returns the post title * * @package Wanderfuls WordPress theme * @subpackage Partials * @version 3.0.0 */ // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) { exit; } // Get the title $title = tb_title(); // Return if there isn't a title if ( ! $title ) { return; } // Alter the heading for single blog posts and product posts to a span if ( ( is_singular( 'post' ) && 'custom_text' == tb_get_mod( 'blog_single_header', 'custom_text' ) ) || is_singular( 'product' ) ) { $tag = 'span'; $schema_markup = null; } // Return default tag and schema markup else { $tag = 'h1'; $schema_markup = tb_get_schema_markup( 'headline' ); } // Remove schema for other post types if ( ! in_array( get_post_type(), tb_theme_post_types() ) ) { $schema_markup = null; } // Display title echo '<'. $tag .' class="page-header-title"'. $schema_markup .'>'. $title .'</'. $tag .'>';