'black-bar', 'label' => __('Full Width Black Bar', 'c9-work'), ) ); register_block_style( 'c9-blocks/grid', array( 'name' => 'gray-diagonal', 'label' => __('Gray Diagonal Background', 'c9-work'), ) ); register_block_style( 'c9-blocks/grid', array( 'name' => 'dark-gradient-left', 'label' => __('Left Side Dark Gradient Background', 'c9-work'), ) ); register_block_style( 'core/image', array( 'name' => 'img-shadow', 'label' => __('Shadow Below', 'c9-work'), ) ); register_block_style( 'core/paragraph', array( 'name' => 'black-bar', 'label' => __('Black Bar Behind', 'c9-work'), ) ); if (!function_exists('c9_client_setup')) { function c9_client_setup() { global $wp_filesystem; // Initialize the WP filesystem, no more using 'file-put-contents' function if (empty($wp_filesystem)) { require_once(ABSPATH . '/wp-admin/includes/file.php'); require_once(ABSPATH . '/wp-admin/includes/class-wp-filesystem-base.php'); require_once(ABSPATH . '/wp-admin/includes/class-wp-filesystem-direct.php'); WP_Filesystem(); } add_theme_support( 'starter-content', array( 'attachments' => array( 'logo' => array( 'post_title' => _x('C9 Work Logo', 'C9 Work Logo', 'c9-work'), 'file' => '/client/client-assets/img/c9-work-white-logo.svg', ), 'dark-logo' => array( 'post_title' => _x('C9 Work Dark Logo', 'C9 Work Dark Logo', 'c9-work'), 'file' => '/client/client-assets/img/c9-work-dark-logo.svg', ), ), 'posts' => array( 'home' => array( 'comment_status' => 'closed', 'post_content' => $wp_filesystem->get_contents(get_template_directory() . '/client/content/home.html') ), 'about' => array( 'comment_status' => 'closed', 'post_type' => 'page', 'post_title' => __('Our History', 'c9-work'), 'post_content' => $wp_filesystem->get_contents(get_template_directory() . '/client/content/about.html') ), 'setup' => array( 'comment_status' => 'closed', 'post_type' => 'page', 'post_title' => __('Setup Guide', 'c9-work'), 'post_content' => $wp_filesystem->get_contents(get_template_directory() . '/client/content/setup.html') ), 'services' => array( 'comment_status' => 'closed', 'post_type' => 'page', 'post_title' => __('Services', 'c9-work'), 'post_content' => $wp_filesystem->get_contents(get_template_directory() . '/client/content/services.html') ), 'styleguide' => array( 'comment_status' => 'closed', 'post_type' => 'page', 'post_title' => __('Style Guide', 'c9-work'), 'post_content' => $wp_filesystem->get_contents(get_template_directory() . '/client/content/styleguide.html') ), 'contact' => array( 'comment_status' => 'closed', 'post_content' => $wp_filesystem->get_contents(get_template_directory() . '/client/content/contact.html') ), 'news' => array( 'post_content' => __('This page will show all of the news posts once you have populated your database with news items.', 'c9-work') ), ), 'options' => array( 'show_on_front' => 'page', 'page_on_front' => '{{home}}', 'page_for_posts' => '{{news}}', 'blogname' => 'C9 Work', 'blogdescription' => __('A WordPress Theme for small businesses with WooCommerce product catalogs, forms, and mega menu support.', 'c9-work'), ), 'theme_mods' => array( 'custom_logo' => '{{logo}}', 'c9_show_search' => 'show', 'c9_copyright_content' => '© 2020. WordPress Website design by COVERT NINE.', 'c9_default_font' => 'yes', 'c9_heading_font' => 'Bebas+Neue', 'c9_subheading_font' => 'Lobster', 'c9_body_font' => '', 'c9_author_visible' => 'hide', 'c9_blog_sidebar' => 'hide', 'c9_archive_sidebar' => 'hide', 'c9_show_social' => 'show', 'c9_twitter' => '#', 'c9_instagram' => '#', 'c9_spotify' => '#', 'c9_youtube' => '#', 'c9_linkedin' => '#', ), 'nav_menus' => array( 'primary' => array( 'name' => __('Top Navigation Menu', 'c9-work'), 'items' => array( 'page_home', 'page_about' => array( 'type' => 'post_type', 'object' => 'page', 'object_id' => '{{about}}', ), 'page_setup' => array( 'type' => 'post_type', 'object' => 'page', 'object_id' => '{{setup}}', ), 'page_services' => array( 'type' => 'post_type', 'object' => 'page', 'object_id' => '{{services}}', ), 'page_styleguide' => array( 'type' => 'post_type', 'object' => 'page', 'object_id' => '{{styleguide}}', ), 'page_news', 'page_contact', ), ), ), 'widgets' => array( 'footerfull' => array( 'c9work_resources' => array( 'text', array( 'title' => __('Resources Menu', 'c9-work'), 'text' => '' ) ), 'c9work_company' => array( 'text', array( 'title' => __('Company Menu', 'c9-work'), 'text' => '' ) ), 'meta_custom' => array('meta', array( 'title' => __('WordPress Meta', 'c9-work'), )), 'c9work_about' => array( 'text', array( 'title' => __('About C9 Work Theme', 'c9-work'), 'text' => __('Be sure to activate the C9 Blocks Plugin during theme setup. The blocks plugin includes the custom WordPress blocks for tabs, toggles, and the responsive grid system that makes the theme look super duper.', 'c9-work'), ) ) ), 'right-sidebar' => array( 'search', 'c9work_about' => array( 'text', array( 'title' => 'About C9 Work Theme', 'text' => 'Be sure to activate the C9 Blocks Plugin during theme setup. The blocks plugin includes the custom WordPress blocks for tabs, toggles, and the responsive grid system that makes the theme look super duper.' ) ), 'meta_custom' => array('meta', array( 'title' => 'Meta Widget', )), ), 'left-sidebar' => array( 'search', 'c9work_about' => array( 'text', array( 'title' => 'About C9 Work Theme', 'text' => 'Be sure to activate the C9 Blocks Plugin during theme setup. The blocks plugin includes the custom WordPress blocks for tabs, toggles, and the responsive grid system that makes the theme look super duper.' ) ), 'meta_custom' => array('meta', array( 'title' => 'Meta Widget', )), ), ), ) ); add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link', ) ); // Make specific theme colors available in the editor. add_theme_support('editor-color-palette', array( array( 'name' => 'orange', 'color' => '#E8983A', 'slug' => 'color-orange', ), array( 'name' => 'yellow', 'color' => '#FEC50A', 'slug' => 'color-yellow', ), array( 'name' => 'gray', 'color' => '#ADB1B2', 'slug' => 'color-gray', ), array( 'name' => 'white', 'color' => '#ffffff', 'slug' => 'color-white', ), array( 'name' => 'black', 'color' => '#000000', 'slug' => 'color-black', ), )); } } add_action('after_setup_theme', 'c9_client_setup'); /** * Registering block patterns category with core Gutenberg blocks */ add_action('init', 'c9starter_register_block_patterns_cat'); function c9starter_register_block_patterns_cat() { if (class_exists('WP_Block_Patterns_Registry')) { register_block_pattern_category( 'COVERT NINE', array('label' => __('C9 All Patterns', 'c9-work')) ); register_block_pattern_category( 'Video', array('label' => __('C9 Video', 'c9-work')) ); register_block_pattern_category( 'Audio', array('label' => __('C9 Audio', 'c9-work')) ); register_block_pattern_category( 'Article', array('label' => __('C9 Article', 'c9-work')) ); } } /** * Registering block patterns with core Gutenberg blocks */ add_action('init', 'c9work_register_block_patterns'); function c9work_register_block_patterns() { if (class_exists('WP_Block_Patterns_Registry')) { register_block_pattern( 'c9-work/c9-coming-soon-core', array( 'title' => __('Coming Soon Opt-in', 'c9-work'), 'description' => __('Start building your audience before you launch with a coming soon page that captures emails or phone numbers.', 'c9-work'), 'keywords' => array('landing page', 'page', 'template', 'splash', 'coming soon'), 'content' => "\n
\n
\"\"
\n\n\n\n

Something Great is Coming Soon

\n\n\n\n
\n\n\n\n

Click the button below to get notified via email when we're up and running

\n\n\n\n
\n\n\n\n\n
\n", 'categories' => array('COVERT NINE', 'header', 'buttons', 'text') ), ); register_block_pattern( 'c9-work/c9-video-embed-core', array( 'title' => __('Video Embed + YouTube Link', 'c9-work'), 'description' => __('Feature a video file you upload with a link to a YouTube video link.', 'c9-work'), 'content' => "\n
\n

Using C9 Blocks Plugin

\n\n\n\n

If you haven't, we highly recommend installing the C9 Blocks and C9 Admin Dashboard Plugins. For animations, and additional child theme features like a single page animated website, get on the C9 email list.

\n\n\n\n\n
\n", 'categories' => array('COVERT NINE', 'Video', 'header', 'buttons') ), ); register_block_pattern( 'c9-work/c9-information-dialog-core', array( 'title' => __('Information Dialog Two Buttons', 'c9-work'), 'description' => __('Highlight important information, and link to two separate places with buttons.', 'c9-work'), 'content' => "\n
\n

C9 — Group Block

\n\n\n\n
\n\n\n\n

COVERT NINE - The nine essentials ingredients for good digital marketing. Copywriting, Design, Development, SEO, PPC, Social Media, Email, Videos, Photograph

\n\n\n\n

Orci eu lobortis elementum nibh tellus molestie. Tellus cras adipiscing enim eu turpis egestas pretium aenean pharetra. Orci eu lobortis elementum nibh tellus molestie. Tellus cras adipiscing enim eu turpis egestas pretium aenean pharetra. Orci eu lobortis elementum nibh tellus molestie. Tellus cras adipiscing enim eu turpis egestas pretium aenean pharetra.

\n\n\n\n
\n\n\n\n\n\n\n\n
\n
\n", 'categories' => array('COVERT NINE', 'text', 'buttons') ), ); register_block_pattern( 'c9-work/c9-spotify-core', array( 'title' => __('Spotify Embed, Track Listing + Button', 'c9-work'), 'description' => __('Embed a playlist, track listing or lyrics, and a button to open it up!', 'c9-work'), 'content' => "\n
\n
\n
\nhttps://open.spotify.com/album/4wNkTCWvNYJr8BL4obFo3y?si=YyBupJfnSi2lGBg_71TvGQ\n
\n
\n\n\n\n
\n
Spotify Stream Block
\n\n\n\n\n\n\n\n\n
\n
\n", 'categories' => array('COVERT NINE', 'Audio') ), ); register_block_pattern( 'c9-work/c9-article-450-core', array( 'title' => __('Article 450 Words', 'c9-work'), 'description' => __('Get your article laid out before writing with a 450 word placeholder and some imagery to tet you started.', 'c9-work'), 'content' => "\n
\"\"
Full Width Image Block C9 Logo + Photo CC0.
\n\n\n\n
\n\n\n\n
\n
\n

Author Name
Author Title

\n\n\n\n
December 16th, 2084
\n\n\n\n
\n
\n\n\n\n
\n

Dum velit laoreet id donec. In fermentum posuere urna nec tincidunt praesent. Amet purus gravida quis blandit turpis cursus in. Tincidunt tortor aliquam nulla facilisi.

\n\n\n\n

Paragraphs inside of columns. Cras fermentum odio. Facilisi nullam vehicula ipsum a arcu cursus vitae. Id leo in vitae turpis massa sed elementum tempus. Facilisis leo vel fringilla est ullamcorper eget nulla facilisi.

\n\n\n\n

Orci eu lobortis elementum nibh tellus molestie.

\n\n\n\n

Orci eu lobortis elementum nibh tellus molestie. Tellus cras adipiscing enim eu turpis egestas pretium aenean pharetra. Eu volutpat odio facilisis mauris sit amet massa.

No one actually said this--Tim
\n\n\n\n
\n\n\n\n

Heading inside of article

\n\n\n\n

Orci eu lobortis elementum nibh tellus molestie. Tellus cras adipiscing enim eu turpis egestas pretium aenean pharetra. Eu volutpat odio facilisis mauris sit amet massa. Nec feugiat in fermentum posuere urna nec tincidunt.

\n\n\n\n

Facilisi cras fermentum odio eu feugiat pretium nibh ipsum. Feugiat nibh sed pulvinar proin gravida hendrerit lectus a. Nibh sit amet commodo nulla facilisi nullam vehicula ipsum a.

\n\n\n\n

In fermentum posuere urna nec. Velit scelerisque in dictum non consectetur a erat nam. Gravida dictum fusce ut placerat orci. Mattis molestie a iaculis at erat pellentesque adipiscing commodo. In eu mi bibendum neque egestas congue quisque egestas diam.

\n\n\n\n

Vel fringilla est ullamcorper eget nulla. Lacinia at quis risus sed vulputate odio ut enim blandit. Ut pharetra sit amet aliquam id diam. Tristique nulla aliquet enim tortor at auctor. Justo nec ultrices dui sapien. Sollicitudin aliquam ultrices sagittis orci a scelerisque purus semper eget. Dictum sit amet justo donec.

\n
\n\n\n\n
\n
\n\n\n\n
\n
\n
\"\"
Photo Caption
\n\n\n\n

Bring complex landing pages to life in minutes from section + page templates or build pages from scratch using C9 Grid and C9 Post Grid blocks. But, you can't do that if you don't download C9 Blocks when you install the C9 Theme.

\n\n\n\n

This layout uses core blocks from WordPress including columns, images, paragraphs, and more paragraphs!

\n\n\n\n

Now go make your own theme!

\n\n\n\n
\"\"
\n
\n\n\n\n
\n
\"\"
Photo Caption
\n\n\n\n

Orci eu lobortis elementum nibh tellus molestie. Tellus cras adipiscing enim eu turpis egestas pretium aenean pharetra. Eu volutpat odio facilisis mauris sit amet massa. Nec feugiat in fermentum posuere urna nec tincidunt. Quam pellentesque nec nam aliquam sem. Ut diam quam nulla porttitor massa id neque aliquam vestibulum. Mauris augue neque gravida in fermentum et. Risus commodo viverra maecenas accumsan.

\n\n\n\n

Elit eget gravida cum sociis natoque penatibus. Ullamcorper a lacus vestibulum sed arcu non odio euismod lacinia. Nec sagittis aliquam malesuada bibendum arcu vitae elementum. Id cursus metus aliquam eleifend mi in nulla posuere.

\n\n\n\n

Nec tincidunt praesent semper feugiat nibh sed pulvinar. Facilisi cras fermentum odio eu feugiat pretium nibh ipsum. Feugiat nibh sed pulvinar proin gravida hendrerit lectus a.

\n\n\n\n

Nibh sit amet commodo nulla facilisi nullam vehicula ipsum a.

\n\n\n\n

Share with your bestie

\n\n\n\n\n
\n
\n", 'categories' => array('COVERT NINE', 'Article', 'text', 'header', 'columns') ), ); register_block_pattern( 'c9-work/c9-article-600-core', array( 'title' => __('Article 600 Words', 'c9-work'), 'description' => __('Get your article laid out before writing with a 600 word placeholder and some imagery to tet you started.', 'c9-work'), 'content' => "\n
\n

C9 Starter Article Block Pattern

\n
\n\n\n\n
\n
\n

Author Name
Author Title

\n\n\n\n
December 16th, 2084
\n\n\n\n
\n
\n\n\n\n
\n

Dum velit laoreet id donec. In fermentum posuere urna nec tincidunt praesent. Amet purus gravida quis blandit turpis cursus in. Tincidunt tortor aliquam nulla facilisi.

\n\n\n\n

Paragraphs inside of columns. Cras fermentum odio. Facilisi nullam vehicula ipsum a arcu cursus vitae. Id leo in vitae turpis massa sed elementum tempus. Facilisis leo vel fringilla est ullamcorper eget nulla facilisi.

\n\n\n\n

Maecenas accumsan lacus vel facilisis volutpat. Arcu risus quis varius quam quisque. Semper feugiat nibh sed pulvinar. Molestie a iaculis at erat pellentesque. Ullamcorper malesuada proin libero nunc consequat interdum varius sit. Nisl nisi scelerisque eu ultrices vitae auctor eu augue. Orci sagittis eu volutpat odio facilisis mauris sit. Senectus et netus et malesuada fames.

\n\n\n\n

Orci eu lobortis elementum nibh tellus molestie.

\n\n\n\n

Orci eu lobortis elementum nibh tellus molestie. Tellus cras adipiscing enim eu turpis egestas pretium aenean pharetra. Eu volutpat odio facilisis mauris sit amet massa.

No one actually said this--Tim
\n\n\n\n
\n\n\n\n
\"\"
Photo is CC0.
\n\n\n\n

Heading inside of article

\n\n\n\n

Orci eu lobortis elementum nibh tellus molestie. Tellus cras adipiscing enim eu turpis egestas pretium aenean pharetra. Eu volutpat odio facilisis mauris sit amet massa. Nec feugiat in fermentum posuere urna nec tincidunt.

\n\n\n\n

Facilisi cras fermentum odio eu feugiat pretium nibh ipsum. Feugiat nibh sed pulvinar proin gravida hendrerit lectus a. Nibh sit amet commodo nulla facilisi nullam vehicula ipsum a.

\n\n\n\n

In fermentum posuere urna nec. Velit scelerisque in dictum non consectetur a erat nam. Gravida dictum fusce ut placerat orci. Mattis molestie a iaculis at erat pellentesque adipiscing commodo. In eu mi bibendum neque egestas congue quisque egestas diam.

\n\n\n\n

Vel fringilla est ullamcorper eget nulla. Lacinia at quis risus sed vulputate odio ut enim blandit. Ut pharetra sit amet aliquam id diam. Tristique nulla aliquet enim tortor at auctor. Justo nec ultrices dui sapien. Sollicitudin aliquam ultrices sagittis orci a scelerisque purus semper eget. Dictum sit amet justo donec.

\n\n\n\n
\n\n\n\n

Now share this article or my boss will yell at me.

\n
\n\n\n\n
\n
\"\"
\n
\n
\n\n\n\n\n", 'categories' => array('COVERT NINE', 'Article', 'text', 'header', 'columns') ), ); register_block_pattern( 'c9-work/c9-style-guide-core', array( 'title' => __('C9 Work Style Guide', 'c9-work'), 'description' => __('A style guide with type, buttons, and core blocks frequently used.', 'c9-work'), 'content' => "\n
\n

Know where you're going?
C9 Helper Style Guide

\n\n\n\n\n\n\n\n
\n\n\n
\n\n\n\n
\n
\n
\n

Three calls to action so your visitors can pick their lane, and what they want to see next.

\n\n\n\n\n
\n\n\n\n
\n

Sign up for a newsletter or hit the most popular category of your shop.

\n\n\n\n\n
\n\n\n\n
\n

Consider your three most popular user paths and use those links in these three buttons.

\n\n\n\n\n
\n
\n
\n\n\n\n
\n\n\n\n

C9 Work Core Blocks Typography

\n\n\n\n
\n
\n

Heading One

\n\n\n\n

Heading Two

\n\n\n\n

Heading Three

\n\n\n\n

Heading Four

\n\n\n\n
Heading Five
\n\n\n\n
Heading Six
\n\n\n\n

Heading One

\n\n\n\n

Heading Two

\n\n\n\n

Heading Three

\n\n\n\n

Heading Four

\n\n\n\n
Heading Five
\n\n\n\n
Heading Six
\n
\n\n\n\n
\n

Small Font Paragraph. There are more heading styles, large fonts, subheadings, and more in the C9 Blocks Plugin. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

\n\n\n\n

Pat enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

\n\n\n\n

Normal Font Paragraph. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

\n\n\n\n

Medium Font Paragraph. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

\n\n\n\n

Large Font Paragraph. Ut enim ad minim veniam, quis nostrud.

\n\n\n\n

Large Font Paragraph. Ut enim ad minim veniam, quis.

\n
\n
\n\n\n\n
\n
\n
Ordered List
\n\n\n\n
  1. List Item
  2. List Item
  3. There are more heading styles, large fonts, subheadings, and more in the C9 Blocks Plugin.
  4. List Item
\n
\n\n\n\n
\n
Unordered List
\n\n\n\n\n
\n
\n\n\n\n
Separators (HR)
\n\n\n\n
\n\n\n\n
\n\n\n\n
\n\n\n\n
\n\n\n\n
\n\n\n\n
\n", 'categories' => array('COVERT NINE', 'Article', 'text', 'header', 'columns') ), ); } }