SHARE
TWEET

Untitled

a guest May 2nd, 2013 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /*
  3. Template Name: (Portfolio) Identity Page
  4. */
  5. ?>
  6. <?php get_template_part('templates/content', 'page'); ?>
  7. <?php get_template_part('templates/page', 'header'); ?>
  8.  
  9. <div class="container" style="margin-top:20px; min-height:500px;" >
  10.   <div class="row">
  11.     <?php
  12.            $items = new WP_Query(array(
  13.     'post_type' => 'slider',
  14.         'slider-category' => '',
  15.     'posts_per_page' => -1
  16.     ));
  17.    while ( $items->have_posts() ) :
  18.    $items->the_post();
  19.  
  20.  
  21.   ?>
  22.     <?php
  23. $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array( 5600,1000 ), false, '' );
  24. ?>
  25.     <a href="#port-<? the_ID(); ?>" data-toggle="modal">
  26.     <div class="span2" id="square" style="background: url(<?php echo $src[0]; ?>); background-size:300px;  background-repeat:no-repeat; background-position:center;"> <span>
  27.       <h3>
  28.         <?php the_title();?>
  29.         <?php get_the_category();?>
  30.       </h3>
  31.       </span> </div>
  32.     </a>
  33.     <div id="port-<? the_ID(); ?>" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="portTitle" aria-hidden="true">
  34.       <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
  35.       <div class="modal-header">
  36.         <div id="portTitle" class="pull-left" >
  37.           <h3><?php echo get_post_meta($post->ID, "client_name", true); ?></h3>
  38.           <h4><?php echo get_post_meta($post->ID, "project_role", true); ?></h4>
  39.         </div>
  40.         <div class="excerpt pull-right"><?php echo get_post_meta($post->ID, "short_desc", true); ?></div>
  41.         <div style="clear:both;"></div>
  42.       </div>
  43.       <div class="modal-body">
  44.         <?php
  45.  
  46.  
  47. if (MultiPostThumbnails::has_post_thumbnail('slider', 'portfolio-image-1')) {
  48.   get_template_part('templates/portfolio-carousel');
  49. } else {
  50. if ( has_post_thumbnail() ) {
  51.  (the_post_thumbnail());
  52. }
  53. }
  54.  
  55. ?>
  56.       </div>
  57.       <div class="model-footer" style="padding:15px;">
  58.         <p>
  59.           <?php the_content();?>
  60.         </p>
  61.       </div>
  62.     </div>
  63.     <?php endwhile;  ?>
  64.   </div>
  65. </div>
  66. <div style="clear:both;"></div>
  67. <script type="text/javascript">
  68.         $(function(){
  69.         $('.attachment-post-thumbnail').zoome({magnifierSize:[200,200],showZoomState:true});
  70.         $('#img2').zoome({hoverEf:'blur',showZoomState:true});
  71.         $('#img3').zoome({hoverEf:'grayscale',showZoomState:true,zoomRange:[1,5],zoomStep:0.5,defaultZoom:1.5,magnifierSize:[100,100]});
  72.         $('#').zoome({hoverEf:'transparent',showZoomState:true,magnifierSize:[200,200]});
  73. });
  74.         function destroyZoome(obj){
  75.                 if(obj.parent().hasClass('zm-wrap'))
  76.                 {
  77.                         obj.unwrap().next().remove();
  78.                 }
  79.         }
  80. </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top