footer and init project
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Template part for displaying the header content
|
||||
*
|
||||
@@ -13,31 +14,32 @@
|
||||
|
||||
<div>
|
||||
<?php
|
||||
if ( is_front_page() ) :
|
||||
?>
|
||||
<h1><?php bloginfo( 'name' ); ?></h1>
|
||||
<?php
|
||||
if (is_front_page()) :
|
||||
?>
|
||||
<h1><?php bloginfo('name'); ?></h1>
|
||||
<?php
|
||||
else :
|
||||
?>
|
||||
<p><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
|
||||
<?php
|
||||
?>
|
||||
<p><a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a></p>
|
||||
<?php
|
||||
endif;
|
||||
|
||||
$studio_up_description = get_bloginfo( 'description', 'display' );
|
||||
if ( $studio_up_description || is_customize_preview() ) :
|
||||
?>
|
||||
<p><?php echo $studio_up_description; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></p>
|
||||
$studio_up_description = get_bloginfo('description', 'display');
|
||||
if ($studio_up_description || is_customize_preview()) :
|
||||
?>
|
||||
<p><?php echo $studio_up_description; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
?></p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<nav id="site-navigation" aria-label="<?php esc_attr_e( 'Main Navigation', 'studio-up' ); ?>">
|
||||
<button aria-controls="primary-menu" aria-expanded="false"><?php esc_html_e( 'Primary Menu', 'studio-up' ); ?></button>
|
||||
<nav id="site-navigation" aria-label="<?php esc_attr_e('Main Navigation', 'studio-up'); ?>">
|
||||
<button aria-controls="primary-menu" aria-expanded="false"><?php esc_html_e('Primary Menu', 'studio-up'); ?></button>
|
||||
|
||||
<?php
|
||||
wp_nav_menu(
|
||||
array(
|
||||
'theme_location' => 'menu-1',
|
||||
'menu_id' => 'primary-menu',
|
||||
'theme_location' => 'header',
|
||||
'menu_class' => 'header-menu',
|
||||
'items_wrap' => '<ul id="%1$s" class="%2$s" aria-label="submenu">%3$s</ul>',
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user