Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * The template for displaying pages.
- *
- * @package WordPress
- * @subpackage Amplifier
- */
- get_header(); ?>
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <!-- Check if page has a call to action sentence in the page meta box -->
- <?php $my_meta = get_post_meta($post->ID,'_my_meta',TRUE);
- if(!empty($my_meta)) { // if cta meta box has info ?>
- <!-- BEGIN CALL TO ACTION -->
- <div class="inner-cta-wrap">
- <div id="call-to-action" class="container_12">
- <!-- TOP SENTENCE -->
- <div id="cta-top" class="grid_12">
- <h3 class="inner-title">
- <span class="cta-strong-title">
- <?php echo $my_meta['cta']; // display bold title ?>
- </span>
- <span class="cta-small-title">
-
- <?php echo $my_meta['link']; // display subtitle ?>
- </span>
- </h3>
- </div> <!-- end #cta-top .grid_12 -->
- </div> <!-- end .container_12 #call-to-action -->
- </div><!-- end .cta-wrap -->
- <div class="dotted-hr" style="margin-bottom:5px"></div>
- <?php } else { } // nada ?>
- <div class="clear"></div>
- <!-- Begin Main Body -->
- <div class="container_12" id="body-wrap" role="main">
- <div id="breadcrumb-wrap" class="grid_12 breadcrumbs">
- <?php if(function_exists('bcn_display')) { bcn_display(); } ?>
- </div> <!-- end #breadcrumb-wrap .grid_12 -->
- <?php $sidebar_position = of_get_option('sidebar_position'); ?>
- <?php if ($sidebar_position == 'left') { ?>
- <div id="sidebar" class="grid_4 suffix_1 alpha">
- <?php include (TEMPLATEPATH.'/sidebar-generator.php'); ?>
- </div> <!-- end #sidebar .grid_4 -->
- <?php } ?>
- <div id="post-content-wrap" class="<?php if($sidebar_position == 'right') { echo 'grid_7 suffix_1'; } elseif($sidebar_position == 'left') { echo 'grid_7'; } ?>">
- <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
- <h3 class="post-title"><?php the_title() ?></h3>
- <!-- Featured Image -->
- <?php if (has_post_thumbnail()) : /* if the page has a featured image */
- $blog_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), ''); // Get original image size
- $thumb = get_post_thumbnail_id();
- $image = vt_resize( $thumb,'' , 534, 168, true ); // Resize original image
- $extralink = post_permalink(); //aap made this
- ?>
- <div class="featured-image image-fade omega">
- <a class="portfolio" href="<?php echo $blog_image_url[0]; ?>">
- <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>
- </div> <!-- end .featured-image .image-fade -->
- <?php endif; // End Check for featured image ?>
- <div id="content">
- <?php the_content(); ?>
- </div> <!-- end #content -->
- </div> <!-- end <?php post_class() ?> #post-<?php the_ID(); ?> -->
- <div class="meta-page">
- <ul>
- <!-- <li> -->
- <?php if ( current_user_can( 'edit_post', $post->ID ) ): ?>
- <?php edit_post_link( __('edit', 'amplifier'), '<li class="edit-post"> [', ']</li>' ); ?>
- <?php endif; ?>
- <!-- </li> -->
- </ul>
- </div> <!-- end .meta -->
- <?php comments_template('', true); ?>
- <?php endwhile; else: ?>
- <!-- If we can't find anything -->
- <div id="post-0" <?php post_class() ?>>
- <h3 class="post-title"><?php _e('Error 404 - Not Found', 'amplifier') ?></h3>
- <div class="content">
- <p><?php _e("Sorry, but you are looking for something that isn't here.", "amplifier") ?></p>
- </div> <!-- end .content -->
- </div> <!-- end <?php post_class() ?> #post-0 -->
- <?php endif; ?>
- </div><!-- end #post-content-wrap .grid_7 -->
- <?php if ($sidebar_position == 'right') { ?>
- <div id="sidebar" class="grid_4">
- <?php include (TEMPLATEPATH.'/sidebar-generator.php'); ?>
- </div> <!-- end #sidebar .grid_4 -->
- <?php } ?>
- </div> <!-- end #body-wrap .container_12 -->
- <div class="clearfix"></div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement