Skip to content

Instantly share code, notes, and snippets.

@mattonomics
Created November 15, 2012 15:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mattonomics/4079235 to your computer and use it in GitHub Desktop.
Save mattonomics/4079235 to your computer and use it in GitHub Desktop.
New html method parameter
<?php
/*
Name: Box Name
Author: Author Name
Description: A good description of this box
Version: Box version
Class: box_class_with_underscore
*/
class box_class_with_underscore extends thesis_box {
public function translate() {
$this->title = __('Your Custom Box Title', 'custom_text_domain');
}
// this is where all the output happens!
public function html($args = false) {
extract($args = is_array($args) ? $args : array());
$tab = str_repeat("\t", !empty($depth) ? $depth : 0);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment