Witam.
Mam kolejny problem, a mianowicie wyskakuje mi błąd:
Parse error: syntax error, unexpected '}' in /virtual/xxxx.pl/wp-content/themes/Nautilus/inc/template-tags.php on line 41
Ale w linii 41 niczego nie mogę się doszukać.
oto kod:
<?php
/**
* Custom template tags for this theme.
*
* Eventually, some of the functionality here could be replaced by core features
*
* @package web2feel
* @since web2feel 1.0
*/
if ( ! function_exists( 'web2feel_content_nav' ) ):
/**
* Display navigation to next/previous pages when applicable
*
* @since web2feel 1.0
*/
function web2feel_content_nav( $nav_id ) {
$nav_class = 'site-navigation paging-navigation';
if ( is_single() )
$nav_class = 'site-navigation post-navigation';
?>
<nav role="navigation" id="
<?php echo $nav_id; ?>" class="
<?php echo $nav_class; ?>">
<h1 class="assistive-text"><?php _e( 'Post navigation', 'web2feel' ); ?></h1>
<?php if ( is_single() ) : // navigation links for single posts ?>
<?php previous_post_link( '<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'web2feel' ) . '</span> %title' ); ?>
<?php next_post_link( '<div class="nav-next">%link</div>', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'web2feel' ) . '</span>' ); ?>
<?php elseif ( $wp_query->max_num_pages > 1 && ( is_home() || is_archive() || is_search() ) ) : // navigation links for home, archive, and search pages ?>
<?php if ( get_next_posts_link() ) : ?>
<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'web2feel' ) ); ?></div>
<?php endif; ?>
<?php if ( get_previous_posts_link() ) : ?>
<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'web2feel' ) ); ?></div>
<?php endif; ?>
<?php endif; ?>
</nav><!-- #
<?php echo $nav_id; ?> -->
<?php
endif; // web2feel_content_nav
}
if ( ! function_exists( 'web2feel_comment' ) ) :
/**
* Template for comments and pingbacks.
*
* Used as a callback by wp_list_comments() for displaying the comments.
*
* @since web2feel 1.0
*/
function web2feel_comment( $comment, $args, $depth ) {
$GLOBALS['comment'] = $comment;
switch ( $comment->comment_type ) :
case 'pingback' :
case 'trackback' :
?>