Advertisement
Guest User

Untitled

a guest
Nov 6th, 2012
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.22 KB | None | 0 0
  1. <?php
  2. /**
  3. * The main template file.
  4. *
  5. * This is the most generic template file in a WordPress theme
  6. * and one of the two required files for a theme (the other being style.css).
  7. * It is used to display a page when nothing more specific matches a query.
  8. * E.g., it puts together the home page when no home.php file exists.
  9. * Learn more: http://codex.wordpress.org/Template_Hierarchy
  10. *
  11. * @package Minimosity
  12. * @since Minimosity 1.0
  13. */
  14.  
  15. get_header(); ?>
  16.  
  17.  
  18. <div id="primary" class="site-content">
  19. <div id="content" role="main">
  20.  
  21. <!-- Small Featured Slider -->
  22. <?php if (of_get_option('mm_fslider') AND is_home() AND of_get_option('mm_fslider_size') == 'mm_small_fslider' ) {echo get_template_part( 'partials/part', 'fslider' ) ;}?>
  23.  
  24. <!--Small Newsletter Toggle-->
  25. <?php if (is_home() AND of_get_option('mm_fslider_size') == 'mm_small_fslider' ) echo '<div class="home-toggle">' ?>
  26. <?php if (of_get_option('mm_toggle_display') AND is_home() AND of_get_option('mm_fslider_size') == 'mm_small_fslider') {echo get_template_part( 'partials/part', 'hometoggle' ) ;}?>
  27. <?php if (is_home() AND of_get_option('mm_fslider_size') == 'mm_small_fslider' ) echo '</div>' ?>
  28.  
  29. <?php
  30. $hometype = of_get_option('mm_home_type');
  31.  
  32. if ($hometype == 'blog_style') : ?>
  33.  
  34. <?php if ( have_posts() ) : ?>
  35.  
  36. <?php /* Start the Loop */ ?>
  37. <?php while ( have_posts() ) : the_post(); ?>
  38.  
  39. <?php
  40. /* Include the Post-Format-specific template for the content.
  41. * If you want to overload this in a child theme then include a file
  42. * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  43. */
  44. get_template_part( 'content', get_post_format() );
  45. ?>
  46.  
  47. <?php endwhile; ?>
  48.  
  49. <?php elseif ( current_user_can( 'edit_posts' ) ) : ?>
  50.  
  51. <?php get_template_part( 'no-results', 'index' ); ?>
  52.  
  53. <?php endif; ?>
  54.  
  55. <?php mm_num_pagination(); ?>
  56. <?php endif; /*End if Blog Style*/ ?>
  57.  
  58. <?php if ($hometype == 'magazine_style') get_template_part ('content', 'magazine');?>
  59.  
  60. </div><!-- #content -->
  61.  
  62.  
  63. </div><!-- #primary .site-content -->
  64.  
  65. <?php get_sidebar(); ?>
  66. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement