PageRenderTime 24ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-content/themes/guru/framework/theme_options/woocommerce.php

https://gitlab.com/Suhailgit/Project
PHP | 119 lines | 104 code | 15 blank | 0 comment | 5 complexity | de187f99a93dacb1c051fd270ec8d6cd MD5 | raw file
  1. <!-- #woocommerence starts here-->
  2. <div id="woocommerce" class="bpanel-content">
  3. <!-- .bpanel-main-content starts here-->
  4. <div class="bpanel-main-content">
  5. <ul class="sub-panel">
  6. <li><a href="#my-woocommerce"><?php _e("wooCommerce Settings",'iamd_text_domain');?></a></li>
  7. </ul>
  8. <!-- #my-woocommerce starts here -->
  9. <div id="my-woocommerce" class="tab-content">
  10. <div class="bpanel-box">
  11. <?php if( class_exists('woocommerce') ) : ?>
  12. <!-- SHOP PAGE -->
  13. <div class="box-title"><h3><?php _e('Shop','iamd_text_domain');?></h3></div>
  14. <div class="box-content">
  15. <div class="column one-third"><label><?php _e('Products Per Page','iamd_text_domain');?></label></div>
  16. <div class="column two-third last">
  17. <input name="mytheme[woo][shop-product-per-page]" type="text" class="small" value="<?php echo trim(stripslashes(dt_theme_option('woo','shop-product-per-page')));?>" />
  18. <p class="note"><?php _e('Number of porducts to show in catalog / shop page','iamd_text_domain');?></p>
  19. </div>
  20. <!-- Layout -->
  21. <h6><?php _e('Layout','iamd_text_domain');?></h6>
  22. <p class="note no-margin"> <?php _e("Choose the Product Layout Style in Catalog / Shop ","iamd_text_domain");?> </p>
  23. <div class="hr_invisible"> </div>
  24. <div class="bpanel-option-set">
  25. <ul class="bpanel-layout-set">
  26. <?php $posts_layout = array('one-half-column' => __("Two products per row.",'iamd_text_domain'),'one-third-column' => __("Three products per row.",'iamd_text_domain'),'one-fourth-column' => __("Four products per row.",'iamd_text_domain'));
  27. $v = dt_theme_option('woo',"shop-page-product-layout");
  28. $v = !empty($v) ? $v : "one-half-column";
  29. foreach($posts_layout as $key => $value):
  30. $class = ( $key == $v ) ? " class='selected' " :"";
  31. echo "<li><a href='#' rel='{$key}' {$class} title='{$value}'><img src='".IAMD_FW_URL."theme_options/images/columns/{$key}.png' /></a></li>";
  32. endforeach;?>
  33. </ul>
  34. <input name="mytheme[woo][shop-page-product-layout]" type="hidden" value="<?php echo $v;?>"/>
  35. </div><!-- .Layout End -->
  36. </div><!-- SHOP PAGE -->
  37. <!-- Product Page -->
  38. <div class="box-title"><h3><?php _e('Product Detail','iamd_text_domain');?></h3></div>
  39. <div class="box-content">
  40. <!-- Product Detail Page Layout -->
  41. <h6><?php _e('Layout','iamd_text_domain');?></h6>
  42. <p class="note no-margin"> <?php _e("Choose the Product Page Layout","iamd_text_domain");?></p>
  43. <div class="hr_invisible"> </div>
  44. <div class="bpanel-option-set">
  45. <ul class="bpanel-layout-set">
  46. <?php $layout = array('content-full-width'=>'without-sidebar','with-left-sidebar'=>'left-sidebar','with-right-sidebar'=>'right-sidebar');
  47. $v = dt_theme_option('woo',"product-layout");
  48. $v = !empty($v) ? $v : "content-full-width";
  49. foreach($layout as $key => $value):
  50. $class = ( $key == $v ) ? " class='selected' " : "";
  51. echo "<li><a href='#' rel='{$key}' {$class}><img src='".IAMD_FW_URL."theme_options/images/columns/{$value}.png' /></a></li>";
  52. endforeach; ?>
  53. </ul>
  54. <input name="mytheme[woo][product-layout]" type="hidden" value="<?php echo $v;?>"/>
  55. </div><!-- Product Detail Page Layout End-->
  56. </div><!-- Product Page -->
  57. <!-- Product Category Page -->
  58. <div class="box-title"><h3><?php _e('Product Category','iamd_text_domain');?></h3></div>
  59. <div class="box-content">
  60. <!-- Product Detail Page Layout -->
  61. <h6><?php _e('Layout','iamd_text_domain');?></h6>
  62. <p class="note no-margin"> <?php _e("Choose the Product category page layout Style","iamd_text_domain");?></p>
  63. <div class="hr_invisible"> </div>
  64. <div class="bpanel-option-set">
  65. <ul class="bpanel-layout-set">
  66. <?php $layout = array('content-full-width'=>'without-sidebar','with-left-sidebar'=>'left-sidebar','with-right-sidebar'=>'right-sidebar');
  67. $v = dt_theme_option('woo',"product-category-layout");
  68. $v = !empty($v) ? $v : "content-full-width";
  69. foreach($layout as $key => $value):
  70. $class = ( $key == $v ) ? " class='selected' " : "";
  71. echo "<li><a href='#' rel='{$key}' {$class}><img src='".IAMD_FW_URL."theme_options/images/columns/{$value}.png' /></a></li>";
  72. endforeach; ?>
  73. </ul>
  74. <input name="mytheme[woo][product-category-layout]" type="hidden" value="<?php echo $v;?>"/>
  75. </div><!-- Product Detail Page Layout End-->
  76. </div><!-- Product Category Page -->
  77. <!-- Product Tag Page -->
  78. <div class="box-title"><h3><?php _e('Product Tag','iamd_text_domain');?></h3></div>
  79. <div class="box-content">
  80. <!-- Product Detail Page Layout -->
  81. <h6><?php _e('Layout','iamd_text_domain');?></h6>
  82. <p class="note no-margin"> <?php _e("Choose the Product tag page layout Style","iamd_text_domain");?></p>
  83. <div class="hr_invisible"> </div>
  84. <div class="bpanel-option-set">
  85. <ul class="bpanel-layout-set">
  86. <?php $layout = array('content-full-width'=>'without-sidebar','with-left-sidebar'=>'left-sidebar','with-right-sidebar'=>'right-sidebar');
  87. $v = dt_theme_option('woo',"product-tag-layout");
  88. $v = !empty($v) ? $v : "content-full-width";
  89. foreach($layout as $key => $value):
  90. $class = ( $key == $v ) ? " class='selected' " : "";
  91. echo "<li><a href='#' rel='{$key}' {$class}><img src='".IAMD_FW_URL."theme_options/images/columns/{$value}.png' /></a></li>";
  92. endforeach; ?>
  93. </ul>
  94. <input name="mytheme[woo][product-tag-layout]" type="hidden" value="<?php echo $v;?>"/>
  95. </div><!-- Product Detail Page Layout End-->
  96. </div><!-- Product Tag Page -->
  97. <?php else: ?>
  98. <div class="box-title"><h3><?php _e('Warning','iamd_text_domain');?></h3></div>
  99. <div class="box-content"><p class="note"><?php _e("You have to install and activate the wooCommerce plugin to use this module ..",'iamd_text_domain');?></p></div>
  100. <?php endif;?>
  101. </div><!--.bpanel-box End -->
  102. </div><!-- #my-woocommerce ends here -->
  103. </div><!-- .bpanel-main-content ends here-->
  104. </div><!-- #woocommerence end-->