Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2012
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.09 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The template for displaying pages.
  4.  *
  5.  * @package WordPress
  6.  * @subpackage Amplifier
  7.  */
  8.  
  9. get_header(); ?>
  10.  
  11.     <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  12.    
  13.     <!-- Check if page has a call to action sentence in the page meta box -->
  14.     <?php $my_meta = get_post_meta($post->ID,'_my_meta',TRUE);
  15.         if(!empty($my_meta)) { // if cta meta box has info ?>
  16.        
  17.     <!-- BEGIN CALL TO ACTION -->
  18.     <div class="inner-cta-wrap">
  19.         <div id="call-to-action" class="container_12">
  20.  
  21.             <!-- TOP SENTENCE -->
  22.             <div id="cta-top" class="grid_12">
  23.                 <h3 class="inner-title">
  24.                
  25.                     <span class="cta-strong-title">
  26.                         <?php echo $my_meta['cta']; // display bold title ?>
  27.                     </span>
  28.                    
  29.                     <span class="cta-small-title">
  30.                         &nbsp;
  31.                         <?php echo $my_meta['link']; // display subtitle ?>
  32.                     </span>
  33.  
  34.                 </h3>
  35.             </div> <!-- end #cta-top .grid_12 -->
  36.            
  37.         </div> <!-- end .container_12 #call-to-action -->
  38.     </div><!-- end .cta-wrap -->
  39.    
  40.     <div class="dotted-hr" style="margin-bottom:5px"></div>
  41.    
  42.     <?php } else { } // nada  ?>
  43.    
  44.     <div class="clear"></div>
  45.    
  46.     <!-- Begin Main Body -->
  47.     <div class="container_12" id="body-wrap" role="main">
  48.    
  49.         <div id="breadcrumb-wrap" class="grid_12 breadcrumbs">
  50.             <?php if(function_exists('bcn_display')) {  bcn_display(); } ?>
  51.         </div> <!-- end #breadcrumb-wrap .grid_12 -->
  52.    
  53.         <?php $sidebar_position = of_get_option('sidebar_position'); ?>
  54.  
  55.         <?php if ($sidebar_position == 'left') { ?>
  56.  
  57.             <div id="sidebar" class="grid_4 suffix_1 alpha">
  58.        
  59.             <?php  include (TEMPLATEPATH.'/sidebar-generator.php'); ?>
  60.    
  61.             </div> <!-- end #sidebar .grid_4 -->
  62.    
  63.         <?php } ?>
  64.  
  65.         <div id="post-content-wrap" class="<?php if($sidebar_position == 'right') { echo 'grid_7 suffix_1'; } elseif($sidebar_position == 'left') { echo 'grid_7'; } ?>">
  66.  
  67.         <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
  68.        
  69.             <h3 class="post-title"><?php the_title() ?></h3>
  70.            
  71.             <!-- Featured Image -->
  72.             <?php if (has_post_thumbnail()) : /* if the page has a featured image */
  73.                 $blog_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), ''); // Get original image size
  74.                 $thumb = get_post_thumbnail_id();
  75.                 $image = vt_resize( $thumb,'' , 534, 168, true ); // Resize original image
  76.                 $extralink =  post_permalink(); //aap made this    
  77. ?>
  78.                    
  79.             <div class="featured-image image-fade omega">
  80.  
  81.     <a class="portfolio" href="<?php echo $blog_image_url[0]; ?>">
  82.                     <img class="" src="<?php echo $extralink; // aap replaced $image[url]; and removed class omega ?>" width="<?php echo $image[width]; ?>" height="<?php echo $image[height]; ?>"title="Leer meer" />              </a>
  83.                
  84.             </div> <!-- end .featured-image .image-fade -->
  85.                    
  86.             <?php endif; // End Check for featured image ?>
  87.            
  88.             <div id="content">
  89.            
  90.                 <?php the_content(); ?>
  91.            
  92.             </div> <!-- end #content -->
  93.            
  94.         </div> <!-- end <?php post_class() ?> #post-<?php the_ID(); ?> -->
  95.        
  96.         <div class="meta-page">
  97.             <ul>
  98.             <!-- <li> -->
  99.                 <?php if ( current_user_can( 'edit_post', $post->ID ) ): ?>
  100.                 <?php edit_post_link( __('edit', 'amplifier'), '<li class="edit-post">&nbsp;[', ']</li>' ); ?> 
  101.                 <?php endif; ?>
  102.             <!-- </li> -->
  103.             </ul>
  104.         </div> <!-- end .meta -->
  105.        
  106.         <?php comments_template('', true); ?>
  107.  
  108.         <?php endwhile; else: ?>
  109.            
  110.             <!-- If we can't find anything  -->
  111.             <div id="post-0" <?php post_class() ?>>
  112.                
  113.                 <h3 class="post-title"><?php _e('Error 404 - Not Found', 'amplifier') ?></h3>
  114.                
  115.                 <div class="content">
  116.                     <p><?php _e("Sorry, but you are looking for something that isn't here.", "amplifier") ?></p>
  117.                 </div> <!-- end .content -->
  118.                
  119.             </div> <!-- end <?php post_class() ?> #post-0 -->
  120.                
  121.         <?php endif; ?>
  122.            
  123.         </div><!-- end #post-content-wrap .grid_7 -->
  124.  
  125.     <?php if ($sidebar_position == 'right') { ?>
  126.  
  127.         <div id="sidebar" class="grid_4">
  128.        
  129.         <?php  include (TEMPLATEPATH.'/sidebar-generator.php'); ?>
  130.    
  131.         </div> <!-- end #sidebar .grid_4 -->
  132.    
  133.     <?php } ?>
  134.    
  135.     </div> <!-- end #body-wrap .container_12 -->
  136.    
  137.     <div class="clearfix"></div>
  138.  
  139. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement