-
';
+
';
- $this->photo($image, static::LANDSCAPE_WIDTH, static::LANDSCAPE_HEIGHT, 'top');
+ $this->photo($image, 'landscape', static::LANDSCAPE_WIDTH, static::LANDSCAPE_HEIGHT, 'top');
echo '
-
';
foreach ($photos as $image)
- {
- echo '
-
';
-
- $this->photo($image, static::TILE_WIDTH, static::TILE_HEIGHT, 'top');
-
- echo '
-
';
- }
+ $this->photo($image, 'landscape', static::TILE_WIDTH, static::TILE_HEIGHT, 'top');
echo '
@@ -191,15 +168,7 @@ class PhotosIndex extends SubTemplate
';
foreach ($photos as $image)
- {
- echo '
-
';
-
- $this->photo($image, static::DUO_WIDTH, static::DUO_HEIGHT, true);
-
- echo '
-
';
- }
+ $this->photo($image, 'duo', static::DUO_WIDTH, static::DUO_HEIGHT, true);
echo '
';
@@ -207,16 +176,13 @@ class PhotosIndex extends SubTemplate
protected function single(array $photos)
{
+ echo '
+
';
+
$image = array_shift($photos);
+ $this->photo($image, 'single', static::SINGLE_WIDTH, static::SINGLE_HEIGHT, 'top');
echo '
-
-
';
-
- $this->photo($image, static::SINGLE_WIDTH, static::SINGLE_HEIGHT, 'top');
-
- echo '
-
';
}
@@ -226,15 +192,7 @@ class PhotosIndex extends SubTemplate
';
foreach ($photos as $image)
- {
- echo '
-
';
-
- $this->photo($image, static::TILE_WIDTH, static::TILE_HEIGHT, true);
-
- echo '
-
';
- }
+ $this->photo($image, 'landscape', static::TILE_WIDTH, static::TILE_HEIGHT, true);
echo '
';
@@ -246,15 +204,7 @@ class PhotosIndex extends SubTemplate
';
foreach ($photos as $image)
- {
- echo '
-
';
-
- $this->photo($image, static::PORTRAIT_WIDTH, static::PORTRAIT_HEIGHT, true);
-
- echo '
-
';
- }
+ $this->photo($image, 'portrait', static::PORTRAIT_WIDTH, static::PORTRAIT_HEIGHT, true);
echo '
';