Advertisement
victorius

template-talleres.php

Apr 22nd, 2012
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.73 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: talleres
  4. */
  5. ?>
  6. <?php
  7.  
  8. // calling the header.php
  9. get_header();
  10.  
  11. // action hook for placing content above #container
  12. thematic_abovecontainer();
  13.  
  14. ?>
  15. <div id="container">
  16.  
  17. <?php thematic_abovecontent(); ?>
  18.  
  19. <div id="content">
  20.  
  21. <?php
  22.  
  23. the_post();
  24.  
  25. thematic_abovepost();
  26.  
  27. ?>
  28.  
  29. <div id="post-<?php the_ID();
  30. echo '" ';
  31. if (!(THEMATIC_COMPATIBLE_POST_CLASS)) {
  32. post_class();
  33. echo '>';
  34. } else {
  35. echo 'class="';
  36. thematic_post_class();
  37. echo '">';
  38. }
  39.  
  40. // creating the post header
  41. thematic_postheader();
  42.  
  43. ?>
  44.  
  45. <div class="entry-content">
  46.  
  47. <?php
  48.  
  49. the_content();
  50.  
  51. // action hook for the 404 content
  52.  
  53. /* here starts my modification. I have commented thematic_archives() and instead I display the posts for "talleres" */
  54.  
  55. //thematic_archives();
  56.  
  57. query_posts( 'post_type=talleres-meditacion');
  58.  
  59. the_post();
  60.  
  61. // displays the page title
  62. //thematic_page_title();
  63.  
  64. rewind_posts();
  65.  
  66. // create the navigation above the content
  67. thematic_navigation_above();
  68.  
  69. // action hook creating the archive loop
  70. thematic_archiveloop();
  71.  
  72. // create the navigation below the content
  73. thematic_navigation_below();
  74.  
  75. /* here ends the modification */
  76.  
  77. edit_post_link(__('Edit', 'thematic'),'<span class="edit-link">','</span>');
  78.  
  79. ?>
  80.  
  81. </div><!-- .entry-content -->
  82. </div><!-- #post -->
  83.  
  84. <?php
  85.  
  86. thematic_belowpost();
  87.  
  88. // calling the comments template
  89. // calling the comments template
  90. if (THEMATIC_COMPATIBLE_COMMENT_HANDLING) {
  91. if ( get_post_custom_values('comments') ) {
  92. // Add a key/value of "comments" to enable comments on pages!
  93. thematic_comments_template();
  94. }
  95. } else {
  96. thematic_comments_template();
  97. }
  98.  
  99. ?>
  100.  
  101. </div><!-- #content -->
  102.  
  103. <?php thematic_belowcontent(); ?>
  104.  
  105. </div><!-- #container -->
  106.  
  107. <?php
  108.  
  109. // action hook for placing content below #container
  110. thematic_belowcontainer();
  111.  
  112. // calling the standard sidebar
  113. thematic_sidebar();
  114.  
  115. // calling footer.php
  116. get_footer();
  117.  
  118. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement