%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/eirtvhdf/makkitrust.org/wp-content/plugins/trx_donations/templates/
Upload File :
Create Path :
Current File : /home/eirtvhdf/makkitrust.org/wp-content/plugins/trx_donations/templates/archive.php

<?php
/**
 * The template for displaying donation's archive
 *
 * @package ThemeREX Donations
 * @since ThemeREX Donations 1.0
 */

$plugin = TRX_DONATIONS::get_instance();

if ( !function_exists('trx_donations_excerpt_more') ) {
	function trx_donations_excerpt_more( $more ) {
		return '&hellip;';
	}
	add_filter( 'excerpt_more',	'trx_donations_excerpt_more' );
}

get_header();

do_action('trx_donations_before_archive');

if ( have_posts() ) {
	?>
	<header class="page-header">
		<?php
		the_archive_title( '<h1 class="page-title">', '</h1>' );
		the_archive_description( '<div class="taxonomy-description">', '</div>' );
	?>
	</header><!-- .page-header -->
	<?php

	do_action('trx_donations_before_archive_list');
	
	$columns = $plugin->get_option('blog_columns');
	if (!empty($_GET['blog_columns']) && $_GET['blog_columns'] > 0) $columns = (int) $_GET['blog_columns'];
	
	if ( $columns > 1)
		echo '<div class="' . ($plugin->get_option('columns_wrap_class')!='' ? esc_attr($plugin->get_option('columns_wrap_class')) : 'sc_donations_columns_wrap').'">';

	while ( have_posts() ) { the_post();
		require trx_donations_get_file_dir('templates/content-'.$plugin->get_option('blog_style').'.php');
	}

	if ( $columns > 1)
		echo '</div>';

	do_action('trx_donations_after_archive_list');

	// Previous/next page navigation.
	?><div class="archive-pagination"><?php
	the_posts_pagination( array(
		'prev_text'          => esc_html__( 'Previous page', 'trx_donations' ),
		'next_text'          => esc_html__( 'Next page', 'trx_donations' ),
		'before_page_number' => '<span class="meta-nav screen-reader-text">' . esc_html__( 'Page', 'trx_donations' ) . ' </span>',
	) );
	?></div><?php
	
} else {

	// If no content, include the "No posts found" template.
	require trx_donations_get_file_dir('templates/content-none.php');

}

do_action('trx_donations_after_archive');

get_footer();

if ( function_exists('trx_donations_excerpt_more') ) {
	remove_filter( 'excerpt_more', 'trx_donations_excerpt_more' );
}
?>

Zerion Mini Shell 1.0