forked from valendesigns/option-tree-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
executable file
·38 lines (25 loc) · 1.74 KB
/
header.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
<?php
/**
* The template for displaying the header.
*
* @package WordPress
* @subpackage OptionTree Theme
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title><?php _e( 'OptionTree Theme', 'option-tree-theme' ); ?> <?php echo OT_THEME_VERSION; ?></title>
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600&subset=latin,latin-ext&ver=<?php echo OT_THEME_VERSION; ?>" type="text/css" media="all" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php if ( ! function_exists( 'ot_get_option' ) ) { ?>
<p class="note note-danger"><?php printf( __( '%s needs to be installed! Choose an installation mode, and follow the steps below to get everything setup.', 'option-tree-theme' ), '<a href="http://wordpress.org/plugins/option-tree/" target="_blank">' . __( 'OptionTree', 'option-tree-theme' ) . '</a>' ); ?></p>
<?php } else if ( defined( 'OT_VERSION' ) && version_compare( OT_VERSION, OT_THEME_VERSION, '<' ) ) { ?>
<p class="note note-danger"><?php printf( __( 'Please upgrade! This theme requires OptionTree %s or newer and you have %s installed.', 'option-tree-theme' ), '<small>' . OT_THEME_VERSION . '</small>', '<small>' . OT_VERSION . '</small>' ); ?></p>
<?php } else if ( defined( 'OT_VERSION' ) ) { ?>
<p class="note"><?php printf( __( 'Congratulations! You\'ve successfully installed OptionTree %s.', 'option-tree-theme' ), '<small>' . OT_VERSION . '</small>' ); ?></p>
<?php } ?>
<div id="page">