mangomatic_index_loop

The MangoMatic (Responsive) mangomatic index loop function.

Description

mangomatic_index_loop(); 

Usage

  1. if ( !function_exists( 'mangomatic_index_loop' ) ) { 
  2. require_once '/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = mangomatic_index_loop(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/functions.php  
  1. function mangomatic_index_loop() 
  2. global $options; 
  3. foreach ($options as $value) { 
  4. if (get_option( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } 
  5. else { $$value['id'] = get_option( $value['id'] ); } 
  6. /** Count the number of posts so we can insert a widgetized area $count = 1; */ 
  7. while ( have_posts() ) : the_post() ?> 
  8. <div id="post-<?php the_ID() ?>" class="<?php thematic_post_class() ?>"> 
  9. <?php thematic_postheader(); ?> 
  10. <div class="entry-content"><?php  
  11. if ((is_home() || is_front_page()) && ($count > 1 || is_paged())) { 
  12. echo apply_filters('thematic_post', get_the_excerpt()); 
  13. else { 
  14. thematic_content(); 
  15. ?> 
  16. <?php wp_link_pages('before=<div class="page-link">' .__('Pages:', 'newtheme') . '&after=</div>') ?> 
  17. </div> 
  18. <?php thematic_postfooter(); ?> 
  19. </div><!-- .post --> 
  20. <?php comments_template(); 
  21. if ($count==$thm_insert_position) { 
  22. get_sidebar('index-insert'); 
  23. $count = $count + 1; 
  24. endwhile;