Advertisement
oocieni

page_liste_mytique_3.2.9.2

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