HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux srvntsweb01 6.8.0-55-generic #57-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 12 23:42:21 UTC 2025 x86_64
User: admntserv (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/credoplanning.com/wp-content/themes/itfirm/template-parts/page-title.php
<?php
$titles = itfirm_get_page_titles();

$pagetitle = itfirm_get_opt( 'pagetitle', 'show' );
$custom_pagetitle = itfirm_get_page_opt( 'custom_pagetitle', 'themeoption');
if($custom_pagetitle != 'themeoption' && $custom_pagetitle != '') {
    $pagetitle = $custom_pagetitle;
}

$sub_title = itfirm_get_page_opt( 'sub_title' );
$sub_title_position = itfirm_get_page_opt( 'sub_title_position', 'bottom-title' );
ob_start();
if ( $titles['title'] )
{
    printf( '<h1 class="ct-page-title">%s</h1>', wp_kses_post($titles['title']) );
}
$titles_html = ob_get_clean();
$ptitle_breadcrumb_on = itfirm_get_opt( 'ptitle_breadcrumb_on', 'show' );
if($pagetitle == 'show') : ?>
    <div id="ct-pagetitle" class="ct-pagetitle bg-image">
        <div class="container">
            <div class="ct-page-title-holder">
                <?php if(!empty($sub_title)) : ?>
                    <h6 class="ct-page-sub-title"><?php echo esc_attr($sub_title); ?></h6>
                <?php endif; ?>
                <?php printf( '%s', wp_kses_post($titles_html)); ?>
            </div>

            <?php if($ptitle_breadcrumb_on == 'show') : ?>
                <?php itfirm_breadcrumb(); ?>
            <?php endif; ?>
        </div>
    </div>
<?php endif; ?>