Advertisement
oocieni

Page_cover_mystique_3.2.9.2

Mar 17th, 2012
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.05 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.    /* Template Name: Page Covers */
  7.    
  8.   //get_header();
  9. ?>
  10.  
  11. <?php atom()->template('header'); ?>
  12.  
  13.   <!-- main content: primary + sidebar(s) -->
  14.   <div id="mask-3" class="clear-block">
  15.    <div id="mask-2">
  16.     <div id="mask-1">
  17.              
  18.       <!-- primary content -->
  19.       <div id="primary-content">
  20.        <div class="blocks clear-block">
  21.            
  22.         <?php //$app->action('before_primary'); ?>
  23.         <?php atom()->action('before_primary'); ?>
  24.  
  25.         <?php
  26.     query_posts('showposts=60');
  27.         if (have_posts()):
  28.  
  29.          while (have_posts()):
  30.             the_post();
  31.         $values = get_post_custom_values("dvd_cover");
  32.         if (isset($values[0])) {
  33.             //echo '<span class="location">';
  34.             $values = get_post_custom_values("dvd_cover");
  35.             //$titre=str_replace("'","&#39;",get_the_title(get_the_ID()));
  36.             $titre=addslashes(get_the_title(get_the_ID()));
  37.             $id_film=get_the_ID();
  38.             $tippy_id="tippy_tip1_".$id_film;
  39.             $resume=addslashes(htmlspecialchars(get_the_excerpt()));
  40.             $resume=str_replace("\n", '&lt;/p&gt;', $resume);
  41.             $html_resume=addslashes(htmlspecialchars(get_the_content()));
  42.             //$resume=htmlentities(get_the_excerpt(),ENT_NOQUOTES);
  43.  
  44.         ?>
  45.         <?php /*<a href="<?php the_permalink(); ?>" rel="bookmark"><img src="<?php echo $values[0]; ?>" alt="<?php echo $titre; ?>"></a> */  ?>
  46.         <?php
  47.         /*
  48.         <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>
  49.         */
  50.         //tippy_tip1_2709
  51.         ?>
  52.         <?php /*
  53.         <a id="<?php echo $tippy_id; ?>" href="<?php the_permalink(); ?>" target="_blank" class="tippy_link " title="<?php echo $titre; ?>" onmouseover="Tippy.loadTipInfo('<?php echo $resume; ?>', 0, 0, '<?php echo $tippy_id; ?>', event);" onmouseout="Tippy.fadeTippyOut();"><img src="<?php echo $values[0]; ?>" alt="<?php echo $titre; ?>" width="110"></a>
  54.         */ ?>
  55.        
  56.         <a id="<?php echo $tippy_id; ?>" href="<?php the_permalink(); ?>" target="_blank" class="tippy_link " title="<?php echo $titre; ?>" onmouseover="Tippy.loadTip({text:'<?php echo $resume; ?>', width: 0, height: 0, id:'<?php echo $tippy_id; ?>', event: event});" onmouseout="Tippy.fadeTippyOut();"><img src="<?php echo $values[0]; ?>" alt="<?php echo $titre; ?>" width="110"></a>
  57.        
  58.     <?php
  59.  
  60.         }
  61.           //mystique_page();
  62.          endwhile;
  63.  
  64.         endif;
  65.  
  66.         //comments_template();
  67.        ?>
  68.  
  69.         <?php //$app->action('after_primary'); ?>
  70.         <?php atom()->action('after_primary'); ?>
  71.  
  72.        </div>
  73.       </div>
  74.       <!-- /primary content -->
  75.  
  76.       <?php //get_sidebar(); ?>
  77.       <?php atom()->template('sidebar'); ?>
  78.     </div>
  79.    </div>
  80.   </div>
  81.   <!-- /main content -->
  82.  
  83. <?php //get_footer(); ?>
  84. <?php atom()->template('footer'); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement