• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress a2z

WordPress a2z

WordPress Dynamic API Reference

  • Home
  • Plugins
  • Themes
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Files / inc/block-patterns.php


Lines:

1 to 100 of 205
<?php

/**
 * Block Patterns
 *
 * @link https://developer.wordpress.org/reference/functions/register_block_pattern/
 * @link https://developer.wordpress.org/reference/functions/register_block_pattern_category/
 *
 * @package WordPress
 * @subpackage Twenty_Nineteen
 * @since Twenty Nineteen 1.8
 */


/**
 * Register Block Pattern Category.
 */
if ( function_exists( 'register_block_pattern_category' ) ) {

  register_block_pattern_category(
    'twentynineteen',
    array( 'label' => esc_html__( 'Twenty Nineteen', 'twentynineteen' ) )
  );
}


/**
 * Register Block Patterns.
 */
if ( function_exists( 'register_block_pattern' ) ) {

  // About.
  register_block_pattern(
    'twentynineteen/about',
    array(
      'title'      => esc_html__( 'About', 'twentynineteen' ),
      'categories' => array( 'twentynineteen' ),
      'content'    => implode(
        '',
        array(
          '<!-- wp:paragraph {"fontSize":"huge","style":{"typography":{"lineHeight":"1.3"}}} -->',
          '<p class="has-huge-font-size" style="line-height:1.3">' . esc_html__( 'Advocating for Businesses and Entrepreneurs since 2014', 'twentynineteen' ) . '</p>',
          '<!-- /wp:paragraph -->',
          '<!-- wp:paragraph -->',
          '<p>' . esc_html__( 'Eva Young Consulting was founded in 2014 to meet the needs of small businesses in the San Francisco Bay Area. We help startups define a clear brand identity and digital strategy that will carry them through their financing rounds and scale as their business grows. Discover how we can boost your brand with a unique and powerful digital marketing strategy.', 'twentynineteen' ) . '</p>',
          '<!-- /wp:paragraph -->',
          '<!-- wp:buttons -->',
          '<div class="wp-block-buttons"><!-- wp:button {"backgroundColor":"dark-gray"} -->',
          '<div class="wp-block-button"><a class="wp-block-button__link has-dark-gray-background-color has-background">' . esc_html__( 'Learn More', 'twentynineteen' ) . '</a></div>',
          '<!-- /wp:button --></div>',
          '<!-- /wp:buttons -->',
        )
      ),
    )
  );

  // Get In Touch.
  register_block_pattern(
    'twentynineteen/get-in-touch',
    array(
      'title'      => esc_html__( 'Get In Touch', 'twentynineteen' ),
      'categories' => array( 'twentynineteen' ),
      'content'    => implode(
        '',
        array(
          '<!-- wp:paragraph {"fontSize":"huge"} -->',
          '<p class="has-huge-font-size">' . esc_html__( 'Get In Touch', 'twentynineteen' ) . '</p>',
          '<!-- /wp:paragraph -->',
          '<!-- wp:columns -->',
          '<div class="wp-block-columns"><!-- wp:column -->',
          '<div class="wp-block-column"><!-- wp:paragraph -->',
          '<p>' . esc_html__( '20 Cooper Avenue', 'twentynineteen' ) . '<br>' . esc_html__( 'New York, New York 10023', 'twentynineteen' ) . '</p>',
          '<!-- /wp:paragraph --></div>',
          '<!-- /wp:column -->',
          '<!-- wp:column -->',
          '<div class="wp-block-column"><!-- wp:paragraph -->',
          '<p>' . esc_html__( '(555) 555-5555', 'twentynineteen' ) . '<br><a href="mailto:example@example.com">' . esc_html__( 'example@example.com', 'twentynineteen' ) . '</a></p>',
          '<!-- /wp:paragraph --></div>',
          '<!-- /wp:column --></div>',
          '<!-- /wp:columns -->',
          '<!-- wp:buttons -->',
          '<div class="wp-block-buttons"><!-- wp:button {"backgroundColor":"dark-gray"} -->',
          '<div class="wp-block-button"><a class="wp-block-button__link has-dark-gray-background-color has-background">' . esc_html__( 'Contact Us', 'twentynineteen' ) . '</a></div>',
          '<!-- /wp:button --></div>',
          '<!-- /wp:buttons -->',
        )
      ),
    )
  );

  // Services.
  register_block_pattern(
    'twentynineteen/services',
    array(
      'title'      => esc_html__( 'Services', 'twentynineteen' ),
      'categories' => array( 'twentynineteen' ),
      'content'    => implode(
        '',
        array(
          '<!-- wp:heading -->',
[1] [2] [3] Next »

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      Call hooks

      File name: inc/block-patterns.php
      Plugin ref: Twenty Nineteen
      Version: 2.4
      Deprecated?: No
      API Letters: B,I,P

      Published: 10th December 2020 | Last updated: 12th September 2021

      Primary Sidebar

      Information

      File name: inc/block-patterns.php
      Plugin ref: Twenty Nineteen
      Version: 2.4
      Deprecated?: No
      API Letters: B,I,P

      inc

      Footer

      WordPress a2z
      WordPress a2z
      WordPress Dynamic API Reference
      WordPress 6.1.1. PHP: 8.0.28
      WordPress a2z
      WordPress core a2z
      Genesis Theme Framework a2z
      Jetpack a2z
      WordPress develop tests
      Easy Digital Downloads a2z
      WooCommerce a2z
      Yoast SEO a2z
      WordPress Blocks

      Site:  wp-a2z.org
      © Copyright WordPress a2z 2014-2023. All rights reserved.


      Website designed and developed by Herb Miller
      Proudly powered by WordPress and oik plugins

      • Home
      • Blog
      • Sitemap
      • Sites