Advertisement
Guest User

Untitled

a guest
Apr 15th, 2012
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.94 KB | None | 0 0
  1. <?php
  2. /**
  3. * The main template file.
  4. *
  5. * This is the most generic template file in a WordPress theme
  6. * and one of the two required files for a theme (the other being style.css).
  7. * It is used to display a page when nothing more specific matches a query.
  8. * E.g., it puts together the home page when no home.php file exists.
  9. * Learn more: http://codex.wordpress.org/Template_Hierarchy
  10. *
  11. * @package WordPress
  12. * @subpackage Fullscreen
  13. * @since Fullscreen 1.0
  14. */
  15.  
  16. get_header(); ?>
  17.  
  18. <?php get_left_box(); ?>
  19.  
  20. <?php get_right_box(); ?>
  21.  
  22. <div class="part2">
  23. <div class="box-center pgsize2 <?php echo $GLOBALS['set_style']; ?>">
  24. <div class="float">
  25. <?php
  26. /* Title page
  27. $queried_object = $wp_query->get_queried_object();
  28. if ( $queried_object->ID == get_option( 'page_for_posts' ) ) {
  29. $current_id = get_option( 'page_for_posts' );
  30. }
  31. else {
  32. $current_id = $wp_query->post->ID;
  33. }
  34. */
  35. $current_id = get_the_ID();
  36.  
  37. $page_hide_box = get_post_meta( $current_id, 'page_hide_box' );
  38. $page_hide_box['0'] = trim($page_hide_box['0']);
  39. if($page_hide_box['0'] != 'yes'){
  40. print '<div id="hide-box" class="show"></div>';
  41. }
  42. ?>
  43. <div class="inside">
  44.  
  45. <?php
  46. $page_hide_title = get_post_meta( $current_id, 'page_hide_title' );
  47. $page_hide_title['0'] = trim($page_hide_title['0']);
  48.  
  49. $page_alternative_title = get_post_meta( $current_id, 'page_alternative_title' );
  50. $page_alternative_title['0'] = trim($page_alternative_title['0']);
  51.  
  52. if($page_hide_title['0'] != 'yes'){
  53. $title_curr = wp_title('=',false,'right');
  54. $title_arr = split('=',$title_curr);
  55. echo '<h1>'; echo $title_arr[0]; echo '</h1>';
  56. } else if($page_alternative_title['0'] != ''){
  57. echo '<h1>'.$page_alternative_title['0'].'</h1>';
  58. } else {
  59. echo '<div class="notitle"></div>';
  60. }
  61. ?>
  62.  
  63. <!-- scroller block -->
  64. <div id="mcs2_container">
  65. <div id="centerScrollBox" class="customScrollBox">
  66. <div class="container">
  67. <div class="content">
  68. <!-- CONTENT -->
  69.  
  70. <?php
  71. /* Run the loop to output the posts.
  72. * If you want to overload this in a child theme then include a file
  73. * called loop-index.php and that will be used instead.
  74. */
  75. get_template_part( 'loop', 'index' );
  76. ?>
  77. </div>
  78. </div>
  79. <div class="dragger_container">
  80. <div class="dragger">&#9618;</div>
  81. </div><!-- end of dragger_container -->
  82. </div><!-- end of customScrollBox -->
  83. </div><!-- end of mcs2_container -->
  84.  
  85. </div><!-- end of inside -->
  86. </div><!-- end of float -->
  87. </div><!-- end of box-center pgsize2 -->
  88. </div><!-- end of part2 -->
  89.  
  90. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement