Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HEADER.PHP
- <?php
- /**
- * The Header template for our theme
- *
- * Displays all of the <head> section and everything up till <div id="main">
- *
- * @package WordPress
- * @subpackage Twenty_Twelve
- * @since Twenty Twelve 1.0
- */
- ?><!DOCTYPE html>
- <!--[if IE 7]>
- <html class="ie ie7" <?php language_attributes(); ?>>
- <![endif]-->
- <!--[if IE 8]>
- <html class="ie ie8" <?php language_attributes(); ?>>
- <![endif]-->
- <!--[if !(IE 7) | !(IE 8) ]><!-->
- <html <?php language_attributes(); ?>>
- <!--<![endif]-->
- <head>
- <meta charset="<?php bloginfo( 'charset' ); ?>" />
- <meta name="viewport" content="width=device-width" />
- <title><?php wp_title( '|', true, 'right' ); ?></title>
- <link rel="profile" href="http://gmpg.org/xfn/11" />
- <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
- <?php // Loads HTML5 JavaScript file to add support for HTML5 elements in older IE versions. ?>
- <!--[if lt IE 9]>
- <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
- <![endif]-->
- <?php wp_head(); ?>
- </head>
- <body <?php body_class(); ?>>
- <div id="page" class="hfeed site">
- <div id="mobile-header">
- </div><!-- #mobile-header -->
- <header id="masthead" class="site-header" role="banner">
- <hgroup>
- <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
- <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
- </hgroup>
- <?php if ( get_header_image() ) : ?>
- <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php header_image(); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" /></a>
- <?php endif; ?>
- </header><!-- #masthead -->
- <div id="capture-social">
- <div id="capture-box">
- <?php
- $captext_q = new WP_Query( 'page_id=109' );
- // The Loop
- if ( $captext_q->have_posts() ) :
- while ( $captext_q->have_posts() ) : $captext_q->the_post(); ?>
- <h3><?php the_title(); ?></h3>
- <?php the_content(); ?>
- <?php endwhile;
- endif;
- wp_reset_postdata();
- ?> </div><!-- capture-box -->
- </div><!-- capture-social -->
- <nav id="site-navigation" class="main-navigation" role="navigation">
- <h3 class="menu-toggle"><?php _e( 'Menu', 'twentytwelve' ); ?></h3>
- <a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentytwelve' ); ?>"><?php _e( 'Skip to content', 'twentytwelve' ); ?></a>
- <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
- </nav><!-- #site-navigation -->
- <div id="main" class="wrapper">
- ------------------------------------------------------------------
- FOOTER.PHP
- <?php
- /**
- * The template for displaying the footer
- *
- * Contains footer content and the closing of the #main and #page div elements.
- *
- * @package WordPress
- * @subpackage Twenty_Twelve
- * @since Twenty Twelve 1.0
- */
- ?>
- </div><!-- #main .wrapper -->
- <!-- Lower Navigation -->
- <nav id="lower-navigation" class="main-navigation" role="navigation">
- <h3 class="menu-toggle"><?php _e( 'Lower Menu', 'twentytwelve' ); ?></h3>
- <div class="skip-link assistive-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentytwelve' ); ?>"><?php _e( 'Skip to content', 'twentytwelve' ); ?></a></div>
- <?php wp_nav_menu( array( 'theme_location' => 'secondary', 'menu_class' => 'nav-menu', 'fallback_cb' => false ) ); ?>
- </nav><!-- #lower-navigation -->
- <footer id="colophon" role="contentinfo">
- <footer id="colophon" role="contentinfo">
- <div class="site-info">
- Copyright Connie Clay — Site design by <a href="http://artsandletters.biz">Arts & Letters</a>
- </div><!-- .site-info -->
- </footer><!-- #colophon -->
- </div><!-- #page -->
- <?php wp_footer(); ?>
- </body>
- </html>
- ----------------------------------------------------------
- NAVIGATION.JS
- // JavaScript Document
- // Lower Navigation
- ( function() {
- var button = document.getElementById( 'lower-navigation' ).getElementsByTagName( 'h3' )[0],
- menu = document.getElementById( 'lower-navigation' ).getElementsByTagName( 'ul' )[0];
- if ( undefined === button )
- return false;
- // Hide button if menu is missing or empty.
- if ( undefined === menu || ! menu.childNodes.length ) {
- button.style.display = 'none';
- return false;
- }
- button.onclick = function() {
- if ( -1 == menu.className.indexOf( 'nav-menu' ) )
- menu.className = 'nav-menu';
- if ( -1 != button.className.indexOf( 'toggled-on' ) ) {
- button.className = button.className.replace( ' toggled-on', '' );
- menu.className = menu.className.replace( ' toggled-on', '' );
- } else {
- button.className += ' toggled-on';
- menu.className += ' toggled-on';
- }
- };
- } )();
- -----------------------------------------------------
- STYLE.CSS (child theme of TwentyTwelve)
- /*
- Theme Name: Connie Clay '14
- Description: Child theme for the Twenty Twelve theme
- Author: David Borrink, Arts & Letters
- Template: twentytwelve
- */
- @import url("../twentytwelve/style.css");
- /* hide hgroup */
- hgroup {
- display: none;
- }
- /* no shaddows on images */
- .entry-content img, .comment-content img, .widget img, img.header-image, .author-avatar img, img.wp-post-image {
- border-radius: 0;
- box-shadow: none;
- }
- /* adjust header space, page size and background */
- body .site {
- box-shadow: none;
- margin-bottom: 3.42857rem;
- margin-top: 0rem;
- padding: 0 2.85714rem;
- }
- body .site {
- background-color: none;
- }
- .site-header {
- padding: 0 0 0 0rem;
- }
- .header-image {
- margin-top: 0rem;
- }
- img.header-image {
- border-radius: 0;
- box-shadow: none;
- }
- .site {
- background-color: #FCD9D2;
- }
- /* capture box and social icons*/
- #capture-social {
- }
- #capture-box {
- background-color: #FEE9E4;
- border: 1px solid #CA0B4D;
- box-shadow: 0 0 5px 0 #999999;
- display: block;
- height: 10rem;
- padding: 0.5em;
- position: absolute;
- right: 10%;
- top: 2rem;
- width: 16%;
- z-index: 9999;
- border-radius: 3px 3px 3px 3px;
- }
- #capture-box h3 {
- font-size: 2rem;
- line-height: 2.3rem;
- }
- #capture-box p {
- font-size: 1.1rem;
- line-height: 1.5rem;
- }
- #capture-text {
- width: auto;
- }
- /* typography */
- .entry-header .entry-title, .entry-title a {
- color: #CA0B4D;
- font-size: 2rem;
- }
- .entry-header {
- margin-bottom: 0.75rem;
- }
- a, a:hover {
- color: #CA0B4D;
- }
- h1, h2, h3, h4, h5, h6 {
- color: #ca0b4d;
- font-family: Georgia,serif;
- font-weight: normal;
- letter-spacing: -1px;
- line-height: 1em;
- padding-bottom: 5px;
- }
- .entry-content h1, .comment-content h1 {
- font-size: 3rem;
- line-height: 1.5;
- }
- .entry-content h2, .comment-content h2, .mu_register h2 {
- font-size: 1.5rem;
- line-height: 1.6;
- margin-bottom: 0;
- }
- body {
- color: #222222;
- }
- .archive-title, .page-title, .widget-title, .entry-content th, .comment-content th {
- color: #CA0B4D;
- font-size: 1.5rem;
- font-weight: normal;
- line-height: 1;
- text-transform: none;
- }
- .widget-area .widget h3 {
- margin-bottom: 1rem;
- -moz-hyphens: none;
- }
- .widget-area .widget a, .widget a:hover {
- color: #ca0b4d;
- }
- .entry-content p, .entry-summary p, .comment-content p, .mu_register p {
- line-height: 2;
- margin: 0 0 1.71429rem;
- }
- /* content areas */
- .site-content article {
- border-bottom: 1px solid #CA0B4D;
- margin-bottom: 5.14286rem;
- padding-bottom: 1.71429rem;
- word-wrap: normal;
- -webkit-hyphens: none;
- -moz-hyphens: none;
- hyphens: none;
- }
- .comments-link a, .entry-meta a {
- color: #CA0B4D;
- }
- footer.entry-meta {
- color: #444444;
- font-size: 0.928571rem;
- line-height: 1.84615;
- margin-top: 1.71429rem;
- }
- .entry-header .comments-link {
- color: #444444;
- font-size: 0.928571rem;
- line-height: 1.84615;
- margin-top: 0rem;
- }
- .entry-content blockquote, .comment-content blockquote {
- background: none repeat scroll 0 0 #F1BEB4;
- border-radius: 9px 9px 9px 9px;
- font-style: italic;
- margin-bottom: 1.71429rem;
- padding: 1.71429rem;
- }
- .widget-area .widget {
- word-wrap: normal;
- -webkit-hyphens: none;
- -moz-hyphens: none;
- hyphens: none;
- }
- /* footer */
- footer[role="contentinfo"] {
- border-top: 1px solid #CA0B4D;
- clear: both;
- font-size: 0.857143rem;
- line-height: 2;
- margin-left: auto;
- margin-right: auto;
- margin-top: 1.71429rem;
- max-width: 68.5714rem;
- padding: 1.71429rem 0;
- }
- /* tables */
- .entry-content table, .comment-content table {
- color: #000000;
- font-size: 1rem;
- line-height: 2;
- }
- .entry-content td, .comment-content td {
- border-top: 1px solid #BBBBBB;
- padding: 6px 10px 6px 0;
- }
- button, input, textarea {
- border: 1px solid #CCCCCC;
- border-radius: 3px 3px 3px 3px;
- font-family: inherit;
- min-width: 85%;
- padding: 0.428571rem;
- }
- #respond h3#reply-title {
- font-size: 2rem;
- line-height: 1.5;
- }
- /* remove that boring comment tags paragraph */
- #respond form p.form-allowed-tags {
- display: none;
- }
- /* Tabs Styles */
- ul.tabs {
- list-style: none;
- margin: 0;
- border-bottom: 1px solid #ca0b4d;
- }
- ul.tabs li {display: inline-block;}
- ul.tabs a {
- display: block;
- position: relative;
- top: 1px;
- padding: 5px 10px;
- border: 1px solid transparent;
- text-decoration: none;
- }
- ul.tabs a.active {
- border-color: #ca0b4d;
- border-bottom-color: #FCD9D2;
- }
- section.tab {
- display: none;
- margin-bottom: 15px;
- padding: 15px 0;
- }
- section.tab.active {display: block;}
- .entry-content li {
- margin: 0 0 0 1rem;
- }
- /* =Media queries
- -------------------------------------------------------------- */
- /* minimum width of 600 pixels. */
- @media screen and (min-width: 600px) {
- /* hide mobile 320 header */
- #mobile-header {
- display: none;
- }
- /* Navigation Styles */
- .main-navigation ul.nav-menu, .main-navigation div.nav-menu > ul {
- background: none repeat scroll 0 0 #4d001b;
- border-bottom: medium none;
- border-top: medium none;
- display: inline-block !important;
- text-align: center;
- width: 100%;
- }
- .main-navigation ul {
- margin: 0;
- text-indent: 0;
- }
- .main-navigation li a,
- .main-navigation li {
- font-family: Georgia,serif;
- display: inline-block;
- text-decoration: none;
- font-size: 1rem;
- }
- .main-navigation li a {
- border-bottom: none;
- color: #fff;
- line-height: 3.692307692;
- text-transform: none;
- white-space: nowrap;
- }
- .main-navigation li a:hover {
- color: #f6e68b;
- }
- .main-navigation li {
- margin: 0 40px 0 0;
- margin: 0 2rem 0 0;
- position: relative;
- }
- .main-navigation li ul {
- display: none;
- margin: -3rem 0 0 10rem;
- padding: 0;
- position: absolute;
- top: 100%;
- -moz-box-shadow: 0 2px 5px 2px #999999;
- -webkit-box-shadow: 0 2px 5px 2px #999999;
- box-shadow: 0 2px 5px 2px #999999;
- z-index: 1;
- }
- .main-navigation li ul ul {
- top: 0;
- left: 100%;
- }
- .main-navigation ul li:hover > ul {
- border-left: 0;
- display: block;
- }
- .main-navigation li ul li a {
- background: #4d001b;
- color: #fff;
- display: block;
- font-size: 14px;
- font-size: 1rem;
- line-height: 2.181818182;
- padding: 8px 10px;
- padding: 0.571428571rem 0.714285714rem;
- width: 140px;
- width: 10rem;
- white-space: normal;
- }
- .main-navigation li ul li a:hover {
- background: #4d001b;
- color: #f6e68b;
- }
- .main-navigation .current-menu-item > a,
- .main-navigation .current-menu-ancestor > a,
- .main-navigation .current_page_item > a,
- .main-navigation .current_page_ancestor > a {
- color: #f6e68b;
- font-weight: normal;
- }
- #capture-social {
- }
- #capture-box {
- background-color: #FEE9E4;
- border: 1px solid #CA0B4D;
- box-shadow: 0 0 5px 0 #999999;
- display: block;
- height: 11rem;
- padding: 0.5em;
- position: absolute;
- right: 6%;
- top: 2rem;
- width: 19%;
- z-index: 9999;
- border-radius: 3px 3px 3px 3px;
- }
- #capture-box h3 {
- font-size: 1.5rem;
- line-height: 1.8rem;
- }
- #capture-box p {
- font-size: 0.9rem;
- line-height: 1.3rem;
- }
- }
- /* minimum width of 960 pixels. */
- @media screen and (min-width: 960px) {
- /* hide mobile 320 header */
- #mobile-header {
- display: none;
- }
- #capture-social {
- }
- #capture-box {
- background-color: #fee9e4;
- border: 1px solid #ca0b4d;
- border-radius: 3px;
- box-shadow: 0 0 5px 0 #999999;
- display: block;
- height: 15rem;
- padding: 0.5em;
- position: absolute;
- right: 10%;
- top: 3rem;
- width: 16%;
- z-index: 9999;
- }
- }
- /* maximum width of 480 pixels. */
- @media screen and (max-width: 480px) {
- /* hide mobile 320 header */
- #mobile-header {
- display: none;
- }
- #capture-box {
- background-color: #FEE9E4;
- border: 1px solid #CA0B4D;
- border-radius: 3px 3px 3px 3px;
- box-shadow: 0 0 5px 0 #999999;
- display: block;
- height: 3rem;
- left: 8%;
- padding: 0.5em;
- position: absolute;
- top: 11rem;
- width: 83%;
- z-index: 9999;
- }
- #capture-box h3 {
- font-size: 1.3rem;
- line-height: 1.6rem;
- }
- #capture-box p {
- font-size: 1rem;
- line-height: 1rem;
- }
- .site-content {
- float: left;
- margin: 0rem 0 0;
- width: 100%;
- }
- #site-navigation {
- display: block;
- margin-top: 6rem;
- }
- .widget-area {
- float: right;
- width: 80%;
- }
- .wrapper {
- margin-top: 5%;
- }
- }
- /* maximum width of 320 pixels. */
- @media screen and (max-width: 320px) {
- /* Mobile Header 320 */
- #mobile-header {
- background: url("images/Connie-Clay-Header-250x125.jpg") no-repeat scroll center bottom transparent;
- height: 8rem;
- margin-bottom: 1.7rem;
- width: 100%;
- display: block;
- }
- /* hide main header for mobile 320 */
- .site-header {
- display: none;
- }
- #capture-box {
- background-color: #FEE9E4;
- border: 1px solid #CA0B4D;
- border-radius: 3px 3px 3px 3px;
- box-shadow: 0 0 5px 0 #999999;
- display: block;
- height: 4rem;
- padding: 0.5em;
- position: absolute;
- top: 12rem;
- width: 78%;
- z-index: 9999;
- }
- #capture-box h3 {
- font-size: 1rem;
- line-height: 1.4rem;
- }
- #capture-box p {
- font-size: 0.8rem;
- line-height: 1rem;
- }
- .site-content {
- float: left;
- width: 100%;
- }
- .site-content {
- margin: 0rem 0 0;
- }
- #site-navigation {
- display: block;
- margin-top: 7rem;
- }
- .widget-area {
- float: right;
- width: 80%;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement