Advertisement
aijazsiddique

page.php

Dec 9th, 2012
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.27 KB | None | 0 0
  1. <?php
  2. if( $post->ID == _core::method( "_settings" , "get" , "settings" , "general" , "theme" , "settings-page" ) ){
  3. get_template_part( 'user_profile_update' );
  4. }
  5.  
  6. if( $post -> ID == _core::method( "_settings" , "get" , "settings" , "general" , "upload" , "post_item_page" ) || $post->ID == _core::method( "_settings" , "get" , "settings" , "general" , "theme" , "settings-page" ) ) :
  7. wp_enqueue_script( 'upload' , get_template_directory_uri().'/js/uploader.js' );
  8. endif;
  9.  
  10. get_header();
  11. ?>
  12.  
  13. <section class="b_content clearfix" id="main">
  14. <div class="b_page">
  15.  
  16. <?php if( $post -> ID == _core::method( "_settings" , "get" , "settings" , "general" , "theme" , "login-page" ) ) : ?>
  17.  
  18. <?php if( isset( $_GET[ 'a' ] ) && $_GET[ 'a' ] == 'follow' ) : ?>
  19.  
  20. <p class="not_logged_msg"><?php _e( 'You need to sign in to follow someone.' , _DEV_ ); ?></p>
  21.  
  22. <?php endif; ?>
  23.  
  24. <?php if( isset( $_GET[ 'a' ] ) && $_GET[ 'a' ] == 'like' ) : ?>
  25.  
  26. <p class="not_logged_msg"><?php _e( 'You need to sign in to vote for a post.' , _DEV_ ); ?></p>
  27.  
  28. <?php endif; ?>
  29.  
  30. <?php endif; ?>
  31.  
  32.  
  33. <?php while( have_posts () ) : the_post(); $postID = $post -> ID; ?>
  34.  
  35. <?php /* left sidebar */ ?>
  36. <?php _core::method( 'layout' , 'singularSidebar' , $post -> ID , 'left' ); wp_reset_query(); ?>
  37.  
  38. <?php /* page content */ ?>
  39. <section id="primary" <?php _core::method( 'layout' , 'singularClasses' , $post -> ID ); ?>>
  40. <div id="content" role="main">
  41.  
  42. <?php /* page title */ ?>
  43. <div class="content-title">
  44.  
  45. <div class="title">
  46. <h1 class="entry-title">
  47. <?php get_template_part( '/templates/page/title' ); ?>
  48. </h1>
  49. </div>
  50.  
  51. </div>
  52.  
  53. <?php if( $post -> ID == _core::method( "_settings" , "get" , "settings" , "general" , "theme" , "post-page" ) && $post -> ID != '' ) : ?>
  54.  
  55. <div class="w_690 my-posts">
  56.  
  57. <?php _core::method( "post" , "my_posts" , get_current_user_id() ); ?>
  58.  
  59. </div>
  60.  
  61. <?php elseif( $post -> ID == _core::method( "_settings" , "get" , "settings" , "general" , "upload" , "post_item_page" ) && $post -> ID != '' ) : ?>
  62.  
  63. <?php /* post item page ( trebuieste de facut mai deductibil ) */ ?>
  64. <?php get_template_part( 'post_item' ); ?>
  65.  
  66. <?php elseif($post -> ID == _core::method( "_settings" , "get" , "settings" , "general" , "theme" , "login-page" ) && $post -> ID != '' ) : ?>
  67.  
  68. <?php /* login page */ ?>
  69. <?php get_template_part( 'login' ); ?>
  70.  
  71. <?php elseif($post->ID == _core::method( "_settings" , "get" , "settings" , "general" , "theme" , "settings-page" ) && $post -> ID != '' ) : ?>
  72.  
  73. <?php /* user profile */ ?>
  74. <div <?php _core::method( 'layout' , 'contentClasses' , $post -> ID ); ?>>
  75.  
  76. <?php get_template_part( 'user_profile' ); ?>
  77.  
  78. </div>
  79.  
  80. <?php else : ?>
  81.  
  82. <?php /* meta left */ ?>
  83. <?php _core::method( 'layout' , 'singularMeta' , $post -> ID , 'left' ); ?>
  84.  
  85. <?php /* default WordPress page */ ?>
  86. <div <?php _core::method( 'layout' , 'contentClasses' , $post -> ID ); ?>>
  87. <article id="post-<?php the_ID(); ?>" <?php post_class( 'post' , $postID ); ?>>
  88.  
  89. <?php /* if use featured images */ ?>
  90. <?php if( _core::method( '_settings' , 'logic' , 'settings' , 'blogging' , 'pages' , 'enb-featured' ) ) : ?>
  91. <?php if ( has_post_thumbnail( $post -> ID ) ) : ?>
  92.  
  93. <header class="entry-header">
  94. <div class="featimg">
  95.  
  96. <div class="img">
  97. <?php echo wp_get_attachment_image( get_post_thumbnail_id( $post -> ID ) , 'single' ); ?>
  98. </div>
  99.  
  100. </div>
  101. </header>
  102.  
  103. <?php endif; ?>
  104. <?php endif; ?>
  105.  
  106. <div class="entry-content">
  107. <div class="b_text">
  108.  
  109. <?php /* post content */ ?>
  110. <?php echo _core::method( '_text' , 'content' , 'settings' , 'style' , 'single' , 'post_text' , 'content' , $post , 'span' ); ?>
  111.  
  112.  
  113.  
  114. <?php /* post navigation */ ?>
  115. <?php get_template_part( '/templates/navigation' ); ?>
  116.  
  117. </div>
  118. </div>
  119. </article>
  120.  
  121. <?php /* social sharing */ ?>
  122. <?php get_template_part( '/templates/social' ); ?>
  123.  
  124.  
  125. <?php /* advertising zone */ ?>
  126. <?php get_template_part( '/templates/advertising-comments' ); ?>
  127.  
  128. <?php /* comments */ ?>
  129. <?php get_template_part( '/templates/comments' ); ?>
  130. </div>
  131.  
  132. <?php /* meta right */ ?>
  133. <?php _core::method( 'layout' , 'singularMeta' , $post -> ID , 'right' ); ?>
  134.  
  135. <?php endif; ?>
  136.  
  137. </div>
  138. </section>
  139.  
  140. <?php /* right sidebar */ ?>
  141. <?php _core::method( 'layout' , 'singularSidebar' , $post -> ID , 'right' ); wp_reset_query(); ?>
  142.  
  143. <?php endwhile; ?>
  144.  
  145. </div>
  146. </section>
  147.  
  148. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement