Advertisement
Nenesse

Page List

Mar 7th, 2011
951
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.06 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.   <a name="M1"></a>
  20.    <div id="main-inside" class="clear-block">
  21.     <!-- primary content -->
  22.     <div id="primary-content">
  23.      <div class="blocks">
  24.        <?php do_action('mystique_before_primary'); ?>
  25.        <?php
  26.     //query_posts('showposts=60','&orderby=title&order=asc');
  27.     query_posts( 'posts_per_page=-1'.'&orderby=title&order=asc');
  28.        ?>
  29.     <table width="95%">
  30.         <tr>
  31.         <td><a href="#0">0-9</a></td>
  32.         <?php for($i=65;$i<91;$i++){
  33.                 if($i==78) echo '</tr><tr>';
  34.                     echo '<td><a href="#'.chr($i).'">'.chr($i).'</a></td>';
  35.             } ?>
  36.         </tr>
  37.     </table>
  38.  
  39.     <table width="95%">
  40.         <?php while ( have_posts() ) : the_post(); ?>
  41.  
  42.             <?php
  43.             $values = get_post_custom_values("dvd_cover");
  44.             if (isset($values[0])) {
  45.             ?>
  46.             <?php }
  47.                 $titre=get_the_title(get_the_ID());
  48.                 if($premiere_lettre!=substr($titre, 0, 1)) {
  49.                     $premiere_lettre=substr($titre, 0, 1);
  50.                     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>';
  51.                 }
  52.                 //$resume=addslashes(htmlspecialchars(get_the_excerpt()));
  53.                 //$resume=addslashes(get_the_content());
  54.             ?>
  55.         <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>
  56.         <?php endwhile; ?>
  57.     </table>
  58.        <?php do_action('mystique_after_primary'); ?>
  59.      </div>
  60.     </div>
  61.     <!-- /primary content -->
  62.  
  63.     <?php get_sidebar(); ?>
  64.  
  65.    </div>
  66.   </div>
  67.   <!-- /main content -->
  68.  
  69. <?php get_sidebar(); ?>
  70. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement