<div class="nice-contact-form"> <header> <?php nice_breadcrumbs(); ?> <h1 class="entry-title"><?php the_title(); ?></h1> </header> <?php $nice_google_map = get_option( 'nice_google_map' ); if ( ! empty ( $nice_google_map ) ): ?> <div class="nice-contact-map clearfix"> <?php echo nice_embed( array ( 'embed' => $nice_google_map, 'width' => 960, 'height' => 300) ); ?> </div> <?php endif; ?> <div class="entry"> <?php the_content( __( 'Continue reading', 'nicethemes' ) . ' »' ); ?> </div> <?php if ( $nice_contact_form ) : ?> <div id="node"></div> <div id="success"><?php _e( 'Thank you for leaving a message.', 'nicethemes' ); ?></div> <form name="nice_contact" id="nice_contact" method="post" > <p> <label class="display-ie8" for="name" form="nice_contact"><?php _e( 'Your Name', 'nicethemes' ); ?><span class="required">*</span></label> <input type="text" id="name" name="name" value="" class="required" placeholder="<?php _e( 'Your Name', 'nicethemes'); ?>" title="<?php _e( '* Please enter your Full Name', 'nicethemes'); ?>" />
<h1 class="entry-title"><?php the_title(); ?></h1> <?php nice_article_meta(); ?> </header> <div class="entry"> <?php $embed = get_post_meta( get_the_ID(), 'embed', true ); $video_class = ''; if ( $embed <> '' ){ echo nice_embed( array ( 'id' => get_the_ID() ) ); $video_class = ' has-video'; } elseif ( has_post_thumbnail() ) { ?> <figure class="featured-image"> <?php nice_image( array( 'width' => 730, 'height' => 338, 'class' => 'wp-post-image' ) ); ?> </figure> <?php } ?> <div class="post-content<?php echo $video_class; ?>"> <?php the_content(); ?> <div class="paths">
<?php if (has_post_thumbnail() || !empty($attachments)) { ?> <?php // Search for and get the post attachment if (!empty($attachments) && count($attachments) > 1) { ?> <div class="flexslider slider"> <ul class="slides"> <?php if (get_post_meta($post->ID, 'embed', $single = true)) { ?> <li> <?php nice_embed('key=embed&width=610&wrap=true&embed_id=player_' . $post->ID) . "\n"; ?> </li> <?php } ?> <?php foreach ($attachments as $att_id => $attachment) { $src = get_nice_image_path($att_id); ?> <li> <?php if (has_post_thumbnail()) { ?> <?php
<h1><?php the_title(); ?> </h1> <?php nice_post_meta(); ?> </header> <div class="entry"> <?php $embed = get_post_meta($id, 'embed', true); $video_class = ''; if ($embed != '') { echo nice_embed(array('id' => $post->ID)); $video_class = ' has-video'; } elseif (has_post_thumbnail()) { ?> <figure class="featured-image"> <?php nice_image(array('width' => 730, 'height' => 338, 'class' => 'wp-post-image')); ?> </figure> <?php } ?> <div class="post-content<?php
if (!empty($slides)) { ?> <!-- BEGIN .flexslider --> <div class="flexslider slider"> <ul class="slides"> <?php foreach ($slides as $post) { setup_postdata($post); ?> <li> <?php if (get_post_meta($post->ID, 'embed', $single = true)) { nice_embed(array('key' => 'embed', 'width' => 960, 'height' => 400, 'wrap' => true, 'embed_id' => 'player_' . $post->ID)) . "\n"; } elseif (has_post_thumbnail()) { nice_image(array('key' => 'slider-image', 'width' => 956, 'height' => 400)) . "\n"; if ($nice_options['nice_slider_caption'] == 'true') { $slide_description = get_post_meta($post->ID, 'slide-description', true); ?> <div class="flex-caption"> <h2><?php the_title(); ?> </h2> <?php if ($slide_description != '') { ?> <p><?php
/** * nice_home_videos() * * Create a list of articles with a video post format * * @since 1.0.0 * */ function nice_home_videos($args = array()) { $defaults = apply_filters('nice_home_videos_default_args', array('columns' => 3, 'numberposts' => 5, 'orderby' => 'menu_order', 'echo' => true, 'title' => __('Video Library', 'nicethemes'), 'before_title' => '<h2>', 'after_title' => '</h2>', 'before' => '', 'after' => '')); $args = wp_parse_args($args, $defaults); $args = apply_filters('nice_home_videos_args', $args); do_action('nice_home_videos_before', $args); $video_posts_args = array('posts_per_page' => $args['numberposts'], 'orderby' => $args['orderby'], 'post_type' => 'article', 'order' => 'ASC', 'tax_query' => array(array('taxonomy' => 'post_format', 'field' => 'slug', 'terms' => array('post-format-video')))); $query = new WP_Query($video_posts_args); $v = 0; $output = ''; if ($query->have_posts()) { $output .= $args['before']; while ($query->have_posts()) { $query->the_post(); $v++; if ($v == 1) { $embed = get_post_meta(get_the_ID(), 'embed', true); if ($embed != '') { $output .= '<div id="" class="video-content entry">'; $output .= nice_embed(array('id' => get_the_ID(), 'echo' => false, 'width' => 960, 'height' => 540)); $output .= '</div>'; } } if ($v == 1) { $output .= '<div id="" class="video-list">'; $output .= $args['before_title'] . $args['title'] . $args['after_title']; $output .= '<ul>'; } $output .= '<li><i class="fa fa-youtube-play"></i> <a href="' . get_permalink() . '">' . get_the_title() . '</a></li>'; } if ($v > 0) { $output .= '</ul></div>'; } $output .= $args['after']; } if ($args['echo'] == true) { echo $output; } else { return $output; } do_action('nice_home_videos_after', $args); }