/** * */ function miss_featured_post() { global $wp_query, $irish_framework_params; $paged = miss_get_page_query(); $layout = $irish_framework_params->layout['blog']; if (is_archive() || is_search()) { return false; } if ($paged != 1) { return false; } if ($layout['blog_layout'] != 'blog_layout2' && $layout['blog_layout'] != 'blog_layout3') { return false; } $args = array_merge($wp_query->query, array('post_type' => 'post', 'category__not_in' => miss_exclude_category_array($minus = false), 'showposts' => $layout['featured'], 'posts_per_page' => 1, 'offset' => 0)); $temp = $wp_query; $wp_query = null; remove_filter('post_limits', 'my_post_limit'); $wp_query = new WP_Query(); $wp_query->query($args); ?> <div id="post-<?php the_ID(); ?> " <?php post_class($layout['post_class'] . ' featured_post_module'); ?> ><?php while ($wp_query->have_posts()) { $wp_query->the_post(); ?> <?php miss_before_post(array('featured_post' => true, 'post_id' => get_the_ID())); ?> <div class="<?php echo $layout['content_class']; ?> "> <?php miss_before_entry(); ?> <div class="post_excerpt"> <?php miss_post_content(array('featured_post' => true, 'blog_layout' => $layout['blog_layout'])); ?> </div> <?php miss_after_entry(); ?> </div><!-- .content_class --> <?php } ?> </div><div class="clearboth"></div><?php $wp_query = null; $wp_query = $temp; }
<h3><?php echo $meta['caption']; ?> </h3> <?php echo do_shortcode('[contactform subject="' . $meta['subject'] . '" email="' . $meta['recipient'] . '"][name label="' . $meta['label']['name'] . '" required="true"][email label="' . $meta['label']['email'] . '" required="true"][textfield label="' . $meta['label']['phone'] . '"][textarea label="' . $meta['label']['descr'] . '" required="true"][captcha][submit label="' . $meta['label']['button'] . '"][attachment label="' . $meta['label']['attachment'] . '"][/contactform]'); ?> <div class="clearboth"></div> <?php } ?> <?php wp_link_pages(array('before' => '<div class="page_link">' . __('Pages:', MISS_TEXTDOMAIN), 'after' => '</div>')); ?> <?php edit_post_link(__('Edit entry', MISS_TEXTDOMAIN), '<div class="edit_link">', '</div>'); ?> </div><!-- .entry --> <div class="clearboth"></div> <?php miss_after_entry(); ?> </div><!-- .single_page_content --> </div><!-- #page-## --> </div><!-- .single_page_module --> <!-- / Content Area --> <?php } }