<?php get_header() ?>

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

    <div id="content">

        <div id="iron-encabezado-container">
            <h2 class="iron-encabezado-seccion"><?php echo __('Hitos','buddypress'); ?></h2>
            <?php
            if (current_user_can('manage_options')) { ?>
                <ul class="iron-encabezado-ul">
                    <li class="iron-encabezado-li">
                    <a <?php if ($Scope == 'just-me') echo 'class="selected"'; ?> href="<?php dpa_achievements_permalink() ?>/<?php echo DPA_SLUG_CREATE ?>"><?php _e( 'Crear un hito', 'buddypress' ) ?></a>
                    &middot;&nbsp;<a class="selected" href="<?php dpa_achievements_permalink() ?>"><?php _e( 'Todos', 'buddypress' ) ?></a>
                    &middot;&nbsp;<a href="<?php echo bp_loggedin_user_domain() ?>achievements"><?php _e( 'Mis hitos', 'buddypress' ) ?></a>
                    </li>
                </ul>
                <?php }
            ?>
        </div>

        <div class="padder">
        
            <div id="content-top"></div>
                 
                 <div id="content-middle">

                    <form action="" method="post" id="achievements-directory-form" class="dir-form">
            
                        <?php do_action( 'dpa_before_directory_achievements_content' ) ?>
            
                        <div id="achievements-dir-search" class="dir-search">
                            <?php dpa_directory_achievements_search_form() ?>
                        </div><!-- #achievements-dir-search -->
                        
                        <br />
                        
                        <div id="achievements-dir-list" class="achievements dir-list">
                            <?php do_action( 'template_notices' ) ?>
                            <?php dpa_load_template( array( 'achievements/achievements-loop.php' ) ) ?>
                        </div><!-- #achievements-dir-list -->
            
                        <?php do_action( 'dpa_directory_achievements_content' ) ?>
            
                        <?php wp_nonce_field( 'directory_achievements', '_wpnonce-achievements-filter' ) ?>
            
                    </form><!-- #achievements-directory-form -->
            
                    <?php do_action( 'dpa_after_directory_achievements_content' ) ?>
        
                </div><!-- #content-middle -->
                    
            <div id="content-bottom"></div>
            
        </div><!-- .padder -->
    </div><!-- #content -->

    <?php get_sidebar( 'buddypress' ) ?>

<?php get_footer( 'buddypress' ) ?>