function etheme_product_meta_box() { global $post; ?> <div class="etheme-metaboxes"> <input type="hidden" name="etheme_product_meta_box_nonce" value="<?php echo wp_create_nonce(plugin_basename(__FILE__)); ?> " /> <p> <input type="checkbox" name="etheme_product[_etheme_size_guide]" id="etheme_product[_etheme_size_guide]" value="1" <?php checked(1, etheme_get_custom_field('_etheme_size_guide')); ?> /> <label for="etheme_product[_etheme_size_guide]"><?php _e("Enable Size Guide on this product", ETHEME_DOMAIN); ?> </label> </p> <p> <input type="checkbox" name="etheme_product[_etheme_special]" id="etheme_product[_etheme_special]" value="1" <?php checked(1, etheme_get_custom_field('_etheme_special')); ?> /> <label for="etheme_product[_etheme_special]"><?php _e("Mark this product as a SPECIAL one", ETHEME_DOMAIN); ?> </label> </p> <p> <input type="checkbox" name="etheme_product[_etheme_new_label]" id="etheme_product[_etheme_new_label]" value="1" <?php checked(1, etheme_get_custom_field('_etheme_new_label')); ?> /> <label for="etheme_product[_etheme_new_label]"><?php _e("Mark this product as a NEW one", ETHEME_DOMAIN); ?> </label> </p> <hr class="div" style="clear:both"/> <p><?php _e("Hover img", ETHEME_DOMAIN); ?> <br/><span class="description"><?php _e("png, jpg or gif file", ETHEME_DOMAIN); ?> </span></p> <?php echo etheme_add_upload_product_setting($post->ID, 'etheme_hover', __("Upload image: png, jpg or gif file", ETHEME_DOMAIN)); ?> <hr class="div" style="clear:both"/> <p> <?php _e("Tab 1 title:", ETHEME_DOMAIN); ?> <input type="text" class="text" name="etheme_product[_etheme_custom_tab1_title]" value="<?php etheme_custom_field('_etheme_custom_tab1_title'); ?> " /> </p> <p><?php _e("Enter custom content you would like output to the product custom tab:", ETHEME_DOMAIN); ?> <br /> <textarea name="etheme_product[_etheme_custom_tab1]" id="etheme_custom_tab1" cols="39" rows="5"><?php etheme_custom_field('_etheme_custom_tab1'); ?> </textarea><br /> <span class="description"><?php _e('<b>NOTE:</b> You can use any shortcode / HTML code.', ETHEME_DOMAIN); ?> </span></p> <hr /> <p> <?php _e("Tab 2 title:", ETHEME_DOMAIN); ?> <input type="text" class="text" name="etheme_product[_etheme_custom_tab2_title]" value="<?php etheme_custom_field('_etheme_custom_tab2_title'); ?> " /> </p> <p><?php _e("Enter custom content you would like output to the product custom tab (second):", ETHEME_DOMAIN); ?> <br /> <textarea name="etheme_product[_etheme_custom_tab2]" cols="39" rows="5"><?php etheme_custom_field('_etheme_custom_tab2'); ?> </textarea><br /> <span class="description"><?php _e('<b>NOTE:</b> You can use any shortcode / HTML code.', ETHEME_DOMAIN); ?> </span></p> </div> <?php }
function etheme_portfolio_post_meta_box() { global $post; ?> <input type="hidden" name="etheme_post_meta_box_nonce" value="<?php echo wp_create_nonce(plugin_basename(__FILE__)); ?> " /> <div class="post-metaboxes"> <div class="format-settings"> <div class="format-setting-label"> <h3 class="label">Item Information</h3> </div> <div class="format-setting type-text no-desc"> <div class="format-setting-inner"> <label>Project Url</label> <input type="text" name="etheme_post[project_url][value]" value="<?php etheme_custom_field('project_url'); ?> " /> </div> <div class="format-setting-inner"> <label>Client</label> <input type="text" name="etheme_post[client][value]" value="<?php etheme_custom_field('client'); ?> " /> </div> <div class="format-setting-inner"> <label>Client Url</label> <input type="text" name="etheme_post[client_url][value]" value="<?php etheme_custom_field('client_url'); ?> " /> </div> <div class="format-setting-inner"> <label>Copyright</label> <input type="text" name="etheme_post[copyright][value]" value="<?php etheme_custom_field('copyright'); ?> " /> </div> <div class="format-setting-inner"> <label>Copyright Url</label> <input type="text" name="etheme_post[copyright_url][value]" value="<?php etheme_custom_field('copyright_url'); ?> " /> </div> </div> </div> <?php }
</a> <div id="content_tab_7" class="tab-content"> <?php echo do_shortcode(etheme_get_custom_field('_etheme_custom_tab1')); ?> </div> <?php } ?> <?php if (etheme_get_custom_field('_etheme_custom_tab2_title') && etheme_get_custom_field('_etheme_custom_tab2_title') != '') { ?> <a href="#tab8" id="tab_8" class="tab-title"><?php etheme_custom_field('_etheme_custom_tab2_title'); ?> </a> <div id="content_tab_8" class="tab-content"> <?php echo do_shortcode(etheme_get_custom_field('_etheme_custom_tab2')); ?> </div> <?php } ?> <?php if (etheme_get_option('custom_tab_title') && etheme_get_option('custom_tab_title') != '') { ?>
function et_size_guide() { if (etheme_get_custom_field('size_guide_img')) { ?> <?php $lightbox_rel = get_option('woocommerce_enable_lightbox') == 'yes' ? 'prettyPhoto' : 'lightbox'; ?> <div class="size_guide"> <a rel="<?php echo $lightbox_rel; ?> " href="<?php etheme_custom_field('size_guide_img'); ?> "><?php _e('SIZING GUIDE', ETHEME_DOMAIN); ?> </a> </div> <?php } }
} ?> </td> </tr> <?php } ?> </table> <?php if (etheme_get_custom_field('project_url') != '') { ?> <a href="<?php etheme_custom_field('project_url'); ?> " target="_blank" class="button fl-r active big arrow-right"><span><?php _e('Visit Project Site', ETHEME_DOMAIN); ?> </span></a> <?php } ?> <div class="clear"></div> </div> </div> <?php
?> </section> </li> <?php } ?> <?php if (etheme_get_custom_field('_etheme_custom_tab2') && etheme_get_custom_field('_etheme_custom_tab2_title')) { ?> <li><a href="#"><?php etheme_custom_field('_etheme_custom_tab2_title'); ?> </a> <section> <?php etheme_custom_field('_etheme_custom_tab2'); ?> </section> </li> <?php } ?> <?php if (etheme_get_option('custom_tab') && etheme_get_option('custom_tab') != '') { ?> <li><a href="#"><?php etheme_option('custom_tab_title'); ?> </a> <section>
"><?php echo apply_filters('woocommerce_product_' . $key . '_tab_title', $tab['title'], $key); ?> </a> </li> <?php } ?> <?php if (etheme_get_custom_field('custom_tab1_title') && etheme_get_custom_field('custom_tab1_title') != '') { ?> <li> <a href="#tab_7" id="tab_7" class="tab-title"><?php etheme_custom_field('custom_tab1_title'); ?> </a> </li> <?php } ?> <?php if (etheme_get_option('custom_tab_title') && etheme_get_option('custom_tab_title') != '') { ?> <li> <a href="#tab_9" id="tab_9" class="tab-title"><?php etheme_option('custom_tab_title'); ?>
*/ do_action('woocommerce_single_product_summary'); ?> <?php if (etheme_get_custom_field('size_guide_img')) { ?> <?php $lightbox_rel = get_option('woocommerce_enable_lightbox') == 'yes' ? 'prettyPhoto' : 'lightbox'; ?> <div class="size_guide"> <a rel="<?php echo $lightbox_rel; ?> " href="<?php etheme_custom_field('size_guide_img'); ?> "><?php _e('SIZING GUIDE', ETHEME_DOMAIN); ?> </a> </div> <?php } ?> <?php woocommerce_template_single_add_to_cart(); ?>