This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $i = 0; | |
| if ( have_posts() ) : while ( have_posts() ) : the_post(); | |
| if ($i == 0) echo '<div class="onleft">'; | |
| if ($i == (round($wp_query->post_count / 2))) echo '</div><div class="onright">'; | |
| the_title(); | |
| the_content(); | |
| if ($i == $wp_query->post_count) echo '</div>'; | |
| $i++; | |
| endwhile; endif; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php if (have_posts()) : $i=1; ?> | |
| <div class="wrap-box"> | |
| <?php while (have_posts()) : the_post(); ?> | |
| <div class="half-box<?php if ($i%2 == 0) echo ' even'; ?>"> | |
| <h3><?php the_title(); ?></h3> | |
| <?php the_content(); ?> | |
| </div> | |
| <?php $i++; endwhile; ?> | |
| </div> | |
| <?php endif;?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_editor_style(); | |
| // post thumbnail support | |
| add_theme_support( 'post-thumbnails' ); | |
| remove_action('wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0); | |
| remove_action('wp_head', 'next_post_rel_link', 10, 0); | |
| remove_action('wp_head', 'feed_links', 2); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var waitForFinalEvent = (function () { | |
| var timers = {}; | |
| return function (callback, ms, uniqueId) { | |
| if (!uniqueId) { | |
| uniqueId = "Don't call this twice without a uniqueId"; | |
| } | |
| if (timers[uniqueId]) { | |
| clearTimeout(timers[uniqueId]); | |
| } | |
| timers[uniqueId] = setTimeout(callback, ms); |
NewerOlder