[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-content/themes/twentytwentytwo/inc/patterns/ -> page-about-links.php (source)

   1  <?php
   2  /**
   3   * About page links
   4   */
   5  return array(
   6      'title'      => __( 'About page links', 'twentytwentytwo' ),
   7      'categories' => array( 'pages', 'buttons' ),
   8      'content'    => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"10rem","bottom":"10rem"}}},"layout":{"inherit":false,"contentSize":"400px"}} -->
   9                      <div class="wp-block-group alignfull" style="padding-top:10rem;padding-bottom:10rem;"><!-- wp:image {"align":"center","width":100,"height":100,"sizeSlug":"full","linkDestination":"none","className":"is-style-rounded"} -->
  10                      <div class="wp-block-image is-style-rounded"><figure class="aligncenter size-full is-resized"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/icon-bird.jpg" alt="' . esc_attr__( 'Logo featuring a flying bird', 'twentytwentytwo' ) . '" width="100" height="100"/></figure></div>
  11                      <!-- /wp:image -->
  12  
  13                      <!-- wp:group -->
  14                      <div class="wp-block-group">
  15  
  16                      <!-- wp:heading {"textAlign":"center","style":{"typography":{"fontSize":"var(--wp--custom--typography--font-size--huge, clamp(2.25rem, 4vw, 2.75rem))"}}} -->
  17                      <h2 class="has-text-align-center" style="font-size:var(--wp--custom--typography--font-size--huge, clamp(2.25rem, 4vw, 2.75rem))">' . esc_html__( 'Swoop', 'twentytwentytwo' ) . '</h2>
  18                      <!-- /wp:heading -->
  19  
  20                      <!-- wp:paragraph {"align":"center"} -->
  21                      <p class="has-text-align-center">' . esc_html__( 'A podcast about birds', 'twentytwentytwo' ) . '</p>
  22                      <!-- /wp:paragraph -->
  23  
  24                      <!-- wp:spacer {"height":40} -->
  25                      <div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>
  26                      <!-- /wp:spacer -->
  27  
  28                      <!-- wp:buttons {"contentJustification":"left"} -->
  29                      <div class="wp-block-buttons is-content-justification-left"><!-- wp:button {"width":100,"style":{"border":{"radius":"6px"}},"className":"is-style-fill"} -->
  30                      <div class="wp-block-button has-custom-width wp-block-button__width-100 is-style-fill"><a class="wp-block-button__link" style="border-radius:6px">' . esc_html__( 'Watch our videos', 'twentytwentytwo' ) . '</a></div>
  31                      <!-- /wp:button -->
  32  
  33                      <!-- wp:button {"width":100,"style":{"border":{"radius":"6px"}},"className":"is-style-fill"} -->
  34                      <div class="wp-block-button has-custom-width wp-block-button__width-100 is-style-fill"><a class="wp-block-button__link" style="border-radius:6px">' . esc_html__( 'Listen on iTunes Podcasts', 'twentytwentytwo' ) . '</a></div>
  35                      <!-- /wp:button -->
  36  
  37                      <!-- wp:button {"width":100,"style":{"border":{"radius":"6px"}},"className":"is-style-fill"} -->
  38                      <div class="wp-block-button has-custom-width wp-block-button__width-100 is-style-fill"><a class="wp-block-button__link" style="border-radius:6px">' . esc_html__( 'Listen on Spotify', 'twentytwentytwo' ) . '</a></div>
  39                      <!-- /wp:button -->
  40  
  41                      <!-- wp:button {"width":100,"style":{"border":{"radius":"6px"}},"className":"is-style-fill"} -->
  42                      <div class="wp-block-button has-custom-width wp-block-button__width-100 is-style-fill"><a class="wp-block-button__link" style="border-radius:6px">' . esc_html__( 'Support the show', 'twentytwentytwo' ) . '</a></div>
  43                      <!-- /wp:button -->
  44  
  45                      <!-- wp:button {"width":100,"style":{"border":{"radius":"6px"}},"className":"is-style-fill"} -->
  46                      <div class="wp-block-button has-custom-width wp-block-button__width-100 is-style-fill"><a class="wp-block-button__link" style="border-radius:6px">' . esc_html__( 'About the hosts', 'twentytwentytwo' ) . '</a></div>
  47                      <!-- /wp:button --></div>
  48                      <!-- /wp:buttons --></div>
  49                      <!-- /wp:group -->
  50  
  51                      <!-- wp:spacer {"height":40} -->
  52                      <div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>
  53                      <!-- /wp:spacer -->
  54  
  55                      <!-- wp:social-links {"iconColor":"primary","iconColorValue":"var(--wp--preset--color--primary)","className":"is-style-logos-only","layout":{"type":"flex","justifyContent":"center"}} -->
  56                      <ul class="wp-block-social-links has-icon-color is-style-logos-only"><!-- wp:social-link {"url":"#","service":"wordpress"} /-->
  57  
  58                      <!-- wp:social-link {"url":"#","service":"facebook"} /-->
  59  
  60                      <!-- wp:social-link {"url":"#","service":"twitter"} /-->
  61  
  62                      <!-- wp:social-link {"url":"#","service":"instagram"} /--></ul>
  63                      <!-- /wp:social-links --></div>
  64                      <!-- /wp:group -->',
  65  );


Generated: Sun Dec 22 01:00:02 2024 Cross-referenced by PHPXref 0.7.1