Skip to content

Instantly share code, notes, and snippets.

View iammerrick's full-sized avatar

Merrick Christensen iammerrick

View GitHub Profile
add_action( 'init', 'create_post_type');
function create_post_type() {
register_post_type('faqs',
array(
'labels' => array(
'name' => __( 'FAQs' ),
'singular_name' => __( 'FAQ' )
),
<?php
/*
* Template Name: FAQ Page
*/
?>
<?php get_header(); ?>
<div id="main">
<div class="title sm">
<h1 class="park">FAQ</h1>
</div>
<?php if ( ! have_posts() ) : ?>
<p>We couldn't find any resources.</p>
<?php
endif;
$in_use = array();
?>
<ul class="resources">
<?php while ( have_posts() ) : the_post(); ?>
<?php
<?php
/*
Plugin Name: Post Page Binder
Plugin URI: http://risermedia.com
Description: A way to bind posts and pages using custom meta data.
Version: 1
Author: Merrick Christensen
Author URI: http://risermedia.com
*/
array(61) {
["_wpnonce"]=>
string(10) "9fcb3ff883"
["_wp_http_referer"]=>
string(49) "/wp-admin/post.php?post=219&action=edit&message=1"
["user_ID"]=>
string(1) "1"
["action"]=>
string(8) "editpost"
["originalaction"]=>
<?php defined('SYSPATH') or die('No direct script access.');
/**
* Abstract controller class for automatic templating.
*
* @package Kohana
* @category Controller
* @author Kohana Team
* @copyright (c) 2008-2009 Kohana Team
* @license http://kohanaphp.com/license
*/
border{
top: 1px solid #fff;
bottom: 1px solid #ff0000;
}
@iammerrick
iammerrick / Main.as
Created January 4, 2011 22:54
Referencing the stage from inner classes. Singleton method.
package
{
import flash.display.MovieClip;
import Pages;
public class Main extends MovieClip
{
public static var instance:Main;
public function Main()
<?php
/**
* Logger For Ryan
*/
class Logger
{
public static function error($error)
{
$message = $error." ".__FILE__." ".__LINE__;
error_log($message);
<?php
Route::set('tenants', 'tenants(/<action>(/<id>))')
->defaults(array(
'directory' => 'tenants',
'controller' => 'directory',
'action' => 'index',
));