Advertisement
Nenesse

cover

Apr 5th, 2011
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. <?php
  2. /**
  3. * Template Name: Page cover
  4. *
  5. * A custom page template without sidebar.
  6. *
  7. * The "Template Name:" bit above allows this to be selectable
  8. * from a dropdown menu on the edit page screen.
  9. *
  10. * @package WordPress
  11. * @subpackage Twenty_Ten
  12. * @since Twenty Ten 1.0
  13. */
  14.  
  15. get_header(); ?>
  16.  
  17. <!-- main content: primary + sidebar(s) -->
  18. <div id="main">
  19. <div id="main-inside" class="clear-block">
  20. <!-- primary content -->
  21. <div id="primary-content">
  22. <div class="blocks" style="margin:auto auto;">
  23. <?php do_action('mystique_before_primary'); ?>
  24. <?php
  25. query_posts('showposts=177');
  26. if (have_posts()):
  27.  
  28. while (have_posts()):
  29. the_post();
  30. $values = get_post_custom_values("dvd_cover");
  31. if (isset($values[0])) {
  32. //echo '<span class="location">';
  33. $values = get_post_custom_values("dvd_cover");
  34. //$titre=str_replace("'","&#39;",get_the_title(get_the_ID()));
  35. $titre=addslashes(get_the_title(get_the_ID()));
  36. $resume=addslashes(htmlspecialchars(get_the_excerpt()));
  37. //$resume=htmlentities(get_the_excerpt(),ENT_NOQUOTES);
  38.  
  39. ?>
  40. <?php /*<a href="<?php the_permalink(); ?>" rel="bookmark"><img src="<?php echo $values[0]; ?>" alt="<?php echo $titre; ?>"></a> */ ?>
  41. <a class="tippy_link" href="<?php the_permalink(); ?>" onmouseover="domTip_toolText('tip1', '<?php echo $resume; ?>', '<?php echo $titre; ?>', '');" onmouseout="domTip_clearTip('false')"><img src="<?php echo $values[0]; ?>" alt="<?php echo $titre; ?>" width="110"></a>
  42.  
  43. <?php
  44.  
  45. }
  46. //mystique_page();
  47. endwhile;
  48.  
  49. endif;
  50.  
  51. //comments_template();
  52. ?>
  53. <?php do_action('mystique_after_primary'); ?>
  54. </div>
  55. </div>
  56. <!-- /primary content -->
  57.  
  58. <?php get_sidebar(); ?>
  59.  
  60. </div>
  61. </div>
  62. <!-- /main content -->
  63.  
  64. <?php get_sidebar(); ?>
  65. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement