@layout('visitor.front') @section('headerfiles') <link href="/css/visitor.style.css" media="all" type="text/css" rel="stylesheet"> @endsection @section('title') Home @endsection @section('content') <div id="wrapper" > <?php echo render('visitor.navigation', array('outercategory' => null, 'innercategory' => null)); VisitorLogger::logVisitor(0, 'H'); ?> <div id="leftcontent" style="float: left; width: 680px;"> @if(isset($message)) <h3 id="message"> {{ $message }} </h3> @endif @foreach($articles as $article) <h2 class="{{$article->headingClass}}"><a href="{{ $article->getArticleUrl() }} ">{{ $article->title }}</a></h2> @if($article->onlytitle!=1) <div class="articleinfo"> <div style="float:left"> <a class="author-link" href="/author/{{ User::find($article->author_id)->username }}">{{ User::find($article->author_id)->displayname }}</a> <a class="published-time" href="{{ $article->getArticleUrl() }}">{{$article->postedDate()}}</a>
@section('headerfiles') <link href="/css/visitor.style.css" media="all" type="text/css" rel="stylesheet" xmlns="http://www.w3.org/1999/html"> @endsection @section('title') {{$article->title}} @endsection @section('content') <div id="wrapper"> <?php echo render('visitor.navigation', array('outercategory' => $article->getParentCategory(), 'innercategory' => $article->getChildCategory())); VisitorLogger::logVisitor($article->id, 'A'); ?> <div id="leftcontent" style="float: left; width: 680px;"> <h1> {{ $article->title }} </h1> <div class="articleinfo"> <div style="float:left;margin-top: 5px;"> <a class="author-link" href="/author/{{ User::find($article->author_id)->username }}">{{ User::find($article->author_id)->displayname }}</a> <a class="published-time" href="{{ $article->getArticleUrl() }}">{{$article->postedDate()}}</a> </div> <div style="float:right;margin-bottom:5px "> <div class="cat-list"> <a title="View all posts in {{ $article->categoryName}}" href="{{$article->Category->getCategoryUrl()}}">{{ $article->categoryName }}</a> </div> <a class="comments-link">{{ $article->Comments()->count() }}</a> </div> @if($article->articletype==1)
@layout('visitor.front') @section('headerfiles') <link href="/css/visitor.style.css" media="all" type="text/css" rel="stylesheet"> @endsection @section('title') {{$parentCategoryDetails->cname}} : {{!is_null($childCategoryDetails)?$childCategoryDetails->cname:''}} @endsection @section('content') <div id="wrapper"> <?php echo render('visitor.navigation', array('outercategory' => $parentCategoryDetails, 'innercategory' => $childCategoryDetails)); VisitorLogger::logVisitor($childCategoryDetails == null ? $parentCategoryDetails->id : $childCategoryDetails->id, 'C'); ?> <div id="leftcontent" style="float: left; width: 680px;"> <h3 id="message"> @if($childCategoryDetails == null) Showing all post of category named {{$parentCategoryDetails->cname}} <BR> @else Showing all post of category named {{$parentCategoryDetails->cname}} -> {{$childCategoryDetails->cname}} <BR> @endif </h3> @foreach($allarticles as $article) <h2 class="{{$article->headingClass}}"><a href="{{ $article->getArticleUrl() }} ">{{ $article->title }}</a></h2> @if($article->onlytitle!=1) <div class="articleinfo"> <div style="float:left"> <a class="author-link" href="/author/{{ User::find($article->author_id)->username }}">{{ User::find($article->author_id)->displayname }}</a>
@layout('visitor.front') @section('title') Home @endsection @section('content') <?php $tag = Tag::where('turl', '=', $tagurl)->first(); $articles = $tag->Articles; $articles = cmsHelper::bakeArticleForViewers($articles); ?> <?php VisitorLogger::logVisitor($tag->id, 'T'); ?> <?php echo View::make('visitor.index', array("articles" => $articles, 'dbquery' => null, 'message' => "Showing all posts tagged with " . $tag->tname)); ?> @endsection