コード例 #1
0
<?php 
}
// reduced response
?>
		<?php 
WpvTemplates::left_sidebar();
?>

		<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
			<?php 
        $rel_group = 'portfolio_' . get_the_ID();
        extract(wpv_get_portfolio_options('true', $rel_group));
        list($terms_slug, $terms_name) = wpv_get_portfolio_terms();
        ?>
			<article id="post-<?php 
        the_ID();
        ?>
" <?php 
        post_class(WpvTemplates::get_layout() . ' ' . $type);
        ?>
>
				<div class="page-content">
					<?php 
        global $wpv_has_header_sidebars;
        if ($wpv_has_header_sidebars) {
            WpvTemplates::header_sidebars();
        }
コード例 #2
0
ファイル: item.php プロジェクト: amitmula/amitandaastha.in
$item_class[] = 'state-closed';
?>
<li data-id="<?php 
the_id();
?>
" data-type="<?php 
echo implode(' ', $terms_slug);
?>
" class="<?php 
echo implode(' ', $item_class);
?>
">
	<div class="portfolio-item-wrapper">
		<?php 
$gallery = $lightbox = $href = '';
extract(wpv_get_portfolio_options($group, $rel_group));
$video_url = ($type === 'video' and !empty($href)) ? $href : '';
if (empty($href)) {
    $href = get_permalink();
}
if ($fancy_page || $type === 'html' || !empty($video_url) && has_post_thumbnail()) {
    $lightbox = '';
    $href = $type == 'link' ? $href : get_permalink();
}
if ($fancy_page || $scrollable) {
    $gallery = '';
}
$suffix = $sortable === 'masonry' ? 'masonry' : 'loop';
?>
		<div class="portfolio-image">
			<div class="thumbnail" style="max-height:<?php 
コード例 #3
0
<?php

/**
 * Single portfolio content template
 * @package wpv
 */
$is_ajax = isset($_SERVER['HTTP_X_VAMTAM']) && $_SERVER['HTTP_X_VAMTAM'] == 'ajax-portfolio';
$client = get_post_meta(get_the_id(), 'portfolio-client', true);
$logo = get_post_meta(get_the_id(), 'portfolio-logo', true);
$client = preg_replace('@</\\s*([^>]+)\\s*>@', '</$1>', $client);
$content = get_the_content();
$portfolio_options = wpv_get_portfolio_options('true', '');
if ($portfolio_options['type'] == 'gallery') {
    list(, $content) = WpvPostFormats::get_first_gallery($content);
}
$content = apply_filters('the_content', $content);
$has_right_column = !empty($logo) || !empty($client);
$left_column_width = $has_right_column ? 'grid-4-5' : 'grid-1-1 last';
?>

<div class="row portfolio-content">
	<div class="<?php 
echo $left_column_width;
?>
">
		<?php 
if ($is_ajax) {
    ?>
			<?php 
    WpvTemplates::breadcrumbs();
    WpvTemplates::page_header(false, get_the_title());