get_header();
?>

	<?php 
get_template_part('page-templates/header-inner');
?>

    <!-- content section start here -->
    <section id="content-wrapper">
           
        <div class="row">
           <div class="twelve column">
           
				<?php 
global $smof_data, $post;
$prefix = 'indonez_';
$showdesc = $smof_data['portfolio_desc'];
$showtitle = $smof_data['portfolio_title'];
$term = get_term_by('slug', get_query_var('portfolio_category'), 'portfolio_category');
$cat = $term->term_id;
echo indonez_portfolio($type = "gallery", $showposttitle = "" . $showtitle . "", $showpostdesc = "" . $showdesc . "", $showpost = "-1", $colnumber = "4", $cat_id = "" . $cat . "");
?>
 
           </div>
        </div>         
                 
    </section>
    <!-- content section end here -->

<?php 
get_footer();
Ejemplo n.º 2
0
				<?php 
global $smof_data, $post;
$prefix = 'indonez_';
$getmetapf_type = get_post_meta($post->ID, $prefix . 'portfolio_type', true);
$getmetapf = get_post_meta($post->ID, $prefix . 'portfolio_cat_include', true);
$catid = implode(",", $getmetapf);
$showdesc = $smof_data['portfolio_desc'];
$showtitle = $smof_data['portfolio_title'];
$prefix = 'indonez_';
$getcolumn = get_post_meta($post->ID, $prefix . 'portfolio_layout', true);
$column = str_replace("+", "", urlencode(strtolower($getcolumn)));
if ($column == "2column" || $column == "") {
    $col = 2;
} elseif ($column == "3column") {
    $col = 3;
} elseif ($column == "4column") {
    $col = 4;
}
echo indonez_portfolio($type = "" . $getmetapf_type . "", $showposttitle = "" . $showtitle . "", $showpostdesc = "" . $showdesc . "", $showpost = "-1", $colnumber = "" . $col . "", $cat_id = "" . $catid . "");
the_content();
?>
 

           </div>
        </div>         
                 
    </section>
    <!-- content section end here -->
	
<?php 
get_footer();
Ejemplo n.º 3
0
 function indonez_portfolio_shortcode($atts, $content = null)
 {
     extract(shortcode_atts(array('filter' => 'yes', 'showtitle' => 'yes', 'showdesc' => 'yes', 'showpost' => '-1', 'column' => '4', 'category' => '', 'zoomicon' => 'yes', 'linkicon' => 'yes', 'orderby' => 'date', 'order' => 'ASC'), $atts));
     //enqueue script
     wp_enqueue_script('jquery.isotope');
     wp_enqueue_script('idz.portfolio.setting');
     wp_enqueue_script('jquery.fancybox');
     wp_enqueue_script('jquery.fancybox-media');
     wp_enqueue_script('idz.fancybox.setting');
     return indonez_portfolio($filter, $showtitle, $showdesc, $showpost, $column, $category, $zoomicon, $linkicon, $orderby, $order);
 }
if ($showdesc == 1) {
    $getdesc = "yes";
} else {
    $getdesc = "no";
}
if ($zoomicon == 1) {
    $showzoomicon = "yes";
} else {
    $showzoomicon = "no";
}
if ($linkicon == 1) {
    $showlinkicon = "yes";
} else {
    $showlinkicon = "no";
}
echo indonez_portfolio($filter = "no", $showtitle = $gettitle, $showdesc = $getdesc, $showpost = $showpost, $column = $showcolumn, $category = $cat, $zoomicon = $showzoomicon, $linkicon = $showlinkicon, $orderby = $orderby, $order = $order);
?>
 
				
				<?php 
if ($wp_query->max_num_pages > 1) {
    ?>
                     <?php 
    if (function_exists('wp_pagenavi')) {
        ?>
                         <?php 
        wp_pagenavi();
        ?>
                     <?php 
    } else {
        ?>