Created
August 7, 2019 06:45
-
-
Save nickcernis/69c9a7f27519304e4bf4f005dae6dc31 to your computer and use it in GitHub Desktop.
Importing different widgets during Genesis one-click theme setup
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
<?php | |
/** | |
* Genesis Sample. | |
* | |
* Onboarding config to load plugins and homepage content on theme activation. | |
* | |
* @package Genesis Sample | |
* @author StudioPress | |
* @license GPL-2.0-or-later | |
* @link https://www.studiopress.com/ | |
*/ | |
return array( | |
'dependencies' => array( | |
'plugins' => array( | |
array( | |
'name' => __( 'AgentPress Listings', 'genesis-sample' ), | |
'slug' => 'agentpress-listings/plugin.php', | |
'public_url' => 'https://wordpress.org/plugins/agentpress-listings/', | |
), | |
array( | |
'name' => __( 'Genesis eNews Extended (Third Party)', 'genesis-sample' ), | |
'slug' => 'genesis-enews-extended/plugin.php', | |
'public_url' => 'https://wordpress.org/plugins/genesis-enews-extended/', | |
), | |
array( | |
'name' => __( 'Atomic Blocks', 'genesis-sample' ), | |
'slug' => 'atomic-blocks/atomicblocks.php', | |
'public_url' => 'https://atomicblocks.com/', | |
), | |
array( | |
'name' => __( 'Simple Social Icons', 'genesis-sample' ), | |
'slug' => 'simple-social-icons/simple-social-icons.php', | |
'public_url' => 'https://wordpress.org/plugins/simple-social-icons/', | |
), | |
array( | |
'name' => __( 'Genesis eNews Extended (Third Party)', 'genesis-sample' ), | |
'slug' => 'genesis-enews-extended/plugin.php', | |
'public_url' => 'https://wordpress.org/plugins/genesis-enews-extended/', | |
), | |
array( | |
'name' => __( 'WPForms Lite (Third Party)', 'genesis-sample' ), | |
'slug' => 'wpforms-lite/wpforms.php', | |
'public_url' => 'https://wordpress.org/plugins/wpforms-lite/', | |
), | |
), | |
), | |
'content' => array( | |
'homepage' => array( | |
'post_title' => 'Homepage', | |
'post_content' => require dirname( __FILE__ ) . '/import/content/homepage.php', | |
'post_type' => 'page', | |
'post_status' => 'publish', | |
'page_template' => 'page-templates/blocks.php', | |
'comment_status' => 'closed', | |
'ping_status' => 'closed', | |
), | |
'blocks' => array( | |
'post_title' => 'Block Content Examples', | |
'post_content' => require dirname( __FILE__ ) . '/import/content/block-examples.php', | |
'post_type' => 'page', | |
'post_status' => 'publish', | |
'comment_status' => 'closed', | |
'ping_status' => 'closed', | |
'meta_input' => array( '_genesis_layout' => 'full-width-content' ), | |
), | |
'about' => array( | |
'post_title' => 'About Us', | |
'post_content' => require dirname( __FILE__ ) . '/import/content/about.php', | |
'post_type' => 'page', | |
'post_status' => 'publish', | |
'featured_image' => CHILD_URL . '/config/import/images/about.jpg', | |
'comment_status' => 'closed', | |
'ping_status' => 'closed', | |
'meta_input' => array( '_genesis_layout' => 'full-width-content' ), | |
), | |
'contact' => array( | |
'post_title' => 'Contact Us', | |
'post_content' => require dirname( __FILE__ ) . '/import/content/contact.php', | |
'post_type' => 'page', | |
'post_status' => 'publish', | |
'comment_status' => 'closed', | |
'ping_status' => 'closed', | |
), | |
'landing' => array( | |
'post_title' => 'Landing Page', | |
'post_content' => require dirname( __FILE__ ) . '/import/content/landing-page.php', | |
'post_type' => 'page', | |
'post_status' => 'publish', | |
'page_template' => 'page-templates/landing.php', | |
'comment_status' => 'closed', | |
'ping_status' => 'closed', | |
), | |
), | |
'navigation_menus' => array( | |
'primary' => array( | |
'homepage' => array( | |
'title' => 'Home', | |
), | |
'about' => array( | |
'title' => 'About Us', | |
), | |
'contact' => array( | |
'title' => 'Contact Us', | |
), | |
'blocks' => array( | |
'title' => 'Block Examples', | |
), | |
'landing' => array( | |
'title' => 'Landing Page', | |
), | |
), | |
), | |
'widgets' => array( | |
'footer-1' => array( | |
array( | |
'type' => 'featured-post', | |
'args' => array( | |
'title' => 'Featured Posts Example', | |
'posts_cat' => '0', | |
'posts_num' => 3, | |
'posts_offset' => '0', | |
'orderby' => 'date', | |
'order' => 'DESC', | |
'gravatar_size' => '45', | |
'gravatar_alignment' => 'alignnone', | |
'image_size' => 'thumbnail', | |
'image_alignment' => 'alignnone', | |
'show_title' => '1', | |
'show_byline' => '1', | |
'post_info' => '[post_date] By [post_author_posts_link] [post_comments]', | |
'show_content' => 'excerpt', | |
'content_limit' => '0', | |
'more_text' => '[Read More...]', | |
'extra_title' => '', | |
'extra_num' => '', | |
'more_from_category_text' => 'More Posts from this Category', | |
), | |
), | |
), | |
'footer-2' => array( | |
array( | |
'type' => 'featured-listings', | |
'args' => array( | |
'title' => 'Featured Listings Example', | |
'posts_per_page' => '5', | |
), | |
), | |
), | |
'footer-3' => array( | |
array( | |
'type' => 'enews-ext', | |
'args' => array( | |
'title' => 'eNews Extended Example', | |
'action' => '#', | |
'email-field' => '#', | |
'input_text' => 'Enter Email Address ...', | |
'button_text' => 'Subscribe', | |
), | |
), | |
), | |
), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment