Skip to content

Instantly share code, notes, and snippets.

@nickcernis
Created July 29, 2019 19:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickcernis/0151f2dfe19d8f90b26b44acda37d075 to your computer and use it in GitHub Desktop.
Save nickcernis/0151f2dfe19d8f90b26b44acda37d075 to your computer and use it in GitHub Desktop.
Revolution Pro Starter Packs config
<?php
/**
* Revolution Pro.
*
* Onboarding config shared between Starter Packs.
*
* Genesis Starter Packs give you a choice of content variation when activating
* the theme. The content below is common to all packs for this theme.
*
* @package Revolution Pro
* @author StudioPress
* @license GPL-2.0-or-later
* @link https://my.studiopress.com/themes/revolution/
*/
return array(
'plugins' => array(
array(
'name' => __( 'Atomic Blocks', 'revolution-pro' ),
'slug' => 'atomic-blocks/atomicblocks.php',
'public_url' => 'https://atomicblocks.com/',
),
array(
'name' => __( 'Simple Social Icons', 'revolution-pro' ),
'slug' => 'simple-social-icons/simple-social-icons.php',
'public_url' => 'https://wordpress.org/plugins/simple-social-icons/',
),
array(
'name' => __( 'Genesis eNews Extended (Third Party)', 'revolution-pro' ),
'slug' => 'genesis-enews-extended/plugin.php',
'public_url' => 'https://wordpress.org/plugins/genesis-enews-extended/',
),
array(
'name' => __( 'WPForms Lite (Third Party)', 'revolution-pro' ),
'slug' => 'wpforms-lite/wpforms.php',
'public_url' => 'https://wordpress.org/plugins/wpforms-lite/',
),
),
'content' => array(
'starter-packs' => array(
'post_title' => 'Starter Packs',
'post_content' => require dirname( __FILE__ ) . '/import/content/starter-packs.php',
'post_type' => 'page',
'post_status' => 'publish',
'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',
),
'about' => array(
'post_title' => 'About Us',
'post_content' => require dirname( __FILE__ ) . '/import/content/about.php',
'post_type' => 'page',
'post_status' => 'publish',
'comment_status' => 'closed',
'ping_status' => 'closed',
),
'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' => array(
'primary' => array(
'homepage' => array(
'title' => 'Home',
),
'about' => array(
'title' => 'About Us',
),
'contact' => array(
'title' => 'Contact Us',
),
),
'secondary' => array(
'starter-packs' => array(
'title' => 'Starter Packs',
),
'blocks' => array(
'title' => 'Block Examples',
),
'landing' => array(
'title' => 'Landing Page',
),
),
),
);
<?php
/**
* Revolution Pro.
*
* Onboarding config to load plugins and homepage content on theme activation.
*
* Visit `/wp-admin/admin.php?page=genesis-getting-started` to trigger import.
*
* @package Revolution Pro
* @author StudioPress
* @license GPL-2.0-or-later
* @link https://my.studiopress.com/themes/revolution/
*/
$revolution_shared_content = genesis_get_config( 'onboarding-shared' );
return array(
'starter_packs' => array(
'agency' => array(
'title' => __( 'Agency', 'revolution-pro' ),
'description' => __( 'A pack with a homepage designed for creative agencies.', 'revolution-pro' ),
'thumbnail' => get_stylesheet_directory_uri() . '/config/import/images/thumbnails/agency.jpg',
'demo_url' => 'https://demo.studiopress.com/revolution/',
'config' => array(
'dependencies' => array(
'plugins' => $revolution_shared_content['plugins'],
),
'content' => array_merge(
array(
'homepage' => array(
'post_title' => 'Homepage',
'post_content' => require dirname( __FILE__ ) . '/import/content/agency.php',
'post_type' => 'page',
'post_status' => 'publish',
'page_template' => 'page-templates/blocks.php',
'comment_status' => 'closed',
'ping_status' => 'closed',
),
),
$revolution_shared_content['content']
),
'navigation_menus' => $revolution_shared_content['navigation'],
),
),
'lifestyle-blogger' => array(
'title' => __( 'Lifestyle Blogger', 'revolution-pro' ),
'description' => __( 'A pack with a homepage made with bloggers in mind.', 'revolution-pro' ),
'thumbnail' => get_stylesheet_directory_uri() . '/config/import/images/thumbnails/lifestyle-blogger.jpg',
'demo_url' => 'https://demo.studiopress.com/revolution/lifestyle-blogger/',
'config' => array(
'dependencies' => array(
'plugins' => $revolution_shared_content['plugins'],
),
'content' => array_merge(
array(
'homepage' => array(
'post_title' => 'Homepage',
'post_content' => require dirname( __FILE__ ) . '/import/content/lifestyle.php',
'post_type' => 'page',
'post_status' => 'publish',
'page_template' => 'page-templates/blocks.php',
'comment_status' => 'closed',
'ping_status' => 'closed',
),
),
$revolution_shared_content['content']
),
'navigation_menus' => $revolution_shared_content['navigation'],
),
),
'personal-branding' => array(
'title' => __( 'Personal Branding', 'revolution-pro' ),
'description' => __( 'A pack with a homepage to elevate your personal brand.', 'revolution-pro' ),
'thumbnail' => get_stylesheet_directory_uri() . '/config/import/images/thumbnails/personal-branding.jpg',
'demo_url' => 'https://demo.studiopress.com/revolution/personal-branding/',
'config' => array(
'dependencies' => array(
'plugins' => $revolution_shared_content['plugins'],
),
'content' => array_merge(
array(
'homepage' => array(
'post_title' => 'Homepage',
'post_content' => require dirname( __FILE__ ) . '/import/content/personal.php',
'post_type' => 'page',
'post_status' => 'publish',
'page_template' => 'page-templates/blocks.php',
'comment_status' => 'closed',
'ping_status' => 'closed',
),
),
$revolution_shared_content['content']
),
'navigation_menus' => $revolution_shared_content['navigation'],
),
),
'photographer' => array(
'title' => __( 'Photographer', 'revolution-pro' ),
'description' => __( 'A pack with a homepage to show off your work.', 'revolution-pro' ),
'thumbnail' => get_stylesheet_directory_uri() . '/config/import/images/thumbnails/photographer.jpg',
'demo_url' => 'https://demo.studiopress.com/revolution/photographer/',
'config' => array(
'dependencies' => array(
'plugins' => $revolution_shared_content['plugins'],
),
'content' => array_merge(
array(
'homepage' => array(
'post_title' => 'Homepage',
'post_content' => require dirname( __FILE__ ) . '/import/content/photographer.php',
'post_type' => 'page',
'post_status' => 'publish',
'page_template' => 'page-templates/blocks.php',
'comment_status' => 'closed',
'ping_status' => 'closed',
),
),
$revolution_shared_content['content']
),
'navigation_menus' => $revolution_shared_content['navigation'],
),
),
'small-business' => array(
'title' => __( 'Small Business', 'revolution-pro' ),
'description' => __( 'A pack with a homepage to pitch your business and services.', 'revolution-pro' ),
'thumbnail' => get_stylesheet_directory_uri() . '/config/import/images/thumbnails/small-business.jpg',
'demo_url' => 'https://demo.studiopress.com/revolution/small-business/',
'config' => array(
'dependencies' => array(
'plugins' => $revolution_shared_content['plugins'],
),
'content' => array_merge(
array(
'homepage' => array(
'post_title' => 'Homepage',
'post_content' => require dirname( __FILE__ ) . '/import/content/business.php',
'post_type' => 'page',
'post_status' => 'publish',
'page_template' => 'page-templates/blocks.php',
'comment_status' => 'closed',
'ping_status' => 'closed',
),
),
$revolution_shared_content['content']
),
'navigation_menus' => $revolution_shared_content['navigation'],
),
),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment