Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <!-- BEGIN FRONT-PAGE.PHP -->
- <?php $options = get_option( 'stw_theme_options' ); // Theme-Optionen ?>
- <div class="ym-col1">
- <div class="ym-cbox">
- <?php
- /**
- * Grußwort auf Startseite anzeigen
- */
- if ($options['grusswort'] == 1) {
- if (is_front_page()) : // Nur auf Startseite anzeigen
- if (!is_paged()) : // Nicht anzeigen wenn > Seite 1
- $page_id = $options['grusswort_id'];
- $page_data = get_page( $page_id );
- $content = apply_filters('the_content', $page_data->post_content);
- $title = apply_filters('the_title', $page_data->post_title);
- ?>
- <div class="grusswort">
- <?php echo $content; ?>
- </div>
- <?php
- endif; // end if_paged
- endif; // end if_front_page
- ?>
- <?php } // end $options ?>
- <?php
- /**
- * Wichtige Beiträge anzeigen
- */
- // ID's der wichtigen Beiträge aus den Theme Optionen auslesen und in ein Array umwandeln
- $post_id = explode(',',$options['wichtige_posts_ids']);
- //debugVar($post_id);
- ?>
- <?php
- if ($options['wichtige_posts'] == 1) {
- if (is_front_page()) : // Nur auf Startseite anzeigen
- if (!is_paged()) : // Nicht anzeigen wenn > Seite 1
- ?>
- <div class="ym-grid ym-equalize linearize-level-1 startseite">
- <div class="ym-g50 ym-gl">
- <div class="ym-gbox">
- <?php wichtige_beitraege($post_id[0]); ?>
- </div>
- </div>
- <div class="ym-g50 ym-gr">
- <div class="ym-gbox">
- <?php wichtige_beitraege($post_id[1]); ?>
- </div>
- </div>
- </div>
- <div class="ym-grid ym-equalize linearize-level-1 startseite">
- <div class="ym-g33 ym-gl">
- <div class="ym-gbox">
- <?php wichtige_beitraege($post_id[2]); ?>
- </div>
- </div>
- <div class="ym-g33 ym-gl">
- <div class="ym-gbox">
- <?php wichtige_beitraege($post_id[3]); ?>
- </div>
- </div>
- <div class="ym-g33 ym-gr">
- <div class="ym-gbox">
- <?php wichtige_beitraege($post_id[4]); ?>
- </div>
- </div>
- </div>
- <?php
- endif; // end if_paged
- endif; // end if_front_page
- } // end $options
- ?>
- <h2 id="neuigkeiten">Weitere Neuigkeiten aus Steinweiler</h2>
- <?php if ( have_posts() ) : ?>
- <?php
- // Wichtige Beiträge ausschließen
- $query = new WP_Query( array( 'post__not_in' => $post_id ) );
- // Start the Loop
- while ( $query->have_posts() ) : $query->the_post();
- ?>
- <?php get_template_part( 'content', get_post_format() ); ?>
- <?php endwhile; ?>
- <?php if (function_exists('postbar')) postbar(); ?>
- <?php else : ?>
- <div id="post-0" class="post no-results not-found">
- <h3>Nichts gefunden ...</h3>
- <div class="post-content">
- <p>... was den Suchkriterien entspricht. Neue Suche:</p>
- <?php get_search_form(); ?>
- </div>
- </div><!-- #post-0 -->
- <?php endif; ?>
- </div> <!-- end ym-cbox -->
- </div> <!-- end ym-col1 -->
- <!-- END FRONT-PAGE.PHP -->
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement