Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php /*
- Template Name: Huendinnen
- */
- get_header(); ?>
- <div id="content" role="main">
- <div id="primary">
- <?php while ( have_posts() ) : the_post(); ?>
- <?php get_template_part( 'content', 'page' ); ?>
- <?php comments_template( '', true ); ?>
- <?php endwhile; // end of the loop. ?>
- <?php
- $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
- $args= array(
- 'category_name' => 'Huendinnen', // Change these category SLUGS to suit your use.
- 'paged' => $paged
- );
- query_posts($args);
- if( have_posts() ) :?>
- <div id="column-wrap">
- <?php $count = 0;
- while(have_posts()) : the_post(); ?>
- <div class="box<?php if( $count%2 == 0 ) { echo '-1'; }; $count++; ?>">
- <?php if(get_field('name_des_tieres')) { ?>
- <h1><strong> <?php the_field('name_des_tieres'); ?></strong></h1>
- <?php } ?>
- <?php if(get_field('ort') == "Spanien"): ?>
- <div class="floatright">
-
- <img src="http://tierhilfe-spanien.org/wp-content/uploads/2012/01/Spain.gif" alt="Spanien" height="25" width="35" />
- </div>
- <?php endif; ?>
- <?php if(get_field('ort') == "Deutschland"): ?>
- <div class="floatright">
-
- <img src="http://tierhilfe-spanien.org/wp-content/uploads/2012/01/Germany.gif" alt="Deutschland" height="25" width="35" />
- </div>
- <?php endif; ?>
- <?php
- if(get_field('notfall')): ?>
- <div class="floatright">
- <img src="http://tierhilfe-spanien.org/wp-content/uploads/2012/01/Notfall.gif" alt="Notfall" height="25" width="75" />
- </div>
- <?php endif; ?>
- <?php
- if(get_field('reserviert')): ?>
- <div class="floatright">
- <img src="http://tierhilfe-spanien.org/wp-content/uploads/Reserviert.gif" alt="Reserviert" height="25" width="75" />
- </div>
- <?php endif; ?>
- <?php
- if(get_field('pate_gesucht')): ?>
- <div class="floatright">
- <img src="http://tierhilfe-spanien.org/wp-content/uploads/Pate-gesucht.gif" alt="Pate gesucht" height="25" width="75" />
- </div>
- <?php endif; ?>
- <div class="animalinfo">
- <strong>Geboren</strong>:
- <?php if(get_field('geburtsdatum')) { ?>
- <?php the_field('geburtsdatum'); ?>
- <?php } ?>
- </div>
- <div class="animalinfo">
- <strong>Größe</strong>:
- <?php if(get_field('groesse')) { ?>
- <?php the_field('groesse'); ?>
- <?php } ?>
- </div>
- <p></p>
- <?php if(get_field('bild_1')): ?>
- <a href="<?php the_permalink(); ?>"><img class="alignleft featured_image" width="100" src="<?php the_field('bild_1'); ?>" /></a>
- <?php endif; ?>
- <span style="font-size: x-small;">
- <p style="text-align: right;">
- <span style="font-size: small;"><?php echo trunc(get_field('beschreibung'),22); ?><br>
- <p style="text-align: right;">
- <?php echo '<a href="'; ?>
- <?php the_permalink(); ?>
- <?php echo '"title="weiter lesen">mehr...</a>'; ?>
- </p></span><br>
- </div>
- <?php endwhile; ?>
- </div><!--end column-wrap-->
- <?php twentyeleven_content_nav( 'nav-below' ); ?>
- <?php else : ?>
- <article id="post-0" class="post no-results not-found">
- <header class="entry-header">
- <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
- </header><!-- .entry-header -->
- <div class="entry-content">
- <p><?php _e( 'Für dieses Archiv wurden keine Artikel gefunden. Vielleicht kann Ihnen die Suchfunktion behilflich sein.', 'twentyeleven' ); ?></p>
- <?php get_search_form(); ?>
- </div>
- </article>
- <?php endif; ?>
- </div>
- </div>
- <?php get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement