<article class="post-entry" itemprop="articleBody"> <?php the_content(); ?> </article> <?php if (isset($show_disclaimer) && isset($options['post_disclaimer']) && $options['post_disclaimer'] != '' && ($show_disclaimer == 2 || $show_disclaimer == 3)) { echo '<div class="disclaimer">'; echo $options['post_disclaimer']; echo '</div>'; } ?> <div class="post-meta"><p> <?php piratenkleider_post_pubdateinfo(); if ($options['aktiv-autoren']) { piratenkleider_post_autorinfo(); } echo ' '; piratenkleider_post_taxonominfo(); ?> </p> </div> <div><?php edit_post_link(__('Edit', 'piratenkleider'), '', ''); ?> </div> </section> <div class="post-nav">
/** * Suchausgabe */ function piratenkleider_search_teaser($teaserlength = 250, $withthumb = 1, $aslist = 1, $search = '') { global $options; global $post; $out = $output = ''; $leftbox = $thumbnailcode = $firstpic = $output = ''; if ($withthumb == 1) { $leftbox .= '<div class="infoimage">'; if (has_post_thumbnail()) { $output = get_the_post_thumbnail($post->ID, 'teaser-thumb'); if (strlen($output) < 1) { $output = '<img itemprop="image" src="' . $options['src-teaser-thumbnail_default'] . '" alt="">'; } } else { $output = '<img itemprop="image" src="' . $options['src-teaser-thumbnail_default'] . '" alt="">'; } $leftbox .= $output; $leftbox .= '</div>'; } if ($aslist == 1) { $out .= '<li>'; } else { $out .= '<div class="searchresults">'; } $out .= '<h3>'; $out .= '<a href="' . get_permalink() . '">'; $out .= get_the_title(); $out .= '</a></h3>'; $out .= "\n"; $out .= '<div>'; $out .= $leftbox; $excerpt = get_piratenkleider_custom_excerpt($teaserlength, 1, 1, 2); if (trim($search) !== '') { $keys = array_diff(explode(" ", $search), array('')); $excerpt = preg_replace('/(' . implode('|', $keys) . ')/iu', '<strong class="search-hit">\\0</strong>', $excerpt); } $out .= $excerpt; $out .= '<p class="meta">'; $out .= '<span class="date">' . __('Created at:', 'piratenkleider') . ' ' . piratenkleider_post_pubdateinfo(0) . '.</span> '; $typ = get_post_type(); if ($typ == 'post') { $out .= '<span class="type">' . __('Type: Entry', 'piratenkleider') . '.</span> '; } elseif ($typ == 'page') { $out .= '<span class="type">' . __('Type: Page', 'piratenkleider') . '.</span> '; } $out .= "</p>\n"; $out .= '</div>'; if ($aslist == 1) { $out .= "</li>\n"; } else { $out .= "</div>\n"; } return $out; }