Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
tersus/header.php
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
55 lines (53 sloc)
1.63 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @package WordPress | |
* @subpackage Tersus | |
*/ | |
?> | |
<!DOCTYPE html> | |
<html <?php language_attributes(); ?>> | |
<head> | |
<meta charset="<?php bloginfo('charset'); ?>" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>?2023012700" type="text/css" media="screen" /> | |
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> | |
<link rel="profile" href="https://gmpg.org/xfn/11" /> | |
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?> | |
<?php wp_head(); ?> | |
</head> | |
<body <?php body_class(); ?>> | |
<?php | |
if (function_exists('wp_body_open')) { | |
wp_body_open(); | |
} | |
?> | |
<header> | |
<?php if (get_option('tersus_announcement_display') == "1"): ?> | |
<section id="announcement"> | |
<?php | |
$tersus_announcement = get_option('tersus_announcement'); | |
echo (stripslashes($tersus_announcement)); | |
?> | |
</section> | |
<?php endif; ?> | |
<?php if ((is_home() || is_front_page()) && !is_paged()) : ?> | |
<h1><?php bloginfo('name'); ?></h1> | |
<?php else : ?> | |
<h1><a href="<?php echo esc_url(home_url()); ?>/" title="Back to the home page"><?php bloginfo('name'); ?></a></h1> | |
<?php endif; ?> | |
<p><?php bloginfo('description'); ?></p> | |
</header> | |
<?php if (get_option('tersus_navigation_display') == "1"): ?> | |
<nav role="navigation"> | |
<?php | |
echo strip_tags(wp_nav_menu(array( | |
'container' => false, | |
'echo' => true, | |
'items_wrap' => '<ul>%3$s</ul>', | |
'depth' => 0, | |
'fallback_cb' => false, | |
'theme_location' => 'header-menu', | |
)), '<a>' ); | |
?> | |
</nav> | |
<?php endif; ?> |