Advertisement
Guest User

page-produk.php

a guest
Jul 9th, 2011
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.18 KB | None | 0 0
  1. <?php
  2.  
  3. /*
  4.  
  5. Template Name: Produk Page
  6.  
  7. */
  8.  
  9. get_header(); ?>
  10.  
  11.  
  12.  
  13. <div id="content-wrap">
  14.  
  15. <div id="content">
  16.  
  17. <div class="gap">
  18.  
  19.  
  20.  
  21. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  22.  
  23. <h2><?php the_title(); ?> <?php edit_post_link('edit', '[', ']'); ?>
  24.  
  25. </h2>
  26.  
  27. <?php endwhile; endif; ?>
  28.  
  29.  
  30.  
  31. <?php rewind_posts(); ?>
  32.  
  33.  
  34.  
  35. <?php
  36.  
  37.  
  38.  
  39. // retrieve one post with an ID of 5
  40.  
  41. query_posts('cat=-1,-4,-32,-48,-49');
  42.  
  43.  
  44.  
  45. global $more;
  46.  
  47. // set $more to 0 in order to only get the first part of the post
  48.  
  49. $more = 0;
  50.  
  51.  
  52.  
  53. // the Loop
  54.  
  55. while (have_posts()) : the_post(); ?>
  56.  
  57. <div id="post-<?php the_ID(); ?>" <?php post_class() ?>>
  58.  
  59. <div class="headarea">
  60.  
  61. <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
  62.  
  63.  
  64.  
  65. <div class="metaku">
  66.  
  67. <?php the_category(' &bull; '); ?> <?php edit_post_link('e', '[', ']'); ?>
  68.  
  69. </div>
  70.  
  71. </div>
  72.  
  73. <div class="gambare">
  74.  
  75. <?php
  76.  
  77. if(function_exists('get_the_link')):
  78.  
  79. $nonono = get_bloginfo('template_directory') . '/images/no-thumb.jpg';
  80.  
  81. ?>
  82.  
  83. <a title="Permanent Link to <?php the_title(); ?>" href="<?php the_permalink() ?>"><img src="<?php echo bloginfo('template_url'); ?>/thumb.php?src=<?php echo get_the_link(array('Thumbnail','My Thumbnail'),'medium',$nonono); ?>&amp;h=170&amp;w=175&amp;zc=1&amp;q=90" alt="<?php the_title(); ?>" /></a>
  84.  
  85. <?php endif; ?>
  86.  
  87.  
  88.  
  89.  
  90.  
  91. </div>
  92.  
  93.  
  94.  
  95. <div class="entry">
  96.  
  97. <div class="pesan"><a href="<?php the_permalink() ?>#pesan"><img src="<?php bloginfo('template_directory'); ?>/images/get.gif" alt="Beli" /></a></div>
  98.  
  99. <?php the_content('Read the rest of this entry &raquo;'); ?>
  100.  
  101. </div>
  102.  
  103. <br class="clear" />
  104.  
  105. </div>
  106.  
  107.  
  108.  
  109. <?php
  110.  
  111. endwhile;
  112.  
  113. ?>
  114.  
  115. <div class="navigation">
  116.  
  117. <div class="alignleft"><strong><?php next_posts_link('&laquo; Older Entries') ?></strong></div>
  118.  
  119. <div class="alignright"><strong><?php previous_posts_link('Newer Entries &raquo;') ?></strong></div>
  120.  
  121. </div>
  122.  
  123. <p>&nbsp;</p>
  124. <p>&nbsp;</p>
  125.  
  126. </div>
  127.  
  128. </div>
  129.  
  130. </div>
  131.  
  132. <?php get_sidebar(); ?>
  133.  
  134.  
  135.  
  136. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement