Created
November 15, 2012 15:38
-
-
Save mattonomics/4079235 to your computer and use it in GitHub Desktop.
New html method parameter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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