Skip to content

Instantly share code, notes, and snippets.

View ntwb's full-sized avatar
🏠
Working from home

Stephen Edgar ntwb

🏠
Working from home
View GitHub Profile
@ntwb
ntwb / gist:229a1cbbbf77225a365e229c38ae699c
Created November 1, 2016 05:13 — forked from johnbillion/hierarchy.php
WordPress Template Hierarchy (as of WordPress 4.6)
<?php
/*
WordPress Template Hierarchy (as of WordPress 4.6)
is_404() ------------------------------------------------------------------------------------------------> 404.php
is_search() ---------------------------------------------------------------------------------------------> search.php
is_front_page() -----------------------------------------------------------------------------------------> front-page.php
is_home() -----------------------------------------------------------------------------------------------> home.php
@ntwb
ntwb / bbpress.scss
Last active September 30, 2018 10:41 — forked from cdils/bbpress.scss
This is quick, sassified version of the default bbPress stylesheet. I did not sassify the media queries at this point (I intend to re-work those as mobile-first for my project). Also note that I kept the original stylesheet organization. There's repition of some selectors that could be avoidded if the current organization was disregarded. :) As …
/**
* bbPress specific CSS
*
* @package bbPress
* @subpackage Theme
*/
/* =bbPress Style
-------------------------------------------------------------- */
@ntwb
ntwb / 0_reuse_code.js
Created December 14, 2015 23:45
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ntwb
ntwb / post_to_slack.php
Created October 21, 2015 00:39 — forked from AaronRutley/post_to_slack.php
post_to_slack.php
<?php
/**
* Post a message to Slack from WordPress
*
* @param string $message the message to be sent to Slack
* @param string $channel the #channel to send the message to (or @user for a DM)
* @param string $username the username for this bot eg : WordPress bot
* @param string $icon_emoji the icon emoji name for this bot eg :monkey:
*
<?php
/**
* Implementation of Wotlab Burning Board v4.x Forum Converter.
*
* @since bbPress (r5104)
* @link Codex Docs http://codex.bbpress.org/import-forums/burningboard
*/
class wbb4 extends BBP_Converter_Base {
@ntwb
ntwb / ExpressionEngine.php
Last active June 29, 2019 11:13 — forked from RickeyMessick/gist:780b857970a4bb72a79f
bbPress- Expression Engine Importer
<?php
/**
* ExpressionEngine converter base impoprter template for bbPress
*
* @since bbPress (rXXXX)
* @link Codex Docs http://codex.bbpress.org/import-forums/expression-engine
*/
class ExpressionEngine extends BBP_Converter_Base {
<?php
/**
* Plugin Name: bbPress Permalinks
* Plugin URI: http://korobochkin.com/
* Description: Change bbPress permalinks. ID number instead of topic slug. This links better than default if you have Cyrilic or other non english charackters in forum's and topic's slugs. forums/forum/FORUM_SLUG/ &rarr; forums/forum/ID/. forums/topic/TOPIC_SLUG/&rarr;forums/topic/ID/
* Author: Kolya Korobochkin
* Author URI: http://korobochkin.com/
* Version: 1.0.0
* Text Domain: bbpress_permalinks
* Domain Path: /languages/
<?php
/**
* Implementation of miniBB Forum converter.
*
* @since bbPress (rXXXX)
* @link Codex Docs http://codex.bbpress.org/import-forums/minibb
*/
class miniBB extends BBP_Converter_Base {
<?php
/**
* Implementation of Active Forums for DotNetNuke Converter
*
* @since bbPress (r4689)
*/
class DotNetNuke extends BBP_Converter_Base {
@ntwb
ntwb / Vanilla.php
Last active December 11, 2015 17:18 — forked from brokentwig/Vanilla2.php
<?php
/**
* Implementation of Vanilla 2.0.18.1 Converter
*
* @since bbPress (r4717)
* @link Codex Docs http://codex.bbpress.org/import-forums/vanilla
*/
class Vanilla extends BBP_Converter_Base {