You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.1 KiB

  1. <div class="tweet h-entry">
  2. <div class="profile u-author h-card">
  3. @if($tweet->player)
  4. <img src="{{ $tweet->player->photo }}" style="border-color: {{ '#'.$tweet->team->color }}" class="u-photo">
  5. <span><a href="https://twitter.com/{{ $tweet->player->twitter }}" class="u-url p-name">{{ '@'.$tweet->player->twitter }}</a></span>
  6. @else
  7. <img src="{{ $tweet->author_photo }}" class="u-photo">
  8. @endif
  9. </div>
  10. <div class="text e-content p-name">{!! Twitter::linkify($tweet->text) !!}</div>
  11. @if($tweet->photos())
  12. <div class="multi-photo photos-{{ count($tweet->photos()) }}">
  13. @foreach($tweet->photos() as $photo)
  14. <a class="photo" style="background-image:url({{ $photo }})" href="{{ $tweet->twitter_permalink() }}">
  15. <img src="{{ $photo }}" class="u-photo">
  16. </a>
  17. @endforeach
  18. </div>
  19. <div class="multi-photo-clear"></div>
  20. @endif
  21. <a href="{{ $tweet->twitter_permalink() }}" class="u-url">
  22. <time datetime="{{ $tweet->localtime()->format('c') }}" class="dt-published">
  23. {{ $tweet->localtime()->format('F j, g:ia') }}
  24. </time>
  25. </a>
  26. </div>