Skip to content

Instantly share code, notes, and snippets.

@steweir
steweir / form.html
Last active December 21, 2023 06:57 — forked from redclov3r/index.html
Fancy Forms
<h1>Fancy Form</h1>
<form>
<fieldset>
<legend> Classic Inputs</legend>
<p>First we'll start off with some classic textinput fields for single lines, passwords and multiline-text. These have been around for a long time and form a backbone for most webforms.</p>
<p>
<input type="text" id="textinput" />
<label for="textinput">Input (text)</label>
</p>
<p>
@steweir
steweir / Starting Templte
Created January 21, 2013 00:07
HTML : Starting Template
<html>
<title> </title>
<head></head>
<body>
<header>
<div class="main"></div>
<div class="sidebar"></div>
</header>
</body>
<footer></footer>
@steweir
steweir / search
Created June 4, 2013 12:10
Responsive search box
@steweir
steweir / functions.php
Created June 5, 2013 13:19
Get posts with custom taxonomy
/**
* Conditional function to check if post belongs to term in a custom taxonomy.
*
* @param tax string Taxonomy to which the term belons
* @param term int|string|array Attributes of shortcode
* @param _post int Post id to be checked
* @return BOOL True if term is matched, false otherwise
*/
function pa_in_taxonomy($tax, $term, $_post = NULL) {