/*
Theme Name: Minimog Child
Theme URI: http://minimog.thememove.com/
Author: ThemeMove
Author URI: http://thememove.com/
Version: 1.0.0
Template: minimog
Text Domain:  minimog-child
Tags: editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
*/
/**
 * Init the theme
 */
global $product;

if ( ! $product ) {
    $product = wc_get_product( get_the_ID() );
}

if ( $product ) {
    $product_id = $product->get_id();
    $name   = get_field('whats_your_mountain_name', $product_id);
    $number = get_field('whats_your_mountain_number', $product_id);

    if ( $name || $number ) {
        echo '<div class="custom-extra-text">';
        if ( $name )   echo '<p>Name: '   . wp_kses_post( $name )   . '</p>';
        if ( $number ) echo '<p>Number: ' . wp_kses_post( $number ) . '</p>';
        echo '</div>';
    }
}

