| Server IP : 213.186.33.4 / Your IP : 216.73.216.222 Web Server : Apache System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : karinebmkh ( 644538) PHP Version : 8.4.22 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/karinebmkh/www2/wp-content/themes/novablog/ |
Upload File : |
<?php
$novablog_blog_text = novablog_getVariable('blog_text');
$novablog_page_title = get_post_meta( get_the_ID(), 'novablog_page_title_enable', true );
if($novablog_page_title == esc_html__('enable','novablog') || ($novablog_page_title == "" && is_page()) || $novablog_blog_text !="" || is_category() || is_tax() || is_search() || is_day() || is_month() || is_year() || is_author() || is_tag() ){ ?>
<section class="title-section">
<?php
$shop_page = false;
if(function_exists( 'is_shop' )){
if(is_shop()){
$shop_page = true;
}
}
if(is_home()){ ?>
<?php ?>
<?php if($novablog_blog_text){?>
<h1><?php echo esc_attr( novablog_getVariable('blog_text')); ?></h1>
<?php } ?>
<?php $hercules_blog_sub = novablog_getVariable('blog_sub'); ?>
<?php if($hercules_blog_sub){?>
<?php echo "<span></span><h2>". esc_attr( novablog_getVariable('blog_sub') ) . "</h2>"; ?>
<?php }
} elseif ( is_category() && novablog_getVariable('category_name') =='yes' && novablog_getVariable('category_word') !='no' || is_category() && novablog_getVariable('category_name') =='' && novablog_getVariable('category_word') !='no' ) { ?>
<div class="category-box"><h1><span><?php printf( theme_locals("category_archives")." %s", '</span>' . single_cat_title( '', false ) . '' ); ?></h1></div>
<?php if ( category_description() ) {echo '<div class="cat-des">'.category_description().'</div>';} /* displays the category's description from the WordPress admin */ ?>
<?php } elseif ( is_category() && novablog_getVariable('category_name') =='no' ) { ?>
<?php } elseif ( is_category() && novablog_getVariable('category_word') =='no' ) { ?>
<h1><?php printf( " %s", '' . single_cat_title( '', false ) . '' ); ?></h1>
<?php if ( category_description() ) {echo '<div class="cat-des">'.category_description().'</div>';} /* displays the category's description from the WordPress admin */ ?>
<?php } elseif ( is_tax() ) { ?>
<div class="category-box"><h1><span><?php echo theme_locals("posts_by_type"); ?></span>
<h1><?php echo single_cat_title( '', false ); ?></h1></div>
<?php } elseif ( is_search() ) { ?>
<div class="category-box"><h1><span><?php echo theme_locals("fearch_for"); ?></span>
<?php the_search_query(); ?></h1></div>
<?php } elseif ( is_day() ) { ?>
<div class="category-box"><h1><span><?php printf( theme_locals("daily_archives")." %s", '</span>' . get_the_date() ); ?></h1></div>
<?php } elseif ( is_month() ) { ?>
<div class="category-box"><h1><span><?php printf( theme_locals("monthly_archives")." %s", '</span>' . get_the_date('F Y') ); ?></h1></div>
<?php } elseif ( is_year() ) { ?>
<div class="category-box"><h1><span><?php printf( theme_locals("yearly_archives")." %s", '</span>' . get_the_date('Y') ); ?></h1></div>
<?php } elseif ( is_author() ) { ?>
<div class="category-box"><h1><span><?php echo theme_locals("by");?></span><?php echo get_the_author(); ?></h1></div>
<?php } elseif ( is_tag() ) { ?>
<div class="category-box"><h1><span><?php printf( theme_locals("tag_archives")." %s", '</span>' . single_tag_title( '', false ) . '' ); ?></h1></div>
<?php } elseif ( is_tag('gallery_tag') ) { ?>
<?php echo theme_locals("gallery_categories"); ?>
<small><?php echo single_cat_title( '', false ); ?> </small>
<?php } elseif ($shop_page) {
if (class_exists( 'Woocommerce' ) && !is_single()){
$page_id = woocommerce_get_page_id('shop');
} elseif (function_exists( 'jigoshop_init' ) && !is_singular()){
$page_id = jigoshop_get_page_id('shop');
}
echo '<h1>'.get_page($page_id)->post_title.'</h1>';
?>
<?php } else { ?>
<?php if (have_posts()) : while (have_posts()) : the_post();
$novablog_title = get_post_meta( get_the_ID(), 'novablog_page_tit', true );
$novablog_subtitle = get_post_meta( get_the_ID(), 'novablog_page_sub', true );
if($novablog_title == ""){ ?>
<h1><?php esc_attr(the_title()); ?></h1>
<?php
} else { ?>
<h1><?php echo esc_attr($novablog_title); ?></h1>
<?php
}
if($novablog_subtitle != ""){ ?>
<span class="title-desc"></span><h2><?php echo esc_attr($novablog_subtitle);?></h2>
<?php }
endwhile; endif;
} ?>
</section>
<?php }else{ ?>
<?php } ?>