Advertisement
Guest User

Main Index

a guest
Jun 4th, 2014
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <?php
  3. if($data['blog_full_width']) {
  4. $content_css = 'width:100%';
  5. $sidebar_css = 'display:none';
  6. } elseif($data['blog_sidebar_position'] == 'Left') {
  7. $content_css = 'float:right;';
  8. $sidebar_css = 'float:left;';
  9. } elseif($data['blog_sidebar_position'] == 'Right') {
  10. $content_css = 'float:left;';
  11. $sidebar_css = 'float:right;';
  12. }
  13. ?>
  14. <div id="content" style="<?php echo $content_css; ?>">
  15. <?php while(have_posts()): the_post(); ?>
  16. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  17. <?php
  18. if($data['featured_images']):
  19. if($data['legacy_posts_slideshow']) {
  20. include('legacy-slideshow.php');
  21. } else {
  22. include('new-slideshow.php');
  23. }
  24. endif;
  25. ?>
  26. <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  27. <div class="post-content">
  28. <?php
  29. if($data['content_length'] == 'Excerpt') {
  30. $stripped_content = strip_shortcodes( strip_tags( tf_content( $data['excerpt_length_blog'] ) ) );
  31. echo $stripped_content;
  32. } else {
  33. the_content('');
  34. }
  35. ?>
  36. </div>
  37. <?php if($data['post_meta']): ?>
  38. <div class="meta-info">
  39. <div class="alignleft">
  40. </span><?php the_time($data['date_format']); ?><span class="sep">|</span><?php the_category(', '); ?><span class="sep">
  41. </div>
  42. <div class="alignright">
  43. <a href="<?php the_permalink(); ?>" class="read-more"><?php echo __('Read More', 'Avada'); ?></a>
  44. </div>
  45. </div>
  46. <?php endif; ?>
  47. </div>
  48. <?php endwhile; ?>
  49. <?php themefusion_pagination($pages = '', $range = 2); ?>
  50. </div>
  51. <?php wp_reset_query(); ?>
  52. <div id="sidebar" style="<?php echo $sidebar_css; ?>">
  53. </div>
  54. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement