Created
June 14, 2014 04:29
-
-
Save davidmars/20276894aaa609b2d2ea to your computer and use it in GitHub Desktop.
Affiche l'auteur d'une page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* A post page | |
*/ | |
/* @var $this View */ | |
/* @var $vv VV_post */ | |
/** @noinspection PhpUndefinedVariableInspection */ | |
$vv = $_vars; | |
?> | |
<?if($writer=$vv->getWriter()):?> | |
<div class="container"> | |
<div> | |
<div> | |
<?=Emenco::words("Cet article a été écrit par")?> | |
</div> | |
<div data-nav-ajax-link> | |
<div class="row"> | |
<div class="col-xs-3 col-sm-1 col-sm-offset-4"> | |
<img alt="<?=$writer->humanTitle()?>" | |
class="img-responsive" | |
src="/<?=$writer->getThumbnailDefaultRobert()->sizedByWidth(300,300)->jpg()?>"> | |
</div> | |
<div class="col-xs-9 col-sm-3"> | |
<?=$writer->getAdminEditBtn($this);//to edit it in the admin?> | |
<h2><?=$writer->getLink()->html()?></h2> | |
<p><?=$writer->profession?></p> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
<?endif?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment