Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2012
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.82 KB | None | 0 0
  1. <?php
  2. /**
  3.  *
  4.  *  Template Name: page-michal
  5.  *
  6.  * @package Origin
  7.  * @subpackage Template
  8.  */
  9.  
  10. get_header(); // Loads the header.php template. ?>
  11.  
  12.     <?php do_atomic( 'before_content' ); // origin_before_content ?>
  13.  
  14.     <div id="content">
  15.  
  16.         <?php do_atomic( 'open_content' ); // origin_open_content ?>
  17.  
  18.         <div class="hfeed">
  19.  
  20.         <?php global $more;
  21.         $more = 1; ?>
  22.    
  23.            
  24.             <?php do_atomic( 'before_entry' ); // origin_before_entry ?>
  25.                         <?php do_atomic( 'open_entry' ); // origin_open_entry ?>
  26.                        
  27.                        
  28.                        
  29.                         <!--- zawartosc -->
  30.                         <div class="entry-content">
  31.                        
  32.                                     <?php
  33.                                     $args = array(
  34.                                     'cat'=>8,
  35.                                 'post__in'=>get_option('sticky_posts'),
  36.                                
  37.                                 );
  38.                                     query_posts($args) ?>  
  39.                                    
  40.                                 <!-- while funkcja -->
  41.                                 <?php while ( have_posts() ) : the_post(); ?>
  42.                                 <!---  ----------- --->
  43.                            
  44.                                    
  45.                                     <?php get_the_image( array( 'meta_key' => 'Thumbnail', 'size' => 'single-thumbnail', 'image_class' => 'featured' ) ) ?>
  46.                                     <div class="sticky-header">                                
  47.                                         <?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>                                                                        
  48.                                     </div><!-- .sticky-header -->
  49.                                    
  50.                                     <div class="entry-summary">                            
  51.                                         <?php the_content(); ?>                        
  52.                                     </div><!-- .entry-summary -->
  53.                                    
  54.                                                                        
  55.                                    
  56.                                
  57.                                 <?php endwhile; ?>
  58.                                 <?php wp_reset_query(); ?>
  59.                                
  60.                                
  61.                                
  62.                                
  63.                                
  64.                                 <!---  ----------- --->
  65.                                 <!---  druga petla --->
  66.                                 <!---  ----------- --->
  67.                                
  68.                                 <?php
  69.                                     $args = array(
  70.                                     'cat'=>8,                              
  71.                                 );
  72.                                     query_posts($args) ?>  
  73.                                    
  74.                                 <!-- while funkcja -->
  75.                                 <?php while ( have_posts() ) : the_post(); ?>
  76.                                 <!---  ----------- --->
  77.                                     <div class="sticky-header">                                
  78.                                         <h1><?php the_title() ?></h1>                                                                          
  79.                                     </div><!-- .sticky-header -->
  80.                                    
  81.                                     <div class="entry-summary">                            
  82.                                                            
  83.                                     </div><!-- .entry-summary -->
  84.                                    
  85.                                                                        
  86.                                    
  87.                                
  88.                                 <?php endwhile; ?>
  89.                                 <?php wp_reset_query(); ?>
  90.                                
  91.                                
  92.                                
  93.                                
  94.                     </div><!-- .entry-content -->
  95.             <?php do_atomic( 'after_entry' ); // origin_after_entry ?>
  96.  
  97.             <?php do_atomic( 'after_singular' ); // origin_after_singular ?>
  98.                    
  99.             <?php comments_template( '/comments.php', true ); // Loads the comments.php template. ?>
  100.         <?php wp_reset_query(); ?>
  101.            
  102.  
  103.         </div><!-- .hfeed -->
  104.  
  105.         <?php do_atomic( 'close_content' ); // origin_close_content ?>
  106.  
  107.        
  108.     </div><!-- #content -->
  109.  
  110.  
  111.  
  112.  
  113.  
  114.     <?php do_atomic( 'after_content' ); // origin_after_content ?>
  115.  
  116. <?php get_footer(); // Loads the footer.php template. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement