Skip to content

Instantly share code, notes, and snippets.

Joel Cloralt joelcloralt

Block or report user

Report or block joelcloralt

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@joelcloralt
joelcloralt / App.js
Last active Aug 29, 2015
ReactJS Flux
View App.js
'use strict';
var React = require('react/addons');
var RouteHandler = require('react-router').RouteHandler;
var DocumentTitle = require('react-document-title');
var projectActions = require('./actions/projectActions');
var ProjectStore = require('./stores/projectStore');
var Header = require('./components/header');
var Footer = require('./components/footer');
var Bootstrap = require('./libraries/bootstrap/');
var BootstrapTheme = require('./libraries/bootstrap_theme.min/');
@joelcloralt
joelcloralt / functions.php
Created Feb 28, 2012
Create Wordpress Page on Theme Activation
View functions.php
// Create a page on theme activation
function privateMessagePage () {
$default_pages = array('This content is private'); //Page Title
$existing_pages = get_pages();
$temp = array();
foreach ($existing_pages as $page) {
@joelcloralt
joelcloralt / EmptyWidget.php
Created Jan 25, 2012 — forked from Jonathonbyrd/CustomWidgetFile.php
Plugin code to create a single widget in wordpress.
View EmptyWidget.php
<?php
/**
* @package RedRokk
* @version 1.0.0
*
* Plugin Name: Empty Widget
* Description: Single Widget Class handles all of the widget responsibility, all that you need to do is create the html. Just use Find/Replace on the Empty_Widget keyword to rebrand this class for your needs.
* Author: RedRokk Interactive Media
* Version: 1.0.0
* Author URI: http://www.redrokk.com
You can’t perform that action at this time.