Skip to content

Instantly share code, notes, and snippets.

@davidmars
Created June 14, 2014 04:29
Show Gist options
  • Save davidmars/20276894aaa609b2d2ea to your computer and use it in GitHub Desktop.
Save davidmars/20276894aaa609b2d2ea to your computer and use it in GitHub Desktop.
Affiche l'auteur d'une page
<?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