Ejemplo n.º 1
0
<div class="item-list-tabs no-ajax" id="subnav">
	<ul>
	<?php //bp_get_options_nav() ?>
	<?php bp_user_gallery_admin_tabs();?>
	</ul>
	<?php $gallery=bp_get_single_gallery();?>
</div>
<div class="gnav"><?php bp_gallery_bcomb();?>	</div>
<?php //do_action( 'bp_before_gallery_content' ) ?>
	<div id="galleries">
	
		<?php if(bp_has_galleries()):?>
		
			<?php while(bp_galleries()):bp_the_gallery() ;?>
			<?php if(user_can_view_gallery(bp_get_gallery_id())):?>
				<?php if ( bp_is_home()): ?>
			
					<div class="gallery-actions"><a href="<?php bp_gallery_edit_link();?>"> <?php _e("Edit This gallery","bp-gallery");?></a>|<?php bp_gallery_add_media_button($gallery);//depending on whether upload/add from web showuld be here  ?><br /></div>
				<?php endif;?>	
				<?php 	locate_template( array( '/gallery/single/media/'.$gallery->gallery_type.'-loop.php','/gallery/single/media/media-loop.php' ), true );?>
					<br class="clear" />

                                  <?php
                                   //include the form for commenting on the gallery ?>
                                  <div class="activity  single-media">
			<?php // include( locate_template( array( 'gallery/single/activity.php' ), false ) )/*un comment this line if you want all the activities of a gallery listed here*/  ?>
			</div>
                                 
			<?php else:?>
			
				<p><?php printf(__("This is a %s Gallery and You don't have adequate permissions to view them.","bp-gallery"),bp_get_gallery_status());?></p>
Ejemplo n.º 2
0
							<div class='bp-gallery gallery-type-<?php 
        bp_gallery_type();
        ?>
' id="gallery_<?php 
        bp_gallery_id();
        ?>
">
								<div class='gallery-content'>
								<h3 class='gallery-title'><a href="<?php 
        bp_gallery_permalink();
        ?>
"><?php 
        bp_gallery_title();
        ?>
[<?php 
        echo gallery_get_media_count(bp_get_gallery_id());
        ?>
]</a></h3>
								<?php 
        // bp_gallery_description();
        ?>
								<div class='gallery-cover'><a href="<?php 
        bp_gallery_permalink();
        ?>
"><?php 
        bp_gallery_cover_image("mini");
        ?>
</a></div>

                                                                <br class="clear" />
								<?php 
Ejemplo n.º 3
0
global $bp;
if (bp_has_galleries("owner_type=jes_events&owner_id=" . $bp->jes_events->current_event->id)) {
    ?>
			
			<?php 
    while (bp_galleries()) {
        bp_the_gallery();
        global $bp;
        ?>
			
				<?php 
        if (user_can_view_gallery(bp_get_gallery_id())) {
            ?>
				<div class="gallery-actions">
				<?php 
            if (user_can_delete_gallery($bp->loggedin_user->id, bp_get_gallery_id())) {
                ?>
					<a href="<?php 
                bp_gallery_edit_link();
                ?>
"><?php 
                _e("Edit This gallery", "bp-gallery");
                ?>
</a>|
				<?php 
            }
            ?>
				<?php 
            if (bp_event_is_member($bp->jes_events->current_event)) {
                ?>
				<?php 
Ejemplo n.º 4
0
</div>
<?php endif;?> 
<div id="gallery-header">
	<?php single_gallery_admin_tabs();?>
</div>
<div id="gallery-organize">
<div id="message"></div>
<?php
///we will always have this for some ga;llery

    //find all media for this gallery
//all the code for single gallery editing goes here
if(bp_is_gallery_edit_details()){?>
		<?php do_action( 'bp_before_gallery_edit_content' ) ?>
		<form action="" method="post" id="gallery_edit_info">
			<div class='edit-gallery' id="gallery_<?php echo bp_get_gallery_id($gallery);?>">
                            <div class='gallery-cover'><?php echo bp_get_gallery_cover_image("mid",$gallery);?>
                            </div>
                            <div class='edit-info'>
                                <input type="text" id="gallery_title" name="gallery_title" value="<?php echo esc_attr(bp_get_gallery_title($gallery));?>">
				<br />
				<textarea name="gallery_description" id="gallery_description"><?php echo bp_get_gallery_description($gallery);?></textarea>
				<br />
				<?php wp_nonce_field( 'gallery_edit_save','_wpnonce-edit-save-gallery' );?>
				<?php gallery_valid_gallery_status_dd($gallery->status);?>
                            </div><!-- end of edit info -->
                         </div><!-- end of edit gallery -->
								
			<br class="clear" />
			<input type="submit" name="save" value="<?php _e('Save','bp-gallery');?>" />
		</form><!-- end of edit form -->
Ejemplo n.º 5
0
	</div>

	<?php do_action( 'bp_before_directory_galleries_list' ) ?>

	<ul id="galleries-list" class="item-list">
	<?php while ( bp_galleries() ) : bp_the_gallery(); ?>

		<li id="item_<?php bp_gallery_id();?>" class='list-item gallery-type-<?php bp_gallery_type();?>'>
			<div class="item-avatar">
				<a href="<?php bp_gallery_permalink();?>"><?php bp_gallery_cover_image("mini");?></a>
			</div>

			<div class="item">
				<div class="item-title" >
					<a href="<?php bp_gallery_permalink();?>"><?php bp_gallery_title();?>[<?php echo gallery_get_media_count(bp_get_gallery_id());?>]</a>
				</div>
				<div class="item-meta"><span class="activity"><?php bp_gallery_last_updated() ?></span></div>
                                <div class="uinfo"><?php printf(__("Created By %s","bp-gallery"),bp_core_get_userlink(bp_get_gallery_creator_id())) ;?></div>
				<?php do_action( 'bp_directory_galleries_item' ) ?>

			</div>

			<div class="action">
                            <div class='generic-button'><a href="<?php bp_gallery_permalink();?>"><?php _e("View","bp-gallery");?></a></div>

				<?php do_action( 'bp_directory_galleries_actions' ) ?>
			</div>

			<div class="clear"></div>
		</li>
Ejemplo n.º 6
0
?>
</div>
<div id="gallery-organize">
<div id="message"></div>
<?php 
///we will always have this for some ga;llery
//find all media for this gallery
//all the code for single gallery editing goes here
if (bp_is_gallery_edit_details()) {
    ?>
		<?php 
    do_action('bp_before_gallery_edit_content');
    ?>
		<form action="" method="post" id="gallery_edit_info">
			<div class='edit-gallery' id="gallery_<?php 
    echo bp_get_gallery_id($gallery);
    ?>
">
                            <div class='gallery-cover'><?php 
    echo bp_get_gallery_cover_image("mid", $gallery);
    ?>
                            </div>
                            <div class='edit-info'>
                                <input type="text" id="gallery_title" name="gallery_title" value="<?php 
    echo esc_attr(bp_get_gallery_title($gallery));
    ?>
">
				<br />
				<textarea name="gallery_description" id="gallery_description"><?php 
    echo bp_get_gallery_description($gallery);
    ?>