📄 Viewing: otw-portfolio-post.php
<?php
/**
* The Template for displaying all single Portfolio posts.
*/
get_header();
otw_pfl_scripts_styles(); /* include the necessary srctips and styles */
otw_pfl_filter_scripts_styles();
?>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.fancybox.js?v=2.1.5"></script>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/css/jquery.fancybox.css?v=2.1.5" media="screen" />
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('.fancybox').fancybox();
});
</script>
<style type="text/css">
.fancybox-custom .fancybox-skin {
box-shadow: 0 0 50px #222;
}
</style>
<?php $style_width = '';
if( get_option( 'otw_pfl_content_width' ) ) {
$style_width = 'style="width:'.get_option('otw_pfl_content_width').'px;"';
}
?>
<div class="otw-row" <?php echo $style_width; ?>>
<?php while ( have_posts() ) : the_post(); ?>
<div class="model_profile">
<article id="post-<?php the_ID(); ?>" <?php post_class('otw-single-portfolio-item'); ?>>
<?php if ( get_post_meta( $post->ID, 'otw_head_title_setting_pfl', true) != 1 ) { ?>
<div class="entry-header">
<h1 class="entry-title">
<?php the_title(); ?>
</h1>
</div>
<?php } ?>
<!-- Portfolio Image Slider -->
<?php
$check_imgs = get_post_meta( $post->ID, 'custom_otw-portfolio-repeatable-image', true);
if( !empty( $check_imgs[0] ) ) {
//if(get_post_meta($post->ID, 'custom_otw-portfolio-repeatable-image', true) ){
?>
<div class="portfolio-gallery-wrapper">
<div class="flexslider" id="portfolio-gallery" style="margin-bottom:10px;">
<div class="flex-viewport" style="overflow: hidden; position: relative;">
<ul class="slides" style="width: 1600%; transition-duration: 0s; transform: translate3d(0px, 0px, 0px);">
<?php
$post_meta_data = get_post_custom($post->ID);
$custom_repeatable = unserialize($post_meta_data['custom_otw-portfolio-repeatable-image'][0]);
foreach ($custom_repeatable as $custom_image) {
$size = "full";
$url = wp_get_attachment_image_src($custom_image, 'otw-porfolio-large');
$url1 = wp_get_attachment_image_src($custom_image, $size);
?>
<li data-thumb="<?php echo $url1[0]; ?>" style="width: 700px; float: left; display: block;">
<a class="fancybox" href="<?php echo $url1[0]; ?>" data-fancybox-group="gallery"> <img alt="" src="<?php echo $url[0]; ?>">
</a>
</li>
<?php } ?>
</ul>
</div>
<ul class="flex-direction-nav">
<li><a href="#" class="flex-prev flex-disabled">
<?php _e( 'Previous', 'otw_pfl' ); ?>
</a></li>
<li><a href="#" class="flex-next">
<?php _e( 'Next', 'otw_pfl' ); ?>
</a></li>
</ul>
</div>
<div class="flexslider" id="portfolio-carousel" style="margin-bottom:10px;">
<div class="flex-viewport" style="overflow: hidden; position: relative;">
<ul class="slides" style="width: 1600%; transition-duration: 0s; transform: translate3d(0px, 0px, 0px);">
<?php
$post_meta_data = get_post_custom($post->ID);
$custom_repeatable = unserialize($post_meta_data['custom_otw-portfolio-repeatable-image'][0]);
foreach ($custom_repeatable as $custom_image) {
$url = wp_get_attachment_image_src($custom_image, 'otw-porfolio-large');
echo '<li data-thumb="'.$url[0].'" style="width: 210px; float: left; display: block;"><img alt="" src="'.$url[0].'"></li>';
}
?>
</ul>
</div>
<ul class="flex-direction-nav">
<li><a href="#" class="flex-prev flex-disabled">
<?php _e( 'Previous', 'otw_pfl' ); ?>
</a></li>
<li><a href="#" class="flex-next">
<?php _e( 'Next', 'otw_pfl' ); ?>
</a></li>
</ul>
</div>
<?php if(get_post_meta($post->ID, 'custom_otw-portfolio-url', true) ) { ?>
<div class="visit-site">Follow us:<a class="twtt" href="http://<?php echo get_post_meta($post->ID, 'custom_otw-portfolio-url', true); ?>">
<?php _e( 'Visit site', 'otw_pfl' ); ?>
</a></div>
<?php } ?>
</div>
<?php } ?>
<!-- END Portfolio Image Slider -->
<div class="categories">
<?php the_taxonomies(); ?>
<?php edit_post_link( __( 'Edit Post', 'otw_pfl' ), '<span class="edit-link">', '</span><br /><br />' ); ?>
</div>
<br />
<div class="entry-content">
<div class="model_detail_left">
<?php the_content(); ?>
<!-- Portfolio Meta Content -->
</div>
<div class="detail_right">
<div class="prefrences">
<h1>Preferences</h1>
<?php if(get_post_meta($post->ID, 'custom_otw-portfolio-quote', true) ) { ?>
<p><?php echo get_post_meta($post->ID, 'custom_otw-portfolio-quote', true); ?></p>
</div>
<?php } ?>
<div class="model-news">
<h1>News</h1>
<?php if(get_post_meta($post->ID, 'custom_otw-portfolio-news', true) ) { ?>
<p><?php echo get_post_meta($post->ID, 'custom_otw-portfolio-news', true); ?></p>
</div>
<?php } ?>
</div>
<!-- END Portfolio Meta Content -->
</div>
<nav class="nav-single">
<h3 class="assistive-text">
<?php _e( 'Post navigation', 'otw_pfl' ); ?>
</h3>
<span class="nav-previous">
<?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'otw_pfl' ) . '</span> %title' ); ?>
</span> <span class="nav-next">
<?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'otw_pfl' ) . '</span>' ); ?>
</span> </nav>
<!-- .nav-single -->
<?php // comments_template( '', true ); ?>
</article>
<!-- #post -->
</div>
<?php endwhile; // end of the loop. ?>
</div>
<script language="javascript" type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.js"></script>
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/thickbox.css" type="text/css" media="screen" />
<script language="javascript" type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/thickbox.js"></script>
<?php get_footer(); ?>
🌑 DarkStealth — WP Plugin Edition
Directory: /home/httpd/html/matrixmodels.com/public_html/wp-content/plugins/otw-portfolio-light/templates