Browse Source

fix links, add mf2

master
Aaron Parecki 6 years ago
parent
commit
45d56cd727
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 11 additions and 7 deletions
  1. +11
    -7
      resources/views/components/tweet.blade.php

+ 11
- 7
resources/views/components/tweet.blade.php View File

@ -1,23 +1,27 @@
<div class="tweet">
<div class="tweet h-entry">
<div class="profile">
<img src="{{ $tweet->player->photo }}" style="border-color: {{ '#'.$tweet->team->color }}">
<span><a href="'https://twitter.com/'+tweet.player_username">{{ '@'.$tweet->player->twitter }}</a></span>
<div class="profile u-author h-card">
<img src="{{ $tweet->player->photo }}" style="border-color: {{ '#'.$tweet->team->color }}" class="u-photo">
<span><a href="https://twitter.com/{{ $tweet->player->twitter }}" class="u-url p-name">{{ '@'.$tweet->player->twitter }}</a></span>
</div>
<div class="text">{!! Twitter::linkify($tweet->text) !!}</div>
<div class="text e-content p-name">{!! Twitter::linkify($tweet->text) !!}</div>
@if($tweet->photos())
<div class="multi-photo photos-{{ count($tweet->photos()) }}">
@foreach($tweet->photos() as $photo)
<a class="photo" style="background-image:url({{ $photo }})" href="{{ $tweet->twitter_permalink() }}">
<img src="{{ $photo }}">
<img src="{{ $photo }}" class="u-photo">
</a>
@endforeach
</div>
<div class="multi-photo-clear"></div>
@endif
<a href="{{ $tweet->twitter_permalink() }}">{{ $tweet->localtime()->format('F j, g:ia') }}</a>
<a href="{{ $tweet->twitter_permalink() }}" class="u-url">
<time datetime="{{ $tweet->localtime()->format('c') }}" class="dt-published">
{{ $tweet->localtime()->format('F j, g:ia') }}
</time>
</a>
</div>

Loading…
Cancel
Save