<?php the_content(); ?> </div> <div class="product-info"> <?php the_content(); ?> </div> <div class="product-link"> <a href="#" class="read-more">» Les mer</a> <a href="#" class="read-less">» Les mindre</a> </div> <?php if (!empty(product_catalog_get_meta('product_catalog_link'))) { echo '<a class="btn btn-default" href="' . product_catalog_get_meta('product_catalog_link') . '" target="_blank">Last ned katalog</a>'; } ?> </article> </div> </div> <!--LEFT--> <!--RIGHT--> <div class="col-lg-6 col-md-6"> <div class="product-gallery"> <?php get_template_part('template', 'productgallery'); ?> </div> </div> <!--RIGHT-->
function product_catalog_html($post) { wp_nonce_field('_product_catalog_nonce', 'product_catalog_nonce'); ?> <p> <label for="product_catalog_link"><?php _e('Link', 'product_catalog'); ?> </label><br> <input style="width: 100%" type="text" name="product_catalog_link" id="product_catalog_link" value="<?php echo product_catalog_get_meta('product_catalog_link'); ?> "> </p> <?php }