Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function render_content() {
- global $wp_theme_options;
- ?>
- <script type="text/javascript">
- jQuery(document).ready(function() {
- jQuery(".front-page-thumbnail img").hover(
- function () {
- jQuery(this).stop().fadeTo("fast", 0.7);
- },
- function () {
- jQuery(this).stop().fadeTo("fast", 1);
- }
- );
- });
- </script>
- <?php
- $temp = $my_query;
- $my_query = new WP_Query();
- $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
- $my_query->query('paged='.$paged . '&posts_per_page=' . get_option('posts_per_page'));
- $wideposts = 2;
- ?>
- <?php if ( $my_query->have_posts() ) : ?>
- <?php while ( $my_query->have_posts() ) : // The Loop ?>
- <?php $my_query->the_post(); ?>
- <?php if ($ct < $wideposts) { ?>
- <div class="widecol">
- <?php /*the_author_posts_link();*/ ?>
- <?php /*the_time(__('l, F j, Y', 'Builder'));*/ ?>
- <?php if (has_post_thumbnail()) { ?>
- <div class="front-page-thumbnail">
- <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail( 'front-page-thumbnail' ); ?></a>
- </div>
- <?php } ?>
- <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
- <div class="post-content">
- <?php the_excerpt(); ?>
- </div>
- </div>
- <?php } else { ?>
- <div class="magazine-post" style="width: <?php echo $wp_theme_options["home_width"] ?>px;">
- <?php /*the_author_posts_link();*/ ?>
- <?php /*the_time(__('l, F j, Y', 'Builder'));*/ ?>
- <?php if (has_post_thumbnail()) { ?>
- <div class="front-page-thumbnail">
- <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail( 'front-page-thumbnail' ); ?></a>
- </div>
- <?php } ?>
- <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
- <!--post text with the read more link -->
- <div class="post-content">
- <?php the_excerpt(); ?>
- </div>
- </div>
- <?php } ?>
- <?php $ct++; ?>
- <?php endwhile; // end of one post ?>
- <?php $my_query = null; $my_query = $temp;?>
- <!-- Previous/Next page navigation -->
- <div class="paging clearfix">
- <div class="alignleft"><?php previous_posts_link( __( '← Previous Page', 'it-l10n-BuilderChild-Ionic' ) ); ?></div>
- <div class="alignright"><?php next_posts_link( __( 'Next Page →', 'it-l10n-BuilderChild-Ionic' ) ); ?></div>
- </div>
- <?php else : // do not delete ?>
- <?php do_action( 'builder_template_show_not_found' ); ?>
- <?php endif; // do not delete ?>
- <?php
- }
- add_action( 'builder_layout_engine_render_content', 'render_content' );
- do_action( 'builder_layout_engine_render', basename( __FILE__ ) );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement