Guest User

Untitled

a guest
Feb 20th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.04 KB | None | 0 0
  1. <?php
  2. /**
  3. * @Theme Name : Wallstreet-Pro
  4. * @file : page.php
  5. * @package : wallstreet-Pro
  6. @author : webriti
  7. * @filesource : wp-content/themes/wallstreet/page.php
  8. */
  9. ?>
  10. <?php
  11. get_header();
  12. $wallstreet_pro_options=theme_data_setup();
  13. $current_options = wp_parse_args( get_option( 'wallstreet_pro_options', array() ), $wallstreet_pro_options );
  14. ?>
  15. <div class="page-mycarousel" style='background: url("<?php echo( get_header_image() ); ?>") repeat scroll center 0 #143745;'>
  16. <div class="page-title-col">
  17. <div class="container">
  18. <div class="row">
  19. <div class="page-header-title">
  20. <h1><?php the_title(); ?></h1>
  21. </div>
  22. </div>
  23. </div>
  24. <?php get_template_part('index', 'banner'); ?>
  25. </div>
  26. </div>
  27. <!-- /Page Title Section -->
  28. <!-- Blog & Sidebar Section -->
  29. <div class="container">
  30. <div class="row">
  31. <!--Blog Area-->
  32. <?php
  33. if ( class_exists( 'WooCommerce' ) ) {
  34.  
  35. if( is_account_page() || is_cart() || is_checkout() ) {
  36. echo '<div class="col-md-'.( !is_active_sidebar( "woocommerce" ) ?"12" :"8" ).'">';
  37. }
  38. else{
  39.  
  40. echo '<div class="col-md-'.( !is_active_sidebar( "sidebar_primary" ) ?"12" :"8" ).'">';
  41.  
  42. }
  43.  
  44. }
  45. elseif(bp_is_group() ) {
  46.  
  47. echo '<div class="col-md-12">';
  48. }
  49.  
  50. else{
  51.  
  52. echo '<div class="col-md-'.( !is_active_sidebar( "sidebar_primary" ) ?"12" :"8" ).'">';
  53.  
  54. } ?>
  55. <?php
  56. the_post();
  57. ?>
  58. <?php
  59. if ( class_exists( 'WooCommerce' ) ) {
  60. if( is_account_page() || is_cart() || is_checkout() ) { ?>
  61. <div class="blog-detail-section">
  62. <?php if(has_post_thumbnail()){ ?>
  63. <?php $defalt_arg =array('class' => "img-responsive"); ?>
  64. <div class="blog-post-img">
  65. <?php the_post_thumbnail('', $defalt_arg); ?>
  66. </div>
  67. <?php } ?>
  68. <div class="clear"></div>
  69. <div class="blog-post-title">
  70. <div class="blog-post-title-wrapper">
  71. <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  72. <?php the_content(); ?>
  73. </div>
  74. </div>
  75. </div>
  76. <?php }
  77. else{ ?>
  78.  
  79. <div class="blog-detail-section">
  80. <?php if(has_post_thumbnail()){ ?>
  81. <?php $defalt_arg =array('class' => "img-responsive"); ?>
  82. <div class="blog-post-img">
  83. <?php the_post_thumbnail('', $defalt_arg); ?>
  84. </div>
  85. <?php } ?>
  86. <div class="clear"></div>
  87. <div class="blog-post-title">
  88. <?php if($current_options['page_meta_section_settings'] == false) { ?>
  89. <div class="blog-post-date"><span class="date"><?php echo get_the_date('j'); ?><small><?php echo get_the_date('M'); ?></small></span>
  90. <span class="comment"><i class="fa fa-comment"></i><?php comments_number('0', '1','%'); ?></span>
  91. </div>
  92. <div class="blog-post-title-wrapper">
  93. <?php } else { ?>
  94. <div class="blog-post-title-wrapper" style="width:100%;">
  95. <?php } ?>
  96. <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  97. <?php the_content(); ?>
  98. <?php if($current_options['page_meta_section_settings'] == false) { ?>
  99. <div class="blog-post-meta">
  100. <a id="blog-author" href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><i class="fa fa-user"></i> <?php the_author(); ?></a>
  101. </div>
  102. <?php } ?>
  103. </div>
  104. </div>
  105. </div><?php } } else{ ?>
  106. <div class="blog-detail-section">
  107. <?php if(has_post_thumbnail()){ ?>
  108. <?php $defalt_arg =array('class' => "img-responsive"); ?>
  109. <div class="blog-post-img">
  110. <?php the_post_thumbnail('', $defalt_arg); ?>
  111. </div>
  112. <?php } ?>
  113. <div class="clear"></div>
  114. <div class="blog-post-title">
  115. <?php if($current_options['page_meta_section_settings'] == false) { ?>
  116. <div class="blog-post-date"><span class="date"><?php echo get_the_date('j'); ?><small><?php echo get_the_date('M'); ?></small></span>
  117. <span class="comment"><i class="fa fa-comment"></i><?php comments_number('0', '1','%'); ?></span>
  118. </div>
  119. <div class="blog-post-title-wrapper">
  120. <?php } else { ?>
  121. <div class="blog-post-title-wrapper" style="width:100%;">
  122. <?php } ?>
  123. <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  124. <?php the_content(); ?>
  125. <?php if($current_options['page_meta_section_settings'] == false) { ?>
  126. <div class="blog-post-meta">
  127. <a id="blog-author" href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><i class="fa fa-user"></i> <?php the_author(); ?></a>
  128. </div>
  129. <?php } ?>
  130. </div>
  131. </div>
  132. </div>
  133. <?php } ?>
  134. <?php comments_template('',true); ?>
  135. </div>
  136. <?php
  137. if ( class_exists( 'WooCommerce' ) ) {
  138.  
  139. if( is_account_page() || is_cart() || is_checkout() ) {
  140. get_sidebar('woocommerce');
  141. }
  142. else{
  143.  
  144. get_sidebar();
  145.  
  146. }
  147.  
  148. }
  149. elseif(bp_is_group() ) {
  150. }
  151. else{
  152.  
  153. get_sidebar();
  154.  
  155. } ?>
  156. <!--/Blog Area-->
  157. </div>
  158. </div>
  159. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment