Skip to content

Instantly share code, notes, and snippets.

View raidenz's full-sized avatar

raidenz raidenz

View GitHub Profile
@raidenz
raidenz / boilerplate-widget.php
Created September 25, 2015 07:20 — forked from eddiemoya/boilerplate-widget.php
WordPress Boilerplate Widget
<?php /*
Plugin Name: Boilerplate Widget
Description: Starting point for building widgets quickly and easier
Version: 1.0
Author: Eddie Moya
/**
* IMPORTANT: Change the class name for each widget
*/
class Boilerplate_Widget extends WP_Widget {
@raidenz
raidenz / gist:f119778b557714b3e85c
Last active August 29, 2015 14:23
earning jade
doctype html
html(lang='en')
head
meta(charset='UTF-8')
title earning
style.
body {
font-family: sans-serif;
color: #333333;
}
<IfModule mod_rewrite.c>
RewriteEngine On
# !IMPORTANT! Set your RewriteBase here and don't forget trailing and leading
# slashes.
# If your page resides at
# http://www.example.com/mypage/test1
# then use
# RewriteBase /mypage/test1/
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
@raidenz
raidenz / gist:5810cd7760995d464f61
Created February 4, 2015 16:51
frontend.class.php
<?php
#PLUGIN FRONT-END MANAGEMENT
class hslider_frontend{
#CONSTRUCT
public function __constuct(){
}
#IMPLEMENT SHORTCODE LISTENER
@raidenz
raidenz / gist:ba30c7366d1209ad8e80
Created February 4, 2015 16:50
plugin_setup.class.php
<?php
#PLUGIN CONFIG
class hslider_setup{
#CLASS VARS
private $capability = 'publish_posts';
private $plugin_name;
private $plugin_friendly_name;
private $plugin_version;
@raidenz
raidenz / gist:37caeaba8c778df2aedf
Created February 4, 2015 16:49
shortcode.class.php
<?php
#PLUGIN SHORTCODE MANAGEMENT
class hslider_shortcodes{
#CLASS VARS
private $shortcode; //plugin shortcode is the same as the plugin name
private $plugin_dir;
private $plugin_url;
private $display;