Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Php - brak klamry?
Owneds
post
Post #1





Grupa: Zarejestrowani
Postów: 14
Pomógł: 0
Dołączył: 5.05.2011

Ostrzeżenie: (0%)
-----


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:

  1. <?php
  2. /**
  3.  * Custom template tags for this theme.
  4.  *
  5.  * Eventually, some of the functionality here could be replaced by core features
  6.  *
  7.  * @package web2feel
  8.  * @since web2feel 1.0
  9.  */
  10.  
  11. if ( ! function_exists( 'web2feel_content_nav' ) ):
  12. /**
  13.  * Display navigation to next/previous pages when applicable
  14.  *
  15.  * @since web2feel 1.0
  16.  */
  17. function web2feel_content_nav( $nav_id ) {
  18. global $wp_query;
  19.  
  20. $nav_class = 'site-navigation paging-navigation';
  21. if ( is_single() )
  22. $nav_class = 'site-navigation post-navigation';
  23.  
  24. ?>
  25. <nav role="navigation" id="<?php echo $nav_id; ?>" class="<?php echo $nav_class; ?>">
  26. <h1 class="assistive-text"><?php _e( 'Post navigation', 'web2feel' ); ?></h1>
  27.  
  28. <?php if ( is_single() ) : // navigation links for single posts ?>
  29.  
  30. <?php previous_post_link( '<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'web2feel' ) . '</span> %title' ); ?>
  31. <?php next_post_link( '<div class="nav-next">%link</div>', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'web2feel' ) . '</span>' ); ?>
  32.  
  33. <?php elseif ( $wp_query->max_num_pages > 1 && ( is_home() || is_archive() || is_search() ) ) : // navigation links for home, archive, and search pages ?>
  34.  
  35. <?php if ( get_next_posts_link() ) : ?>
  36. <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'web2feel' ) ); ?></div>
  37. <?php endif; ?>
  38.  
  39. <?php if ( get_previous_posts_link() ) : ?>
  40. <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'web2feel' ) ); ?></div>
  41. <?php endif; ?>
  42.  
  43. <?php endif; ?>
  44.  
  45. </nav><!-- #<?php echo $nav_id; ?> -->
  46. <?php
  47.  
  48. endif; // web2feel_content_nav
  49. }
  50. if ( ! function_exists( 'web2feel_comment' ) ) :
  51. /**
  52.  * Template for comments and pingbacks.
  53.  *
  54.  * Used as a callback by wp_list_comments() for displaying the comments.
  55.  *
  56.  * @since web2feel 1.0
  57.  */
  58. function web2feel_comment( $comment, $args, $depth ) {
  59. $GLOBALS['comment'] = $comment;
  60. switch ( $comment->comment_type ) :
  61. case 'pingback' :
  62. case 'trackback' :
  63. ?>
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 24.12.2025 - 21:57