C:\xampp\htdocs\landing\wp-content\themes\pennews\template-parts\header\logo.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
$flag 
false;
if( 
penci_get_theme_mod'penci_logo_trans' ) && penci__header_tran() ) {
    
$flag true;
}
?>

<div class="site-branding<?php if( $flag ): echo ' penci-logo-tenable'; endif; ?>">
    <?php if( penci_get_setting'penci_use_textlogo' ) && penci_get_setting'penci_text_logo' ) ) : ?>
        <?php if ( is_front_page() ) : ?>
            <h2 class="site-title"><a href="<?php echo esc_urlpenci_home_url() ); ?>" rel="home"><?php echo penci_get_setting'penci_text_logo' ); ?></a></h2>
        <?php else : ?>
            <h2 class="site-title"><a href="<?php echo esc_urlpenci_home_url() ); ?>" rel="home"><?php echo penci_get_setting'penci_text_logo' ); ?></a></h2>
        <?php endif; ?>
    <?php elseif ( function_exists'the_custom_logo' ) && has_custom_logo() ) : ?>

    <?php
    $tag_h1 
'h2';
    
//if ( is_front_page() || is_home() ) {
        // $tag_h1 = 'h1';
    //}
    
?>
    <<?php echo ( $tag_h1 ); ?>><?php the_custom_logo(); ?></<?php echo ( $tag_h1 ); ?>>
        <?php
        
if( $flag ) {
            echo 
'<a href="' esc_urlpenci_home_url() ) . '" class="penci-trans-logo">
            <img src="'
penci_get_theme_mod'penci_logo_trans' ) .'" class="custom-logo" alt="'get_bloginfo'name' ) .'">
            </a>'
;
        }
        
?>
    <?php endif; ?>
    <?php
    
if( is_page_template'page-templates/full-width.php' ) ){
        
$description_h1 get_the_title();
        if ( 
$description_h1 )  {
            echo 
'<h1 style="display: none !important;">' $description_h1 '</h1>';
        }
    } else if( 
is_front_page() || is_home() ){
        
$description_h1 get_bloginfo'desciption''display' );
        if ( 
$description_h1 )  {
            echo 
'<h1 style="display: none !important;">' $description_h1 '</h1>';
        }
    }
    
    
$description penci_get_setting'penci_header_slogan_text' );
    if ( 
$description ) : ?>
        <span class="site-description"><?php echo esc_html$description ); ?></span>
    <?php endif; ?>
</div><!-- .site-branding -->
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586