Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * @Theme Name : Wallstreet-Pro
- * @file : page.php
- * @package : wallstreet-Pro
- @author : webriti
- * @filesource : wp-content/themes/wallstreet/page.php
- */
- ?>
- <?php
- get_header();
- $wallstreet_pro_options=theme_data_setup();
- $current_options = wp_parse_args( get_option( 'wallstreet_pro_options', array() ), $wallstreet_pro_options );
- ?>
- <div class="page-mycarousel" style='background: url("<?php echo( get_header_image() ); ?>") repeat scroll center 0 #143745;'>
- <div class="page-title-col">
- <div class="container">
- <div class="row">
- <div class="page-header-title">
- <h1><?php the_title(); ?></h1>
- </div>
- </div>
- </div>
- <?php get_template_part('index', 'banner'); ?>
- </div>
- </div>
- <!-- /Page Title Section -->
- <!-- Blog & Sidebar Section -->
- <div class="container">
- <div class="row">
- <!--Blog Area-->
- <?php
- if ( class_exists( 'WooCommerce' ) ) {
- if( is_account_page() || is_cart() || is_checkout() ) {
- echo '<div class="col-md-'.( !is_active_sidebar( "woocommerce" ) ?"12" :"8" ).'">';
- }
- else{
- echo '<div class="col-md-'.( !is_active_sidebar( "sidebar_primary" ) ?"12" :"8" ).'">';
- }
- }
- elseif(bp_is_group() ) {
- echo '<div class="col-md-12">';
- }
- else{
- echo '<div class="col-md-'.( !is_active_sidebar( "sidebar_primary" ) ?"12" :"8" ).'">';
- } ?>
- <?php
- the_post();
- ?>
- <?php
- if ( class_exists( 'WooCommerce' ) ) {
- if( is_account_page() || is_cart() || is_checkout() ) { ?>
- <div class="blog-detail-section">
- <?php if(has_post_thumbnail()){ ?>
- <?php $defalt_arg =array('class' => "img-responsive"); ?>
- <div class="blog-post-img">
- <?php the_post_thumbnail('', $defalt_arg); ?>
- </div>
- <?php } ?>
- <div class="clear"></div>
- <div class="blog-post-title">
- <div class="blog-post-title-wrapper">
- <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
- <?php the_content(); ?>
- </div>
- </div>
- </div>
- <?php }
- else{ ?>
- <div class="blog-detail-section">
- <?php if(has_post_thumbnail()){ ?>
- <?php $defalt_arg =array('class' => "img-responsive"); ?>
- <div class="blog-post-img">
- <?php the_post_thumbnail('', $defalt_arg); ?>
- </div>
- <?php } ?>
- <div class="clear"></div>
- <div class="blog-post-title">
- <?php if($current_options['page_meta_section_settings'] == false) { ?>
- <div class="blog-post-date"><span class="date"><?php echo get_the_date('j'); ?><small><?php echo get_the_date('M'); ?></small></span>
- <span class="comment"><i class="fa fa-comment"></i><?php comments_number('0', '1','%'); ?></span>
- </div>
- <div class="blog-post-title-wrapper">
- <?php } else { ?>
- <div class="blog-post-title-wrapper" style="width:100%;">
- <?php } ?>
- <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
- <?php the_content(); ?>
- <?php if($current_options['page_meta_section_settings'] == false) { ?>
- <div class="blog-post-meta">
- <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>
- </div>
- <?php } ?>
- </div>
- </div>
- </div><?php } } else{ ?>
- <div class="blog-detail-section">
- <?php if(has_post_thumbnail()){ ?>
- <?php $defalt_arg =array('class' => "img-responsive"); ?>
- <div class="blog-post-img">
- <?php the_post_thumbnail('', $defalt_arg); ?>
- </div>
- <?php } ?>
- <div class="clear"></div>
- <div class="blog-post-title">
- <?php if($current_options['page_meta_section_settings'] == false) { ?>
- <div class="blog-post-date"><span class="date"><?php echo get_the_date('j'); ?><small><?php echo get_the_date('M'); ?></small></span>
- <span class="comment"><i class="fa fa-comment"></i><?php comments_number('0', '1','%'); ?></span>
- </div>
- <div class="blog-post-title-wrapper">
- <?php } else { ?>
- <div class="blog-post-title-wrapper" style="width:100%;">
- <?php } ?>
- <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
- <?php the_content(); ?>
- <?php if($current_options['page_meta_section_settings'] == false) { ?>
- <div class="blog-post-meta">
- <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>
- </div>
- <?php } ?>
- </div>
- </div>
- </div>
- <?php } ?>
- <?php comments_template('',true); ?>
- </div>
- <?php
- if ( class_exists( 'WooCommerce' ) ) {
- if( is_account_page() || is_cart() || is_checkout() ) {
- get_sidebar('woocommerce');
- }
- else{
- get_sidebar();
- }
- }
- elseif(bp_is_group() ) {
- }
- else{
- get_sidebar();
- } ?>
- <!--/Blog Area-->
- </div>
- </div>
- <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment