| Server IP : 188.114.97.2 / Your IP : 104.23.197.230 Web Server : Apache/2.4.59 (Debian) System : Linux EDL-STRETCH 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64 User : edlftp ( 1002) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/nicolasj/www/blog.ecoledelangues.be/wp-content/themes/metro/ |
Upload File : |
<?php
$blog_page_id=get_option('page_for_posts');
if($blog_page_id)
$blog = get_post($blog_page_id);
else
$blog=false;
if($blog) {
$template_name = get_post_meta( $blog->ID, '_wp_page_template', true );
if($template_name == 'template-blog-lite.php') {
get_template_part('template-blog-lite');
return;
}
}
get_header();
?>
<div class="block-6 no-mar content-with-sidebar">
<div class="block-6 bg-color-main">
<div class="block-inner">
<?php if($blog) { ?>
<div class="tbl-bottom">
<div class="tbl-td">
<h1 class="page-h1"><?php echo $blog->post_title; ?></h1>
</div>
<?php if(get_option(OM_THEME_PREFIX . 'show_breadcrumbs') == 'true') { ?>
<div class="tbl-td">
<?php om_breadcrumbs(get_option(OM_THEME_PREFIX . 'breadcrumbs_caption')) ?>
</div>
<?php } ?>
</div>
<div class="clear page-h1-divider"></div>
<?php } ?>
<?php //$i=0; ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php
//if( $i > 0 )
// echo '<hr />';
$format = get_post_format();
if( false === $format )
$format = 'standard';
get_template_part( 'includes/post-type-' . $format );
$i++;
?>
<?php endwhile; ?>
<?php
if(get_option(OM_THEME_PREFIX . 'blog_pagination') == 'pages') {
echo om_wrap_paginate_links ( paginate_links( array(
'base' => str_replace( '999999999', '%#%', esc_url( get_pagenum_link( '999999999' ) ) ),
'format' => '?paged=%#%',
'current' => $wp_query->query_vars['paged'] ? $wp_query->query_vars['paged'] : 1,
'total' => $wp_query->max_num_pages,
'type' => 'array',
'prev_text' => __('Previous', 'om_theme'),
'next_text' => __('Next', 'om_theme'),
) ) );
} else {
$nav_prev=get_previous_posts_link(__('Newer Entries', 'om_theme'));
$nav_next=get_next_posts_link(__('Older Entries', 'om_theme'));
if( $nav_prev || $nav_next ) {
?>
<div class="navigation-prev-next">
<?php if($nav_prev){?><div class="navigation-prev"><?php echo $nav_prev; ?></div><?php } ?>
<?php if($nav_next){?><div class="navigation-next"><?php echo $nav_next; ?></div><?php } ?>
<div class="clear"></div>
</div>
<?php
}
}
?>
<?php else : ?>
<h2><?php _e('Error 404 - Not Found', 'om_theme') ?></h2>
<p><?php _e('Sorry, but you are looking for something that isn\'t here.', 'om_theme') ?></p>
<?php endif; ?>
</div>
</div>
</div>
<div class="block-3 no-mar sidebar">
<?php
// alternative sidebar
$alt_sidebar=intval(get_post_meta($post->ID, OM_THEME_SHORT_PREFIX.'sidebar', true));
if($alt_sidebar && $alt_sidebar <= intval(get_option(OM_THEME_PREFIX."sidebars_num")) ) {
if ( !function_exists( 'dynamic_sidebar' ) || !dynamic_sidebar( 'alt-sidebar-'.$alt_sidebar ) ) ;
} else {
get_sidebar();
}
?>
</div>
<!-- /Content -->
<div class="clear anti-mar"> </div>
<?php get_footer(); ?>