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
@charset "utf-8"; | |
@import url(http://fonts.googleapis.com/css?family=Coustard|Droid+Sans:400,700); | |
/* =RESET */ | |
body,html { | |
margin: 0; | |
padding: 0; | |
height: 100%; | |
font-size: 100%; | |
font-family: 'Droid Sans', Arial, Helvetica, sans-serif; | |
} |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>HTML5 Starter</title> | |
<link rel="stylesheet" href="assets/css/main.css" type="text/css" /> | |
<!--[if lt IE 9]> | |
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> | |
</head> |
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 | |
//creates db object | |
$db = new mysqli('localhost', 'user', 'pass', 'demo'); | |
if($db->connect_errno > 0){ | |
die('Unable to connect to database'); | |
} | |
//set up query | |
$query = 'SELECT * |
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 | |
// A helper function to make generating the HTML for an error message easier | |
function sticky_field($field){ | |
if(isset($field)){ | |
echo $field; | |
} | |
} | |
function print_error($key, $errors) { | |
if (isset($errors[$key])) { |
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
<article class="tile cf graphic-design hentry PUT WORDPRESS POST_CLASS HERE"> | |
<div class="resource-image thumbnail"> <img src="http://placekitten.com/352/198" alt="TITLE"/> | |
<div class="category-icon"> <i class="icon-magic"></i> </div> | |
<div class="popularity"><a href="#"><i class="icon-heart"></i></a> 9999</div> | |
</div> | |
<h3 class="entry-title">TITLE OF RESOURCE</h3> | |
<p class="entry-content">Short description of resource</p> | |
<div class="postmeta"> | |
TAGS |
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
<article class="tile no-image cf graphic-design PUT WORDPRESS POST_CLASS HERE"> | |
<div class="popularity"><a href="#"><i class="icon-heart"></i></a> 9999</div> | |
<div class="category-icon"> <a href="CATEGORY ARCHIVE"><i class="icon-magic"></i></a> </div> | |
<h3 class="entry-title"><a href="PERMALINK">TITLE OF RESOURCE</a></h3> | |
<div class="postmeta"> | |
<span class="username"><a href="#">AUTHOR</a></span> | | |
<time datetime="2012-02-17" class="time-ago">a long time ago</time> | |
</div> | |
</article> |
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
<article class="tile cf graphic-design @TODO PUT WORDPRESS POST_CLASS HERE"> | |
<div class="resource-image thumbnail"> | |
<a href="PERMALINK"> | |
<img src="http://placekitten.com/352/198" alt="TITLE" /> | |
</a> | |
<div class="popularity"><a href="#"><i class="icon-heart"></i></a> 9999</div> | |
<div class="category-icon"> <a href="CATEGORY ARCHIVE"><i class="icon-magic"></i></a> </div> | |
</div> | |
<h3 class="entry-title"><a href="PERMALINK">TITLE OF RESOURCE</a></h3> |
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
<table class="form-table"> | |
<tbody> | |
<tr valign="top"> | |
<th scope="row"> | |
<label>Option 1</label> | |
</th> | |
<td> | |
INPUT 1 | |
</td> | |
</tr> |
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
@import url(http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,700); | |
/* | |
== meyer reset | |
*/ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, |
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 | |
//show the form if the user is not logged in | |
if( !is_user_logged_in() ): | |
wp_login_form(); | |
else: | |
$redirect = home_url(); | |
echo '<a href="'.wp_logout_url( $redirect ).'">Log Out</a>'; | |
endif; | |
?> |