| Server IP : 116.202.121.150 / Your IP : 216.73.216.43 Web Server : Apache System : Linux server5.febas.net 6.1.0-51-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.177-1 (2026-07-16) x86_64 User : k9887-1 ( 1171) PHP Version : 8.2.32 Disable Function : show_source, highlight_file, apache_child_terminate, apache_get_modules, apache_note, apache_setenv, virtual, dl, posix_getpwnam, posix_getpwuid, posix_mkfifo, posix_mknod, posix_setpgid, posix_setsid, posix_setuid, posix_uname, proc_nice, openlog, syslog, pfsockopen, system, shell_exec, passthru, popen, proc_open, exec MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/k9887-1/htdocs/_fisch/wp-content/themes/dt-the7/ |
Upload File : |
<?php
/**
* Template Name: Gallery - masonry & grid
*
* Media Gallery template. Uses dt_gallery post type and dt_gallery_category taxonomy.
*
* @since 1.0.0
*
* @package The7\Templates
*/
defined( 'ABSPATH' ) || exit;
$config = presscore_config();
$config->set( 'template', 'media' );
add_action( 'presscore_before_main_container', 'presscore_page_content_controller', 15 );
get_header();
if ( presscore_is_content_visible() ) : ?>
<!-- Content -->
<div id="content" class="content" role="main">
<?php
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
do_action( 'presscore_before_loop' );
if ( post_password_required() ) {
the_content();
} else {
$config_backup = $config->get();
if ( $config->get( 'full_width' ) ) {
echo '<div class="full-width-wrap">';
}
echo '<div ' . presscore_masonry_container_class(
array( 'wf-container', 'dt-gallery-container' )
) . presscore_masonry_container_data_atts() . presscore_get_share_buttons_for_prettyphoto(
'photo'
) . '>';
if ( function_exists( 'presscore_mod_albums_get_photos' ) ) {
$page_query = presscore_mod_albums_get_photos();
if ( $page_query->have_posts() ) :
while ( $page_query->have_posts() ) :
$page_query->the_post();
presscore_get_template_part( 'mod_albums', 'photo-masonry/photo' );
endwhile;
wp_reset_postdata();
endif;
}
echo '</div>';
if ( $config->get( 'full_width' ) ) {
echo '</div>';
}
presscore_complex_pagination( $page_query );
$config->reset( $config_backup );
}
do_action( 'presscore_after_loop' );
the7_display_post_share_buttons( 'page' );
endwhile;
endif;
?>
</div><!-- #content -->
<?php
do_action( 'presscore_after_content' );
endif;
get_footer(); ?>