Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <?php
- if($data['blog_full_width']) {
- $content_css = 'width:100%';
- $sidebar_css = 'display:none';
- } elseif($data['blog_sidebar_position'] == 'Left') {
- $content_css = 'float:right;';
- $sidebar_css = 'float:left;';
- } elseif($data['blog_sidebar_position'] == 'Right') {
- $content_css = 'float:left;';
- $sidebar_css = 'float:right;';
- }
- ?>
- <div id="content" style="<?php echo $content_css; ?>">
- <?php while(have_posts()): the_post(); ?>
- <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <?php
- if($data['featured_images']):
- if($data['legacy_posts_slideshow']) {
- include('legacy-slideshow.php');
- } else {
- include('new-slideshow.php');
- }
- endif;
- ?>
- <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
- <div class="post-content">
- <?php
- if($data['content_length'] == 'Excerpt') {
- $stripped_content = strip_shortcodes( strip_tags( tf_content( $data['excerpt_length_blog'] ) ) );
- echo $stripped_content;
- } else {
- the_content('');
- }
- ?>
- </div>
- <?php if($data['post_meta']): ?>
- <div class="meta-info">
- <div class="alignleft">
- </span><?php the_time($data['date_format']); ?><span class="sep">|</span><?php the_category(', '); ?><span class="sep">
- </div>
- <div class="alignright">
- <a href="<?php the_permalink(); ?>" class="read-more"><?php echo __('Read More', 'Avada'); ?></a>
- </div>
- </div>
- <?php endif; ?>
- </div>
- <?php endwhile; ?>
- <?php themefusion_pagination($pages = '', $range = 2); ?>
- </div>
- <?php wp_reset_query(); ?>
- <div id="sidebar" style="<?php echo $sidebar_css; ?>">
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement