Skip to content

Instantly share code, notes, and snippets.

@Spoygg
Created March 24, 2014 09:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Spoygg/9736835 to your computer and use it in GitHub Desktop.
Save Spoygg/9736835 to your computer and use it in GitHub Desktop.
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