• Hello,

    I’m having some troubles with sidebar.php. I’m updating my blog (i was still in 2.0) and correcting a lot of issues on each pages. But i don’t get this error. Could you please help me?

    Error msg:
    Parse error: syntax error, unexpected ‘}’ in /home/olympe-network/arnoz/wp-content/themes/arnoz/sidebar.php on line 155

    Code:

    <h2>Archives</h2>
    <ul><?php wp_get_archives('type=monthly'); ?></ul>
    
    <?php if (have_posts()) : ?>
    
    <li><?php /* If this is a 404 page */ if (is_404()) { ?>
    <?php /* If this is a category archive */ } elseif (is_category()) { ?>
    Vous parcourez les archives de la catégorie
    <?php single_cat_title(''); ?>.
    
    <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
    Vous parcourez les archives du blog <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> pour la journée du <?php the_time('l j F Y'); ?>.
    
    <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    Vous parcourez les archives du blog <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> pour
    <?php the_time('F Y'); ?>.
    
    <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    Vous parcourez les archives du blog <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> pour l'année <?php the_time('Y'); ?>.
    
    <?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
    Vous avez lancé la recherche <strong>'<?php the_search_query(); ?>'</strong> dans les archives du blog  <a href="<?php echo bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a>. Si vous ne trouvez rien dans ces résultats, essayez l'un de ces liens.
    
    <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
    			Vous vous trouvez dans les archives du blog <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a>.
    
    <?php } ?></li>
    
    <h2>Publicit&eacute;</h2>
    [...]Some other stuff, but only very simple code such as img so the problem doesn't come from here.[...]
    
    <h2><?php _e('Site'); ?></h2>
    <ul>
    <?php wp_register(); ?>
    <li><?php wp_loginout(); ?></li>
    </ul>
    
    <?php } ?>  [!]THIS IS LINE 155[!]
    
    </ul>
    </div>

    Thanks!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Sidebar “syntax error”, I don’t understand’ is closed to new replies.