Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Template Name: Page cover
- *
- * A custom page template without sidebar.
- *
- * The "Template Name:" bit above allows this to be selectable
- * from a dropdown menu on the edit page screen.
- *
- * @package WordPress
- * @subpackage Twenty_Ten
- * @since Twenty Ten 1.0
- */
- get_header(); ?>
- <!-- main content: primary + sidebar(s) -->
- <div id="main">
- <div id="main-inside" class="clear-block">
- <!-- primary content -->
- <div id="primary-content">
- <div class="blocks" style="margin:auto auto;">
- <?php do_action('mystique_before_primary'); ?>
- <?php
- query_posts('showposts=177');
- if (have_posts()):
- while (have_posts()):
- the_post();
- $values = get_post_custom_values("dvd_cover");
- if (isset($values[0])) {
- //echo '<span class="location">';
- $values = get_post_custom_values("dvd_cover");
- //$titre=str_replace("'","'",get_the_title(get_the_ID()));
- $titre=addslashes(get_the_title(get_the_ID()));
- $resume=addslashes(htmlspecialchars(get_the_excerpt()));
- //$resume=htmlentities(get_the_excerpt(),ENT_NOQUOTES);
- ?>
- <?php /*<a href="<?php the_permalink(); ?>" rel="bookmark"><img src="<?php echo $values[0]; ?>" alt="<?php echo $titre; ?>"></a> */ ?>
- <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>
- <?php
- }
- //mystique_page();
- endwhile;
- endif;
- //comments_template();
- ?>
- <?php do_action('mystique_after_primary'); ?>
- </div>
- </div>
- <!-- /primary content -->
- <?php get_sidebar(); ?>
- </div>
- </div>
- <!-- /main content -->
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement