1. ncrocfer
  2. BP-Portfolio

Source

BP-Portfolio / templates / default / personal.php

<?php get_header() ?>

	<div id="content">
		<div class="padder">

			<div id="item-header">
				<?php locate_template( array( 'members/single/member-header.php' ), true ) ?>
			</div>

			<div id="item-nav">
				<div class="item-list-tabs no-ajax" id="object-nav">
					<ul>
						<?php bp_get_displayed_user_nav() ?>
					</ul>
				</div>
			</div>

			<div id="item-body">

				<div class="item-list-tabs no-ajax" id="subnav">
					<ul>
						<?php bp_get_options_nav() ?>
					</ul>
				</div>
                            
                                <div class="item-list-projects">
                                
                                    <h4><?php _e( 'My projects', 'bp-portfolio' ) ?></h4>
                                    
                                    <?php while ( bp_portfolio_has_items(array('author_id' => bp_displayed_user_id(), 'posts_per_page' => -1)) ) : bp_portfolio_the_item(); ?>

                                        <div class="item-project">
                                            <div class="item-project-pictures">
                                                <img src="<?php bp_portfolio_item_thumbnail( 'portfolio-thumb' ) ?>" width="250px" height="170px" />
                                            </div>
                                            <div class="item-project-content">
                                                <h3>
                                                    <?php bp_portfolio_item_title() ?>
                                                    <?php if(bp_is_my_profile()) :?>
                                                    <div class="item-project-content-meta">
                                                        
                                                        <span class="edit"><a href="<?php echo bp_core_get_user_domain(bp_loggedin_user_id()) . bp_get_portfolio_slug() . '/edit/' .  get_the_ID(); ?>">Edit</a></span>
                                                        |
                                                        <span class="delete"><a href="<?php echo wp_nonce_url(bp_core_get_user_domain(bp_loggedin_user_id()) . bp_get_portfolio_slug() . '/delete/' .  get_the_ID(), 'delete_project'); ?>" onclick="javascript:return confirm('<?php _e('Are you sure ?', 'bp-portfolio'); ?>')"><?php _e('Delete', 'bp-portfolio'); ?></a</span>
                                                    </div>
                                                    <?php endif; ?>
                                                </h3>
                                                <span><a href="<?php bp_portfolio_item_url() ?>"><?php bp_portfolio_item_url() ?></a></span>
                                                <p><?php bp_portfolio_item_description() ?></p>
                                            </div>
                                            <br />
                                        </div>
                                    
                                        <div class="item-project-separator"></div>
                                    

                                    <?php endwhile; ?>
                                    
                                </div>
                            
                            
                        </div><!-- #item-body -->

		</div><!-- .padder -->
	</div><!-- #content -->

	<?php locate_template( array( 'sidebar.php' ), true ) ?>

<?php get_footer() ?>