Commit f623505f authored by Jakob Moser's avatar Jakob Moser
Browse files

Delete search and searchpage for now (will be recreated later)

parent f87fc9ed
Loading
Loading
Loading
Loading

search.php

deleted100644 → 0
+0 −42
Changes for search.php: 0 added lines, 42 removed lines.
Original line number Diff line number Diff line
<?php
/*
    Theme: Fachschaft Computerlinguistik
    Search Result Template File
*/

get_header();
?>			<!-- content -->
                <div class="sidebar">
                    <div class="sidebar-content">
                        <h1>Suchergebnisse</h1>
                        <h2 class="search-term"><?php the_search_query(); ?></h2>
                    </div>
                </div>
                <div class="posts-listing">
                    <div class="posts-container">
                        <?php
                            while ( have_posts() ) : the_post();
                         ?>
            			<article>
                            <?php if ( has_post_thumbnail($post->ID) ) : ?>
                            <div class="post-header" style="background-image:url('<?php echo wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>');">
                            </div>
                            <?php endif; ?>
            				<div class="post-title">
            					<a class="post-title-box" href="<?php the_permalink(); ?>"><h1><?php the_title(); ?></h1></a>
            				</div>
                            <div class="post-meta-timestamp">
                                <?php the_date(); ?>
                            </div>
            				<div class="post-content">
            					<?php the_excerpt(); ?>
            				</div>
                        </article>
                    <?php
                            endwhile;
                     ?>
                        <div class="page-selector page-selector-previous"><?php next_posts_link( 'ältere Posts' ); ?></div>
                        <div class="page-selector page-selector-next"><?php previous_posts_link( 'neuere Posts' ); ?></div>
                    </div>
                </div>
<?php get_footer(); ?>

searchpage.php

deleted100644 → 0
+0 −21
Changes for searchpage.php: 0 added lines, 21 removed lines.
Original line number Diff line number Diff line
<?php
/**
 * Template Name: Search Page
 * Theme: Fachschaft Computerlinguistik
 * Search Page Template File
 */
get_header();
?>

<main>
	<article>
		<div class="post-header" style="background-image:url('<?php echo get_header_image();?>')"></div>
		<div class="post-title">
			<h1 class="post-title-box"><?php echo get_the_title($post->ID); ?></h1>
		</div>
		<div class="post-content">
			<?php get_search_form(); ?>
		</div>
	</article>
</main>
<?php get_footer(); ?>