photo = $photo;
}
public function html_main()
{
$this->photoNav();
$this->photo();
echo '
';
if ($this->photo->isPortrait())
{
echo '
';
}
else
{
$className = $this->photo->isPanorama() ? 'panorama-figure' : 'landscape-figure';
echo '
';
}
echo '
';
}
public function setTag(Tag $tag)
{
$this->tag = $tag;
}
private function photoNav()
{
if ($previousUrl = $this->photo->getUrlForPreviousInSet($this->tag))
echo '