echo $count - acl_watched_count($album['album']); ?> </div> <?php } } ?> <div class="album_options pull-right inline-block"> <a href="#" class="button-rect green pull-right inline-block share-rss" data-reveal-id="popup_share_rss_<?php echo $album['album']; ?> ">®subscribe_rss®</a> <?php if (suffix_get($album['album']) == '-priv' || !acl_has_album_moderation($album['album'])) { ?> <a class="delete-album" title="®Delete_album®" href="#" data-reveal-id="popup_delete_album_<?php echo $index; ?> "></a> <?php } ?> </div> <!--span class="delete_album" onclick="delete_album_token('<?php echo $album['album']; ?> ');">x</span-->
/** * Checks whether an album is public based on its suffix * @param type $album_name * @return bool true if album is public */ function album_is_public($album_name) { return suffix_get($album_name) == '-pub'; }