Skip to content

Commit

Permalink
Small revisions
Browse files Browse the repository at this point in the history
  • Loading branch information
amberweinberg committed Sep 24, 2014
1 parent 2f8754f commit f5ab63c
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 19 deletions.
7 changes: 2 additions & 5 deletions super-hijinksified/header.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
Expand All @@ -21,6 +18,6 @@
<header>
<div class="container">
<a class="logo" href="<?php bloginfo('url');?>"><img src="<?php bloginfo('template_url');?>/images/logo.jpg" alt="<?php bloginfo('title');?>"/></a>
<?php wp_nav_menu( array('menu' => 'Main', 'container' => false, )); ?>
<nav><?php wp_nav_menu( array('menu' => 'Main', 'container' => false, )); ?></nav>
</div>
</header>
21 changes: 20 additions & 1 deletion super-hijinksified/index.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,26 @@
<?php get_header(); ?>

<?php $query = new WP_Query('pagename=home'); if ( $query->have_posts() ) { while ( $query->have_posts() ) { $query->the_post(); ?>
<?php the_title();?>

<!--HERO-->

<section id="hero">
<ul class="slides">

<?php if( have_rows('slides') ): while ( have_rows('slides') ) : the_row(); ?>

<li style="background: url('<?php the_sub_field('slide_image'); ?>') no-repeat; background-size: cover;">
<div class="container">
<?php the_sub_field('slide_content'); ?>
</div>
</li>

<?php endwhile; endif; ?>

</ul>
</section>


<?php } } wp_reset_postdata(); ?>

<?php get_footer(); ?>
4 changes: 2 additions & 2 deletions super-hijinksified/searchform.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form method="get" id="searchform" action="<?php bloginfo('url'); ?>">
<p><input type="text" class="field" name="s" id="s" placeholder="Search" />
<input type="submit" class="submit" name="submit" value="search" /></p>
<input type="text" class="field" name="s" id="s" placeholder="Search" />
<input type="submit" class="submit" name="submit" value="search" />
</form>
25 changes: 14 additions & 11 deletions super-hijinksified/style.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/*
Theme Name: Super Hijinksified
Description: This theme is a combination of Hijinks (http://www.amberweinberg.com) and HTML5 Boilerplate (http://html5boilerplate.com/)
Theme URI: http://www.amberweinberg.com/super-hijinksified-lightweight-wordpress-theme-with-html5-boilerplate/
Description: This theme is a derivative of Super Hijinksified, custom coded for the client.
Author: Amber Weinberg
Author URI: http://www.amberweinberg.com
Version: 1.0
Expand All @@ -14,7 +15,7 @@ Version: 1.0
/********************************************BODY STYLES******************************************/

body {
background: url('images/bkg.jpg') #FFF;
background: #FFF;
color: #000;
font: 14px Arial, Helvetica, sans-serif;
}
Expand All @@ -32,19 +33,28 @@ h3 {
}

a {
text-decoration: none;
text-decoration: none;
-moz-transition: all .5s ease;
-webkit-transition: all .5s ease;
transition: all .5s ease;
}

a:hover {

}

.container {
clear: both;
margin: 0 auto;
max-width: 960px;
position: relative;
}

img {
height: auto;
max-width: 100%;
}

/********************************************HEADER STYLES***************************************/

header, section, footer {
Expand Down Expand Up @@ -84,11 +94,4 @@ header, section, footer {



}

/********************************************OLD IE STYLES ****************************************/


/********************************************PRINT STYLES*****************************************/

@media print{*{background:transparent!important;color:#000!important;box-shadow:none!important;text-shadow:none!important;filter:none!important;-ms-filter:none!important}a{text-decoration:underline}a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}.ir a:after{content:""}a[href^="javascript:"]:after{content:""}a[href^="#"]:after{content:""}pre{border:1px solid #999;page-break-inside:avoid}blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr{page-break-inside:avoid}img{page-break-inside:avoid;max-width:100%!important}@page{margin:.5cm}p{orphans:3;widows:3}h2{orphans:3;widows:3;page-break-after:avoid}h3{orphans:3;widows:3;page-break-after:avoid}}
}

0 comments on commit f5ab63c

Please sign in to comment.