Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function profile_subnav_tab_screen() {
- add_action( 'bp_template_title', 'profile_subnav_tab_screen_title' );
- add_action( 'bp_template_content', 'profile_subnav_tab_screen_content' );
- bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
- }
- function profile_subnav_tab_screen_title() {
- echo '<div class="hr-title hr-full hr-double"><abbr>Competencias</abbr></div><div class="gap-10"></div>';
- }
- function profile_subnav_tab_screen_content() {
- ?>
- <div class="kleo-tabs tabbable" data-interval="0">
- <ul class="nav nav-pills responsive-pills pills-style-square tabs-centered">
- <li class="dropdown pull-right tabdrop hide"><a class="dropdown-toggle" data-toggle="dropdown" href="#"> </a>
- <ul class="dropdown-menu"></ul>
- </li>
- <li class=""><a href="#myProfile" data-toggle="tab" onclick="return false;">Mi Perfil</a></li>
- <li class="active"><a href="#standardJob" data-toggle="tab" onclick="return false;">Puesto estándar</a></li>
- <li><a href="#standardPerson" data-toggle="tab" onclick="return false;">Persona estándar</a></li>
- </ul>
- <div class="tab-content">
- <div id="myProfile" class="tab-pane">
- <div class="kleo-gap" style="height:50px;line-height:50px;"></div>
- <div class="hr-title hr-long hr-center" style="">
- <abbr>Some info about Branding</abbr>
- </div>
- <div class="kleo-gap" style="height:20px;line-height:20px;"></div>
- </div>
- <div id="standardJob" class="tab-pane active">
- <div class="kleo-gap" style="height:50px;line-height:50px;"></div>
- <div class="hr-title hr-long hr-center" style="">
- <abbr>Standard Job</abbr>
- </div>
- <div class="kleo-gap" style="height:20px;line-height:20px;"></div>
- <div class="wpb_single_image wpb_content_element animated animate-when-visible bottom-to-top element-center text-center start-animation">
- <div class="wpb_wrapper">
- <img width="1500" height="1000" src="http://seventhqueen.com/themes/kleo/wp-content/uploads/2014/02/Responsive-Screen-Mockup-Pack.png" class="attachment-full" alt="Responsive-Screen-Mockup-Pack">
- </div>
- </div>
- </div>
- <div id="standardPerson" class="tab-pane">
- <div class="kleo-gap" style="height:50px;line-height:50px;"></div>
- <div class="hr-title hr-long hr-center" style="">
- <abbr>standardPerson</abbr>
- </div>
- <div class="kleo-gap" style="height:20px;line-height:20px;"></div>
- </div> </div>
- </div>
- <?php
- }
- function my_setup_nav() {
- bp_core_new_nav_item( array(
- 'name' => __( 'Puestos', 'Puesto2' ),
- 'slug' => 'puestos',
- 'position' => 40,
- ) );
- }
- add_action( 'bp_setup_nav', 'my_setup_nav' );
- function bbg_change_profile_tab() {
- global $bp;
- $bp->bp_nav['activity']['position'] = 10;
- $bp->bp_nav['profile']['position'] = 20;
- $bp->bp_nav['friends']['position'] = 30;
- $bp->bp_nav['notifications']['position'] = 50;
- $bp->bp_nav['messages']['position'] = 60;
- $bp->bp_nav['groups']['position'] = 70;
- $bp->bp_nav['settings']['position'] = 80;
- $bp->bp_nav['activity']['default_subnav_slug'] = 'competencias';
- unset($bp->bp_nav['forums']);
- unset($bp->bp_nav['media']);
- $bp->bp_nav['activity']['name'] = Actividad;
- $bp->bp_nav['profile']['name'] = Perfil;
- $bp->bp_nav['friends']['name'] = Contactos;
- $bp->bp_nav['notifications']['name'] = Notificaciones;
- $bp->bp_nav['messages']['name'] = Mensajes;
- $bp->bp_nav['groups']['name'] = Grupos;
- $bp->bp_nav['settings']['name'] = Ajustes;
- }
- add_action('bp_setup_nav', 'bbg_change_profile_tab', 999 );
- function profile_subnav_tab() {
- global $bp;
- bp_core_new_subnav_item( array(
- 'name' => __( 'Competencias' ),
- 'slug' => 'competencias',
- 'parent_url' => trailingslashit( bp_loggedin_user_domain() . 'profile' ),
- 'parent_slug' => 'profile',
- 'screen_function' => 'profile_subnav_tab_screen',
- 'position' => 0
- ));
- }
- add_action( 'bp_setup_nav', 'profile_subnav_tab', 100 );
- function change_profile_subnav()
- {
- global $bp;
- $bp->bp_options_nav['profile']['change-avatar']['name'] = 'Foto';
- $bp->bp_options_nav['profile']['public']['name'] = 'Datos';
- $bp->bp_options_nav['profile']['edit']['name'] = 'Editar';
- }
- add_action( 'wp_head', 'change_profile_subnav',9 );
- function change_activity_subnav()
- {
- global $bp;
- $bp->bp_options_nav['activity']['groups']['name'] = 'Grupos';
- $bp->bp_options_nav['activity']['mentions']['name'] = 'Menciones';
- $bp->bp_options_nav['activity']['favorites']['name'] = 'Favoritos';
- $bp->bp_options_nav['activity']['friends']['name'] = 'Contactos';
- $bp->bp_options_nav['activity']['friends']['position'] = 10;
- $bp->bp_options_nav['activity']['groups']['position'] = 20;
- $bp->bp_options_nav['activity']['mentions']['position'] = 30;
- $bp->bp_options_nav['activity']['favorites']['position'] = 40;
- $bp->bp_options_nav['activity']['just-me']['position'] = 50;
- }
- add_action( 'wp_head', 'change_activity_subnav',9 );
- function profile_subnav_default() {
- $args = array(
- 'parent_slug' => 'profile',
- 'screen_function' => 'profile_subnav_tab_screen',
- 'subnav_slug' => 'competencias'
- );
- bp_core_new_nav_default($args);
- }
- add_action('bp_setup_nav', 'profile_subnav_default', 5);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment