function coupon_new_home_coupons_list($category_id, $thumb, $discount, $date, $daysleft) { ?> <li class="coupon_new_li"> <a href="<?php echo get_category_link($category_id); ?> " class="coupon_new_link"> <div class="coupon_new_wrapper"> <div class="coupon_new_logo" > <img class="coupon_new_logo_img" src="<?php echo aq_resize($thumb, 75, 60, true); ?> " alt="<?php the_title(); ?> "> </div> <div class="coupon_new_text"> <div class="coupon_new_title"> <h2 class="coupon_title_font" style="margin:0;"><?php truncate_title(38); ?> </h2> </div> <!--Change: New Font for class 13.11.2015--> <div class="coupon_new_discount"> <?php if ($discount != '') { ?> <span class="value secondary"><?php echo $discount; ?> </span> <?php } ?> <span class="coupon_new_expire"> <?php if ($date == '') { _e('有效', 'Couponize'); } else { if ($daysleft <= 0) { _e('已过期', 'Couponize'); } else { echo sprintf(_n('%d天后过期', '%d天后过期', $daysleft, 'Couponize'), $daysleft); } } ?> </span> </div> </div> </div> </a> </li> <?php }
} else { $featured_num = $pages_number; } $et_featured_pages_args = array('post_type' => 'page', 'orderby' => 'menu_order', 'order' => 'DESC', 'posts_per_page' => (int) $featured_num); if (is_array(et_get_option('mycuisine_feat_pages', '', 'page'))) { $et_featured_pages_args['post__in'] = (array) array_map('intval', et_get_option('mycuisine_feat_pages', '', 'page')); } query_posts($et_featured_pages_args); } while (have_posts()) { the_post(); global $post; $et_mycuisine_settings = maybe_unserialize(get_post_meta(get_the_ID(), '_et_mycuisine_settings', true)); $arr[$i]['variation'] = isset($et_mycuisine_settings['et_fs_variation']) ? (int) $et_mycuisine_settings['et_fs_variation'] : 1; $arr[$i]["title"] = truncate_title(25, false); $arr[$i]["fulltitle"] = truncate_title(250, false); $arr[$i]["excerpt"] = isset($et_mycuisine_settings['et_fs_custom_excerpt']) ? $et_mycuisine_settings['et_fs_custom_excerpt'] : truncate_post(180, false); $arr[$i]["permalink"] = isset($et_mycuisine_settings['et_fs_link']) && !empty($et_mycuisine_settings['et_fs_link']) ? $et_mycuisine_settings['et_fs_link'] : get_permalink(); $arr[$i]["thumbnail"] = get_thumbnail($width, $height, '', $arr[$i]["fulltitle"], $arr[$i]["fulltitle"], true, 'Featured'); $arr[$i]["thumb"] = $arr[$i]["thumbnail"]["thumb"]; $arr[$i]["use_timthumb"] = $arr[$i]["thumbnail"]["use_timthumb"]; $arr[$i]["color"] = isset($et_mycuisine_settings['et_fs_bgcolor']) ? $et_mycuisine_settings['et_fs_bgcolor'] : '452917'; $arr[$i]["color"] = str_replace('#', '', $arr[$i]["color"]); $arr[$i]["moretext"] = isset($et_mycuisine_settings['et_fs_button']) && !empty($et_mycuisine_settings['et_fs_button']) ? $et_mycuisine_settings['et_fs_button'] : 'Read More'; $arr[$i]['post_id'] = (int) get_the_ID(); $i++; } wp_reset_query(); ?> <?php
the_post(); ?> <div class="cat-entry"> <h4 class="cat-title"><?php _e('Recent From', 'DelicateNews'); ?> <?php echo get_cat_name($featCats[$i]); ?> </h4> <h3 class="title"><a href="<?php the_permalink(); ?> "><?php truncate_title(40); ?> </a></h3> <span class="thumbnail"> <?php $thumb = ''; $width = 279; $height = 105; $classtext = ''; $titletext = get_the_title(); $thumbnail = get_thumbnail($width, $height, $classtext, $titletext, $titletext); $thumb = $thumbnail["thumb"]; ?> <?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext);
the_time(get_option('bold_date_format')); ?> </span></div> <span class="titles-featured"><a href="<?php the_permalink(); ?> " rel="bookmark" title="<?php the_permalink(); ?> " title="<?php printf(esc_attr__('Permanent Link to %s', 'Bold'), get_the_title()); ?> "> <?php truncate_title(28); ?> </a></span> <span class="featured-line"></span> <?php $width = 85; $height = 85; $classtext = 'featured-thumb'; $titletext = get_the_title(); $thumbnail = get_thumbnail($width, $height, $classtext, $titletext, $titletext); $thumb = $thumbnail["thumb"]; ?> <?php if ($thumb != '') {
echo $oddeven . ' ' . strtolower($category[0]->cat_name); ?> "> <div class="inner"> <div class="storyIntro"> <h2><a href="<?php the_permalink(); ?> " title="<?php printf(__('%s', 'moov'), get_the_title()); ?> " rel="bookmark"><?php echo truncate_title($post->post_title); ?> </a></h2> <div class="entryMeta"> <span class="metaSep"><?php _e('By ', 'moov'); ?> </span> <span class="author vcard"><a class="url fn n" href="<?php echo get_author_link(false, $authordata->ID, $authordata->user_nicename); ?> " title="<?php printf(__('View all posts by %s', 'moov'), $authordata->display_name); ?>
the_title(); ?> " /> <?php include TEMPLATEPATH . '/includes/featurednav-' . $coldstone_featured_number . '.php'; ?> </div> <div class="feat_post"> <h2><span><?php echo $loopcounter; ?> . </span><a href="<?php the_permalink(); ?> "><?php truncate_title(25); ?> </a></h2> <?php truncate_post(240); ?> <div class="keepreading"> <a href="<?php the_permalink(); ?> ">Continue Reading</a> </div> </div> <!-- /feat_post --> </div> </div> <?php $ids[] = $post->ID;
the_permalink(); ?> "> <?php $post_title = get_the_title(); $thumbnail = get_thumbnail($width, $height, 'thumb', $post_title, $post_title); $thumb = $thumbnail["thumb"]; print_thumbnail($thumb, $thumbnail["use_timthumb"], $post_title, $width, $height, 'thumb'); ?> </a> <div class="description"> <h2><a href="<?php the_permalink(); ?> "><?php truncate_title(27); ?> </a></h2> <?php $tagline = get_post_meta(get_the_ID(), 'Tagline', true); if ($tagline != '') { ?> <p class="tagline">“<?php echo wp_kses($tagline, array('span' => array())); ?> ”</p> <?php } ?>
?> </a> <div class="category"><?php the_category(); ?> </div> </div> <!-- end .thumbnail --> <h2 class="title" style="position: relative; top: 30px;"><a href="<?php the_permalink(); ?> "><?php if ($biglayout) { truncate_title(50); } else { truncate_title(20); } ?> </a></h2> <div class="entry-content"> <div class="bottom-bg" style="position: relative; top: 30px;"> <div class="excerpt"> <p><?php if ($biglayout) { truncate_post(650); } else { truncate_post(295); } ?> </p> </div><!-- end .excerpt -->
?> "> <img src="<?php echo aq_resize($thumb, 200, 110, true); ?> " alt="<?php the_title(); ?> "> </a> </figure> <h2 class="alt"><a href="<?php the_permalink(); ?> "><?php truncate_title(30); ?> </a></h2> </div> <div class="bottom"> <?php if ($discount != '') { ?> <p class="value secondary"><?php echo $discount; ?> </p> <?php } ?> <h6><?php
the_ID(); ?> " <?php post_class('post carousel-item et_pb_slide'); ?> <?php et_thumb_as_style_background(); ?> > <div class="post-content-box"> <div class="post-content"> <h3><a href="<?php the_permalink(); ?> "><?php truncate_title(50); ?> </a></h3> <div class="post-meta"> <?php $meta_args = array('author_link' => $show_author, 'author_link_by' => __('Posted by %s', 'extra'), 'post_date' => $show_date, 'date_format' => $date_format, 'categories' => $show_categories, 'comment_count' => $show_comments, 'rating_stars' => $show_rating); ?> <p><?php echo et_extra_display_post_meta($meta_args); ?> </div> </div> </div> </article> <?php }
$header_vars['trending_posts']->the_post(); $trending_post_latest_class = $trending_post_count == 0 ? 'et-trending-latest' : ''; $trending_post_classes = extra_classes(array('et-trending-post', $trending_post_latest_class), 'et-trending-post', false); ?> <div id="et-trending-post-<?php the_ID(); ?> " class="<?php echo esc_attr($trending_post_classes); ?> "> <a href="<?php the_permalink(); ?> "><?php echo esc_html(truncate_title(55)); ?> </a> </div> <?php $trending_post_count++; } wp_reset_postdata(); ?> <?php } else { ?> <div id="et-trending-post-sample" class="et-trending-post et-trending-latest"> <a href="<?php echo esc_url(home_url('/')); ?>
<div class="home-sidebar-box"> <ul> <?php $my_query = new WP_Query('orderby=rand&showposts=' . get_option('bold_random') . ''); while ($my_query->have_posts()) { $my_query->the_post(); ?> <li><a href="<?php the_permalink(); ?> " rel="bookmark" title="<?php printf(esc_attr__('Permanent Link to %s', 'Bold'), get_the_title()); ?> "> <?php truncate_title(35); ?> </a></li> <?php } ?> </ul> </div> <!--End Random Articles--> <?php } ?> <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar("Homepage")) { ?>
<?php truncate_title(36); ?> </a></h2> <?php } else { ?> <h2 class="titles-orange"><a href="<?php the_permalink(); ?> " title="Permanent Link to <?php the_title(); ?> "> <?php truncate_title(36); ?> </a></h2> <?php } ?> <div style="clear: both;"></div> <?php $thumb = get_post_meta($post->ID, 'Thumbnail', $single = true); ?> <?php if ($thumb == '' && $puretype_grab_image == 'on') { $thumb = catch_that_image(); } ?> <?php