Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2012
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.64 KB | None | 0 0
  1. <?php
  2. global $graphene_settings;
  3. $post_type = get_post_type_object( get_post_type() );
  4.  
  5. /* Display a return to parent link if this is a child page */
  6. graphene_parent_return_link( $post );
  7. ?>
  8.  
  9. <?php if ( $graphene_settings['hide_parent_content_if_empty'] && $post->post_content == '' ) : ?>
  10. <h1 class="page-title">
  11. <?php if ( get_the_title() == '' ) { _e( '(No title)', 'graphene' ); } else { the_title(); } ?>
  12. </h1>
  13. <?php else : ?>
  14. <div id="post-<?php the_ID(); ?>" <?php post_class( 'clearfix post' ); ?>>
  15.  
  16. <?php do_action( 'graphene_before_post' ); ?>
  17.  
  18. <div class="entry clearfix">
  19.  
  20. <?php
  21. /* Add a print button only for single pages/posts
  22. * and if the theme option is enabled.
  23. */
  24. if ( $graphene_settings['print_button'] ) : ?>
  25. <?php graphene_print_button( $post_type ); ?>
  26. <?php endif; ?>
  27.  
  28. <?php /* Add an email post icon if the WP-Email plugin is installed and activated */
  29. if( function_exists( 'wp_email' ) && is_singular() ) { echo '<p class="email wp-email-button">'; email_link(); echo '</p>'; }
  30. ?>
  31.  
  32. <?php /* Post title */ ?>
  33. <h1 class="post-title entry-title">
  34. <?php if ( get_the_title() == '' ) { _e( '(No title)', 'graphene' ); } else { the_title(); } ?>
  35. <?php do_action( 'graphene_page_title' ); ?>
  36. </h1>
  37.  
  38. <?php /* Post meta */ ?>
  39. <div class="post-meta clearfix">
  40.  
  41. <?php /* Edit post link, if user is logged in */ ?>
  42. <?php if ( is_user_logged_in() ) : ?>
  43. <p class="edit-post">
  44. <?php edit_post_link( sprintf( __( 'Edit %s', 'graphene' ), $post_type->labels->singular_name ), ' (', ')' ); ?>
  45. </p>
  46. <?php endif; ?>
  47.  
  48. <span class="updated">
  49. <span class="value-title" title="<?php the_time( 'Y-m-d\TH:i' ); ?>" />
  50. </span>
  51.  
  52. <?php do_action( 'graphene_page_meta' ); ?>
  53. </div>
  54.  
  55. <?php /* Post content */ ?>
  56. <div class="entry-content clearfix">
  57. <?php do_action( 'graphene_before_page_content' ); ?>
  58.  
  59. <?php /* Social sharing buttons at top of post */ ?>
  60. <?php if ( stripos( $graphene_settings['addthis_location'], 'top' ) !== false ) { graphene_addthis( get_the_ID() ); } ?>
  61.  
  62. <?php /* The full content */ ?>
  63. <?php the_content(); ?>
  64.  
  65. <?php wp_link_pages( array( 'before' => '<div class="link-pages"><p><strong>' . __( 'Pages:','graphene' ) . '</strong> ', 'after' => '</p></div>', 'next_or_number' => 'number' ) ); ?>
  66.  
  67. <?php do_action( 'graphene_after_page_content' ); ?>
  68.  
  69. </div>
  70.  
  71. <?php /* Post footer */ ?>
  72. <div class="entry-footer clearfix">
  73.  
  74. <?php
  75. /**
  76. * Display AddThis social sharing button
  77. */
  78. ?>
  79. <?php if ( stripos( $graphene_settings['addthis_location'], 'bottom' ) !== false) { graphene_addthis( get_the_ID() ); } ?>
  80.  
  81. <?php do_action( 'graphene_page_footer' ); ?>
  82. </div>
  83. </div>
  84. </div>
  85. <?php endif; ?>
  86.  
  87. <?php /* For printing: the permalink */
  88. if ( $graphene_settings['print_css'] ) {
  89. echo graphene_print_only_text( '<span class="printonly url"><strong>' . __( 'Permanent link to this article:', 'graphene' ) . ' </strong><span>' . get_permalink() . '</span></span>' );
  90. }
  91. ?>
  92.  
  93. <?php
  94. /**
  95. * Display Adsense advertising
  96. * See graphene_adsense() function in functions.php
  97. */
  98. graphene_adsense(); ?>
  99.  
  100. <?php /* List the child pages */ ?>
  101. <?php get_template_part( 'loop', 'children' ); ?>
  102.  
  103. <?php /* Get the comments template */ ?>
  104. <?php comments_template(); ?>
  105.  
  106. <?php do_action( 'graphene_loop_footer' ); ?>
  107.  
  108. <?php if (!is_page('accueil')) : ?>
  109. <h2><?php the_title(); ?></h2>
  110. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement