Advertisement
Guest User

Untitled

a guest
Dec 28th, 2011
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.17 KB | None | 0 0
  1. <?php
  2.  
  3. ?>
  4.  
  5.  
  6.  
  7. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  8. <html xmlns="http://www.w3.org/1999/xhtml">
  9.     <head>
  10.         <title><?php
  11.         global $page, $paged;
  12.         wp_title( '|', true, 'right' );
  13.         // Add the blog name.
  14.         bloginfo( 'name' );
  15.         // Add the blog description for the home/front page.
  16.         $site_description = get_bloginfo( 'description', 'display' );
  17.         if ( $site_description && ( is_home() || is_front_page() ) )
  18.             echo " | $site_description";
  19.         // Add a page number if necessary:
  20.         if ( $paged >= 2 || $page >= 2 )
  21.             echo ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) );
  22.         ?></title>
  23.         <meta name="description" content="" />
  24.         <meta name="keywords" content="" />
  25.         <meta name="format-detection" content="telephone=no">
  26.         <meta http-equiv="Content-type" content="text/html; charset=utf-8" />  
  27.         <link rel="icon"
  28.       type="image/png"
  29.       href="<?php bloginfo( 'template_url' ); ?>/favicon.ico">
  30.         <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('template_directory'); ?>/blog.css" />
  31.         <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('template_directory'); ?>/reset2.css" />
  32.         <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
  33.                 <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/shaZAM.js"></script>
  34.         </head>
  35.         <body <?php body_class(); ?>>
  36.  
  37.         <!-- end header -->
  38.  
  39.         <div id="wrapper">
  40.           <!-- start sidebar -->
  41.           <?php get_sidebar(); ?>
  42.          
  43.           <div id="rightPanel" class="clearfix">
  44.             <h1>Branding <br /> User Interface <br /> Industrial Design</h1>
  45.           <?php
  46.             $args = array(
  47.                 'post_type' => 'post'
  48.             );
  49.        
  50.             $post_query = new WP_Query($args);
  51.           if($post_query->have_posts() ) {
  52.             while($post_query->have_posts() ) {
  53.               $post_query->the_post();
  54.               ?>
  55.               <span class="HR"></span>
  56.               <h2><a href="<?php echo get_permalink(); ?>"><?php the_title(); ?></a></h2>
  57.               <?php
  58.                if ( has_post_thumbnail()) {
  59.                  $permalink = get_permalink();
  60.                  $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large');
  61.                  echo '<a href="' . $permalink . '" title="' . the_title_attribute('echo=0') . '" >';
  62.                  echo get_the_post_thumbnail($post->ID, 'thumbnail');
  63.                  echo '</a>';
  64.                }
  65.               ?>
  66.               <p class="commentCount"><?php comments_number( '0', '1', '%' ); ?></p>
  67.               <div class="postContent setWidth">
  68.                <p><?php the_excerpt(); ?></p>
  69.                <a href="<?php echo get_permalink(); ?>" class="readMore">+ Read More</a>
  70.                <p class="postFooter"><?php the_date('m/d/Y', '', ''); ?> . <?php the_author(); ?> / <span><?php the_category(', ') ?> </span></p>
  71.               </div>
  72.               <?php
  73.             }
  74.           }
  75.           ?>
  76.           </div>
  77.         </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement