git-svn-id: https://192.168.0.254/svn/Proyectos.ASong2U_Web/trunk@88 cd1a4ea2-8c7f-e448-aada-19d1fee9e1d6
34 lines
1.2 KiB
PHP
34 lines
1.2 KiB
PHP
<?php global $gp_settings; ?>
|
|
|
|
<?php if($gp_settings['title'] == "Show") { ?>
|
|
<h1 class="page-title">
|
|
<?php if(is_search()) { ?>
|
|
<?php echo $wp_query->found_posts; ?> <?php _e('search results for', 'gp_lang'); ?> "<?php echo esc_html($s); ?>"
|
|
<?php } elseif(is_category()) { ?>
|
|
<?php if(get_category_parents) { $catstr = get_category_parents($cat, false, ' / '); echo substr($catstr, 0, strlen($catstr) -3 ); } else { single_cat_title(); } ?>
|
|
<?php } elseif(is_tag()) { ?>
|
|
<?php single_tag_title(); ?>
|
|
<?php } elseif(is_author()) { ?>
|
|
<?php wp_title(''); ?><?php _e('\'s Posts'); ?>
|
|
<?php } elseif(is_archive()) { ?>
|
|
<?php _e('Archives', 'gp_lang'); ?> <?php wp_title(' / '); ?>
|
|
<?php } ?>
|
|
</h1>
|
|
<?php } ?>
|
|
|
|
<?php $post_status = 'publish'; ?>
|
|
<?php
|
|
$args = $GLOBALS['wp_query']->query;
|
|
$args['ignore_sticky_posts'] = 1;
|
|
$args['orderby'] = $orderby;
|
|
$args['order'] = $order;
|
|
$args['gdsr_sort'] = $gdsr_sort;
|
|
$args['gdsr_order'] = $gdsr_order;
|
|
$args['paged'] = $paged;
|
|
$args['post_status'] = $post_status;
|
|
$args['posts_per_page'] = $gp_settings['posts_per_page'];
|
|
?>
|
|
|
|
<?php query_posts($args); ?>
|
|
|
|
<?php include('post-loop-dedication-template.php'); ?>
|