function rehub_create_column($size = 'middle') { ?> <article class="rething_item small_post inf_scr_item"> <?php if (function_exists('has_post_thumbnail') && has_post_thumbnail()) { ?> <figure> <?php rehub_formats_icons('full'); ?> <span class="pattern"></span> <?php echo getPostLikeLink(get_the_ID()); ?> <?php rehub_permalink(); ?> <?php $img = get_post_thumb(); $nothumb = get_stylesheet_directory_uri() . '/images/noim.png'; if ($size == 'middle') { $params = array('width' => 381, 'height' => 255, 'crop' => true); } elseif ($size == 'small') { $params = array('width' => 280, 'height' => 186, 'crop' => true); } elseif ($size == 'big') { $params = array('width' => 579, 'height' => 386, 'crop' => true); } else { $params = array('width' => 381, 'height' => 255, 'crop' => true); } ?> <?php if (!empty($img)) { ?> <img src="<?php echo bfi_thumb($img, $params); ?> " alt="<?php the_title_attribute(); ?> " /> <?php } else { ?> <img src="<?php echo $nothumb; ?> " alt="<?php the_title_attribute(); ?> " /> <?php } ?> </a> </figure> <?php } ?> <div class="wrap_thing"> <div class="top"> <?php $category = get_the_category(get_the_ID()); ?> <?php if ($category) { $first_cat = $category[0]->term_id; meta_small(false, $first_cat, false, false); } ?> </div> <div class="hover_anons"> <h2><?php rehub_permalink(); the_title(); ?> </a></h2> <div class="post-meta"> <?php meta_small(true, false, true, false); ?> </div> <?php rehub_format_score('small'); ?> <p><?php kama_excerpt('maxchar=320'); ?> </p> </div> <?php rehub_create_btn('yes'); ?> </div> </article> <?php }
echo $image_url; ?> ');"> <span class="pattern"></span> <div class="flex-overlay"> <div class="flex-overlay-wrap"> <div class="post-meta"> <div class="inner_meta"><?php $category = get_the_category(get_the_ID()); $first_cat = $category[0]->term_id; meta_small(false, $first_cat, false, false); ?> </div> </div> <h2><?php rehub_permalink(); the_title(); ?> </a></h2> <div class="hero-description"><?php if ($dis_exerpt != '1') { ?> <p><?php kama_excerpt('maxchar=100'); ?> </p><?php } ?> </div> <?php rehub_create_btn('yes');