wordpress/php-fpm/wordpress_files/themes/rules/gallery-index.php

50 lines
1.3 KiB
PHP
Raw Normal View History

2020-05-22 03:40:23 +02:00
<?php
/*
Template Name: gallery-index
*/
// this is an adjusted copy from the default template file page.php
// if you want to adjust this template file for your own layout, you need to paste the marked parts
// into a copy of your page.php template file between your <div class="post" ..> .. </div> tags and
// save it as gallery-index.php in your theme folder.
// dont forget the Template-Name!
?>
<?php get_header(); ?>
<div id="content" class="widecolumn">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post">
<?php
// --------------------------------------------------------- ANIga ---- //
// load gallery functions and language
$aniga_lang = anigal_start_gallery();
// load new index classes
$aniga = new anigal_db();
$aniga_do = new anigal_index();
// print index loop
$aniga_do->loop();
// pint most x viewed pictures
// lo desactivamos, no nos interesa. Ya borrada la función
// en plugins/ANIga/functions.php
// $aniga->top(3);
// --------------------------------------------------------- ANIga ---- //
?>
</div>
<?php endwhile; else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
</div>
<?php get_footer(); ?>