<?php
/**
 * Single Product title
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/single-product/title.php.
 *
 * HOWEVER, on occasion WooCommerce will need to update template files and you
 * (the theme developer) will need to copy the new files to your theme to
 * maintain compatibility. We try to do this as little as possible, but it does
 * happen. When this occurs the version of the template file will be bumped and
 * the readme will list any important changes.
 *
 * @see        https://docs.woocommerce.com/document/template-structure/
 * @author     WooThemes
 * @package    WooCommerce/Templates
 * @version    1.6.4
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}
global $product;
global $post;
$short_description = apply_filters( 'woocommerce_short_description', $post->post_excerpt );
the_title( '<h1 class="product_title entry-title">', '</h1>' ); ?>
<p class="price"><?php echo $product->get_price_html(); ?></p>
<?php if ( wc_product_sku_enabled() && ( $product->get_sku() || $product->is_type( 'variable' ) ) ) : ?>

    <span class="sku_wrapper"><span class="sku"><?php echo ( $sku = $product->get_sku() ) ? $sku . __( ' / Price including taxes.', 'erfolg' ) : esc_html__( 'N/A', 'erfolg' ); ?></span></span>

<?php endif; ?>

<div class="woocommerce-product-details__short-description">

	<?php the_content(); ?>
</div>

    <div class="erfolgh-product-data">
        <div class="infos">
            <ul>
                <li><?php _e( 'Infos:', 'erfolg' ); ?></li>
                <?php if ( get_field( '_material', $post->ID ) ) : ?>
                    <li>
                        <div id="menu_1" class="infos_element_underline">
                            <span><?php _e( 'Material', 'erfolg' ); ?></span>
                            <div id="content_infos_1" class="content_infos" >
                                <?php echo get_field( '_material', $post->ID );?>
                            </div>
                        </div>
                    </li>
                <li class="info_separator">/</li>
                <?php endif; ?>

                <?php if ( get_field( '_herkunft', $post->ID ) ) : ?>
                    <li>
                        <div id="menu_2" class="infos_element_underline">
                            <span ><?php _e( 'Herkunft', 'erfolg' ); ?></span>
                            <div id="content_infos_2" class="content_infos content_infos_2" >
                                <?php echo get_field( '_herkunft', $post->ID );?>
                            </div>
                        </div>
                    </li>
                    <li class="info_separator">/</li>
                <?php endif;  ?>
                <?php if ( get_field( '_product_size_chart', $post->ID ) ) : ?>
<!--                    <li>
                        <div id="menu_3" class="infos_element_underline">
                            <span><?php _e( 'Grössentabelle', 'erfolg' ); ?></span>
                            <div id="content_infos_3" class="content_infos content_infos_3" >
                                <img src="<?php echo get_field( '_product_size_chart', $post->ID );  ?>" alt="<?php _e( 'Grössentabelle', 'erfolg' ); ?>">
                            </div>
                        </div>
                    </li>
                    <li class="info_separator">/</li>-->
                <?php endif; ?>
                <?php if ( get_field( '_pflege', $post->ID ) ) : ?>
                    <li>
                        <div id="menu_4" class="infos_element_underline">
                            <span><?php _e( 'Pflege', 'erfolg' ); ?></span>
                            <div id="content_infos_4" class="content_infos content_infos_4">
                                <?php echo get_field( '_pflege', $post->ID ); ?>
                                <?php if ( get_field( '_product_washing', $post->ID ) ) : ?>
                                    <img src="<?php echo get_field( '_product_washing', $post->ID ); ?>" alt="<?php _e( 'Pflege', 'erfolg' ); ?>" />
                                <?php endif; ?>
                            </div>
                        </div>
                    </li>
                <?php endif; ?>

            </ul>
            <i>
            </i>
        </div>
    </div>