photo = $photo;
}
public function html_main()
{
$this->photoNav();
$this->photo();
echo '
';
$this->userActions();
echo '
', $this->photo->getTitle(), '
';
$this->printTags('Album', 'Album', false);
$this->printTags('Tagged People', 'Person', true);
echo '
';
$this->photoMeta();
echo '
';
}
protected function photo()
{
echo '
';
if ($this->photo->isPortrait())
{
echo '
';
}
else
{
$className = $this->photo->isPanorama() ? 'panorama-figure' : 'landscape-figure';
echo '
';
}
echo '
';
}
public function setActiveFilter($filter)
{
$this->activeFilter = $filter;
}
public function setTag(Tag $tag)
{
$this->tag = $tag;
}
private function photoNav()
{
if ($previousUrl = $this->photo->getUrlForPreviousInSet($this->tag, $this->activeFilter))
echo '