array(
'post_type' => 'page',
'post_title' => esc_html_x( 'Home', 'Theme starter content', 'michelle' ),
'post_content' => self::get_content( 'home' ),
'post_excerpt' => self::get_content( 'excerpt' ),
'template' => 'templates/no-intro-header-overlaid-light.php',
),
'blog' => array(
'post_type' => 'page',
'post_excerpt' => self::get_content( 'excerpt' ),
),
'about' => array(
'post_type' => 'page',
'post_title' => esc_html_x( 'About', 'Theme starter content', 'michelle' ),
'post_content' => self::get_content( 'about' ),
'post_excerpt' => self::get_content( 'excerpt' ),
'template' => 'templates/no-intro-header-overlaid-light.php',
),
'services' => array(
'post_type' => 'page',
'post_title' => esc_html_x( 'Services', 'Theme starter content', 'michelle' ),
'post_content' => self::get_content( 'services' ),
'post_excerpt' => self::get_content( 'excerpt' ),
'template' => 'templates/no-intro.php',
),
'faq' => array(
'post_type' => 'page',
'post_title' => esc_html_x( 'FAQ', 'Theme starter content', 'michelle' ),
'post_content' => self::get_content( 'faq' ),
'post_excerpt' => self::get_content( 'excerpt' ),
'template' => 'templates/no-intro-header-overlaid-dark.php',
),
'contact' => array(
'post_type' => 'page',
'post_title' => esc_html_x( 'Contact', 'Theme starter content', 'michelle' ),
'post_content' => self::get_content( 'contact' ),
'post_excerpt' => self::get_content( 'excerpt' ),
),
);
} // /pages
/**
* Navigational menus.
*
* @since 1.0.0
* @version 1.0.12
*
* @return void
*/
public static function nav_menus() {
// Output
self::$content['nav_menus'] = array(
'primary' => array(
'name' => esc_html_x( 'Primary Menu', 'Theme starter content', 'michelle' ),
'items' => array(
'link_home',
'link_about' => array(
'title' => esc_html_x( 'About', 'Theme starter content', 'michelle' ),
'type' => 'post_type',
'object' => 'page',
'object_id' => '{{about}}',
),
'link_services' => array(
'title' => esc_html_x( 'Services', 'Theme starter content', 'michelle' ),
'type' => 'post_type',
'object' => 'page',
'object_id' => '{{services}}',
),
'link_faq' => array(
'title' => esc_html_x( 'FAQ', 'Theme starter content', 'michelle' ),
'type' => 'post_type',
'object' => 'page',
'object_id' => '{{faq}}',
),
'link_contact' => array(
'title' => esc_html_x( 'Contact', 'Theme starter content', 'michelle' ),
'type' => 'post_type',
'object' => 'page',
'object_id' => '{{contact}}',
),
'link_blog' => array(
'title' => esc_html_x( 'Blog', 'Theme starter content', 'michelle' ),
'type' => 'post_type',
'object' => 'page',
'object_id' => '{{blog}}',
),
'link_demo' => array(
'title' => '' . esc_html_x( 'Demo website', 'Theme starter content.', 'michelle' ) . '',
'url' => 'https://themedemos.webmandesign.eu/michelle/',
),
'link_documentation' => array(
'title' => '' . esc_html_x( 'User manual', 'Theme starter content.', 'michelle' ) . '',
'url' => 'https://webmandesign.github.io/docs/michelle',
),
),
),
);
} // /nav_menus
/**
* WordPress options.
*
* @since 1.0.0
* @version 1.0.5
*
* @return void
*/
public static function options() {
// Output
self::$content['options'] = array(
'show_on_front' => 'page',
'page_on_front' => '{{home}}',
'page_for_posts' => '{{blog}}',
'posts_per_page' => 6,
'custom_logo' => '{{image-logo-dark}}',
'custom_logo_light' => '{{image-logo-light}}',
'display_site_title' => false,
);
} // /options
/**
* Get starter content image URL.
*
* @since 1.0.0
*
* @param string $filename
* @param string $extension
*
* @return string
*/
public static function get_image_url( string $filename = '', string $extension = 'png' ): string {
// Output
return get_theme_file_uri( 'assets/images/starter/' . $filename . '.' . $extension . '?v' . MICHELLE_THEME_VERSION );
} // /get_image_url
/**
* Attachments.
*
* @since 1.0.4
*
* @return void
*/
public static function attachments() {
// Output
self::$content['attachments'] = array(
'image-logo-dark' => array(
'file' => 'assets/images/logo-michelle-dark.png',
),
'image-logo-light' => array(
'file' => 'assets/images/logo-michelle-light.png',
),
);
} // /attachments
}