popkopff

Evolve index

Mar 25th, 2011
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.34 KB | None | 0 0
  1. <?php
  2. /**
  3. * Template: Index.php
  4. *
  5. * @package EvoLve
  6. * @subpackage Template
  7. */
  8.  
  9. get_header();
  10. ?>
  11. <!--BEGIN #primary .hfeed-->
  12. <div id="primary" class="hfeed">
  13.  
  14.  
  15.  
  16.  
  17. <!----------------------
  18. ---- attachment begin
  19. ----------------------->
  20.  
  21.  
  22. <?php if (is_attachment()) { ?>
  23.  
  24.  
  25. <?php if ( have_posts() ) : ?>
  26. <?php while ( have_posts() ) : the_post(); ?>
  27.  
  28. <!--BEGIN .hentry-->
  29. <div id="post-<?php the_ID(); ?>" class="<?php semantic_entries(); ?>">
  30.  
  31. <?php $options = get_option('evolve'); if (($options['evl_header_meta'] == "") || ($options['evl_header_meta'] == "single_archive"))
  32. { ?>
  33.  
  34. <h1 class="entry-title"><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment" style="font-size:24px;"><?php echo get_the_title($post->post_parent); ?></a> &raquo; <?php if ( get_the_title() ){ the_title();
  35. }else{ echo "Untitled"; } ?></h1>
  36.  
  37.  
  38.  
  39. <!--BEGIN .entry-meta .entry-header-->
  40. <div class="entry-meta entry-header">
  41. <span class="published"><?php the_time('dM'); ?><br />
  42. <strong><?php the_time('Y'); ?></strong></span>
  43.  
  44. <?php if ( comments_open() ) : ?>
  45. <span class="comment-count"><a href="<?php comments_link(); ?>"><?php comments_number( 'Kommentar hinterlassen', '1 Kommentar', '% Kommentare' ); ?></a></span>
  46. <?php else : // comments are closed
  47. endif; ?>
  48.  
  49.  
  50. <span class="author vcard">
  51.  
  52. <?php $options = get_option('evolve');
  53. if ($options['evl_author_avatar'] == "") { echo get_avatar( get_the_author_meta('email'), '30' );
  54.  
  55. } ?>
  56.  
  57.  
  58.  
  59. Von <strong><?php printf( '<a class="url fn" href="' . get_author_posts_url( $authordata->ID, $authordata->user_nicename ) . '" title="' . sprintf( 'Zeige alle Einträge von %s', $authordata->display_name ) . '">' . get_the_author() . '</a>' ) ?></strong></span>
  60.  
  61.  
  62. <?php edit_post_link( 'edit', '<span class="edit-post">', '</span>' ); ?>
  63. <!--END .entry-meta .entry-header-->
  64. </div>
  65.  
  66. <?php } else { ?>
  67.  
  68. <h1 class="entry-title" style="float:left;"><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> &raquo; <?php the_title(); ?></h1>
  69.  
  70. <?php if ( current_user_can( 'edit_post', $post->ID ) ): ?>
  71.  
  72. <?php edit_post_link( 'EDIT', '<span class="edit-post" style="left:10px;position:relative;top:15px;">', '</span>' ); ?>
  73.  
  74. <?php endif; ?>
  75.  
  76. <br /><br /><?php } ?>
  77.  
  78. <!--BEGIN .entry-content .article-->
  79. <div class="entry-content article">
  80.  
  81.  
  82. <?php if ( wp_attachment_is_image() ) :
  83. $attachments = array_values( get_children( array( 'post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) );
  84. foreach ( $attachments as $k => $attachment ) {
  85. if ( $attachment->ID == $post->ID )
  86. break;
  87. }
  88. $k++;
  89. // If there is more than 1 image attachment in a gallery
  90. if ( count( $attachments ) > 1 ) {
  91. if ( isset( $attachments[ $k ] ) )
  92. // get the URL of the next image attachment
  93. $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
  94. else
  95. // or get the URL of the first image attachment
  96. $next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID );
  97. } else {
  98. // or, if there's only 1 image attachment, get the URL of the image
  99. $next_attachment_url = wp_get_attachment_url();
  100. }
  101. ?>
  102. <p class="attachment" align="center"><a href="<?php echo wp_get_attachment_url(); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" class="single-gallery-image"><?php
  103. echo wp_get_attachment_image( $post->ID, $size='medium' ); // filterable image width with, essentially, no limit for image height.
  104. ?></a></p>
  105.  
  106.  
  107.  
  108.  
  109. <div class="navigation-links single-page-navigation" style="clear:both;">
  110. <div class="nav-next"><?php previous_image_link( false, 'Nächstes Bild Image &nbsp;&nbsp;&raquo;&nbsp;&nbsp;' ); ?></div>
  111. <div class="nav-previous"><?php next_image_link( false, '&nbsp;&nbsp;&laquo;&nbsp;&nbsp; Vorheriges Bild' ); ?></div>
  112.  
  113. <!--END .navigation-links-->
  114.  
  115.  
  116.  
  117.  
  118.  
  119. </div><!-- #nav-below -->
  120. <?php else : ?>
  121. <a href="<?php echo wp_get_attachment_url(); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php echo basename( get_permalink() ); ?></a>
  122. <?php endif; ?>
  123.  
  124. <div class="entry-caption"><?php if ( !empty( $post->post_excerpt ) ) the_excerpt(); ?></div>
  125.  
  126.  
  127. <?php the_content('Weiterlesen &raquo;'); ?>
  128.  
  129. <!--END .entry-content .article-->
  130. <div style="clear:both;"></div>
  131. </div>
  132. <!--END .hentry-->
  133. </div>
  134.  
  135. <?php $options = get_option('evolve'); if (($options['evl_share_this'] == "single_archive") || ($options['evl_share_this'] == "all")) {
  136. evolve_sharethis(); } else { ?> <div style="margin-bottom:40px;"></div> <?php }?>
  137.  
  138.  
  139. <?php comments_template( '', true ); ?>
  140.  
  141. <?php endwhile; else : ?>
  142.  
  143. <!--BEGIN #post-0-->
  144. <div id="post-0" class="<?php semantic_entries(); ?>">
  145. <h1 class="entry-title">Keine Ergebnisse</h1>
  146.  
  147. <!--BEGIN .entry-content-->
  148. <div class="entry-content">
  149. <p>Sorry, es wurden keine Ergebnisse gefunden.</p>
  150. <!--END .entry-content-->
  151. </div>
  152. <!--END #post-0-->
  153. </div>
  154.  
  155. <!----------------------
  156. ---- attachment end
  157. ----------------------->
  158.  
  159. <?php endif; ?>
  160.  
  161. <!----------------------
  162. ---- single post begin
  163. ----------------------->
  164.  
  165. <?php } elseif (is_single()) { ?>
  166.  
  167.  
  168. <?php if ( have_posts() ) : ?>
  169. <?php while ( have_posts() ) : the_post(); ?>
  170.  
  171. <?php $options = get_option('evolve'); if (($options['evl_post_links'] == "before") || ($options['evl_post_links'] == "both")) { ?>
  172.  
  173.  
  174. <span class="nav-top">
  175. <?php require_once ( get_template_directory() . '/navigation.php' ); ?>
  176. </span>
  177.  
  178. <?php } ?>
  179.  
  180. <!--BEGIN .hentry-->
  181. <div id="post-<?php the_ID(); ?>" class="<?php semantic_entries(); ?>">
  182.  
  183.  
  184.  
  185.  
  186. <?php $options = get_option('evolve'); if (($options['evl_header_meta'] == "") || ($options['evl_header_meta'] == "single") || ($options['evl_header_meta'] == "single_archive"))
  187. { ?> <h1 class="entry-title"><?php if ( get_the_title() ){ the_title(); }else{ echo "Untitled"; } ?></h1>
  188.  
  189.  
  190. <!--BEGIN .entry-meta .entry-header-->
  191. <div class="entry-meta entry-header">
  192. <span class="published"><?php the_date('dM'); ?><br />
  193. <strong><?php the_time('Y'); ?></strong></span>
  194.  
  195. <?php if ( comments_open() ) : ?>
  196. <span class="comment-count"><a href="<?php comments_link(); ?>"><?php comments_number( 'Kommentar hinterlassen', '1 Kommentar', '% Kommentare' ); ?></a></span>
  197. <?php else : // comments are closed
  198. endif; ?>
  199.  
  200.  
  201. <span class="author vcard">
  202.  
  203. <?php $options = get_option('evolve');
  204. if ($options['evl_author_avatar'] == "") { echo get_avatar( get_the_author_meta('email'), '30' );
  205.  
  206. } ?>
  207.  
  208.  
  209.  
  210. geschrieben von <strong><?php printf( '<a class="url fn" href="' . get_author_posts_url( $authordata->ID, $authordata->user_nicename ) . '" title="' . sprintf( 'Zeige alle Artikel von %s', $authordata->display_name ) . '">' . get_the_author() . '</a>' ) ?></strong></span>
  211.  
  212.  
  213. <?php edit_post_link( 'edit', '<span class="edit-post">', '</span>' ); ?>
  214. <!--END .entry-meta .entry-header-->
  215. </div> <?php } else { ?>
  216.  
  217. <h1 class="entry-title" style="float:left;"><?php the_title(); ?></h1>
  218.  
  219. <?php if ( current_user_can( 'edit_post', $post->ID ) ): ?>
  220.  
  221. <?php edit_post_link( 'EDIT', '<span class="edit-post" style="left:10px;position:relative;top:15px;">', '</span>' ); ?>
  222.  
  223. <?php endif; ?>
  224.  
  225. <br /><br /><?php } ?>
  226.  
  227.  
  228. <!-- AD Space 7 -->
  229.  
  230.  
  231. <?php $options = get_option('evolve');
  232. if (!empty($options['evl_space_7'])) {
  233.  
  234. $ad_space_7 = $options['evl_space_7'];
  235. echo '<div style="text-align:center;margin:25px 0;clear:both;overflow:hidden;">'.stripslashes($ad_space_7).'</div>';
  236.  
  237. }
  238. ?>
  239.  
  240.  
  241. <!--BEGIN .entry-content .article-->
  242. <div class="entry-content article">
  243. <?php the_content('Weiterlesen &raquo;'); ?>
  244. <?php wp_link_pages( array( 'before' => '<div id="page-links"><p><strong>Seiten:</strong> ', 'after' => '</p></div>', 'next_or_number' => 'number' ) ); ?>
  245.  
  246. <!--END .entry-content .article-->
  247. <div style="clear:both;"></div>
  248. </div>
  249.  
  250.  
  251.  
  252. <!-- AD Space 8 -->
  253.  
  254.  
  255. <?php $options = get_option('evolve');
  256. if (!empty($options['evl_space_8'])) {
  257.  
  258. $ad_space_8 = $options['evl_space_8'];
  259. echo '<div style="text-align:center;margin:25px 0;clear:both;overflow:hidden;">'.stripslashes($ad_space_8).'</div>';
  260.  
  261. }
  262. ?>
  263.  
  264. <!--BEGIN .entry-meta .entry-footer-->
  265. <div class="entry-meta entry-footer">
  266. <?php if ( evolve_get_terms( 'cats' ) ) { ?>
  267. <span class="entry-categories"><strong>Geschrieben in</strong> <?php echo evolve_get_terms( 'cats' ); ?></span>
  268. <?php } ?><?php if ( evolve_get_terms( 'cats' ) && evolve_get_terms( 'tags' ) ) { ?><span class="meta-sep">-</span><?php } ?>
  269. <?php if ( evolve_get_terms( 'tags' ) ) { ?>
  270. <span class="entry-tags"><strong>Tagged</strong> <?php echo evolve_get_terms( 'tags' ); ?></span>
  271. <?php } ?>
  272. <!--END .entry-meta .entry-footer-->
  273. </div>
  274.  
  275.  
  276.  
  277. <!-- Auto Discovery Trackbacks
  278. <?php trackback_rdf(); ?>
  279. -->
  280. <!--END .hentry-->
  281. </div>
  282.  
  283. <?php $options = get_option('evolve'); if (($options['evl_share_this'] == "") || ($options['evl_share_this'] == "single") || ($options['evl_share_this'] == "single_archive") || ($options['evl_share_this'] == "all")) {
  284. evolve_sharethis(); } else { ?> <div style="margin-bottom:40px;"></div> <?php }?>
  285.  
  286.  
  287.  
  288.  
  289. <?php $options = get_option('evolve'); if (($options['evl_similar_posts'] == "") || ($options['evl_similar_posts'] == "disable")) {} else {
  290. similar_posts(); } ?>
  291.  
  292.  
  293. <?php $options = get_option('evolve'); if (($options['evl_post_links'] == "") || ($options['evl_post_links'] == "after") || ($options['evl_post_links'] == "both")) { ?>
  294.  
  295. <?php require_once ( get_template_directory() . '/navigation.php' ); ?>
  296.  
  297. <?php } ?>
  298.  
  299. <?php comments_template( '', true ); ?>
  300.  
  301. <?php endwhile; else : ?>
  302.  
  303. <!--BEGIN #post-0-->
  304. <div id="post-0" class="<?php semantic_entries(); ?>">
  305. <h1 class="entry-title">Keine Ergebnisse</h1>
  306.  
  307. <!--BEGIN .entry-content-->
  308. <div class="entry-content">
  309. <p>Sorry, es wurden keine Ergebnisse gefunden.</p>
  310. <?php get_search_form(); ?>
  311. <!--END .entry-content-->
  312. </div>
  313. <!--END #post-0-->
  314. </div>
  315.  
  316. <?php endif; ?>
  317.  
  318. <!----------------------
  319. ---- single post end
  320. ----------------------->
  321.  
  322.  
  323. <!----------------------
  324. ---- home/date/category/tag/search/author begin
  325. ----------------------->
  326.  
  327. <?php } elseif (is_home() || is_date() || is_category() || is_tag() || is_search() || is_author()) { ?>
  328.  
  329.  
  330.  
  331. <!----------------------
  332. ---- 2 or 3 columns begin
  333. ----------------------->
  334.  
  335.  
  336.  
  337. <?php if (is_date()) { ?>
  338.  
  339.  
  340. <?php /* If this is a daily archive */ if ( is_day() ) { ?>
  341. <h2 class="page-title archive-title">Tagesarchiv f&uuml;r <span class="daily-title"><?php the_time( 'F jS, Y' ); ?></span></h2>
  342. <?php /* If this is a monthly archive */ } elseif ( is_month() ) { ?>
  343. <h2 class="page-title archive-title">Monatsarchiv f&uuml;r <span class="monthly-title"><?php the_time( 'F, Y' ); ?></span></h2>
  344. <?php /* If this is a yearly archive */ } elseif ( is_year() ) { ?>
  345. <h2 class="page-title archive-title">Jahresarchiv f&uuml;r <span class="yearly-title"><?php the_time( 'Y' ); ?></span></h2>
  346. <?php } ?>
  347.  
  348. <?php } elseif (is_category()) { ?>
  349. <h2 class="page-title archive-title">Posts in der Kategorie<span id="category-title"><?php single_cat_title(); ?></span></h2>
  350.  
  351.  
  352. <?php } elseif (is_tag()) { ?>
  353. <h2 class="page-title archive-title">Getaggte Eintr&auml;ge <span id="tag-title"><?php single_tag_title(); ?></span></h2>
  354.  
  355.  
  356. <?php } elseif (is_search()) { ?>
  357.  
  358.  
  359. <h2 class="page-title search-title">Suchergebnisse f&uuml;r <?php the_post(); echo '<span class="search-term">'. $s .'</span>'; rewind_posts(); ?></h2>
  360.  
  361. <?php } elseif (is_author()) { ?>
  362.  
  363.  
  364. <h2 class="page-title archive-title">Geschrieben von <span class="author-title"><?php the_post(); echo $authordata->display_name; rewind_posts(); ?></span></h2>
  365.  
  366. <?php } ?>
  367.  
  368. <?php $options = get_option('evolve'); if ($options['evl_post_layout'] == "two" || $options['evl_post_layout'] == "three") { ?>
  369.  
  370.  
  371. <?php if (($options['evl_nav_links'] == "before") || ($options['evl_nav_links'] == "both")) { ?>
  372.  
  373.  
  374.  
  375. <span class="nav-top">
  376. <?php require_once ( get_template_directory() . '/navigation.php' ); ?>
  377. </span>
  378.  
  379. <?php } else {?>
  380.  
  381. <?php } ?>
  382.  
  383.  
  384.  
  385. <?php if ( have_posts() ) : ?>
  386.  
  387.  
  388.  
  389.  
  390.  
  391. <?php while ( have_posts() ) : the_post(); ?>
  392.  
  393.  
  394.  
  395. <!--BEGIN .hentry-->
  396. <div id="post-<?php the_ID(); ?>" class="<?php semantic_entries(); ?>
  397.  
  398. <?php $options = get_option('evolve'); if ($options['evl_post_layout'] == "two") { ?>
  399. <?php echo 'odd'.($xyz++%2); ?>
  400.  
  401. <?php } else { ?>
  402. <?php echo 'odd'.($xyz++%3); ?>
  403.  
  404.  
  405. <?php } ?>
  406.  
  407. " style="margin-bottom:40px;">
  408.  
  409.  
  410.  
  411. <?php $options = get_option('evolve'); if (($options['evl_header_meta'] == "") || ($options['evl_header_meta'] == "single_archive"))
  412. { ?>
  413.  
  414. <h1 class="entry-title">
  415.  
  416.  
  417.  
  418. <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
  419. <?php
  420. if ( get_the_title() ){ $title = the_title('', '', false);
  421. echo truncate($title, 40, '...'); }else{ echo "Untitled"; }
  422. ?></a>
  423.  
  424.  
  425.  
  426. </h1>
  427.  
  428. <!--BEGIN .entry-meta .entry-header-->
  429. <div class="entry-meta entry-header">
  430. <span class="published"><?php the_time('Md'); ?><br />
  431. <strong><?php the_time('Y'); ?></strong></span>
  432. <span class="author vcard">
  433.  
  434. geschrieben von<strong><?php printf( '<a class="url fn" href="' . get_author_posts_url( $authordata->ID, $authordata->user_nicename ) . '" title="' . sprintf( 'View all posts by %s', $authordata->display_name ) . '">' . get_the_author() . '</a>' ) ?></strong></span>
  435.  
  436.  
  437. <?php edit_post_link( 'edit', '<span class="edit-post">', '</span>' ); ?>
  438. <!--END .entry-meta .entry-header-->
  439. </div>
  440.  
  441. <?php } else { ?>
  442.  
  443. <h1 class="entry-title" style="float:left;"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
  444. <?php
  445. if ( get_the_title() ){ $title = the_title('', '', false);
  446. echo truncate($title, 40, '...'); }else{ echo "Untitled"; }
  447. ?></a> </h1>
  448.  
  449. <?php if ( current_user_can( 'edit_post', $post->ID ) ): ?>
  450.  
  451. <?php edit_post_link( 'EDIT', '<span class="edit-post" style="left:10px;position:relative;top:15px;">', '</span>' ); ?>
  452.  
  453. <?php endif; ?>
  454.  
  455. <br /><br /><?php } ?>
  456.  
  457. <!--BEGIN .entry-content .article-->
  458. <div class="entry-content article">
  459.  
  460. <?php
  461.  
  462.  
  463. if(has_post_thumbnail()) {
  464. echo '<a href="'; the_permalink(); echo '">';the_post_thumbnail(array(100,100)); echo '</a>';
  465.  
  466. } else {
  467.  
  468. $image = get_first_image();
  469. if ($image):
  470. echo '<a href="'; the_permalink(); echo'"><img src="'.$image.'" alt="';the_title();echo'" /></a>';
  471.  
  472.  
  473. endif;
  474. } ?>
  475.  
  476.  
  477.  
  478. <?php $postexcerpt = get_the_content();
  479. $postexcerpt = apply_filters('the_content', $postexcerpt);
  480. $postexcerpt = str_replace(']]>', ']]&gt;', $postexcerpt);
  481. $postexcerpt = strip_tags($postexcerpt);
  482. $postexcerpt = strip_shortcodes($postexcerpt);
  483.  
  484. echo truncate($postexcerpt, 350, ' [...]');
  485. ?>
  486.  
  487.  
  488. <div class="entry-meta entry-footer">
  489.  
  490. <span class="read-more">
  491. <a href="<?php the_permalink(); ?>">mehr lesen</a> &raquo;
  492. </span>
  493.  
  494. <?php if ( comments_open() ) : ?>
  495. <span class="comment-count"><a href="<?php comments_link(); ?>"><?php comments_number( 'Kommentar hinterlassen', '1 Kommentar', '% Kommentare' ); ?></a></span>
  496. <?php else : // comments are closed
  497. endif; ?>
  498. </div>
  499.  
  500. <!--END .entry-content .article-->
  501. <div style="clear:both;"></div>
  502. </div>
  503.  
  504.  
  505.  
  506. <!--END .hentry-->
  507. </div>
  508.  
  509. <?php $i='';$i++; ?>
  510.  
  511. <?php endwhile; ?>
  512. <?php require_once ( get_template_directory() . '/navigation.php' ); ?>
  513. <?php else : ?>
  514.  
  515.  
  516.  
  517. <?php if (is_search()) { ?>
  518.  
  519.  
  520. <!--BEGIN #post-0-->
  521. <div id="post-0" class="<?php semantic_entries(); ?>">
  522. <h1 class="entry-title">Deine Suche nach"<?php echo "$s"; ?>"ergab keine Treffer</h1>
  523.  
  524. <!--BEGIN .entry-content-->
  525. <div class="entry-content">
  526. <br />
  527. <p>Anregung:</p>
  528. <ul>
  529. <li>Achte auf die richtige Schreibweise.</li>
  530. <li>Versuche unterschiedliche Suchbegriffe</li>
  531. </ul>
  532. <!--END .entry-content-->
  533. </div>
  534. <!--END #post-0-->
  535. </div>
  536.  
  537. <?php } else { ?>
  538.  
  539. <!--BEGIN #post-0-->
  540. <div id="post-0" class="<?php semantic_entries(); ?>">
  541. <h1 class="entry-title">Keine Ergebnisse</h1>
  542.  
  543. <!--BEGIN .entry-content-->
  544. <div class="entry-content">
  545. <p>Sorry, es wurden keine Ergebnisse gefunden.</p>
  546. <!--END .entry-content-->
  547. </div>
  548. <!--END #post-0-->
  549. </div>
  550.  
  551. <?php } ?>
  552.  
  553. <?php endif; ?>
  554.  
  555.  
  556. <!----------------------
  557. -----------------------
  558. -----------------------
  559. ---- 2 or 3 columns end
  560. -----------------------
  561. -----------------------
  562. ----------------------->
  563.  
  564.  
  565. <!----------------------
  566. -----------------------
  567. -----------------------
  568. ---- 1 column begin
  569. -----------------------
  570. -----------------------
  571. ----------------------->
  572.  
  573.  
  574. <?php } else { ?>
  575.  
  576. <?php $options = get_option('evolve'); if (($options['evl_nav_links'] == "before") || ($options['evl_nav_links'] == "both")) { ?>
  577.  
  578.  
  579.  
  580. <span class="nav-top">
  581. <?php require_once ( get_template_directory() . '/navigation.php' ); ?>
  582. </span>
  583.  
  584. <?php } else {?>
  585.  
  586. <?php } ?>
  587.  
  588.  
  589.  
  590. <?php if ( have_posts() ) : ?>
  591. <?php while ( have_posts() ) : the_post(); ?>
  592.  
  593.  
  594.  
  595.  
  596.  
  597. <!--BEGIN .hentry-->
  598. <div id="post-<?php the_ID(); ?>" class="<?php semantic_entries(); ?>">
  599.  
  600.  
  601.  
  602. <?php $options = get_option('evolve'); if (($options['evl_header_meta'] == "") || ($options['evl_header_meta'] == "single_archive"))
  603. { ?>
  604.  
  605. <h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php if ( get_the_title() ){ the_title();}else{ echo "Untitled"; } ?></a></h1>
  606.  
  607. <!--BEGIN .entry-meta .entry-header-->
  608. <div class="entry-meta entry-header">
  609. <span class="published"><?php the_time('dM'); ?><br />
  610. <strong><?php the_time('Y'); ?></strong></span>
  611.  
  612. <?php if ( comments_open() ) : ?>
  613. <span class="comment-count"><a href="<?php comments_link(); ?>"><?php comments_number( 'Kommentar hinterlassen', '1 Kommentar', '% Kommentare' ); ?></a></span>
  614. <?php else : // comments are closed
  615. endif; ?>
  616.  
  617. <span class="author vcard">
  618.  
  619. <?php $options = get_option('evolve');
  620. if ($options['evl_author_avatar'] == "") { echo get_avatar( get_the_author_meta('email'), '30' );
  621.  
  622. } ?>
  623.  
  624.  
  625.  
  626. geschrieben von <strong><?php printf( '<a class="url fn" href="' . get_author_posts_url( $authordata->ID, $authordata->user_nicename ) . '" title="' . sprintf( 'Zeige alle Posts von %s', $authordata->display_name ) . '">' . get_the_author() . '</a>' ) ?></strong></span>
  627.  
  628.  
  629. <?php edit_post_link( 'edit', '<span class="edit-post" >', '</span>' ); ?>
  630. <!--END .entry-meta .entry-header-->
  631. </div>
  632.  
  633. <?php } else { ?>
  634.  
  635. <h1 class="entry-title" style="float:left;"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php if ( get_the_title() ){ the_title();}else{ echo "Untitled"; } ?></a></h1>
  636.  
  637. <?php if ( current_user_can( 'edit_post', $post->ID ) ): ?>
  638.  
  639. <?php edit_post_link( 'EDIT', '<span class="edit-post" style="left:10px;position:relative;top:15px;">', '</span>' ); ?>
  640.  
  641. <?php endif; ?>
  642.  
  643. <br /><br /><?php } ?>
  644.  
  645. <!--BEGIN .entry-content .article-->
  646. <div class="entry-content article">
  647.  
  648.  
  649. <?php $options = get_option('evolve'); if (($options['evl_excerpt_thumbnail'] == "1")) { ?>
  650.  
  651. <?php if(has_post_thumbnail()) {
  652. echo '<span class="thumbnail"><a href="'; the_permalink(); echo '">';the_post_thumbnail(array(100,100)); echo '</a></span>';
  653.  
  654. } else {
  655.  
  656. $image = get_first_image();
  657. if ($image):
  658. echo '<span class="thumbnail"><a href="'; the_permalink(); echo'"><img src="'.$image.'" alt="';the_title();echo'" /></a></span>';
  659. endif;
  660. } ?>
  661.  
  662.  
  663.  
  664.  
  665.  
  666.  
  667.  
  668.  
  669. <?php the_excerpt();?>
  670.  
  671.  
  672. <span class="read-more">
  673. <a href="<?php the_permalink(); ?>">mehr lesen</a> &raquo;
  674. </span>
  675.  
  676. <?php } else { ?>
  677.  
  678.  
  679. <?php the_content('READ MORE &raquo;'); ?>
  680.  
  681. <?php wp_link_pages( array( 'before' => '<div id="page-links"><p><strong>Seiten:</strong> ', 'after' => '</p></div>', 'next_or_number' => 'number' ) ); ?>
  682.  
  683. <?php } ?>
  684.  
  685. <!--END .entry-content .article-->
  686. <div style="clear:both;"></div>
  687. </div>
  688.  
  689.  
  690.  
  691. <!--BEGIN .entry-meta .entry-footer-->
  692.  
  693. <div class="entry-meta entry-footer">
  694. <?php if ( evolve_get_terms( 'cats' ) ) { ?>
  695. <span class="entry-categories"><strong>Geschrieben in</strong> <?php echo evolve_get_terms( 'cats' ); ?></span>
  696. <?php } ?><?php if ( evolve_get_terms( 'cats' ) && evolve_get_terms( 'tags' ) ) { ?><span class="meta-sep">-</span><?php } ?>
  697. <?php if ( evolve_get_terms( 'tags' ) ) { ?>
  698.  
  699. <span class="entry-tags"><strong>Tagged</strong> <?php echo evolve_get_terms( 'tags' ); ?></span>
  700. <?php } ?>
  701. <!--END .entry-meta .entry-footer-->
  702. </div>
  703.  
  704. <!--END .hentry-->
  705. </div>
  706.  
  707.  
  708. <?php $options = get_option('evolve'); if (($options['evl_share_this'] == "single_archive") || ($options['evl_share_this'] == "all")) {
  709. evolve_sharethis(); } else { ?> <div style="margin-bottom:40px;"></div> <?php }?>
  710.  
  711.  
  712.  
  713. <?php endwhile; ?>
  714.  
  715.  
  716. <?php $options = get_option('evolve'); if (($options['evl_nav_links'] == "") || ($options['evl_nav_links'] == "after") || ($options['evl_nav_links'] == "both")) { ?>
  717.  
  718.  
  719.  
  720. <?php require_once ( get_template_directory() . '/navigation.php' ); ?>
  721.  
  722. <?php } else {?>
  723.  
  724. <?php } ?>
  725.  
  726. <?php else : ?>
  727.  
  728. <?php if (is_search()) { ?>
  729.  
  730.  
  731. <!--BEGIN #post-0-->
  732. <div id="post-0" class="<?php semantic_entries(); ?>">
  733. <h1 class="entry-title">Deine Suche nach "<?php echo "$s"; ?>"ergab keine Treffer</h1>
  734.  
  735. <!--BEGIN .entry-content-->
  736. <div class="entry-content">
  737. <br />
  738. <p>Anregung:</p>
  739. <ul>
  740. <li>Achte auf die richtige Schreibweise.</li>
  741. <li>Versuche unterschiedliche Suchbegriffe</li>
  742. </ul>
  743. <!--END .entry-content-->
  744. </div>
  745. <!--END #post-0-->
  746. </div>
  747.  
  748. <?php } else { ?>
  749.  
  750. <!--BEGIN #post-0-->
  751. <div id="post-0" class="<?php semantic_entries(); ?>">
  752. <h1 class="entry-title">Keine Ergebnisse</h1>
  753.  
  754. <!--BEGIN .entry-content-->
  755. <div class="entry-content">
  756. <p>Sorry, es wurden keine Ergebnisse gefunden.</p>
  757. <!--END .entry-content-->
  758. </div>
  759. <!--END #post-0-->
  760. </div>
  761.  
  762. <?php } ?>
  763.  
  764. <?php endif; ?>
  765.  
  766.  
  767.  
  768. <?php } ?>
  769.  
  770. <!----------------------
  771. -----------------------
  772. -----------------------
  773. ---- 1 column end
  774. -----------------------
  775. -----------------------
  776. ----------------------->
  777.  
  778. <!----------------------
  779. -----------------------
  780. -----------------------
  781. ---- home/date/category/tag/search/author end
  782. -----------------------
  783. -----------------------
  784. ----------------------->
  785.  
  786. <?php } elseif (is_page()) { ?>
  787.  
  788.  
  789. <?php if ( have_posts() ) : ?>
  790. <?php while ( have_posts() ) : the_post(); ?>
  791.  
  792. <!--BEGIN .hentry-->
  793. <div id="post-<?php the_ID(); ?>" class="<?php semantic_entries(); ?>">
  794. <h1 class="entry-title"><?php if ( get_the_title() ){ the_title(); }else{ echo "Untitled"; } ?></h1>
  795.  
  796. <?php if ( current_user_can( 'edit_post', $post->ID ) ): ?>
  797.  
  798. <?php edit_post_link( 'EDIT', '<span class="edit-page">', '</span>' ); ?>
  799.  
  800. <?php endif; ?>
  801.  
  802. <br /><br />
  803.  
  804. <!--BEGIN .entry-content .article-->
  805. <div class="entry-content article">
  806. <?php the_content('READ MORE &raquo;'); ?>
  807.  
  808. <!--END .entry-content .article-->
  809. <div style="clear:both;"></div>
  810. </div>
  811.  
  812.  
  813.  
  814. <!-- Auto Discovery Trackbacks
  815. <?php trackback_rdf(); ?>
  816. -->
  817. <!--END .hentry-->
  818. </div>
  819.  
  820. <?php $options = get_option('evolve'); if (($options['evl_share_this'] == "all")) {
  821. evolve_sharethis(); } ?>
  822.  
  823. <?php comments_template( '', true ); ?>
  824.  
  825. <?php endwhile; endif; ?>
  826.  
  827.  
  828.  
  829. <?php } elseif (is_404()) { ?>
  830.  
  831. <!--BEGIN #post-0-->
  832. <div id="post-0" class="<?php semantic_entries(); ?>">
  833. <h1 class="entry-title">Keine Ergebnisse</h1>
  834.  
  835. <!--BEGIN .entry-content-->
  836. <div class="entry-content">
  837. <p>Sorry, es wurden keine Ergebnisse gefunden.</p>
  838. <!--END .entry-content-->
  839. </div>
  840. <!--END #post-0-->
  841. </div>
  842.  
  843.  
  844.  
  845. <?php } ?>
  846.  
  847.  
  848. <!--END #primary .hfeed-->
  849. </div>
  850.  
  851. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment