From 73403645808a81425381f43c25e0ea2c92705312 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sun, 25 Jul 2010 02:01:36 +0000 Subject: first go at brining tidypics up to code standards --- views/default/tidypics/albums.php | 74 ++++++++++++++++++++------------------- 1 file changed, 38 insertions(+), 36 deletions(-) (limited to 'views/default/tidypics/albums.php') diff --git a/views/default/tidypics/albums.php b/views/default/tidypics/albums.php index 42ac15afe..a4b2ee906 100644 --- a/views/default/tidypics/albums.php +++ b/views/default/tidypics/albums.php @@ -1,51 +1,53 @@ '; +echo '
'; - if ($owner_albums) { - foreach($owner_albums as $album) { +if ($owner_albums) { + foreach ($owner_albums as $album) { - if($album->cover) - $album_cover = '' . $album->title . ''; - else - $album_cover = '' . $album->title . ''; + if ($album->cover) { + $album_cover = '' . $album->title . ''; + } else { + $album_cover = '' . $album->title . ''; + } ?> -
- -
time_created);?>
- + +
time_created);?>
+ getURL()}\">" . sprintf(elgg_echo("comments")) . " (" . $numcomments . ")
"; + } ?> - -
-username) || empty($owner->username)) { - echo '

' . elgg_echo('album:all') . '

'; - } else { - echo '

' . elgg_echo('album:more') . '

'; - } - + +
+ username) || empty($owner->username)) { + echo '

' . elgg_echo('album:all') . '

'; + } else { + echo '

' . elgg_echo('album:more') . '

'; } - if (can_write_to_container(0, $owner->guid)) { - echo '

username . '>' . elgg_echo("album:create") . '

'; - } +} + +if (can_write_to_container(0, $owner->guid)) { + echo '

username . '>' . elgg_echo("album:create") . '

'; +} - //close album_widget_container div - echo ""; -?> \ No newline at end of file +//close album_widget_container div +echo ""; -- cgit v1.2.3