'light-list', 'label' => __('White Text', 'c9-togo'), ) ); /* add style for turning links white */ register_block_style( 'c9-blocks/grid', array( 'name' => 'light-links', 'label' => __('White Links', 'c9-togo'), ) ); /* add style for green gradient buttons */ register_block_style( 'core/button', array( 'name' => 'c9-btn-green', 'label' => __('Green Gradient', 'c9-togo'), ) ); add_action('after_setup_theme', 'c9_client_setup'); if (!function_exists('c9_client_setup')) { function c9_client_setup() { // Make specific theme colors available in the editor. add_theme_support('editor-color-palette', array( array( 'name' => 'light-gray', 'color' => '#b0b0b0', 'slug' => 'color-light-gray', ), array( 'name' => 'yellow', 'color' => '#ffe605', 'slug' => 'color-yellow', ), array( 'name' => 'faded-green', 'color' => '#7adcb4', 'slug' => 'color-faded-green', ), array( 'name' => 'green', 'color' => '#00d082', 'slug' => 'color-green', ), array( 'name' => 'dark-gray', 'color' => '#242424', 'slug' => 'color-dark-gray', ), array( 'name' => 'white', 'color' => '#ffffff', 'slug' => 'color-white', ), array( 'name' => 'orange', 'color' => '#ffb442', 'slug' => 'color-orange', ), array( 'name' => 'alt-green', 'color' => '#00ff8c', 'slug' => 'color-alt-green', ), array( 'name' => 'blue', 'color' => '#2e46d3', 'slug' => 'color-blue', ), array( 'name' => 'black', 'color' => '#000000', 'slug' => 'color-black', ) )); 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(); } /** * Apearance > Customizer for fresh sites * Customizer Sample Content */ add_theme_support( 'starter-content', array( 'attachments' => array( 'logo' => array( 'post_title' => _x('C9 Togo Logo', 'C9 Togo Logo', 'c9-togo'), 'file' => '/client/client-assets/img/c9-togo-logo-rough.svg', ), ), 'posts' => array( 'home' => array( 'comment_status' => 'closed', 'post_content' => $wp_filesystem->get_contents(get_template_directory() . '/client/content/home.html') ), 'setup' => array( 'comment_status' => 'closed', 'post_type' => 'page', 'post_title' => __('Setup', 'c9-togo'), 'post_content' => $wp_filesystem->get_contents(get_template_directory() . '/client/content/setup.html') ), 'styleguide' => array( 'comment_status' => 'closed', 'post_type' => 'page', 'post_title' => __('Style Guide', 'c9-togo'), 'post_content' => $wp_filesystem->get_contents(get_template_directory() . '/client/content/styleguide.html') ), 'blog' => array( 'post_content' => __('This page will show all of the blog posts once you have populated your database with blog items.', 'c9-togo') ), ), 'options' => array( 'show_on_front' => 'page', 'page_on_front' => '{{home}}', 'page_for_posts' => '{{blog}}', 'blogname' => 'C9 Togo', 'blogdescription' => __('A blocks-based WordPress Theme for restaurants, breweries, or dispensaries offering online ordering, pickup, togo, or local delivery with the power of WooCommerce.', 'c9-togo'), ), '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' => 'Sen:400,700,800', 'c9_subheading_font' => 'Sen:400,700,800', 'c9_body_font' => 'Sen:400,700,800', '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-togo'), 'items' => array( 'page_home', 'page_setup' => array( 'type' => 'post_type', 'object' => 'page', 'object_id' => '{{setup}}', ), 'page_styleguide' => array( 'type' => 'post_type', 'object' => 'page', 'object_id' => '{{styleguide}}', ), 'page_blog' ), ), ), 'widgets' => array( 'footerfull' => array( 'c9togo_resources' => array( 'text', array( 'title' => __('Secondary Menu', 'c9-togo'), 'text' => '' ) ), 'c9togo_company' => array( 'text', array( 'title' => __('Company Menu', 'c9-togo'), 'text' => '' ) ), 'meta_custom' => array('meta', array( 'title' => __('WordPress Meta', 'c9-togo'), )), 'c9togo_about' => array( 'text', array( 'title' => __('About C9-Togo', 'c9-togo'), '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-togo') ) ) ), 'right-sidebar' => array( 'search', 'c9togo_about' => array( 'text', array( 'title' => __('About C9-Togo', 'c9-togo'), 'text' => __('Be sure to activate the C9 Blocks Plugin and C9 Admin Dashboard 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-togo') ) ), 'meta_custom' => array('meta', array( 'title' => 'Meta Widget', )), ), 'left-sidebar' => array( 'search', 'c9togo_about' => array( 'text', array( 'title' => __('About C9-Togo', 'c9-togo'), 'text' => __('Be sure to activate the C9 Blocks Plugin and C9 Admin Dashboard 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-togo') ) ), 'meta_custom' => array('meta', array( 'title' => __('Meta Widget', 'c9-togo'), )), ), ), ) ); } } /** * Registering block patterns category with core Gutenberg blocks */ add_action('init', 'c9togo_register_block_patterns_cat'); function c9togo_register_block_patterns_cat() { if (class_exists('WP_Block_Patterns_Registry')) { register_block_pattern_category( 'COVERT NINE', array('label' => __('C9 All Patterns', 'c9-togo')) ); register_block_pattern_category( 'Video', array('label' => __('C9 Video', 'c9-togo')) ); register_block_pattern_category( 'Audio', array('label' => __('C9 Audio', 'c9-togo')) ); register_block_pattern_category( 'Article', array('label' => __('C9 Article', 'c9-togo')) ); } } /** * Registering block patterns with core Gutenberg blocks */ add_action('init', 'c9togo_register_block_patterns'); function c9togo_register_block_patterns() { if (class_exists('WP_Block_Patterns_Registry')) { register_block_pattern( 'c9-togo/c9-coming-soon-core', array( 'title' => __('Coming Soon Opt-in', 'c9-togo'), 'description' => __('Start building your audience before you launch with a coming soon page that captures emails or phone numbers.', 'c9-togo'), '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-togo/c9-video-embed-core', array( 'title' => __('Video Embed + YouTube Link', 'c9-togo'), 'description' => __('Feature a video file you upload with a link to a YouTube video link.', 'c9-togo'), '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-togo/c9-information-dialog-core', array( 'title' => __('Information Dialog Two Buttons', 'c9-togo'), 'description' => __('Highlight important information, and link to two separate places with buttons.', 'c9-togo'), '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-togo/c9-spotify-core', array( 'title' => __('Spotify Embed, Track Listing + Button', 'c9-togo'), 'description' => __('Embed a playlist, track listing or lyrics, and a button to open it up!', 'c9-togo'), '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-togo/c9-article-450-core', array( 'title' => __('Article 450 Words', 'c9-togo'), 'description' => __('Get your article laid out before writing with a 450 word placeholder and some imagery to tet you started.', 'c9-togo'), '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-togo/c9-article-600-core', array( 'title' => __('Article 600 Words', 'c9-togo'), 'description' => __('Get your article laid out before writing with a 600 word placeholder and some imagery to tet you started.', 'c9-togo'), 'content' => "\n
\n

C9 Togo 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-togo/c9-style-guide-core', array( 'title' => __('C9 Togo Style Guide', 'c9-togo'), 'description' => __('A style guide with type, buttons, and core blocks frequently used.', 'c9-togo'), '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 Togo 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') ) ); } }