예제 #1
0
?>
    
    <?php 
if ('list' == $pg_opts['layout'] || !isset($page_opts['show_grid_text']) || isset($page_opts['show_grid_text']) && 'on' == $page_opts['show_grid_text']) {
    ?>
    
    <?php 
    if ('grid' == $pg_opts['layout']) {
        ?>
        <div class="widget-info">
    <?php 
    }
    ?>

	<div class="<?php 
    dt_portfolio_classes($type, 'info');
    ?>
">

        <?php 
    if ('on' == $page_opts['show_title']) {
        echo $title;
    }
    ?>
		
		<?php 
    if ('on' == $page_opts['show_category']) {
        ?>
			
			<ul class="folio-category">
			<?php 
예제 #2
0
$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);
echo $img;
?>

    <?php 
if (!isset($page_opts['show_meta']) || isset($page_opts['show_meta']) && 'on' == $page_opts['show_meta']) {
    ?>
    

    <div class="widget-info">
    <?php 
    echo $img;
    ?>
	    <div class="<?php 
    dt_portfolio_classes($add_data['init_layout'], 'info');
    ?>
">
            
			<?php 
    echo $title;
    ?>

			<?php 
    if (isset($pg_opts['page_options']) && (!isset($pg_opts['page_options']['show_category']) || 'on' == $pg_opts['page_options']['show_category'])) {
        ?>
			
				<ul class="folio-category">
				<?php 
        echo get_the_term_list(get_the_ID(), 'dt_video_category', '<li>', '<div class="dot"></div></li><li>', '</li>');
        ?>
예제 #3
0
// get alt
$img_alt = get_post_meta($img_id, '_wp_attachment_image_alt', true);
if (!$img_alt) {
    $img_alt = get_the_title();
}
dt_get_thumb_img(array('alt' => $img_alt, 'class' => 'photo', 'use_noimage' => true, 'href' => get_permalink(), 'thumb_opts' => array('w' => 343, 'h' => $h)), '<div class="textwidget-photo">
                <a %HREF% %CLASS% %TITLE% %CUSTOM%><img %ALT% %SRC% %IMG_CLASS% %SIZE% /></a>
            </div>');
?>

	<div class="<?php 
dt_portfolio_classes('2_col-list', 'info');
?>
">
		<a class="<?php 
dt_portfolio_classes('2_col-list', 'head');
?>
" href="<?php 
the_permalink();
?>
"><?php 
the_title();
?>
</a>
		
		<?php 
if (!empty($opts['price'])) {
    ?>
        
		<span class="price"><?php 
    _e('Price: ', LANGUAGE_ZONE);
예제 #4
0
<?php

global $post;
$pg_opts = dt_storage('page_data');
$add_data = dt_storage('add_data');
?>
<div class="<?php 
dt_portfolio_classes($add_data['init_layout'], 'block');
?>
">

	<?php 
$caption = get_the_excerpt();
$caption_hs = '<div class="highslide-caption">';
$caption_hs .= $caption;
if (dt_is_page_soc_buttons_enabled('photo')) {
    $caption_hs .= dt_get_like_window(array('img' => urlencode(current(wp_get_attachment_image_src(get_the_ID(), 'thumbnail'))), 'full' => urlencode(current(wp_get_attachment_image_src(get_the_ID(), 'full'))), 'src' => urlencode(get_permalink(get_the_ID()))), false);
}
$caption_hs .= '</div>';
$img = dt_get_thumb_img(array('class' => 'photo highslide', 'alt' => get_post_meta($post->ID, '_wp_attachment_image_alt', true), 'img_meta' => wp_get_attachment_image_src($post->ID, 'full'), 'custom' => ' onclick="return hs.expand(this, galleryOptions)"', 'title' => strip_tags($caption), '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% %IMG_CLASS% %SIZE%/></a>' . $caption_hs . '</div>', false);
echo $img;
?>
</div>