Esempio n. 1
0
    ?>

	    <div class="bpa-content-wrap" id="default">

		<table class="bpa-content-sitewide">
		    <tr>

		    <?php 
    // STEP 3: Iterate through the items the query has found, printing out each one.
    while (bp_album_has_pictures()) {
        bp_album_the_picture();
        ?>

			<td>
				<a href="<?php 
        bp_album_picture_url();
        ?>
" class="media-image"><img src='<?php 
        bp_album_picture_thumb_url();
        ?>
' /></a>
			</td>
		    <?php 
        $row_count++;
        if ($row_count == $images_per_row) {
            echo '</tr><tr>';
            $row_count = 0;
        }
    }
    // STEP 4: Close the CSS block.
    ?>
function bp_album_screen_images()
{
    ?>
	<?php 
    if (bp_album_has_pictures()) {
        ?>

		<div class="picture-pagination">
			<?php 
        bp_album_picture_pagination();
        ?>
		</div>

		<div class="picture-gallery">
				<?php 
        while (bp_album_has_pictures()) {
            bp_album_the_picture();
            ?>

		<div class="picture-thumb-box">

            <a href="<?php 
            bp_album_picture_url();
            ?>
" class="picture-thumb"><img src='<?php 
            bp_album_picture_thumb_url();
            ?>
' /></a>
            <a href="<?php 
            bp_album_picture_url();
            ?>
"  class="picture-title"><?php 
            bp_album_picture_title_truncate();
            ?>
</a>
		</div>

				<?php 
        }
        ?>
		</div>
			<?php 
    } else {
        ?>

		<div id="message" class="info">
			<p><?php 
        echo bp_word_or_name(__("You don't have any photos yet. Why not upload some!", 'bp-album'), __("Either %s hasn't uploaded any pictures yet or they have restricted access", 'bp-album'), false, false);
        ?>
</p>
		</div>

	<?php 
    }
    ?>


<?php 
}