Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- #
- # rt-theme
- # post content for standart post types in listing pages
- #
- global $rt_list_style, $more, $rt_global_post_values;
- //extract global values
- extract( $rt_global_post_values );
- // Create thumbnail image
- $thumbnail_image_output = ! empty( $featured_image_id ) ? get_resized_image_output( array( "image_url" => "", "image_id" => $featured_image_id, "w" => $featured_image_width, "h" => $featured_image_height, "crop" => $crop ) ) : "";
- // Tiny image thumbnail for lightbox gallery feature
- $lightbox_thumbnail = ! empty( $featured_image_id ) ? rt_vt_resize( $featured_image_id, "", 75, 50, true ) : rt_vt_resize( $featured_image_id, "", 75, 50, true );
- $lightbox_thumbnail = is_array( $lightbox_thumbnail ) ? $lightbox_thumbnail["url"] : "" ;
- $rt_list_style = "style3";
- ?>
- <!-- blog box-->
- <article class="blog_list loop" id="post-<?php the_ID(); ?>">
- <?php if( $rt_list_style == "style1" ):?>
- <section class="first_section">
- <div class="date_box"><span class="day"><?php the_time("d") ?></span><span class="year"><?php the_time("M") ?> <?php the_time("Y") ?></span></div>
- </section>
- <?php endif;?>
- <section class="article_section <?php if( $rt_list_style != "style1" ):?>with_icon<?php endif;?>">
- <div class="blog-head-line clearfix">
- <div class="post-title-holder">
- <!-- blog headline-->
- <?php if( $rt_list_style == "style2" ):?><h2 class="icon-pencil"><?php else:?><h2><?php endif;?><a href="<?php echo $permalink ?>" rel="bookmark"><?php the_title(); ?></a></h2>
- <!-- / blog headline-->
- <?php do_action( "post_meta_bar" )?>
- </div><!-- / end div .post-title-holder -->
- </div><!-- / end div .blog-head-line -->
- <?php if( ! empty( $thumbnail_image_output ) ):?>
- <div class="imgeffect align<?php echo $featured_image_position;?>">
- <?php
- //create lightbox link
- do_action("create_lightbox_link",
- array(
- 'class' => 'icon-zoom-in lightbox_',
- 'href' => $featured_image_url,
- 'title' => __('Enlarge Image','rt_theme'),
- 'data_group' => 'image_'.$featured_image_id,
- 'data_title' => $title,
- 'data_thumbnail' => $lightbox_thumbnail,
- )
- );
- ?>
- <a href="<?php echo $permalink;?>" class="icon-link" title="<?php echo $title; ?>" rel="bookmark" ></a>
- <?php echo $thumbnail_image_output; ?>
- </div>
- <?php endif;?>
- <?php the_excerpt( __( 'Continue reading', 'rt_theme' ) ); ?>
- </section>
- </article>
- <!-- / blog box-->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement