function get_standard_loop($args = array()) { $defaults = array('loops' => '1'); // merge arguments with defaults && set keys as variables $args = array_merge($defaults, $args); foreach ($args as $key => $val) { ${$key} = $val; } $i = 0; while ($i < $loops) { ?> <div class="row post-wrapper full-width-wrapper video-wrapper"> <?php get_video_post(); ?> </div> <div class="row post-wrapper vintage-wrapper"> <?php get_vintage_posts(); ?> </div> <div class="row post-wrapper vintage-wrapper"> <?php get_vintage_posts(); ?> </div> <div class="row post-wrapper full-width-wrapper full-story-wrapper"> <?php get_full_story_post(); ?> </div> <div class="row post-wrapper trending-wrapper"> <?php get_standard_post_feature(); ?> </div> <?php /* <div class="row post-wrapper standard-wrapper"> <?php get_standard_posts(); ?> </div> <div class="row post-wrapper full-width-wrapper video-wrapper"> <?php get_video_post(); ?> </div> <div class="row post-wrapper trending-wrapper"> <?php get_standard_post_feature(array('swap_columns' => true)); ?> </div> */ ?> <?php $i++; } }
</div> <div class="col-offset-center"> <div class="row"> <div class="col-xs-12 home-center-content"> <div class="row post-wrapper top-post-wrapper full-width-wrapper"> <?php $args = array('list_post_title' => '<i class="svg-trending"></i>RECENT HEADLINES'); get_top_posts($args); ?> </div> <div class="row post-wrapper full-width-wrapper video-wrapper"> <?php get_video_post(); ?> </div> <div class="row post-wrapper rr-wrapper"> <div class="col-xs-12"> <div class="trending-topic"><span class="svg svg-icon svg-rafting-icon-color"></span><span class="trending-slogan rr">Raver Rafting<span>WE ARE THE SCENE</span></span></div> </div> <?php get_brand_posts('rafting'); ?> </div> <div class="row post-wrapper trc-wrapper">