function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base); $text = apply_filters('widget_text', empty($instance['text']) ? '' : $instance['text'], $instance); $show_excerpt = apply_filters('widget_text', empty($instance['excerpt']) ? '' : $instance['excerpt'], $instance); $post_offset = (isset($instance['post_offset']) and is_numeric($instance['post_offset'])) ? $instance['post_offset'] : 0; $tag_to_get = empty($instance['tag']) ? 'featured' : $instance['tag']; echo $before_widget; global $post; $args = array('tag' => $tag_to_get, 'numberposts' => 10, 'offset' => $post_offset, 'ignore_sticky_posts' => 1, 'order' => 'DESC'); if ($instance['order'] == 'popular') { $args['meta_key'] = 'wpb_post_views_count'; $args['orderby'] = 'wpb_post_views_count'; } echo !empty($title) ? '<h3 class="widget-head">' . $title . '</h3>' : ''; $myposts = get_posts($args); $views_array = array(); ?> <div class="swiper-container swiper-container-featured"> <a class="arrow-left" href="#"></a> <a class="arrow-right" href="#"></a> <div class="swiper-pagination"></div> <div class="swiper-wrapper"><?php foreach ($myposts as $post) { if (has_post_thumbnail()) { ?> <div class="swiper-slide swiper-slide-large" style="width:763px;"> <?php setup_postdata($post); ?> <a href="<?php echo get_permalink($post->ID); ?> " style="background-image: url('<?php echo get_post_image($post->ID, 'featured_post'); ?> ')"> <h3 class="post-title"><?php echo $post->post_title; if ($show_excerpt) { ?> <p class="post-excerpt"><?php echo substr(get_the_excerpt(), 0, 75); ?> </p><?php } ?> </h3> </a> </div><?php } } ?> </div> <!-- swiper-wrapper --> </div> <!-- swiper-container --><?php echo $after_widget; }
?> </h3> <p><?php echo substr($slider5->description, 0, 15) . '...'; ?> </p> <button type="button" class="btn btn-sm btn-danger pull-right btn5">View</button></a> </li> <?php } $sel_Query8 = "SELECT * FROM `resumes` where promote_resumes3 = 'sidebar' and country='{$country_name}' and payment_status = '1' ORDER BY id desc LIMIT 1"; $query8 = mysql_query($sel_Query8); while ($slider6 = mysql_fetch_object($query8)) { ?> <li class="content2" style="margin-top:10px;"><img src="img/<?php echo get_post_image($slider6->id, 'resumes'); ?> " class="img-responsive"> <a href="getresumes.php?id=<?php echo $slider6->id; ?> "><h3><?php echo get_post_tile_string($slider6->resumes_title); ?> </h3> <p><?php echo substr($slider6->description, 0, 15) . '...'; ?> </p> <button type="button" class="btn btn-sm btn-danger pull-right btn5">View</button></a>
$go = $default; } elseif (!is_numeric($go)) { $go = $default; } $nol = $go; $start = isset($_GET['offset']) && $_GET['offset'] != '' ? ($_GET['offset'] - 1) * $default : 0; $limit = "{$start}, {$nol}"; $count = 1; $top_query = mysql_query("SELECT * FROM `jobs` WHERE `urgent`='urgent' and payment_status = '1' ORDER BY id desc LIMIT {$limit}"); //date_time DESC while ($top = mysql_fetch_array($top_query)) { ?> <div class="col-lg-12 content3" style="background:#f4fcdd;" > <div class="col-lg-2"> <img src="img/<?php echo get_post_image($top['id'], 'jobs'); ?> " class="img-responsive"> </div> <div class="col-lg-10 "> <a href="getjobs.php?id=<?php echo $top['id']; ?> "><h3 style="margin-left:20px;"><?php echo get_post_tile_string($top['jobs_title']); ?> </h3> <p style="margin-left:20px;"><?php echo substr($top['description'], 0, 15) . '...'; ?> </p>
?> <div class="col-lg-4"> <?php if ($row->promote_ads == 'high') { echo "<div class='high'>"; } else { echo "<div class='slider'>"; } ?> <?php $imgdeal = $row->images; ?> <img src="img/<?php echo get_post_image($row->id, 'ads'); ?> " class="img-responsive"> <a href="getads.php?id=<?php echo $row->id; ?> "> <h3><?php echo get_post_tile_string($row->ads_title); ?> </h3> <p><?php
<td><input type="hidden" size="34" name="longitude" value="" id="lng"/></td> </tr> </table> <div class="col-lg-12 getadscon" style=" margin-top:20px;"> <div class="sub1 col-lg-12" style="background:#FFCC33; border:#FFCC33 solid 1px; border-radius:0px;"> <h4>Hot coupons</h4> </div> <div class="col-lg-12 getadscon"><?php $top_query = mysql_query("SELECT * FROM `coupons` where payment_status = '1' ORDER BY id DESC LIMIT 3"); while ($top = mysql_fetch_array($top_query)) { ?> <div class="col-lg-4"> <div class="content2" style="margin-top:10px;"> <img src="img/<?php echo get_post_image($top->id, 'coupons'); ?> " class="img-responsive"> <a href="getcoupons.php?id=<?php echo $top['id']; ?> "> <h3><?php echo get_post_tile_string($top['coupon']); ?> </h3> <p><?php echo $top['description'] == '' ? '' : substr(htmlspecialchars($top['description']), 0, 20) . '...'; ?>
<li class="clearfloat"> <a href="<?php the_permalink(); ?> " rel="bookmark" title="<?php the_title(); ?> "><?php echo get_post_image(get_the_id(), '', '', '' . get_bloginfo('template_url') . '/scripts/timthumb.php?zc=1&w=80&h=65&src='); ?> </a> <h4><a href="<?php the_permalink(); ?> " rel="bookmark" title="<?php the_title(); ?> "><?php the_title(); ?> </a></h4> <p class="postmetadata"><?php the_time('F j, Y'); ?> </p> </li>
$sql = mysql_query("{$query} LIMIT {$limit}") or die("Error in query: {$sql}" . mysql_error()); while ($row = mysql_fetch_object($sql)) { ?> <div class="col-lg-4"> <?php if ($row->promote_coupons == 'high') { echo "<div class='high'>"; } else { echo "<div class='slider'>"; } ?> <img src="img/<?php echo get_post_image($row->id, 'coupons'); ?> " class="img-responsive"> <a href="getdeals.php?id=<?php echo $row->id; ?> "><h3><?php echo get_post_tile_string($row->coupons_title); ?> </h3> <p><?php echo substr($row->description, 0, 15) . '...'; ?> </p> <button type="button" class="btn btn-sm btn-danger pull-right btn5">View</button> </a> </div>
$sql = mysql_query("{$query} LIMIT {$limit}") or die("Error in query: {$sql}" . mysql_error()); while ($row = mysql_fetch_object($sql)) { ?> <div class="col-lg-4"> <?php if ($row->promote_flyers == 'high') { echo "<div class='high'>"; } else { echo "<div class='slider'>"; } ?> <img src="img/<?php echo get_post_image($row->id, 'flyers'); ?> " class="img-responsive"> <a href="getdeals.php?id=<?php echo $row->id; ?> "><h3><?php echo get_post_tile_string($row->flyers_title); ?> </h3> <p><?php echo substr($row->description, 0, 15) . '...'; ?> </p> <button type="button" class="btn btn-sm btn-danger pull-right btn5">View</button> </a> </div>
function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base); $text = apply_filters('widget_text', empty($instance['text']) ? '' : $instance['text'], $instance); $post_offset = (isset($instance['post_offset']) and is_numeric($instance['post_offset'])) ? $instance['post_offset'] : 0; $tag_to_get = !of_get_option('featured_tag') ? 'featured' : of_get_option('featured_tag'); echo $before_widget; global $post; // if it's not a slider if (empty($instance['slider']) || !$instance['slider']) { if ($instance['order'] == 'popular') { $args = array('tag' => $tag_to_get, 'numberposts' => 1, 'offset' => $post_offset, 'meta_key' => 'wpb_post_views_count', 'orderby' => 'wpb_post_views_count', 'ignore_sticky_posts' => 1, 'order' => 'DESC'); } else { $args = array('tag' => $tag_to_get, 'numberposts' => 1, 'offset' => $post_offset, 'ignore_sticky_posts' => 1, 'order' => 'DESC'); } $myposts = get_posts($args); if (has_post_format('video', $myposts[0]->ID) && $instance['video']) { echo !empty($title) ? '<h3 class="widget-head">' . $title . '<a class="scale" href="' . get_permalink($myposts[0]->ID) . '">' . $myposts[0]->post_title . '</a></h3>' : '<a class="scale" href="' . get_permalink($myposts[0]->ID) . '"><h3>' . $myposts[0]->post_title . '</h3></a>'; } else { echo !empty($title) ? '<h3 class="widget-head">' . $title . '</h3>' : ''; } echo '<div class="widget-body">'; if (has_post_format('video', $myposts[0]->ID) && $instance['video']) { $video_content = get_post_meta($myposts[0]->ID, '_format_video_embed', true); $video_content = preg_replace('#\\<iframe(.*?)\\ssrc\\=\\"(.*?)\\"(.*?)\\>#i', '<iframe$1 src="$2?wmode=opaque"$3>', $video_content); $video_content = preg_replace('#\\<iframe(.*?)\\ssrc\\=\\"(.*?)\\?(.*?)\\?(.*?)\\"(.*?)\\>#i', '<iframe$1 src="$2?$3&$4"$5>', $video_content); echo $video_content; } else { echo '<img src="' . get_post_image($myposts[0]->ID, 'featured_post') . '">'; echo '<div class="featured_post_overlay"></div>'; } echo '<h4><a class="scale" href="' . get_permalink($myposts[0]->ID) . '">' . $myposts[0]->post_title . '</a></h4>'; if (!empty($instance['excerpt']) && $instance['excerpt']) { echo '<p>' . bl_truncate($myposts[0]->post_content, 65, ' ') . '</p>'; } echo '</div>'; } else { if ($instance['order'] == 'popular') { $args = array('tag' => $tag_to_get, 'numberposts' => 5, 'offset' => $post_offset, 'meta_key' => 'wpb_post_views_count', 'orderby' => 'wpb_post_views_count', 'ignore_sticky_posts' => 1, 'order' => 'DESC'); } else { $args = array('tag' => $tag_to_get, 'numberposts' => 5, 'offset' => $post_offset, 'ignore_sticky_posts' => 1, 'order' => 'DESC'); } $myposts = get_posts($args); $views_array = array(); echo '<ul class="featured_gallery clearfix">'; foreach ($myposts as $post) { echo '<li>'; if (has_post_format('video', $post->ID) && $instance['video']) { echo !empty($title) ? '<h3 class="widget-head">' . $title . '<a class="scale" href="' . get_permalink($post->ID) . '">' . $post->post_title . '</a></h3>' : '<a class="scale" href="' . get_permalink($post->ID) . '"><h3>' . $post->post_title . '</h3></a>'; } else { echo !empty($title) ? '<h3 class="widget-head">' . $title . '</h3>' : ''; } echo '<div class="widget-body">'; if (has_post_format('video', $post->ID) && $instance['video']) { $video_content = get_post_meta($post->ID, '_format_video_embed', true); $video_content = preg_replace('#\\<iframe(.*?)\\ssrc\\=\\"(.*?)\\"(.*?)\\>#i', '<iframe$1 src="$2?wmode=opaque"$3>', $video_content); $video_content = preg_replace('#\\<iframe(.*?)\\ssrc\\=\\"(.*?)\\?(.*?)\\?(.*?)\\"(.*?)\\>#i', '<iframe$1 src="$2?$3&$4"$5>', $video_content); echo $video_content; } else { echo '<img src="' . get_post_image($post->ID, 'featured_post') . '">'; echo '<div class="featured_post_overlay"></div>'; } echo '<h4><a class="scale" href="' . get_permalink($post->ID) . '">' . $post->post_title . '</a></h4>'; if (!empty($instance['excerpt']) && $instance['excerpt']) { echo '<p>' . bl_truncate($post->post_content, 65, ' ') . '</p>'; } echo '</div>'; echo '</li>'; } echo '</ul>'; echo '<div class="left_arrow featured_box_arrow visible-desktop"><i class="icon-left-open-1"></i></div>'; echo '<div class="right_arrow featured_box_arrow visible-desktop"><i class="icon-right-open-1"></i></div>'; ?> <script type="text/javascript"> jQuery(function(){ total_images = <?php echo count($myposts) - 1; ?> , li_index = 0; li_width = '100%'; li_height = jQuery( '.featured_gallery li' ).eq(0).height(); jQuery( '.featured_gallery').closest( '.bl_featured_post' ).css('height', li_height); jQuery('.featured_box_arrow').click(function(){ if(jQuery(this).hasClass('left_arrow') && li_index > 0){ li_height = jQuery( this ).siblings('.featured_gallery').children('li').eq(li_index-1).height(); jQuery( this ).closest('.bl_featured_post').animate({height: li_height}, 150, 'swing') jQuery( this ).siblings('.featured_gallery').animate({left: '+='+li_width}, 150, 'swing'); li_index--; }else if(jQuery(this).hasClass('right_arrow') && li_index < total_images){ li_height = jQuery( this ).siblings('.featured_gallery').children('li').eq(li_index+1).height(); jQuery( this ).closest('.bl_featured_post').animate({height: li_height}, 150, 'swing') jQuery( this ).siblings('.featured_gallery').animate({left: '-='+li_width}, 150, 'swing'); li_index++; } }); }); </script><?php } echo $after_widget; }
function blog_open_graph_meta() { global $data, $post, $paged, $page; $ogImg = false; // if(is_page_template('page.php') || is_single()) { if (is_page() || is_single()) { $ogImg = get_post_image(); if (!$ogImg) { $ogImg = get_post_first_image(); } if (!$ogImg) { $ogImg = get_youtube_vimeo_thumb_url(get_post_meta($post->ID, 'tt-video-embed', true)); } if (!$ogImg) { $slide_imgs = get_post_meta($post->ID, 'tt_slide_images', true); $ogImg = !empty($slide_imgs[0]['image']) ? $slide_imgs[0]['image'] : false; } } ?> <!-- START - Open Graph Meta --> <meta property='og:title' content='<?php wp_title('|', true, 'right'); bloginfo('name'); $site_description = get_bloginfo('description', 'display'); if ($site_description && (is_home() || is_front_page())) { echo " | {$site_description}"; } if ($paged >= 2 || $page >= 2) { echo ' | ' . sprintf(__('Page %s', 'themeton'), max($paged, $page)); } ?> '/> <meta property='og:image' content='<?php echo $ogImg ? $ogImg : ''; ?> '/> <meta property='og:site_name' content='<?php bloginfo('name'); ?> '/> <meta property='og:description' content='<?php echo get_bloginfo('description'); ?> '/> <!-- END - Open Graph Meta --><?php }
foreach ($po as $pos) { ?> <?php setup_postdata($pos); ?> <div class="content_left col-lg-4 col-md-4 col-sm-5 col-xs-12"> <a href='<?php echo get_permalink($pos->ID); ?> '> <?php if (get_the_post_thumbnail($pos->ID, 'one')) { echo get_the_post_thumbnail($pos->ID, 'one', true); } else { get_post_image($pos->post_content); } ?> <?php // get_post_image($pos->post_content); ?> </a><br> <b><?php echo substr($pos->post_title, 0, 15); ?> ......</b><br> <small> <img src="<?php bloginfo('template_url'); ?> /images/touxiang1.png">Postedby:<?php
/** use this function to decide how the widget will display in your theme */ public function widget($args, $instance) { if (is_single()) { extract($args); $title = apply_filters('widget_title', $instance['title']); $show_meta = $instance['meta']; $show_thumbnail = $instance['thumbnail']; $count = esc_attr($instance['count']); if (!$count) { $count = 3; } $count = (int) $count; $duration = esc_attr($instance['duration']); if (!$duration) { $duration = 1; } $duration = (int) $duration; echo $before_widget; if ($title) { echo $before_title . $title . $after_title; } // save post for backup later global $post; $origin_post = $post; /*QUERY*/ // common query $args = array('posts_per_page' => $count, 'order' => 'DESC', 'orderby' => 'rand', 'post__not_in' => array($post->ID)); // time query if ($duration == 2) { //1 year ago $args = wp_parse_args($args, array('date_query' => array(array('column' => 'post_date_gmt', 'before' => '1 year ago')))); } else { if ($duration == 3) { //1 month ago $args = wp_parse_args($args, array('date_query' => array(array('column' => 'post_date_gmt', 'before' => '1 month ago')))); } else { if ($duration == 4) { //1 week ago $args = wp_parse_args($args, array('date_query' => array(array('column' => 'post_date_gmt', 'before' => '1 week ago')))); } } } $tags = wp_get_post_tags($post->ID); if ($tags) { /*Get post from tags if post had at least 1 tag*/ $tag_ids = array(); foreach ($tags as $tag) { $tag_ids[] = $tag->term_id; } $args = wp_parse_args($args, array('tag__in' => $tag_ids)); } else { $cat_ids = wp_get_post_categories($post->ID); if ($cat_ids) { /*in case empty tags, get from cate*/ $args = wp_parse_args($args, array('category__in ' => $cat_ids)); } /* else: just random posts */ } $my_query = new WP_Query($args); // Show HTML if ($my_query->have_posts()) { echo '<div class="news-box three related-news"><div class="outer"><ul class="content">'; $counter = 0; while ($my_query->have_posts()) { $my_query->the_post(); // preparing for flexible home layout output $item_img_medium = '<a href="' . get_permalink() . '" title="' . __('Click to read', THEME_DOMAIN) . '" class="item-thumbnail">' . get_post_image(get_the_ID(), 'medium', array('alt' => 'item-thumbnail', 'title' => esc_attr(get_the_title()))) . '</a>'; $item_title = '<h3 class="title"><a href="' . get_permalink() . '" title="' . __('Click to read', THEME_DOMAIN) . '">' . get_the_title() . '</a></h3>'; $item_snip = get_the_snippet(); $item_meta = '<div class="meta">'; if (comments_open()) { $item_meta .= '<a href="' . get_comments_link() . '" class="comment"><i class="icon"></i><span>' . get_comments_number() . '</span></a>'; } $item_meta .= '<a href="' . get_permalink() . '" class="date"><i class="icon"></i><span>' . get_the_date() . '</span></a>'; $item_meta .= '</div>'; echo '<li class="item item-' . $counter . ' item-' . ($counter == 0 ? 'first' : 'other') . '"><div class="inner">'; echo ($show_thumbnail ? $item_img_medium : '') . ($show_meta ? $item_meta : '') . $item_title; echo '<div class="clear"></div></div></li>'; $counter++; } echo '</ul></div><div class="clear"></div></div>'; } wp_reset_postdata(); echo $after_widget; $post = $origin_post; } // is_single }
$sql = mysql_query("{$query} LIMIT {$limit}") or die("Error in query: {$sql}" . mysql_error()); while ($row = mysql_fetch_object($sql)) { ?> <div class="col-lg-4"> <?php if ($row->promote_resumes == 'high') { echo "<div class='high'>"; } else { echo "<div class='slider'>"; } ?> <img src="img/<?php echo get_post_image($row->id, 'resumes'); ?> " style="max-height: 100px;" height="100px"> <a href="getresumes.php?id=<?php echo $row->id; ?> "><h3 style="margin-left:20px;"><?php echo get_post_tile_string($row->resumes_title); ?> </h3> <p><?php echo substr($row->description, 0, 15) . '...'; ?> </p> <button type="button" class="btn btn-sm btn-danger pull-right btn5">View</button> </a> </div>
<?php if (has_tag() && !of_get_option('disable_footer_post')) { ?> <ul><?php the_tags('<li>', ', ', '</li>'); ?> </ul><?php } if (!of_get_option('disable_share_story')) { $share_buttons_disabled = of_get_option('share_buttons_disabled'); $share_buttons_position = of_get_option('share_buttons_position'); if (is_single() && !empty($share_buttons_position['single']) || is_home() && !empty($share_buttons_position['blog']) || is_page() && !empty($share_buttons_position['pages'])) { $share_image = $share_title = urlencode(html_entity_decode(get_the_title(), ENT_COMPAT, 'UTF-8')); $share_url = urlencode(get_permalink()); $share_image = urlencode(get_post_image(get_the_ID(), 'large', false)); ?> <div class="share-story-container"> <h4 class="muted pull-left"><?php _e('Share story', 'bluth'); ?> </h4> <ul class="share-story"> <?php if (!$share_buttons_disabled['facebook']) { ?> <li><a class="tips" data-title="Facebook" href="javascript:void(0);" onClick="social_share('http://www.facebook.com/sharer.php?u=<?php echo $share_url; ?> &t=<?php echo $share_title;
public static function get_slides($args) { $args = su_parse_args($args, array('source' => 'none', 'limit' => 20, 'offset' => 0, 'gallery' => null, 'type' => '', 'order' => '', 'order_by' => 'desc', 'link' => 'attachment')); // Prepare empty array for slides $slides = array(); // Loop through source types foreach (array('media', 'posts', 'category', 'k2-category') as $type) { if (strpos(trim($args['source']), $type . ':') === 0) { $args['source'] = array('type' => $type, 'val' => (string) trim(str_replace(array($type . ':', ' '), '', $args['source']), ',')); break; } } // Source is not parsed correctly, return empty array if (!is_array($args['source'])) { return $slides; } // Source: media if ($args['source']['type'] === 'media') { $images = (array) explode(',', $args['source']['val']); foreach ($images as $post) { $slide = array('image' => $post, 'link' => $post, 'url' => $post, 'title' => '', 'text' => $post); if ($args['link'] === 'image') { $slide['link'] = $slide['image']; } $slides[] = $slide; } return $slides; } elseif ($args['source']['type'] === 'category') { $catid = (array) explode(',', $args['source']['val']); $order = $args['order']; // title/created/ordering/hits $order_by = $args['order_by']; // asc/desc if ($order == '') { $orderby = ''; } else { if ($order == 'title') { $orderby = 'a.title ' . $order_by . ' '; } else { if ($order == 'created') { $orderby = 'a.created ' . $order_by . ' '; } else { if ($order == 'modified') { $orderby = 'a.modified ' . $order_by . ' '; } else { if ($order == 'publish_up') { $orderby = 'a.publish_up ' . $order_by . ' '; } else { if ($order == 'ordering') { $orderby = 'a.ordering ' . $order_by . ' '; } else { if ($order == 'hits') { $orderby = 'a.hits ' . $order_by . ' '; } } } } } } } $results = self::getArticles($catid, $order, $orderby, $args['limit'], $args['offset']); } elseif ($args['source']['type'] === 'k2-category') { $catid = (array) explode(',', $args['source']['val']); $order = $args['order']; // title/created/ordering/hits $order_by = $args['order_by']; // asc/desc if ($order == '') { $orderby = ''; } else { if ($order == 'title') { $orderby = 'a.title ' . $order_by . ' '; } else { if ($order == 'created') { $orderby = 'a.created ' . $order_by . ' '; } else { if ($order == 'modified') { $orderby = 'a.modified ' . $order_by . ' '; } else { if ($order == 'publish_up') { $orderby = 'a.publish_up ' . $order_by . ' '; } else { if ($order == 'ordering') { $orderby = 'a.ordering ' . $order_by . ' '; } else { if ($order == 'hits') { $orderby = 'a.hits ' . $order_by . ' '; } } } } } } } $results = self::get_k2_Articles($catid, $order, $orderby, $args['limit'], $args['offset']); } // Loop through posts if (is_array($results)) { foreach ($results as $post) { // Get post thumbnail ID if ($args['source']['type'] === 'k2-category') { $k2_img = JPATH_SITE . '/media/k2/items/cache/' . md5("Image" . $post->id) . '_XL.jpg'; if (file_exists($k2_img)) { $thumb = 'media/k2/items/cache/' . md5("Image" . $post->id) . '_XL.jpg'; } else { $thumb = null; } $link = K2HelperRoute::getItemRoute($post->id . ':' . urlencode($post->alias), $post->catid . ':' . urlencode($post->categoryalias)); } elseif ($args['source']['type'] === 'category') { $thumb = get_post_image($post); $slug = $post->id . ':' . $post->alias; $catslug = $post->catid . ':' . $post->category_alias; $link = JRoute::_(ContentHelperRoute::getArticleRoute($slug, $catslug)); } elseif ($args['source']['type'] === 'media') { $thumb = $post->id; $link = $slide['image']; } else { $thumb = null; } // post array $slide = array('id' => $post->id, 'alias' => $post->alias, 'created_by' => $post->created_by, 'category' => $post->category_title, 'title' => $post->title, 'introtext' => $post->introtext, 'fulltext' => $post->fulltext, 'image' => $thumb, 'link' => $link, 'created' => $post->created, 'hits' => $post->hits); $slides[] = $slide; } } // Return slides return $slides; }
$go = $default; } elseif (!is_numeric($go)) { $go = $default; } $nol = $go; $start = isset($_GET['offset']) && $_GET['offset'] != '' ? ($_GET['offset'] - 1) * $default : 0; $limit = "{$start}, {$nol}"; $count = 1; $top_query = mysql_query("SELECT * FROM `resumes` WHERE `urgent`='urgent' and payment_status = '1' ORDER BY id desc LIMIT {$limit}"); //date_time DESC while ($top = mysql_fetch_array($top_query)) { ?> <div class="col-lg-12 content3" style="background:#f4fcdd;" > <div class="col-lg-2"> <img src="img/<?php echo get_post_image($top['id'], 'resumes'); ?> " class="img-responsive"> </div> <div class="col-lg-10 "> <a href="getresumes.php?id=<?php echo $top['id']; ?> "><h3 style="margin-left:20px;"><?php echo get_post_tile_string($top['resumes_title']); ?> </h3> <p style="margin-left:20px;"><?php echo substr($top['description'], 0, 15) . '...'; ?> </p>
" class="nav-previous" style="width: 49%;"> <?php $post_format = get_post_format($post->ID) ? get_post_format($post->ID) : 'standard'; ?> <div class="bgfallback"> </div><?php if ($post) { ?> <span> </span> <div class="tab_icon tab_<?php echo $post_format; ?> "><i class="<?php echo get_post_icon($post->ID); ?> "></i></div> <div class="bgimage" style="background-image: url('<?php echo get_post_image($post->ID, 'small'); ?> ');"></div> <h5 style="padding-top: 25px;"><?php echo get_the_title($post->ID); ?> </h5><?php echo the_excerpt(); } ?> </a> <?php } echo '</div>'; } wp_reset_query(); $my_query2 = new wp_query(array('posts_per_page' => 50, 'author' => $curauth->ID));
<td width="70"></td> <td><input type="hidden" size="34" name="longitude" value="" id="lng" /></td> </tr> </table> <div class="col-lg-12 getadscon" style=" margin-top:20px;"> <div class="sub1 col-lg-12" style="background:#FFCC33; border:#FFCC33 solid 1px; border-radius:0px;"> <h4>Hot deals</h4> </div> <div class="col-lg-12 getadscon" ><?php $top_query = mysql_query("SELECT * FROM `deals` where payment_status = '1' ORDER BY id DESC LIMIT 3"); while ($top = mysql_fetch_array($top_query)) { ?> <div class="col-lg-4"> <div class="content2" style="margin-top:10px;"> <img src="img/<?php echo get_post_image($top['id'], 'deals'); ?> " class="img-responsive"> <a href="getdeals.php?id=<?php echo $top['id']; ?> "><h3><?php echo get_post_tile_string($top['deals_title']); ?> </h3> <p><?php echo $top['description'] == '' ? '' : substr(htmlspecialchars($top['description']), 0, 20) . '...'; ?> </p> <button type="button" class="btn btn-sm btn-danger pull-right btn5">View</button> </a></div>
$sql = mysql_query("{$query} LIMIT {$limit}") or die("Error in query: {$sql}" . mysql_error()); while ($row = mysql_fetch_object($sql)) { ?> <div class="col-lg-4"> <?php if ($row->promote_jobs == 'high') { echo "<div class='high'>"; } else { echo "<div class='slider'>"; } ?> <img src="img/<?php echo get_post_image($row->id, 'jobs'); ?> " class="img-responsive"> <a href="getdeals.php?id=<?php echo $row->id; ?> "><h3><?php echo get_post_tile_string($row->jobs_title); ?> </h3> <p><?php echo substr($row->description, 0, 15) . '...'; ?> </p> <button type="button" class="btn btn-sm btn-danger pull-right btn5">View</button> </a> </div>
<td width="70"></td> <td><input type="hidden" size="34" name="longitude" value="" id="lng" /></td> </tr> </table> <div class="col-lg-12 getadscon" style=" margin-top:20px;"> <div class="sub1 col-lg-12" style="background:#FFCC33; border:#FFCC33 solid 1px; border-radius:0px;"> <h4>Hot flyers</h4> </div> <div class="col-lg-12 getadscon" ><?php $top_query = mysql_query("SELECT * FROM `flyers` where payment_status = '1' ORDER BY id DESC LIMIT 3"); while ($top = mysql_fetch_array($top_query)) { ?> <div class="col-lg-4"> <div class="content2" style="margin-top:10px;"> <img src="img/<?php echo get_post_image($top['id'], 'flyers'); ?> " class="img-responsive"> <a href="getflyers.php?id=<?php echo $top['id']; ?> "><h3><?php echo get_post_tile_string($top['flyers_title']); ?> </h3> <p><?php echo $top['description'] == '' ? '' : substr(htmlspecialchars($top['description']), 0, 20) . '...'; ?> </p> <button type="button" class="btn btn-sm btn-danger pull-right btn5">View</button> </a></div>
<td width="70"></td> <td><input type="hidden" size="34" name="longitude" value="" id="lng" /></td> </tr> </table> <div class="col-lg-12 getadscon" style=" margin-top:20px;"> <div class="sub1 col-lg-12" style="background:#FFCC33; border:#FFCC33 solid 1px; border-radius:0px;"> <h4>Hot resumes</h4> </div> <div class="col-lg-12 getadscon" ><?php $top_query = mysql_query("SELECT * FROM `resumes` where payment_status = '1' ORDER BY id DESC LIMIT 3"); while ($top = mysql_fetch_array($top_query)) { ?> <div class="col-lg-4"> <div class="content2" style="margin-top:10px;"> <img src="img/<?php echo get_post_image($top->id, 'resumes'); ?> " class="img-responsive"> <a href="getresumes.php?id=<?php echo $top['id']; ?> "><h3><?php echo get_post_tile_string($top['resumes_title']); ?> </h3> <p><?php echo $top['description'] == '' ? '' : substr(htmlspecialchars($top['description']), 0, 20) . '...'; ?> </p> <button type="button" class="btn btn-sm btn-danger pull-right btn5">View</button> </a></div>
function widget($args, $instance) { extract($args, EXTR_SKIP); $show_recent_posts = $instance['show_recent_posts'] == 'No' ? false : true; $show_recent_comments = $instance['show_recent_comments'] == 'No' ? false : true; $show_tags = $instance['show_tags'] == 'No' ? false : true; $num_tags = (isset($instance['num_tags']) and is_numeric($instance['num_tags'])) ? $instance['num_tags'] : 20; $num_posts = (isset($instance['num_posts']) and is_numeric($instance['num_posts'])) ? $instance['num_posts'] : 5; $num_comments = (isset($instance['num_comments']) and is_numeric($instance['num_comments'])) ? $instance['num_comments'] : 5; echo $before_widget; ?> <?php echo !empty($instance['title']) ? '<h3 class="widget-head">' . $instance['title'] . '</h3>' : ''; ?> <ul class="nav nav-tabs" id="bl_side_tabs"> <?php if ($show_recent_posts) { ?> <li class="active"><a href="#bl_side_posts"><?php _e('Posts', 'bluth'); ?> </a></li><?php } ?> <?php if ($show_recent_comments) { ?> <li><a href="#bl_side_comments"><?php _e('Comments', 'bluth'); ?> </a></li><?php } ?> <?php if ($show_tags) { ?> <li><a href="#bl_side_tags"><?php _e('Tags', 'bluth'); ?> </a></li><?php } ?> </ul> <div class="tab-content"> <?php if ($show_recent_posts) { ?> <div class="tab-pane active" id="bl_side_posts"> <ul> <?php global $post; $args = array('numberposts' => $num_posts); if (!empty($instance['cat_posts'])) { $args['category'] = implode(',', $instance['cat_posts']); } $myposts = get_posts($args); foreach ($myposts as $post) { setup_postdata($post); ?> <li> <?php $post_thumbnail = get_post_image($post->ID, 'thumbnail', false); if ($post_thumbnail) { echo '<a class="tab_attachment" href="' . get_permalink() . '"><img width="80" height="80" src="' . $post_thumbnail . '" /></a>'; } else { $post_format = get_post_format() ? get_post_format() : 'standard'; $icon = of_get_option($post_format . '_icon', false); $icon_default = array('standard' => 'icon-calendar-3', 'audio' => 'icon-volume-up', 'video' => 'icon-videocam', 'quote' => 'icon-quote-left', 'link' => 'icon-link', 'image' => 'icon-picture-1', 'gallery' => 'icon-picture'); $icon = $icon !== false ? $icon : $icon_default[$post_format]; echo '<a class="tab_attachment" href="' . get_permalink() . '">'; echo '<div class="tab_icon tab_' . $post_format . '">'; echo '<i class="' . $icon . '"></i>'; echo '</div>'; echo '</a>'; } echo '<div class="tab_text"><h5><a href="' . get_permalink() . '">' . get_the_title() . '</a><small> <time class="entry-date" datetime="' . get_the_date('c') . '">' . get_the_date() . '</time></small></h5></div>'; ?> </li><?php } wp_reset_postdata(); ?> </ul> </div> <?php } ?> <?php if ($show_recent_comments) { ?> <div class="tab-pane" id="bl_side_comments"> <?php $recent_comments = get_comments(array('number' => $num_comments, 'status' => 'approve', 'type' => 'comment')); if (count($recent_comments) > 0) { echo '<ul>'; foreach ($recent_comments as $comment) { echo '<li>'; echo '<div class="tab_attachment">' . get_avatar($comment, 55) . '</div>'; echo '<div class="tab_text">'; echo '<h5><a href="' . get_permalink($comment->comment_post_ID) . '">'; echo '<span>' . $comment->comment_author . '</span><br>'; echo strlen($comment->comment_content) > 50 ? substr($comment->comment_content, 0, 50) . '...' : $comment->comment_content; echo '</a></h5></div>'; echo '</li>'; } echo '</ul>'; } ?> </div><?php } ?> <?php if ($show_tags) { ?> <div class="tab-pane" id="bl_side_tags"> <?php $tags = get_tags(array('orderby' => 'count', 'order' => 'DESC', 'number' => $num_tags)); foreach ($tags as $tag) { $tag_link = get_tag_link($tag->term_id); echo '<a href="' . $tag_link . '" title="' . $tag->name . ' Tag" class="bl_tab_tag">' . $tag->name . '</a>'; } ?> </div> <?php } ?> </div> <script type="text/javascript"> jQuery(function () { jQuery('#bl_side_tabs a').click(function (e) { e.preventDefault(); jQuery('.bl_tabs .tab-content ul li').css('right', '-110%'); jQuery(this).tab('show'); jQuery(jQuery(this).attr('href')).find('li').each(function(i){ jQuery(this).delay(50*i).animate({right: '0'}, 150, 'swing'); }); }); setTimeout(function(){ jQuery('.bl_tabs .tab-content .active ul li').each(function(i){ jQuery(this).delay(50*i).animate({right: '0'}, 150, 'swing'); }); },500) }); </script> <?php echo $after_widget; }
function post_image_show_auto_size($permalink = false, $noimage = false, $custom_link = '') { global $post, $format, $single, $customlink, $data, $is_featured_post; $customlink['klass'] = $slide_imgs = $videoIcon = ""; $size = array('small' => array(175, 370), 'medium' => array(214, 448), 'large' => array(272, 564), 'x-large' => array(370, 760)); if (isset($data['item_size']) && $data['item_size'] != '') { $size = $size[$data['item_size']]; $size = $is_featured_post != '' ? $size[1] : $size[0]; } else { $size = 221; } $post_image_tumb = get_post_image(); $image_meta = 'tt_slide_images'; if ($image_meta != '') { $slide_imgs = get_post_meta($post->ID, $image_meta, true); } if (!has_post_thumbnail($post->ID) && !($slide_imgs != '' && count($slide_imgs) > 0)) { if ($format == 'video') { $videoThumb = get_youtube_vimeo_thumb_url(get_post_meta($post->ID, 'tt-video-embed', true)); $youtube = 'src="http://www.youtube.com/embed/'; $vimeo = 'src="http://player.vimeo.com/video/'; if (strpos(get_post_meta($post->ID, 'tt-video-embed', true), $youtube)) { $videoIcon = '<div class="instagram-link"><img src="' . get_template_directory_uri() . '/images/youtube-icon.png"></div>'; } else { if (strpos(get_post_meta($post->ID, 'tt-video-embed', true), $vimeo)) { $videoIcon = '<div class="instagram-link"><img src="' . get_template_directory_uri() . '/images/vimeo-icon.png"></div>'; } } if ($videoThumb !== false) { $post_image_tumb = $videoThumb; } } } if (!empty($post_image_tumb) || $slide_imgs != '' && count($slide_imgs) > 0) { $lrg_img = $post_image_tumb; $klass = $format == 'video' ? 'iconVideo' : 'iconImage'; ?> <div class="item-image"> <div class="entry-image clearfix"> <div class="hover-content"> <?php if (!empty($post_image_tumb) || $slide_imgs != '' && count($slide_imgs) == 1) { $ilink = $lrg_img; $pre_classes = "preload imgSmall item-preview "; $classes = $pre_classes; if (!empty($post_image_tumb)) { $classes .= $klass; } elseif ($slide_imgs != '' && isset($slide_imgs[0])) { $post_image_tumb = $slide_imgs[0]['image']; $ilink = $lrg_img; $classes .= $klass; } $rell = count($slide_imgs) > 1 ? "prettyPhoto[" . $post->ID . "]" : 'prettyPhoto'; if (!$permalink) { $ilink = $customlink['enable'] == 'true' ? $customlink['url'] : get_permalink($post->ID); $rell = ''; } if (!is_single() && !is_page()) { ?> <a title="<?php the_title(); ?> " href="<?php print $ilink; ?> "<?php echo $customlink['target']; ?> class="<?php print $classes . $customlink['klass']; ?> item-click-modal" rel="<?php print $rell; ?> "> <img src="<?php print $post_image_tumb; ?> " alt="" style="width:100%; height:auto;" /> </a> <?php } else { ?> <img src="<?php print $post_image_tumb; ?> " alt="" style="width:100%; height:auto;" /> <?php } echo $videoIcon; } elseif ($slide_imgs != '' && count($slide_imgs) > 1) { ?> <div class="flexslider"> <ul class="slides item-click-modal<?php echo $customlink['klass']; ?> "><?php foreach ($slide_imgs as $immg) { $ilink = $immg['image']; $pre_classes = "preload imgSmall item-preview "; $classes = $pre_classes; $classes .= $klass; $rell = count($slide_imgs) > 1 ? "prettyPhoto[" . $post->ID . "]" : 'prettyPhoto'; if (!$permalink) { $ilink = $customlink['enable'] == 'true' ? $customlink['url'] : get_permalink($post->ID); $rell = ''; //$classes = $pre_classes . 'iconPost'; } ?> <li> <?php if (!is_single() && !is_page()) { ?> <a title="<?php the_title(); ?> "<?php echo $customlink['target']; ?> class="<?php print $classes; ?> " href="<?php echo $ilink; ?> " rel="<?php print $rell; ?> "> <img src="<?php echo aq_resize($immg['image'], $size); ?> " alt="" style="width:100%; height:auto;" /> </a> <?php } else { ?> <img src="<?php echo $immg['image']; ?> " alt="" style="width:100%; height:auto;" /> <?php } ?> </li><?php } ?> </ul> </div><?php } ?> </div> </div> </div><?php return true; } else { global $blogConf; $bool = isset($blogConf['hide_content']) && $blogConf['hide_content'] == true ? true : false; if ($bool) { get_template_part('post', 'title'); } } return false; }
<td><input type="hidden" size="34" name="longitude" value="" id="lng" /></td> </tr> </table> <div class="col-lg-12 getadscon" style=" margin-top:20px;"> <div class="sub1 col-lg-12" style="background:#FFCC33; border:#FFCC33 solid 1px; border-radius:0px;"> <h4>Hot ads</h4> </div> <div class="col-lg-12 getadscon" > <?php $top_query = mysql_query("SELECT * FROM `ads` where payment_status = '1' ORDER BY id DESC LIMIT 3"); while ($top = mysql_fetch_array($top_query)) { ?> <div class="col-lg-4"> <div class="content2" style="margin-top:10px;"> <img src="img/<?php echo get_post_image($top['id'], 'ads'); ?> " class="img-responsive"> <a href="getads.php?id=<?php echo $top['id']; ?> "> <h3><?php echo get_post_tile_string($top['ads_title']); ?> </h3> <p><?php echo $top['description'] == '' ? '' : substr(htmlspecialchars($top['description']), 0, 20) . '...'; ?> </p> <button type="button" class="btn btn-sm btn-danger pull-right btn5">View</button>
$sql = mysql_query("{$query} LIMIT {$limit}") or die("Error in query: {$sql}" . mysql_error()); while ($row = mysql_fetch_object($sql)) { ?> <div class="col-lg-4"> <?php if ($row->promote_deals == 'high') { echo "<div class='high'>"; } else { echo "<div class='slider'>"; } ?> <img src="img/<?php echo get_post_image($row->id, 'deals'); ?> " class="img-responsive"> <a href="getdeals.php?id=<?php echo $row->id; ?> "><h3><?php echo get_post_tile_string($row->deals_title); ?> </h3> <p><?php echo substr($row->description, 0, 15) . '...'; ?> </p> <button type="button" class="btn btn-sm btn-danger pull-right btn5">View</button> </a> </div>
function wpb_getImageBySize($params = array('post_id' => NULL, 'attach_id' => NULL, 'thumb_size' => 'thumbnail', 'grid_columns_count' => 2, 'grid_with_sidebar' => 0)) { //array( 'post_id' => $post_id, 'thumb_size' => $grid_thumb_size ) if ((!isset($params['attach_id']) || $params['attach_id'] == NULL) && (!isset($params['post_id']) || $params['post_id'] == NULL)) { return; } $post_id = isset($params['post_id']) ? $params['post_id'] : 0; if ($post_id) { $attach_id = get_post_thumbnail_id($post_id); } else { $attach_id = $params['attach_id']; } $thumb_size = $params['thumb_size'] . ''; global $_wp_additional_image_sizes; $thumbnail = ''; if (is_string($thumb_size) && (!empty($_wp_additional_image_sizes[$thumb_size]) && is_array($_wp_additional_image_sizes[$thumb_size]) || in_array($thumb_size, array('thumbnail', 'thumb', 'medium', 'large', 'full')))) { //$thumbnail = get_the_post_thumbnail( $post_id, $thumb_size ); $thumbnail = wp_get_attachment_image($post_id, $thumb_size); //TODO APPLY FILTER } $thumb_size = str_replace(array('px', ' ', '*'), array('', '', 'x'), $thumb_size); if (is_string($thumb_size) && !strpos($thumb_size, 'x') && !(!empty($_wp_additional_image_sizes[$thumb_size]) && is_array($_wp_additional_image_sizes[$thumb_size]) || in_array($thumb_size, array('thumbnail', 'thumb', 'medium', 'large', 'full')))) { $thumb_width_s = array(0 => array(1 => '900', 2 => '440', 3 => '287', 4 => '210', 5 => '60'), 1 => array(1 => '660', 2 => '320', 3 => '208', 4 => '158')); $thumb_width = $thumb_width_s[$params['grid_with_sidebar']][intval($params['grid_columns_count'])]; $thumb_size = intval($params['grid_columns_count']) == 5 ? $thumb_width : $thumb_size; // $thumb_size = str_replace(array( 'px', ' ', '*', '×' ), array( '', '', 'x', 'x' ), $thumb_size); $thumb_size = str_replace(array('px', ' ', '*', '×'), array('', '', '', ''), $thumb_size); // $thumb_size = explode("x", $thumb_size); $thumb_size = array($thumb_width, $thumb_size); } else { if (strpos($thumb_size, 'x')) { list($thumb_width, $thumb_size) = split('[x]', $thumb_size); } else { if (is_string($thumb_size) && (!empty($_wp_additional_image_sizes[$thumb_size]) && is_array($_wp_additional_image_sizes[$thumb_size]) || in_array($thumb_size, array('thumbnail', 'thumb', 'medium', 'large', 'full')))) { $thumb_size = str_replace(array('px', ' ', '*', '×'), array('', '', '', ''), $thumb_size); $thumb_width = get_option($thumb_size . '_size_w') == '' ? '150' : get_option($thumb_size . '_size_w'); $thumb_size = get_option($thumb_size . '_size_h') == '' ? '150' : get_option($thumb_size . '_size_h'); } else { } } $thumb_size = array($thumb_width, $thumb_size); // $post_id=='' and thumbnail=='' repair error } if ($thumbnail == '' && $attach_id) { // Resize image to custom size $p_img = wpb_resize($attach_id, null, $thumb_size[0], $thumb_size[1], true); /*if ( wpb_debug() ) { var_dump($p_img); }*/ if ($p_img) { $img_class = ''; //if ( $grid_layout == 'thumbnail' ) $img_class = ' no_bottom_margin'; class="'.$img_class.'" $thumbnail = '<img src="' . $p_img['url'] . '" width="' . $p_img['width'] . '" height="' . $p_img['height'] . '" />'; //TODO: APPLY FILTER } $p_img_large = wp_get_attachment_image_src($attach_id, 'large'); $p_img_large = $p_img_large[0]; } else { // START - Themeton Additional $tt_image = get_post_image() ? get_post_image() : get_post_content_image(); if ($tt_image) { $img_class = ''; $thumbnail = '<img src="' . $tt_image . '" width="' . $thumb_size[0] . '" height="' . $thumb_size[1] . '" />'; //TODO: APPLY FILTER } $p_img_large = $tt_image; // END - Themeton Additional } //$p_img_large = wp_get_attachment_image_src($attach_id, 'large' ); return array('thumbnail' => $thumbnail, 'p_img_large' => $p_img_large); }
</h3> <p style="margin-left:20px;"><?php echo substr($top['description'], 0, 15) . '...'; ?> </p> <button type="button" class="btn btn-sm btn-danger pull-right btn5" style="margin-bottom:2px;">View</button> </a> </div> </div> <?php } else { ?> <div class="col-lg-4"> <div class="content2" style="margin-top:10px;"> <img src="img/<?php echo get_post_image($top['id'], $_REQUEST['search_category']); ?> " class="img-responsive"> <a href="get<?php echo $_REQUEST['search_category']; ?> .php?id=<?php echo $top['id']; ?> "><h3><?php echo get_post_tile_string($top[$field]); ?> </h3> <p><?php echo substr($top['description'], 0, 15) . '...'; ?>
"><?php the_time('F jS, Y'); ?> </time> Filed in <?php $category = get_the_category(); echo $category[0]->cat_name; ?> <?php edit_post_link('Edit', '', ''); ?> </div> <?php the_content(); ?> <img style="display:none;" itemprop="photo" src="<?php echo get_post_image(); ?> " /> </div> <?php } next_posts_link('« Older Entries'); } else { ?> <h2 class="center">Not Found</h2> <p class="center">Sorry, but you are looking for something that isn't here.</p> <?php } ?> </div><!-- end #content --> <?php
<td width="70"></td> <td><input type="hidden" size="34" name="longitude" value="" id="lng" /></td> </tr> </table> <div class="col-lg-12 getadscon" style=" margin-top:20px;"> <div class="sub1 col-lg-12" style="background:#FFCC33; border:#FFCC33 solid 1px; border-radius:0px;"> <h4>Hot jobs</h4> </div> <div class="col-lg-12 getadscon" ><?php $top_query = mysql_query("SELECT * FROM `jobs` where payment_status = '1' ORDER BY id DESC LIMIT 3"); while ($top = mysql_fetch_array($top_query)) { ?> <div class="col-lg-4"> <div class="content2" style="margin-top:10px;"> <img src="img/<?php echo get_post_image($top->id, 'jobs'); ?> " class="img-responsive"> <a href="getjobs.php?id=<?php echo $top['id']; ?> "><h3><?php echo get_post_tile_string($top['jobs_title']); ?> </h3> <p><?php echo $top['description'] == '' ? '' : substr(htmlspecialchars($top['description']), 0, 20) . '...'; ?> </p> <button type="button" class="btn btn-sm btn-danger pull-right btn5">View</button> </a></div>
<article id="post-<?php the_ID(); ?> " <?php post_class(); ?> > <div class="archive-inner"> <a href="<?php echo get_permalink(); ?> " title="<?php echo __('Click to read', THEME_DOMAIN); ?> " class="item-thumbnail archive-thumbnail"><?php echo get_post_image(get_the_ID(), 'medium', array('alt' => 'item-thumbnail', 'title' => esc_attr(get_the_title()))); ?> </a> <h2 class="post-title archive-post-title"><a href="<?php echo get_permalink(); ?> " title="<?php echo __('Click to read', THEME_DOMAIN); ?> " rel="bookmark"><?php the_title(); ?> </a></h2> <div class="meta meta-post-archive"> <?php