Ejemplo n.º 1
0
</a>

								<?php 
            $display = '';
            if (rtmedia_offset() + rtmedia_per_page_media() < rtmedia_count()) {
                $display = 'display:block;';
            } else {
                $display = 'display:none;';
            }
            ?>
								<a id="rtMedia-galary-next" style="<?php 
            echo esc_attr($display);
            ?>
"
								   href="<?php 
            echo esc_url(rtmedia_pagination_next_link());
            ?>
"><?php 
            esc_html_e('Next', 'buddypress-media');
            ?>
</a>
							</form>
						<?php 
        } else {
            ?>
							<p><?php 
            esc_html_e('The album is empty.', 'buddypress-media');
            ?>
</p>
						<?php 
        }
Ejemplo n.º 2
0
    $general_options = $rtmedia->options;
    if (isset($rtmedia->options['general_display_media']) && $general_options['general_display_media'] == 'pagination') {
        echo rtmedia_media_pagination();
    } else {
        $display = '';
        if (rtmedia_offset() + rtmedia_per_page_media() < rtmedia_count()) {
            $display = 'style="display:block;"';
        } else {
            $display = 'style="display:none;"';
        }
        ?>
				<a id="rtMedia-galary-next" <?php 
        echo $display;
        ?>
 href="<?php 
        echo rtmedia_pagination_next_link();
        ?>
"><?php 
        echo __('Load More', 'rtmedia');
        ?>
</a>
				<?php 
    }
    ?>
		</div><!--/.rtmedia_next_prev-->
	<?php 
} else {
    ?>
		<p class="rtmedia-no-media-found">
			<?php 
    $message = __("Sorry !! There's no media found for the request !!", "rtmedia");