it_proger29
@it_proger29
Битрикс

В чем ошибка у файла function?

<?php
							$avatar_size = 68;
							if ( '0' != $comment->comment_parent )
							$avatar_size = 39;
							echo get_avatar( $comment, $avatar_size );
							/* translators: 1: comment author, 2: date and time */
							printf( __( '%1$s %2$s', 'my_press' ),
							sprintf( '<div class="fn"><div class="author-name">%s</div>', get_comment_author_link() ),
							sprintf( '<div class="comment-metadata">%3$s'),
							esc_url( get_comment_link( $comment->comment_ID ) ),
							get_comment_time( 'c' ),
							/* translators: 1: date, 2: time */
							sprintf( __( '<div class="comment-time">%2$s</div> <div class="comment-likes">%1$s</div><div class="comment-reply"><a class="comment-reply-link" href="#">%3$s</div></div></div>', 'my_press' ), get_comment_date(), get_comment_time(),get_comment_reply_link(array_merge( $args, array( 'reply_text' => __( 'Ответить', 'my_press' ), 'depth' => $depth, 'max_depth' => $args['max_depth'] ) )) ),
							
							
							); ?>


Ошибка в последней строчке. "); ?>"
Parse error: syntax error, unexpected ')' in /var/www/u0783105/data/www/domen.ru/wp-content/themes/grizli/functions.php on line 322

Помогите пожалуйста, не могу разобраться.
  • Вопрос задан
  • 64 просмотра
Решения вопроса 1
@NinjaNickName
Web разработчик
Так попробуйте
sprintf( __( '<div class="comment-time">%2$s</div> <div class="comment-likes">%1$s</div><div class="comment-reply"><a class="comment-reply-link" href="#">%3$s</div></div></div>', 'my_press' ), get_comment_date(), get_comment_time(),get_comment_reply_link(array_merge( $args, array( 'reply_text' => __( 'Ответить', 'my_press' ), 'depth' => $depth, 'max_depth' => $args['max_depth'] ) )) ); ?>
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы