Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.82 KB | None | 0 0
  1. <?php $grid_center = 12;
  2. if($column_left != '') $grid_center = $grid_center-3;
  3. if($column_right != '') $grid_center = $grid_center-3;
  4. $modules_old_opencart = new Modules($registry); ?>
  5.  
  6. <!-- BREADCRUMB
  7. ================================================== -->
  8. <div class="breadcrumb <?php if($theme_options->get( 'breadcrumb_layout' ) == 1) { echo 'full-width'; } elseif($theme_options->get( 'breadcrumb_layout' ) == 4) { echo 'fixed3 fixed2'; } elseif($theme_options->get( 'breadcrumb_layout' ) == 3) { echo 'fixed2'; } else { echo 'fixed'; } ?>">
  9. <div class="background-breadcrumb"></div>
  10. <div class="background" <?php $breadcrumb = $modules_old_opencart->getModules('breadcrumb'); if( count($breadcrumb) ) { foreach ($breadcrumb as $module) { echo $module; } } ?>>
  11. <div class="shadow"></div>
  12. <div class="pattern">
  13. <div class="container">
  14. <div class="clearfix">
  15. <?php if(isset($product_page) && $theme_options->get( 'product_breadcrumb' ) != '2') { ?>
  16. <?php $product_prev_next = $theme_options->getNextPrevProduct( $product_id ); ?>
  17. <div class="row">
  18. <div class="col-md-3 hidden-xs hidden-sm">
  19. <?php if(is_array($product_prev_next['prev'])) { ?>
  20. <?php if($theme_options->get( 'product_breadcrumb' ) == '1') { ?>
  21. <div class="next-product-2 clearfix">
  22. <a href="<?php echo $product_prev_next['prev']['href']; ?>" data-toggle="tooltip" data-placement="top" title="<?php echo $product_prev_next['prev']['name']; ?>" class="button-previous-next"><?php if($theme_options->get( 'previous_product_text', $config->get( 'config_language_id' ) ) != '') { echo $theme_options->get( 'previous_product_text', $config->get( 'config_language_id' ) ); } else { echo 'Previous product'; } ?></a>
  23. </div>
  24. <?php } else { ?>
  25. <div class="next-product clearfix">
  26. <div class="image"><a href="<?php echo $product_prev_next['prev']['href']; ?>"><img src="<?php echo $product_prev_next['prev']['thumb']; ?>" alt="<?php echo $product_prev_next['prev']['name']; ?>"></a></div>
  27. <div class="right">
  28. <div class="name"><a href="<?php echo $product_prev_next['prev']['href']; ?>"><?php echo $product_prev_next['prev']['name']; ?></a></div>
  29. <div class="price"><?php if($product_prev_next['prev']['special']) { echo $product_prev_next['prev']['special']; } else { echo $product_prev_next['prev']['price']; } ?></div>
  30. </div>
  31. </div>
  32. <?php } ?>
  33. <?php } ?>
  34. </div>
  35.  
  36. <div class="col-md-6">
  37. <h1 id="title-page"><?php echo $heading_title; ?>
  38. <?php if(isset($weight)) { if ($weight) { ?>
  39. &nbsp;(<?php echo $weight; ?>)
  40. <?php } } ?>
  41. </h1>
  42.  
  43. <ul>
  44. <?php foreach ($breadcrumbs as $breadcrumb) { ?>
  45. <li><a href="<?php echo $breadcrumb['href']; ?>"><?php if($breadcrumb['text'] != '<i class="fa fa-home"></i>') { echo $breadcrumb['text']; } else { if($theme_options->get( 'home_text', $config->get( 'config_language_id' ) ) != '') { echo $theme_options->get( 'home_text', $config->get( 'config_language_id' ) ); } else { echo 'Home'; } } ?></a></li>
  46. <?php } ?>
  47. </ul>
  48. </div>
  49.  
  50. <div class="col-md-3 hidden-xs hidden-sm">
  51. <?php if(is_array($product_prev_next['next'])) { ?>
  52. <?php if($theme_options->get( 'product_breadcrumb' ) == '1') { ?>
  53. <div class="next-product-2 right clearfix">
  54. <a href="<?php echo $product_prev_next['next']['href']; ?>" data-toggle="tooltip" data-placement="top" title="<?php echo $product_prev_next['next']['name']; ?>" class="button-previous-next"><?php if($theme_options->get( 'next_product_text', $config->get( 'config_language_id' ) ) != '') { echo $theme_options->get( 'next_product_text', $config->get( 'config_language_id' ) ); } else { echo 'Next product'; } ?></a>
  55. </div>
  56. <?php } else { ?>
  57. <div class="next-product right clearfix">
  58. <div class="image"><a href="<?php echo $product_prev_next['next']['href']; ?>"><img src="<?php echo $product_prev_next['next']['thumb']; ?>" alt="<?php echo $product_prev_next['next']['name']; ?>"></a></div>
  59. <div class="right">
  60. <div class="name"><a href="<?php echo $product_prev_next['next']['href']; ?>"><?php echo $product_prev_next['next']['name']; ?></a></div>
  61. <div class="price"><?php if($product_prev_next['next']['special']) { echo $product_prev_next['next']['special']; } else { echo $product_prev_next['next']['price']; } ?></div>
  62. </div>
  63. </div>
  64. <?php } ?>
  65. <?php } ?>
  66. </div>
  67. </div>
  68. <?php } else { ?>
  69. <h1 id="title-page"><?php echo $heading_title; ?>
  70. <?php if(isset($weight)) { if ($weight) { ?>
  71. &nbsp;(<?php echo $weight; ?>)
  72. <?php } } ?>
  73. </h1>
  74.  
  75. <ul>
  76. <?php foreach ($breadcrumbs as $breadcrumb) { ?>
  77. <li><a href="<?php echo $breadcrumb['href']; ?>"><?php if($breadcrumb['text'] != '<i class="fa fa-home"></i>') { echo $breadcrumb['text']; } else { if($theme_options->get( 'home_text', $config->get( 'config_language_id' ) ) != '') { echo $theme_options->get( 'home_text', $config->get( 'config_language_id' ) ); } else { echo 'Home'; } } ?></a></li>
  78. <?php } ?>
  79. </ul>
  80. <?php } ?>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86.  
  87. <!-- MAIN CONTENT
  88. ================================================== -->
  89. <div class="main-content <?php if($theme_options->get( 'content_layout' ) == 1) { echo 'full-width'; } elseif($theme_options->get( 'content_layout' ) == 4) { echo 'fixed3 fixed2'; } elseif($theme_options->get( 'content_layout' ) == 3) { echo 'fixed2'; } else { echo 'fixed'; } ?> inner-page">
  90. <div class="background-content"></div>
  91. <div class="background">
  92. <div class="shadow"></div>
  93. <div class="pattern">
  94. <div class="container">
  95. <?php
  96. $preface_left = $modules_old_opencart->getModules('preface_left');
  97. $preface_right = $modules_old_opencart->getModules('preface_right');
  98. ?>
  99. <?php if( count($preface_left) || count($preface_right) ) { ?>
  100. <div class="row">
  101. <div class="col-sm-9">
  102. <?php
  103. if( count($preface_left) ) {
  104. foreach ($preface_left as $module) {
  105. echo $module;
  106. }
  107. } ?>
  108. </div>
  109.  
  110. <div class="col-sm-3">
  111. <?php
  112. if( count($preface_right) ) {
  113. foreach ($preface_right as $module) {
  114. echo $module;
  115. }
  116. } ?>
  117. </div>
  118. </div>
  119. <?php } ?>
  120.  
  121. <?php
  122. $preface_fullwidth = $modules_old_opencart->getModules('preface_fullwidth');
  123. if( count($preface_fullwidth) ) {
  124. echo '<div class="row"><div class="col-sm-12">';
  125. foreach ($preface_fullwidth as $module) {
  126. echo $module;
  127. }
  128. echo '</div></div>';
  129. } ?>
  130.  
  131. <div class="row">
  132. <?php
  133. $columnleft = $modules_old_opencart->getModules('column_left');
  134. if( count($columnleft) ) { ?>
  135. <div class="col-md-3" id="column-left">
  136. <?php
  137. foreach ($columnleft as $module) {
  138. echo $module;
  139. }
  140. ?>
  141. </div>
  142. <?php } ?>
  143.  
  144. <?php $grid_center = 12; if( count($columnleft) ) { $grid_center = 9; } ?>
  145. <div class="col-md-<?php echo $grid_center; ?>">
  146. <?php
  147. $content_big_column = $modules_old_opencart->getModules('content_big_column');
  148. if( count($content_big_column) ) {
  149. foreach ($content_big_column as $module) {
  150. echo $module;
  151. }
  152. } ?>
  153.  
  154. <?php
  155. $content_top = $modules_old_opencart->getModules('content_top');
  156. if( count($content_top) ) {
  157. foreach ($content_top as $module) {
  158. echo $module;
  159. }
  160. } ?>
  161.  
  162. <div class="row">
  163. <?php
  164. $grid_content_top = 12;
  165. $grid_content_right = 3;
  166. $column_right = $modules_old_opencart->getModules('column_right');
  167. if( count($column_right) ) {
  168. if($grid_center == 9) {
  169. $grid_content_top = 8;
  170. $grid_content_right = 4;
  171. } else {
  172. $grid_content_top = 9;
  173. $grid_content_right = 3;
  174. }
  175. }
  176. ?>
  177. <div class="col-md-<?php echo $grid_content_top; ?> center-column <?php if(isset($background_status)) { echo 'content-without-background'; } else { echo 'content-with-background'; } ?>" id="content">
  178.  
  179. <?php if (isset($error_warning)) { ?>
  180. <?php if ($error_warning) { ?>
  181. <div class="warning">
  182. <button type="button" class="close" data-dismiss="alert">&times;</button>
  183. <?php echo $error_warning; ?>
  184. </div>
  185. <?php } ?>
  186. <?php } ?>
  187.  
  188. <?php if (isset($success)) { ?>
  189. <?php if ($success) { ?>
  190. <div class="success">
  191. <button type="button" class="close" data-dismiss="alert">&times;</button>
  192. <?php echo $success; ?>
  193. </div>
  194. <?php } ?>
  195. <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement