<?php 
        // Display excerpt if enabled (default dispays full content )
        if ('true' == $excerpt) {
            // Custom readmore text
            if ('true' == $read_more) {
                // Add arrow
                if ('false' != $read_more_rarr) {
                    $read_more_rarr_html = '<span>&rarr;</span>';
                } else {
                    $read_more_rarr_html = '';
                }
                // Read more text
                if (is_rtl()) {
                    $read_more_link = '...<a href="' . wpex_get_permalink() . '" title="' . esc_attr($read_more_text) . '">' . $read_more_text . '</a>';
                } else {
                    $read_more_link = '...<a href="' . wpex_get_permalink() . '" title="' . esc_attr($read_more_text) . '">' . $read_more_text . $read_more_rarr_html . '</a>';
                }
            } else {
                $read_more_link = '...';
            }
            // Custom Excerpt function
            wpex_excerpt(array('post_id' => $testimonial->ID, 'length' => intval($excerpt_length), 'more' => $read_more_link));
            // Display full post content
        } else {
            the_content();
        }
        ?>

						</div><!-- .entry -->

					</div><!-- .home-testimonial-entry-content-->
			<?php 
    // Define counter var to clear floats
    $count = '';
    // Start loop
    while ($wpex_query->have_posts()) {
        // Get post from query
        $wpex_query->the_post();
        // Create new post object.
        $post = new stdClass();
        // Get post data
        $get_post = get_post();
        // Post Data
        $post->ID = $get_post->ID;
        $post->title = $get_post->post_title;
        $post->permalink = wpex_get_permalink($post->ID);
        $post->format = get_post_format($post->ID);
        $post->excerpt = '';
        // Post Excerpt
        if ('true' == $excerpt) {
            $post->excerpt = wpex_get_excerpt(array('length' => intval($excerpt_length)));
        }
        // Counter
        $count++;
        // Get video
        if ('video' == $post->format) {
            $post->video = wpex_get_post_video($post->ID);
            $post->video_oembed = wpex_get_post_video_html($post->video);
        }
        // Entry Classes
        $entry_classes = array('vcex-blog-entry');
Exemplo n.º 3
0
/**
 * Echo the post URL
 *
 * @since 1.5.4
 */
function wpex_permalink($post_id = '')
{
    echo wpex_get_permalink($post_id);
}
 */
// Exit if accessed directly
if (!defined('ABSPATH')) {
    exit;
}
// Only used for outside position
if ('outside_link' != $position) {
    return;
}
// Load lightbox skin stylesheet
wpex_enqueue_ilightbox_skin();
// Lightbox
$lightbox_link = !empty($args['lightbox_link']) ? $args['lightbox_link'] : wpex_get_lightbox_image();
$lightbox_data = !empty($args['lightbox_data']) ? implode(' ', $args['lightbox_data']) : '';
// Link
$link = isset($args['overlay_link']) ? $args['overlay_link'] : wpex_get_permalink();
$link = apply_filters('wpex_lightbox_buttons_text_overlay_link', $link);
// Define link target
$target = '';
if (isset($args['link_target'])) {
    if ('blank' == $args['link_target'] || '_blank' == $args['link_target']) {
        $target = 'blank';
    }
}
$target = apply_filters('wpex_button_overlay_target', $target);
$target = 'blank' == $target ? ' target="_blank"' : '';
?>

<div class="overlay-view-lightbox-text overlay-hide theme-overlay">
	<div class="overlay-view-lightbox-text-inner clr">
		<div class="overlay-view-lightbox-text-buttons clr">
Exemplo n.º 5
0
    ?>
" data-smart-speed="<?php 
    echo $animation_speed;
    ?>
">

		<?php 
    // Loop through posts
    while ($wpex_query->have_posts()) {
        // Get post from query
        $wpex_query->the_post();
        // Create new post object
        $post = new stdClass();
        // Post VARS
        $post->id = get_the_ID();
        $post->permalink = wpex_get_permalink($post->id);
        ?>

			<?php 
        // Generate image
        $thumbnail = wpex_get_post_thumbnail(array('size' => $img_size, 'crop' => $img_crop, 'width' => $img_width, 'height' => $img_height, 'alt' => wpex_get_esc_title()));
        ?>

			<div class="wpex-carousel-slide">

				<?php 
        // Media Wrap
        if (has_post_thumbnail()) {
            ?>

					<div class="<?php 
 * @version 3.0.0
 */
// Exit if accessed directly
if (!defined('ABSPATH')) {
    exit;
}
// Only used for outside_link position
if ('outside_link' != $position) {
    return;
}
// Lightbox
$lightbox_link = !empty($args['lightbox_link']) ? $args['lightbox_link'] : '';
$lightbox_data = !empty($args['lightbox_data']) ? $args['lightbox_data'] : '';
$lightbox_data = is_array($lightbox_data) ? implode(' ', $lightbox_data) : $lightbox_data;
// Define link
$link = $lightbox_link ? $lightbox_link : wpex_get_permalink();
$link = !empty($args['overlay_link']) ? $args['overlay_link'] : $link;
$link = apply_filters('wpex_hover_button_overlay_link', $link);
// Define text
$text = !empty($args['overlay_button_text']) ? $args['overlay_button_text'] : _x('View Post', 'Overlay Button Text', 'wpex');
$text = 'post_title' == $text ? get_the_title() : $text;
$text = apply_filters('wpex_hover_button_overlay_text', $text);
// Define link target
$target = '';
if (isset($args['link_target'])) {
    if ('blank' == $args['link_target'] || '_blank' == $args['link_target']) {
        $target = 'blank';
    }
}
$target = apply_filters('wpex_button_overlay_target', $target);
$target = 'blank' == $target ? ' target="_blank"' : '';
Exemplo n.º 7
0
    $count = 0;
    // Loop through posts
    while ($wpex_query->have_posts()) {
        // Add to counter
        $count++;
        // Get post from query
        $wpex_query->the_post();
        // Get post data
        $get_post = get_post();
        // Post Data
        $post_id = $get_post->ID;
        $post_content = $get_post->post_content;
        $post_title = $get_post->post_title;
        $post_type = $get_post->post_type;
        $post_title_esc = wpex_get_esc_title();
        $post_permalink = wpex_get_permalink($post_id);
        $post_format = get_post_format($post_id);
        $post_thumbnail = wp_get_attachment_url(get_post_thumbnail_id());
        ?>

			<div class="vcex-post-type-list-entry vcex-clr vcex-count-<?php 
        echo $count;
        ?>
">

				<?php 
        // Featured post
        if ('true' == $featured_post && '1' == $count) {
            // Featured post => image
            if ($post_thumbnail) {
                $post_thumbnail = wpex_get_post_thumbnail(array('size' => $featured_post_img_size, 'crop' => $featured_post_img_crop, 'width' => $featured_post_img_width, 'height' => $featured_post_img_height, 'alt' => $post_title_esc));