Example #1
0
    ?>
" <?php 
    post_class(WpvTemplates::get_layout());
    ?>
>
			<?php 
    global $wpv_has_header_sidebars;
    if ($wpv_has_header_sidebars) {
        WpvTemplates::header_sidebars();
    }
    ?>
			<div class="page-content">
				<?php 
    if (WpvFancyPortfolio::has('page')) {
        $fancy_portfolio_resizing = get_post_meta($post->ID, 'fancy-portfolio-resizing', true);
        $data = WpvFancyPortfolio::get();
        ?>
						<script>
							jQuery(function($) {
								var correct_height = <?php 
        echo (int) get_post_meta($post->ID, 'fancy-portfolio-height', true);
        ?>
,
									win_width = $(window).width();

								if(win_width < WPV_FRONT.content_width)
									correct_height *= win_width / WPV_FRONT.content_width;

								$.WPV.PortfolioSlider.init(<?php 
        echo json_encode($data);
        ?>