Advertisement
Nenesse

page_liste_mytique_3.2.9.2 V2

Mar 29th, 2012
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php /* ATOM/digitalnature */
  2.  
  3.    // The template for the "page" post type. It acts for pages just like single.php does for posts
  4.    // pagename.php, page-slug.php or page-id.php can override it.
  5.  
  6.    /* Template Name: Page Liste */
  7.  
  8.   //get_header();
  9. ?>
  10.  
  11. <?php atom()->template('header'); ?>
  12.  
  13. <script language="javascript">
  14.     var name = "#floatMenu";
  15.     var menuYloc = null;
  16.    
  17.         $(document).ready(function(){
  18.             menuYloc = parseInt($(name).css("top").substring(0,$(name).css("top").indexOf("px")))
  19.             $(window).scroll(function () {
  20.                 offset = menuYloc+$(document).scrollTop()+"px";
  21.                 $(name).animate({top:offset},{duration:500,queue:false});
  22.             });
  23.         });
  24.      </script>
  25.  
  26. <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('template_directory'); ?>/menu_flottant.css" />
  27.  
  28. <style type="text/css">
  29.  
  30.     #floatMenu {
  31.         position:absolute;
  32.         top:-200px;
  33.         left:550px; //50%;
  34.         margin-left:200px;
  35.         width:150px;
  36.         z-index: 5;
  37. -moz-border-radius:30px;
  38. -webkit-border-radius:30px;
  39. border-radius:30px;
  40. /*IE DOES NOT SUPPORT BORDER RADIUS*/
  41. -moz-box-shadow:0px 0px 11px #000000;
  42. -webkit-box-shadow:0px 0px 11px #000000;
  43. box-shadow:0px 0px 11px #000000;
  44. /*IE DOES NOT SUPPORT BLUR PROPERTY OF SHADOWS*/
  45. background: -moz-linear-gradient(top, #ffffff, #000000);
  46. background: -webkit-gradient(linear, center top, center bottom, from(#ffffff), to(#000000));
  47. background: -o-linear-gradient(top, #ffffff, #000000);
  48. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#000000');
  49. /*INNER ELEMENTS MUST NOT BREAK THIS ELEMENTS BOUNDARIES*/
  50. /*Element must have a height (not auto)*/
  51. /*All filters must be placed together*/
  52. -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#000000')";
  53. /*Element must have a height (not auto)*/
  54. /*All filters must be placed together*/
  55. background: linear-gradient(top, #ffffff, #000000);
  56. /*--IE9 DOES NOT SUPPORT GRADIENT BACKGROUNDS--*/
  57. opacity:0.84;
  58. -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=84);
  59. /*-ms-filter must come before filter*/
  60. filter: alpha(opacity=84);
  61. /*INNER ELEMENTS MUST NOT BREAK THIS ELEMENTS BOUNDARIES*/
  62. /*All filters must be placed together*/
  63.  
  64.         }
  65.  
  66.     #floatMenu table {
  67.             margin-left: auto ;
  68.   margin-right: auto ;
  69.             border-collapse:collapse;
  70.             background-color:#222;
  71.         }
  72.     #floatMenu table td {
  73.             text-align:center;
  74.             border:1px solid #999;
  75.             color:#fff;
  76.             background-color:#222;
  77.         }
  78.     #floatMenu td a {
  79.             text-decoration: none;
  80.             color:#fff;
  81.         }
  82.     #floatMenu td:hover {
  83.             border-color:#fff;
  84.             color:#fff;
  85.             background-color:#333333;
  86.         }
  87.     #tableau {
  88.         font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif;
  89.         font-size: 12px;
  90.         margin: 10px 0;
  91.         width: 100%;
  92.         text-align: left;
  93.         border-collapse: collapse;
  94.     }
  95.     #tableau th {
  96.         font-size: 13px;
  97.         font-weight: normal;
  98.         padding: 8px;
  99.         background: #b9c9fe url('images/gradhead.png') repeat-x;
  100.         border-top: 2px solid #d3ddff;
  101.         border-bottom: 1px solid #fff;
  102.         color: #039;
  103.     }
  104. </style>
  105.  
  106. <div id="floatMenu">
  107.     <table>
  108.         <tr>
  109.         <td class="bg"><a class="bg" href="#0">0-9</a></td><td></td></tr>
  110.         <?php for($i=65;$i<91;$i++){
  111.             //if($i==78) echo '</tr><tr>';
  112.                 echo '<tr><td><a href="#'.chr($i).'">'.chr($i).'</a></td>';
  113.                 $i++;
  114.                 echo '<td><a href="#'.chr($i).'">'.chr($i).'</a></td></tr>';
  115.             } ?>
  116.        
  117.     </table>
  118. </div>
  119.  
  120.   <!-- main content: primary + sidebar(s) -->
  121.   <div id="mask-3" class="clear-block">
  122.    <div id="mask-2">
  123.     <div id="mask-1">
  124.              
  125.       <!-- primary content -->
  126.       <div id="primary-content">
  127.        <div class="blocks clear-block">
  128.            
  129.         <?php //$app->action('before_primary'); ?>
  130.         <?php atom()->action('before_primary'); ?>
  131.  
  132.         <?php
  133.     //query_posts('showposts=60','&orderby=title&order=asc');
  134.     query_posts( 'posts_per_page=-1'.'&orderby=title&order=asc');
  135.        ?>
  136.     <a name="0"></a>
  137.     <table id="tableau" width="95%">
  138.         <?php while ( have_posts() ) : the_post(); ?>
  139.  
  140.             <?php
  141.             $values = get_post_custom_values("dvd_cover");
  142.             if (isset($values[0])) {
  143.             ?>
  144.             <?php }
  145.                 $titre=get_the_title(get_the_ID());
  146.                 if($premiere_lettre!=substr($titre, 0, 1)) {
  147.                     $premiere_lettre=substr($titre, 0, 1);
  148.                     echo '<tr><th scope="col"><b><a name="'.$premiere_lettre.'">'.$premiere_lettre.'</a></b></th><th scope="col"><p align="right"><a href="#0">Up</a></p></th></tr>';
  149.                 }
  150.                 //$resume=addslashes(htmlspecialchars(get_the_excerpt()));
  151.                 //$resume=addslashes(get_the_content());
  152.             ?>
  153.         <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>
  154.         <?php endwhile; ?>
  155.     </table>
  156.  
  157.         <?php //$app->action('after_primary'); ?>
  158.         <?php atom()->action('after_primary'); ?>
  159.  
  160.        </div>
  161.       </div>
  162.       <!-- /primary content -->
  163.  
  164.       <?php //get_sidebar(); ?>
  165.       <?php atom()->template('sidebar'); ?>
  166.     </div>
  167.    </div>
  168.   </div>
  169.   <!-- /main content -->
  170.  
  171. <?php //get_footer(); ?>
  172. <?php atom()->template('footer'); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement