Beispiel #1
0
        if (!empty($opts['price'])) {
            ?>
                
				<span class="price"><?php 
            _e('Price: ', LANGUAGE_ZONE);
            echo esc_html($opts['price']);
            ?>
</span>
				
				<?php 
        }
        ?>
                
                <?php 
        the_content();
        if (dt_is_page_soc_buttons_enabled('catalog')) {
            dt_get_like_buttons(get_the_ID());
        }
        ?>

                <?php 
        if (!empty($opts['p_link'])) {
            ?>
                
                    <a href="<?php 
            echo esc_url($opts['p_link']);
            ?>
" class="button" title=""><span><i class="dol"></i><?php 
            _e('Make purchase!', LANGUAGE_ZONE);
            ?>
</span></a>
                    }
                    dt_get_anything_slider(array('items_arr' => $slides));
                }
                ?>
            <div class="full-left">

			<?php 
            }
            ?>

                <?php 
            the_content();
            if (!$post_opts['hide_meta']) {
                dt_get_taxonomy_link('dt_portfolio_category', '<span class="ico-link categories">' . __('', LANGUAGE_ZONE) . '%CAT_LIST%</span>');
            }
            if (dt_is_page_soc_buttons_enabled('portfolio')) {
                dt_get_like_buttons(get_the_ID());
            }
            ?>

            <?php 
            if (!isset($post_opts['hide_media']) || isset($post_opts['hide_media']) && !$post_opts['hide_media']) {
                ?>
            </div>
			<?php 
            }
            ?>

            <?php 
        } else {
            echo get_the_password_form();
Beispiel #3
0
    while (have_posts()) {
        the_post();
        ?>

            <?php 
        global $post;
        $big = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full');
        $big[3] = image_hwstring($big[1], $big[2]);
        if ($big[1] > 960) {
            $thumb = dt_get_resized_img($big, array('w' => 960));
            printf('<a class="alignleft highslide" href="%1$s" onclick="return hs.expand(this)"><img src="%2$s" %3$s alt="%4$s" /></a>', $big[0], $thumb[0], $thumb[3], get_the_excerpt());
        } else {
            printf('<img class="alignleft" src="%1$s" %2$s alt="%3$s" />', $big[0], $big[3], get_the_excerpt());
        }
        the_content();
        if (dt_is_page_soc_buttons_enabled('photo')) {
            dt_get_like_buttons(get_the_ID());
        }
        ?>

            <?php 
    }
}
?>

        </div>
    
    </div>

<?php 
get_footer();
Beispiel #4
0
    $title_tag = '<h3><span class="%s">%s</span></h3>';
} else {
    $title_tag = '<h3><a class="%s" href="#"' . $img_custom . '>%s</a></h3>';
}
$title = sprintf($title_tag, dt_portfolio_classes($add_data['init_layout'], 'head', false), get_the_title());
// end pass protected
?>
<div class="dt-hs-container dt-video-item <?php 
dt_portfolio_classes($add_data['init_layout'], 'block');
?>
">
        <?php 
if (!post_password_required()) {
    $caption_hs = '<div class="highslide-caption">';
    $caption_hs .= get_the_excerpt();
    if (dt_is_page_soc_buttons_enabled('video') && has_post_thumbnail()) {
        $thumb_id = get_post_thumbnail_id(get_the_ID());
        $caption_hs .= dt_get_like_window(array('img' => urlencode(current(wp_get_attachment_image_src($thumb_id, 'thumbnail'))), 'full' => urlencode(current(wp_get_attachment_image_src($thumb_id, 'full'))), 'src' => urlencode(get_permalink(get_the_ID()))), false);
    }
    $caption_hs .= '</div>';
} else {
    $caption_hs = '';
}
$img_id = get_post_thumbnail_id();
// get alt
$img_alt = get_post_meta($img_id, '_wp_attachment_image_alt', true);
if (!$img_alt) {
    $img_alt = get_the_title();
}
$img = dt_get_thumb_img(array('alt' => $img_alt, 'class' => 'photo', 'href' => '#', 'custom' => $custom, 'use_noimage' => true, 'thumb_opts' => array('w' => $add_data['thumb_w'], 'h' => $add_data['thumb_h'])), '<div class="textwidget-photo"><a %HREF% %CLASS% %TITLE% %CUSTOM%><img %ALT% %SRC% %SIZE%/></a>' . $caption_hs . '%P_FORM%</div>', false);
$img = str_replace('%P_FORM%', $pass_form, $img);
Beispiel #5
0
			<div class="videos" style="float: left !important; margin: 5px 20px 5px 0;"> 

				<?php 
            dt_get_embed($opts['video_link'], $opts['width'], $opts['height']);
            ?>

			</div>

            <?php 
        }
        ?>

			<?php 
        the_excerpt();
        dt_get_taxonomy_link('dt_video_category', '<p>' . __('Category: ', LANGUAGE_ZONE) . '%CAT_LIST%</p>');
        if (dt_is_page_soc_buttons_enabled('video')) {
            dt_get_like_buttons(get_the_ID());
        }
        ?>
            
            <?php 
    }
}
?>
        
        </div><!-- #container -->
    
    </div><!-- #wrapper -->

<?php 
get_footer();
Beispiel #6
0
        $thmb_args = array('w' => $t_w);
        $classes[] = 'img-posts';
        if ($big[1] <= $t_w) {
            $classes = array('alignleft');
            $thmb_args = array();
            $thumb_pattern = '<span class="%6$s"><img src="%2$s" %3$s alt="%5$s" title="%4$s" /></span>';
        }
    }
    $classes = implode(' ', $classes);
    $thumb = dt_get_resized_img($big, $thmb_args);
    printf($thumb_pattern, $big[0], $thumb[0], $thumb[3], get_the_title(), $alt, $classes);
}
the_content();
wp_link_pages();
dt_get_taxonomy_link('post_tag', '<p><span class="ico-link tags">%CAT_LIST%</span></p>');
if (dt_is_page_soc_buttons_enabled('post')) {
    dt_get_like_buttons(get_the_ID());
}
?>

<?php 
if (of_get_option('misc-show_author_details')) {
    ?>

<p class="gap"></p>
<p class="hr hr-narrow gap-small"></p>
<div class="about-autor full-width">
    <?php 
    echo str_replace("class='", "class='alignleft ", get_avatar(get_the_author_meta('ID'), 80));
    ?>
<p class="autor-head"><?php 
Beispiel #7
-2
// if there are images - put it to the "hidden container"
if ($images->have_posts() && !post_password_required()) {
    $hs_group = 'dt_gallery_' . $post->ID;
    ?>
        
            <div class="hidden-container" data-hs_group="<?php 
    echo $hs_group;
    ?>
">

            <?php 
    foreach ($images->posts as $image) {
        dt_get_thumb_img(array('class' => 'highslide', 'alt' => get_post_meta($image->ID, '_wp_attachment_image_alt', true), 'img_meta' => wp_get_attachment_image_src($image->ID, 'full'), 'title' => esc_attr(strip_tags($image->post_excerpt)), 'thumb_opts' => array('w' => 90, 'h' => 90)), '<a %HREF% %CLASS% %TITLE% %CUSTOM%><img %ALT% %SRC% %SIZE% /></a>');
        ?>
				<div class="highslide-caption"><?php 
        echo $image->post_excerpt;
        // show like mini button
        if (dt_is_page_soc_buttons_enabled('gallery')) {
            dt_get_like_window(array('img' => urlencode(current(wp_get_attachment_image_src($image->ID, 'thumbnail'))), 'full' => urlencode(current(wp_get_attachment_image_src($image->ID, 'full'))), 'src' => urlencode(get_permalink($image->ID))));
        }
        ?>
</div>
                <?php 
    }
    ?>

        </div>
        <?php 
}
?>
</div>