<?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: Crear','buddypress'); ?></h2>
            <?php
            if (current_user_can('manage_options')) { ?>
                <ul class="iron-encabezado-ul">
                    <li class="iron-encabezado-li">
                    <a class="selected" href="<?php dpa_achievements_permalink() ?>/<?php echo DPA_SLUG_CREATE ?>"><?php _e( 'Crear un hito', 'buddypress' ) ?></a>
                    &middot;&nbsp;<a 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 class="achievement-edit-form standard-form" method="post" action="<?php dpa_achievements_permalink() ?>/<?php echo DPA_SLUG_CREATE ?>">
            
                        <?php do_action( 'dpa_before_create_achievement' ) ?>
            
                        <div id="item-nav">
                            <div class="item-list-tabs no-ajax" id="achievement-single">
                                <ul>
                                    <?php if ( !dpa_is_create_achievement_page() ) : ?>
                                        <?php bp_get_options_nav() ?>
                                    <?php endif; ?>
            
                                    <?php do_action( 'achievement_options_nav' ) ?>
                                </ul>
                            </div>
                        </div><!-- #item-nav -->
            
                        <div class="item-body" id="achievements-create-body">
                            <?php do_action( 'dpa_before_create_achievement_body' ) ?>
            
                            <?php if ( bp_is_active( 'groups' ) || is_multisite() && bp_is_active( 'blogs' ) ) : ?>
                                <noscript><p><?php _e( "Some of the Action options below may not be relevant to the type or event of the Achievement.", 'dpa' ) ?></p></noscript>
                            <?php endif; ?>
                            <p><?php _e( "After you create the Achievement, you'll be able to choose a picture for it.", 'buddypress' ) ?></p>
            
                            <?php do_action( 'template_notices' ) ?>
            
                            <?php dpa_load_template( array( 'achievements/_addedit.php' ) ) ?>
            
                            <?php wp_nonce_field( 'achievement-create' ) ?>
            
                            <?php do_action( 'dpa_after_create_achievement_body' ); ?>
            
                        </div><!-- .item-body -->
            
                        <?php do_action( 'dpa_after_create_achievement' ) ?>
            
                    </form>

                </div><!-- content-middle -->
            
            <div id="content-bottom"></div>
        </div><!-- .padder -->
    </div><!-- #content -->

    <?php get_sidebar( 'buddypress' ) ?>

<?php get_footer( 'buddypress' ) ?>