Skip to content

Instantly share code, notes, and snippets.

View BenParizek's full-sized avatar

Ben Parizek BenParizek

View GitHub Profile
@BenParizek
BenParizek / gist:7108347
Created October 22, 2013 21:17
Example Custom Redactor Button in a Craft Plugin
<?php
namespace Craft;
class RedactorStylesPlugin extends BasePlugin
{
public function getName()
{
return Craft::t('Redactor Styles');
}
#! /usr/bin/pythonw
#
# Modified by Michael Bianco <info@cliffsidedev.com> on June 26, 2009
# Written by Thomas Pan at January 21, 2007
# mysql2graffle for Omnigraffle 5 is based on
# MyDBGraffle for OmniGraffle 4 which is based on Paul Davis' work at http://www.visualdistortion.org
#
# Requires:
#
# OmniGraffle 5
@BenParizek
BenParizek / config.php
Created July 5, 2010 22:22 — forked from leevigraham/config_bootstrap.php
Custom configuration file for ExpressionEngine 2
<?php
/**************************************************
Custom configuration bootstrap file for ExpressionEngine
1) Place config.php above site root
2) Require this bootstrap file at the bottom of the config and database files:
system/expressionengine/config/config.php
Example: require(realpath(dirname(__FILE__) . '/../../../config.php'));