Created
March 24, 2014 09:11
-
-
Save Spoygg/9736835 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
include_once get_template_directory() . '/library/class_upfront_debug.php'; | |
include_once get_template_directory() . '/library/class_upfront_server.php'; | |
include_once get_template_directory() . '/library/class_upfront_theme.php'; | |
class Issue_Theme extends Upfront_ChildTheme | |
{ | |
public function initialize() { | |
// $this->add_actions_filters(); | |
// $this->populate_pages(); | |
$this->add_required_page( | |
'about', | |
'about', | |
array( | |
'post_title' => 'About', | |
'post_content' => 'This is default content.' | |
), | |
'' | |
); | |
$this->add_required_page( | |
'contact', | |
'contact', | |
array( | |
'post_title' => 'Contact', | |
'post_content' => 'This is default content.' | |
), | |
'' | |
); | |
$this->add_required_page( | |
'error-404', | |
'error-404', | |
array( | |
'post_title' => 'Error 404', | |
'post_content' => 'This is default content.' | |
), | |
'' | |
); | |
$this->add_required_page( | |
'faq', | |
'faq', | |
array( | |
'post_title' => 'FAQ', | |
'post_content' => 'This is default content.' | |
), | |
'' | |
); | |
$this->add_required_page( | |
'gallery', | |
'gallery', | |
array( | |
'post_title' => 'Gallery', | |
'post_content' => 'This is default content.' | |
), | |
'' | |
); | |
} | |
public function get_prefix(){ | |
return 'issue'; | |
} | |
public static function serve(){ | |
return new self(); | |
} | |
} | |
Issue_Theme::serve(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment