Created
January 1, 2012 22:45
-
-
Save tauren/1548554 to your computer and use it in GitHub Desktop.
Sample wordpress template files
This file contains hidden or 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 get_header(); ?> | |
<div id="features" class="row"> | |
<div class="span6"> | |
<div class="feature"> | |
<h2>Registration</h2> | |
<p>Learn more about Metro 7v7 and register your team.</p> | |
<p><a class="btn danger" href="/leagues">Learn more »</a></p> | |
</div> | |
</div> | |
<div class="span5"> | |
<div class="feature"> | |
<h2>Schedules</h2> | |
<p>View the Metro 7v7 schedules and standings. </p> | |
<p><a class="btn danger" href="/schedules">View schedules »</a></p> | |
</div> | |
</div> | |
<div class="span5"> | |
<div class="feature"> | |
<h2>Questions</h2> | |
<p>Get answers to your questions in our FAQ.</p> | |
<p><a class="btn danger" href="/faq">Read FAQ »</a></p> | |
</div> | |
</div> | |
<!-- | |
<div class="span5"> | |
<h2>News</h2> | |
<p>Read the latest Metro 7v7 announcements.</p> | |
<p><a class="btn danger" href="/news">Read news »</a></p> | |
</div> | |
--> | |
</div> | |
</div> | |
<!-- <?php roots_content_before(); ?> | |
<div id="content" class="<?php echo $roots_options['container_class']; ?>"> | |
<div class="span6"> | |
<h2>Leagues</h2> | |
<p>Learn about the Metro 7v7 Men's and Women's leagues.</p> | |
<p><a class="btn danger" href="#">Learn more »</a></p> | |
</div> | |
<?php roots_main_before(); ?> | |
<div class="span10"> | |
<?php roots_loop_before(); ?> | |
<?php get_template_part('loop', 'page'); ?> | |
<?php roots_loop_after(); ?> | |
</div> | |
<?php roots_main_after(); ?> | |
</div> | |
<?php roots_content_after(); ?> | |
--> | |
<?php roots_content_before(); ?> | |
<div id="content" class="<?php echo $roots_options['container_class']; ?>"> | |
<?php roots_main_before(); ?> | |
<div id="main" class="<?php echo $roots_options['main_class']; ?>" role="main"> | |
<div class="container"> | |
<?php roots_loop_before(); ?> | |
<?php get_template_part('loop', 'page'); ?> | |
<?php roots_loop_after(); ?> | |
</div> | |
</div><!-- /#main --> | |
<?php roots_main_after(); ?> | |
<?php roots_sidebar_before(); ?> | |
<aside id="sidebar" class="<?php echo $roots_options['sidebar_class']; ?>" role="complementary"> | |
<?php roots_sidebar_inside_before(); ?> | |
<div class="container"> | |
<?php get_sidebar(); ?> | |
</div> | |
<?php roots_sidebar_inside_after(); ?> | |
</aside><!-- /#sidebar --> | |
<?php roots_sidebar_after(); ?> | |
</div><!-- /#content --> | |
<?php roots_content_after(); ?> | |
<?php get_footer(); ?> | |
This file contains hidden or 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
<!doctype html> | |
<!--[if lt IE 7]> <html class="no-js ie6 oldie" <?php language_attributes(); ?>> <![endif]--> | |
<!--[if IE 7]> <html class="no-js ie7 oldie" <?php language_attributes(); ?>> <![endif]--> | |
<!--[if IE 8]> <html class="no-js ie8 oldie" <?php language_attributes(); ?>> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<title><?php wp_title('|', true, 'right'); bloginfo('name'); ?></title> | |
<meta name="viewport" content="width=device-width,initial-scale=1"> | |
<?php roots_stylesheets(); ?> | |
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> Feed" href="<?php echo home_url(); ?>/ | |
feed/"> | |
<script src="<?php echo get_template_directory_uri(); ?>/js/libs/modernizr-2.0.6.min.js"></script> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script>window.jQuery || document.write('<script src="<?php echo get_template_directory_uri(); ?>/js/libs/jquery-1.7.1.mi | |
n.js"><\/script>')</script> | |
<?php wp_head(); ?> | |
<?php roots_head(); ?> | |
<script defer src="<?php echo get_template_directory_uri(); ?>/js/plugins.js"></script> | |
<script defer src="<?php echo get_template_directory_uri(); ?>/js/script.js"></script> | |
</head> | |
<body <?php body_class(roots_body_class()); ?> > | |
<div class="topbar"> | |
<div class="fill"> | |
<div class="container"> | |
<nav id="nav-main" role="navigation"> | |
<?php if ($roots_options['clean_menu']) { ?> | |
<?php wp_nav_menu(array('theme_location' => 'primary_navigation', 'walker' => new roots_nav_walker())); ?> | |
<?php } else { ?> | |
<?php wp_nav_menu(array('theme_location' => 'primary_navigation')); ?> | |
<?php } ?> | |
</nav> | |
</div> | |
</div> | |
</div> | |
<!-- <div class="topbar"> | |
<div class="fill"> | |
<div class="container"> | |
<a class="brand" href="#">Metro 7v7</a> | |
<ul class="nav"> | |
<li class="active"><a href="#">Home</a></li> | |
<li><a href="#about">About</a></li> | |
<li><a href="#contact">Contact</a></li> | |
</ul> | |
</div> | |
</div> | |
</div> | |
--> | |
<?php roots_wrap_before(); ?> | |
<div id="wrap" class="container" role="document"> | |
<?php roots_header_before(); ?> | |
<header id="banner" class="<?php global $roots_options; echo $roots_options['container_class']; ?>" role="banner"> | |
<?php roots_header_inside(); ?> | |
<div class="container"> | |
<a id="logo" href="<?php echo home_url(); ?>/"> | |
<img src="<?php echo get_header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_ | |
HEIGHT; ?>" alt="<?php bloginfo('name'); ?>"> | |
</a> | |
<!-- <nav id="nav-main" role="navigation"> | |
<?php if ($roots_options['clean_menu']) { ?> | |
<?php wp_nav_menu(array('theme_location' => 'primary_navigation', 'walker' => new roots_nav_walker())); ?> | |
<?php } else { ?> | |
<?php wp_nav_menu(array('theme_location' => 'primary_navigation')); ?> | |
<?php } ?> | |
</nav> | |
--> | |
<?php | |
$utility_nav = wp_get_nav_menu_object('Utility Navigation'); | |
$utility_nav_term_id = (int) $utility_nav->term_id; | |
$menu_items = wp_get_nav_menu_items($utility_nav_term_id); | |
if ($menu_items || !empty($menu_items)) { | |
?> | |
<nav id="nav-utility"> | |
<?php if ($roots_options['clean_menu']) { ?> | |
<?php wp_nav_menu(array('theme_location' => 'utility_navigation', 'walker' => new roots_nav_walker())); ?> | |
<?php } else { ?> | |
<?php wp_nav_menu(array('theme_location' => 'utility_navigation')); ?> | |
<?php } ?> | |
</nav> | |
<?php } ?> | |
</div> | |
</header> | |
<?php roots_header_after(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment