|
9 | 9 | <header id="masthead" class="site-header" role="banner"> |
10 | 10 | <div class="site-branding"> |
11 | 11 | <?php |
12 | | - twentyfifteen_the_custom_logo(); |
13 | | - if ( is_front_page() && is_home() ) : ?> |
14 | | - <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> |
15 | | - <?php else : ?> |
16 | | - <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p> |
17 | | - <?php endif; |
18 | | - $description = get_bloginfo( 'description', 'display' ); |
19 | | - if ( $description || is_customize_preview() ) : ?> |
20 | | - <p class="site-description"><?php echo $description; ?></p> |
21 | | - <?php endif; |
| 12 | + if (function_exists("twentyfifteen_the_custom_logo") && |
| 13 | + function_exists("is_front_page") && |
| 14 | + function_exists("is_home") && |
| 15 | + function_exists("esc_url") && |
| 16 | + function_exists("home_url") && |
| 17 | + function_exists("bloginfo") && |
| 18 | + function_exists("get_bloginfo") && |
| 19 | + function_exists("is_customize_preview")) |
| 20 | + { |
| 21 | + twentyfifteen_the_custom_logo(); |
| 22 | + if ( is_front_page() && is_home() ) : ?> |
| 23 | + <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> |
| 24 | + <?php else : ?> |
| 25 | + <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p> |
| 26 | + <?php endif; |
| 27 | + $description = get_bloginfo( 'description', 'display' ); |
| 28 | + if ( $description || is_customize_preview() ) : ?> |
| 29 | + <p class="site-description"><?php echo $description; ?></p> |
| 30 | + <?php endif; |
| 31 | + } |
22 | 32 | ?> |
23 | | - <button class="secondary-toggle"><?php _e( 'Menu and widgets', 'RPCS3' ); ?></button> |
| 33 | + <button class="secondary-toggle"><?php if (function_exists("_e")) _e( 'Menu and widgets', 'RPCS3' ); ?></button> |
24 | 34 | </div> |
25 | 35 | </header> |
26 | | - <?php get_sidebar(); ?> |
| 36 | + <?php if (function_exists("get_sidebar")) get_sidebar(); ?> |
27 | 37 | </div> |
28 | 38 | </div> |
29 | 39 | </div> |
0 commit comments