Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.79 KB | None | 0 0
  1. <svg xmlns="http://www.w3.org/2000/svg" encoding="utf-8" style="display: none;">
  2.     <symbol id="icon-comment" viewBox="0 0 32 32">
  3.         <title>comment</title>
  4.         <path class="path1" d="M32 16q0 3.109-2.142 5.742t-5.822 4.16-8.037 1.527q-1.25 0-2.59-0.142-3.536 3.125-8.215 4.32-0.875 0.251-2.034 0.395-0.306 0.039-0.549-0.16t-0.311-0.517v-0.018q-0.053-0.069-0.009-0.215t0.037-0.178 0.078-0.169l0.107-0.16 0.128-0.151 0.142-0.16q0.126-0.142 0.553-0.617t0.617-0.679 0.553-0.709 0.581-0.907 0.48-1.051 0.466-1.36q-2.805-1.591-4.421-3.934t-1.614-5.013q0-2.32 1.266-4.434t3.41-3.653 5.106-2.441 6.217-0.905q4.354 0 8.034 1.531t5.822 4.16 2.144 5.737z"></path>
  5.     </symbol>
  6. </svg>
  7.  
  8. <section class="comments" id="comments">
  9.  
  10.     <div class="comments__display" id="comments__display">
  11.         <h3 class="comments__heading">Komentari</h3>
  12.         <h4 class="comments__count">Trenutno <span class="comments__count_number"> {{ count($comments) }}</span> komentar{{ count($comments) == 1 ? '' : 'a' }} na ovu lekciju</h4>
  13.  
  14.         <ul class="comments__list">
  15.             @foreach ($comments as $comment)
  16.                 <li class="comments__single">
  17.                    
  18.                     <img alt="{{ $comment->author->username }}" class="comments__avatar" src="{{ $comment->author->avatar }}" />
  19.                     <input class="comments__reply_toggle common_landing__visually_hidden" id="comments__reply_toggle--{{ $comment->?id }}" type="checkbox" />
  20.                     <div class="comments__single_heading">
  21.                         <h5 class="comments__author">{{ $comment->author->username }}</h5>
  22.                         <time class="comments__time" datetime="{{ $comment->date }}">{{ $comment->date }}</time>    
  23.                         <label class="comments__reply" for="comments__reply_toggle--{{ $comment->id }}"><svg class="icon icon-comment"><use xlink:href="#icon-comment"></use></svg>reply</label>  
  24.                     </div>
  25.  
  26.                     <p class="comments__text">
  27.                         {{ $comment->text }}
  28.                     </p>
  29.  
  30.                     <form action="/comment_post_reply" class="comments__reply_form" id="comments__reply_form" method="post">
  31.                         <textarea class="comments__reply_text" name="text" required="required"></textarea>
  32.  
  33.                         <input class="comments__reply_submit" type="submit" value="Komentar" />
  34.                     </form>
  35.  
  36.                     <ul class="comments__replies">
  37.                         @foreach ($comment->replies as $reply)
  38.                             <li class="comments__reply_single">
  39.                                
  40.                                 <img alt="{{ $reply->author->username }}" class="comments__avatar" src="{{ $reply->author->avatar }}" />
  41.                                 <div class="comments__single_heading">
  42.                                     <h5 class="comments__author">{{ $comment->author->username'] }}</h5>
  43.                                    <time class="comments__time" datetime="{{ $reply->date }}">{{ $reply->date }}</time>
  44.                                </div>    
  45.                                <p class="comments__text">
  46.                                    {{ $reply->text }}
  47.                                </p>
  48.                            </li>
  49.                        @endforeach
  50.                    </ul>
  51.                </li>
  52.            @endforeach
  53.        </ul>
  54.    </div>
  55.  
  56.    <form action="/comment_post_new" class="comments__create" id="comments__create" method="post">
  57.  
  58.        <h3 class="comments__heading">Ostavi komentar:</h3>
  59.        
  60.        <textarea class="comments__post_text" name="text" placeholder="Ostavi komentar" required="required"></textarea>
  61.  
  62.        <input class="comments__post" type="submit" value="Komentar" />
  63.    </form>
  64. </section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement