From cd35e6c16673fc4ae82f9ebbad4f4d1fd40c6d2d Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Sat, 17 Jun 2017 14:34:33 +0100 Subject: [PATCH] Add syndication links for swarm and instagram --- database/seeds/NotesTableSeeder.php | 7 +++++++ resources/views/templates/note.blade.php | 13 ++++++++++++- resources/views/templates/social-links.blade.php | 10 ++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/database/seeds/NotesTableSeeder.php b/database/seeds/NotesTableSeeder.php index c6688ecb..334ba2df 100644 --- a/database/seeds/NotesTableSeeder.php +++ b/database/seeds/NotesTableSeeder.php @@ -40,5 +40,12 @@ class NotesTableSeeder extends Seeder 'note' => 'Note from somehwere', 'location' => '53.499,-2.379' ]); + $noteSyndicated = App\Note::create([ + 'note' => 'This note has all the syndication targets', + 'tweet_id' => '123456', + 'facebook_url' => 'https://www.facebook.com/post/12345789', + 'swarm_url' => 'https://www.swarmapp.com/checking/123456789', + 'instagram_url' => 'https://www.instagra.com/p/aWsEd123Jh', + ]); } } diff --git a/resources/views/templates/note.blade.php b/resources/views/templates/note.blade.php index 9789dd3d..958d6103 100644 --- a/resources/views/templates/note.blade.php +++ b/resources/views/templates/note.blade.php @@ -23,7 +23,18 @@ @if($note->replies > 0) @include('templates.replies-icon'): {{ $note->replies }}@endif @if ($note->placeLink) diff --git a/resources/views/templates/social-links.blade.php b/resources/views/templates/social-links.blade.php index 2717e440..f6017c83 100644 --- a/resources/views/templates/social-links.blade.php +++ b/resources/views/templates/social-links.blade.php @@ -17,3 +17,13 @@ /> @endif +@if($swarm_url !== null) + + + +@endif +@if($instagram_url !== null) + + + +@endif