@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phosweb010 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
Current Path :
/
homepage
/
wordpress
/
wp-content
/
themes
/
goal-10
/
Path :
Upload File :
New :
File
Dir
//homepage/wordpress/wp-content/themes/goal-10/theloop.php
<?php /* Template Name: The Loop This is the loop, which is used in index template, archive template and search template to fetches entries from your database.It makes your editing much easier. It is oranginally from the theme k2 by Michael and Chris.I made some changes myself. You can get k2 here: http://getk2.com/ */ ?> <?php /* Initialize The Loop */ if (have_posts()) { $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> <?php // Headlines for archives if (!is_single() && !is_home() or is_paged()) { ?> <h2 class="pagetitle"> <?php // Figure out what to show if (is_category()) { echo single_cat_title(); } elseif (is_day()) { printf(__('Archive for %s'), get_the_time(__('F jS, Y'))); } elseif (is_month()) { printf(__('Archive for %s'), get_the_time(__('F, Y'))); } elseif (is_year()) { printf(__('Archive for %s'), get_the_time(__('Y'))); } elseif (is_search()) { printf(__('Search Results for \'%s\''), $s); } elseif (function_exists('is_tag') and is_tag()) { printf(__('Tag Archive for \'%s\''), get_query_var('tag') ); } elseif (is_author()) { $post = $wp_query->post; $the_author = $wpdb->get_var("SELECT meta_value FROM $wpdb->usermeta WHERE user_id = '$post->post_author' AND meta_key = 'nickname'"); printf(__('Author Archive for %s'), $the_author ); } elseif (is_paged()) { printf(__('Archive Page %s'), $paged ); } ?> </h2> <?php } ?> <?php /* The 'next page' and 'previous page' navigation for permalinks have to be inside the loop. The exact opposite is true for the same navigation links on all other pages. Also, we don't want them at the top of the frontpage: */ if (!is_single() && !is_home() && !is_page() or is_paged() or (function_exists('is_tag') and is_tag()) ) include (TEMPLATEPATH . '/navigation.php'); /* Start The Loop */ while (have_posts()) { the_post(); if (is_single()) include (TEMPLATEPATH . '/navigation.php'); ?> <?php if (is_home() or is_archive() or is_search() or is_single() or is_page() or (function_exists('is_tag') and is_tag()) ) { ?> <div id="post-<?php the_ID(); ?>" class="entry"> <h2 class="date-header">Published <?php the_time('F jS, Y') ?> by <?php the_author() ?> </h2> <h3 class="entry-header"><a href="<?php the_permalink() ?>" rel="bookmark" title='Permanent Link to "<?php strip_tags(the_title()); ?>"'> <?php the_title(); ?> </a></h3> <?php if (is_search()) { the_excerpt(); } else { the_content("Continue reading '" . the_title('', '', false) . "'"); } ?> <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?> <!-- <?php trackback_rdf(); ?> --> <p class="entry-footer"> <?php edit_post_link('Edit Link'); ?> | Post in <?php the_category(', ');?> | <?php comments_popup_link('0 Comments', '1 Comment', '% Comments', 'Closed'); ?> </p> </div> <?php } /* End The Loop */ } /* Insert Paged Navigation */ if (!is_single()) { include (TEMPLATEPATH . '/navigation.php'); } ?> <?php /* If there is nothing to loop */ } else { $notfound = '1'; /* So we can tell the sidebar what to do */ ?> <h2 class="center">Not Found</h2> <div class="entry"> <p>Oh no! You're looking for something which just isn't here! Fear not however, errors are to be expected, and luckily there are tools on the sidebar for you to use in your search for what you need.</p> </div> <?php /* End Loop Init */ } ?>