Advertisement
cybervampira

Untitled

Feb 4th, 2012
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.37 KB | None | 0 0
  1. <?php /*
  2. Template Name: Huendinnen
  3. */
  4.  
  5. get_header(); ?>
  6.  
  7. <div id="content" role="main">
  8. <div id="primary">
  9.  
  10. <?php while ( have_posts() ) : the_post(); ?>
  11.  
  12. <?php get_template_part( 'content', 'page' ); ?>
  13.  
  14. <?php comments_template( '', true ); ?>
  15.  
  16. <?php endwhile; // end of the loop. ?>
  17.  
  18. <?php
  19. $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  20. $args= array(
  21. 'category_name' => 'Huendinnen', // Change these category SLUGS to suit your use.
  22. 'paged' => $paged
  23. );
  24. query_posts($args);
  25. if( have_posts() ) :?>
  26.  
  27. <div id="column-wrap">
  28. <?php $count = 0;
  29.  
  30. while(have_posts()) : the_post(); ?>
  31.  
  32. <div class="box<?php if( $count%2 == 0 ) { echo '-1'; }; $count++; ?>">
  33.  
  34. <?php if(get_field('name_des_tieres')) { ?>
  35. <h1><strong> <?php the_field('name_des_tieres'); ?></strong></h1>
  36. <?php } ?>
  37.  
  38. <?php if(get_field('ort') == "Spanien"): ?>
  39. <div class="floatright">
  40. &nbsp;
  41. <img src="http://tierhilfe-spanien.org/wp-content/uploads/2012/01/Spain.gif" alt="Spanien" height="25" width="35" />
  42. </div>
  43. <?php endif; ?>
  44.  
  45. <?php if(get_field('ort') == "Deutschland"): ?>
  46. <div class="floatright">
  47. &nbsp;
  48. <img src="http://tierhilfe-spanien.org/wp-content/uploads/2012/01/Germany.gif" alt="Deutschland" height="25" width="35" />
  49. </div>
  50. <?php endif; ?>
  51.  
  52. <?php
  53. if(get_field('notfall')): ?>
  54. <div class="floatright">
  55. <img src="http://tierhilfe-spanien.org/wp-content/uploads/2012/01/Notfall.gif" alt="Notfall" height="25" width="75" />
  56. </div>
  57. <?php endif; ?>
  58.  
  59. <?php
  60. if(get_field('reserviert')): ?>
  61. <div class="floatright">
  62. <img src="http://tierhilfe-spanien.org/wp-content/uploads/Reserviert.gif" alt="Reserviert" height="25" width="75" />
  63. </div>
  64. <?php endif; ?>
  65.  
  66. <?php
  67. if(get_field('pate_gesucht')): ?>
  68. <div class="floatright">
  69. <img src="http://tierhilfe-spanien.org/wp-content/uploads/Pate-gesucht.gif" alt="Pate gesucht" height="25" width="75" />
  70. </div>
  71. <?php endif; ?>
  72.  
  73. <div class="animalinfo">
  74. <strong>Geboren</strong>:&nbsp;
  75. <?php if(get_field('geburtsdatum')) { ?>
  76. <?php the_field('geburtsdatum'); ?>
  77. <?php } ?>
  78. </div>
  79.  
  80. <div class="animalinfo">
  81. <strong>Gr&ouml;&szlig;e</strong>:&nbsp;&nbsp;&nbsp;&nbsp;
  82. <?php if(get_field('groesse')) { ?>
  83. <?php the_field('groesse'); ?>
  84. <?php } ?>
  85. </div>
  86. <p></p>
  87.  
  88. <?php if(get_field('bild_1')): ?>
  89. <a href="<?php the_permalink(); ?>"><img class="alignleft featured_image" width="100" src="<?php the_field('bild_1'); ?>" /></a>
  90. <?php endif; ?>
  91.  
  92. <span style="font-size: x-small;">
  93. <p style="text-align: right;">
  94.  
  95. <span style="font-size: small;"><?php echo trunc(get_field('beschreibung'),22); ?><br>
  96. <p style="text-align: right;">
  97. <?php echo '<a href="'; ?>
  98. <?php the_permalink(); ?>
  99. <?php echo '"title="weiter lesen">mehr...</a>'; ?>
  100. </p></span><br>
  101.  
  102. </div>
  103.  
  104. <?php endwhile; ?>
  105. </div><!--end column-wrap-->
  106.  
  107. <?php twentyeleven_content_nav( 'nav-below' ); ?>
  108.  
  109. <?php else : ?>
  110. <article id="post-0" class="post no-results not-found">
  111. <header class="entry-header">
  112. <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
  113. </header><!-- .entry-header -->
  114.  
  115. <div class="entry-content">
  116. <p><?php _e( 'Für dieses Archiv wurden keine Artikel gefunden. Vielleicht kann Ihnen die Suchfunktion behilflich sein.', 'twentyeleven' ); ?></p>
  117. <?php get_search_form(); ?>
  118. </div>
  119. </article>
  120.  
  121. <?php endif; ?>
  122.  
  123. </div>
  124. </div>
  125. <?php get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement