Advertisement
Nenesse

liste_v0.1

Mar 10th, 2011
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. <?php
  2. /**
  3. * Template Name: Page Liste
  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">
  23. <?php do_action('mystique_before_primary'); ?>
  24. <?php
  25. //query_posts('showposts=60','&orderby=title&order=asc');
  26. query_posts( 'posts_per_page=-1'.'&orderby=title&order=asc');
  27. ?>
  28. <table width="95%">
  29. <tr>
  30. <td><a href="#0">0-9</a></td>
  31. <?php for($i=65;$i<91;$i++){
  32. if($i==78) echo '</tr><tr>';
  33. echo '<td><a href="#'.chr($i).'">'.chr($i).'</a></td>';
  34. } ?>
  35. </tr>
  36. </table>
  37.  
  38. <table width="95%">
  39. <?php while ( have_posts() ) : the_post(); ?>
  40.  
  41. <?php
  42. $values = get_post_custom_values("dvd_cover");
  43. if (isset($values[0])) {
  44. ?>
  45. <?php }
  46. $titre=get_the_title(get_the_ID());
  47. if($premiere_lettre!=substr($titre, 0, 1)) {
  48. $premiere_lettre=substr($titre, 0, 1);
  49. echo '<tr><td><b><a name="'.$premiere_lettre.'">'.$premiere_lettre.'</a></b></td><td><p align="right"><a href="#M1">Up</a></p></td></tr>';
  50. }
  51. //$resume=addslashes(htmlspecialchars(get_the_excerpt()));
  52. //$resume=addslashes(get_the_content());
  53. ?>
  54. <tr><td><img src="<?php echo $values[0]; ?>" width="75"></td><td><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a><?php echo $resume; ?></td></tr>
  55. <?php endwhile; ?>
  56. </table>
  57. <?php do_action('mystique_after_primary'); ?>
  58. </div>
  59. </div>
  60. <!-- /primary content -->
  61.  
  62. <?php get_sidebar(); ?>
  63.  
  64. </div>
  65. </div>
  66. <!-- /main content -->
  67.  
  68. <?php get_sidebar(); ?>
  69. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement