Skip to content

Commit

Permalink
show photo in article
Browse files Browse the repository at this point in the history
  • Loading branch information
stojankukrika committed Sep 2, 2015
1 parent 2b3d219 commit c9577f5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
18 changes: 11 additions & 7 deletions resources/views/article/view.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@
@section('title') {!! $article->title !!} :: @parent @stop

@section('meta_author')
<meta name="author" content="{!! $article->author->username !!}" />
<meta name="author" content="{!! $article->author->username !!}"/>
@stop
{{-- Content --}}
@section('content')
<h3>{{ $article->title }}</h3>
<p>{!! $article->introduction !!}</p>
<p>{!! $article->content !!}</p>
<div>
<span class="badge badge-info">Posted {!! $article->created_at !!} </span>
</div>
<h3>{{ $article->title }}</h3>
<p>{!! $article->introduction !!}</p>
@if($article->picture!="")
<img alt="{{$article->picture}}"
src="{!! URL::to('appfiles/article/'.$article->id.'/'.$article->picture) !!}"/>
@endif
<p>{!! $article->content !!}</p>
<div>
<span class="badge badge-info">Posted {!! $article->created_at !!} </span>
</div>
@stop
10 changes: 5 additions & 5 deletions resources/views/photo/view_album.blade.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
@extends('app') @section('title') {{{
$photo_album->name }}} :: @parent @stop @section('content')
<h3>{{{ $photo_album->name }}}</h3>
@extends('app') @section('title') {!!
$photo_album->name !!} :: @parent @stop @section('content')
<h3>{!! $photo_album->name !!}</h3>

<div id="mygallery">
@foreach($photos as $item)
<a
href="{{{'../../appfiles/photoalbum/'.$photo_album->folder_id.'/'.$item->filename }}}"
href="{!!'../../appfiles/photoalbum/'.$photo_album->folder_id.'/'.$item->filename !!}"
data-lightbox="roadtrip"> <img alt="{{$item->name}}"
src="{{{'../../appfiles/photoalbum/'.$photo_album->folder_id.'/thumbs/'.$item->filename }}}" />
src="{!!'../../appfiles/photoalbum/'.$photo_album->folder_id.'/thumbs/'.$item->filename !!}" />
</a>
@endforeach
</div>
Expand Down

0 comments on commit c9577f5

Please sign in to comment.