• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Genesis Theme Framework a2z

Genesis Theme Framework a2z

WordPress Dynamic API Reference

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Parsed Source / Parsed: 50786
function genesis_onboarding_starter_packs_list() {
  $packs = genesis_onboarding_starter_packs();

  if ( ! $packs ) {
    esc_html_e( 'No Starter Packs found.', 'genesis' );
  }

  foreach ( $packs as $pack_slug => $pack ) {
    if ( empty( $pack['title'] ) || empty( $pack['thumbnail'] ) ) {
      continue;
    }

    $pack_image = sprintf(
      '<img src="%1s" alt="%2s" />',
      esc_url( $pack['thumbnail'] ),
      /* translators: %s: Starter Pack name, such as “Small Business” */
      sprintf( esc_attr__( 'Learn more about the %s starter pack.', 'genesis' ), $pack['title'] )
    );

    $pack_install_label = sprintf(
      /* translators: %s: Starter Pack name, such as “Small Business” */
      __( 'Install the %s starter pack.', 'genesis' ),
      $pack['title']
    );

    $pack_demo_label = sprintf(
      /* translators: %s: Starter Pack name, such as “Small Business” */
      __( 'View the %s starter pack demo (opens in new window).', 'genesis' ),
      $pack['title']
    );

    include GENESIS_VIEWS_DIR . '/onboarding/starter-pack-summary.php';
    include GENESIS_VIEWS_DIR . '/onboarding/starter-pack-info.php';
  }
}
 

Published: 25th November 2019 | Last updated: 25th November 2019

Primary Sidebar

Information

Source ref: genesis_onboarding_starter_packs_list() – Output HTML to show a selection of starter packs if supported by the theme.
Parse count / Source file date: 1569839049
MD5 hash: c7251eb72c272db618077eaaa1453653

Footer

Genesis a2z
Genesis Theme Framework a2z
WordPress Dynamic API Reference
WordPress 5.9.3
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:  genesis.wp-a2z.org
© Copyright Genesis a2z 2014-2022. All rights reserved.


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

  • Home
  • Blog
  • Sitemap
  • Sites