Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
  • in reply to: Editing "Base" and "Looking for" #26873
     sacden
    Participant

    If i have such code, everything works

    COPY CODE
    <code>add_action('after_setup_theme','kleo_my_custom_tabs');
    function kleo_my_custom_tabs() 
    {
    	global $bp_tabs;
    	$bp_tabs = array();
    	$bp_tabs['looking-for'] = array(
    			'type' => 'cite',
    			'name' =>  __('V poiske', 'kleo_framework'),
    			'group' => 'Looking for',
    			'class' => 'citetab'
    	);
    
    	$bp_tabs['base'] = array(
    			'type' => 'regular',
    			'name' => __('Glavnoe', 'kleo_framework'),
    			'group' => 'Base',
    			'class' => 'regulartab'
    	);
    
    	/* rtMedia tab - only if plugin installed */
    	if (class_exists('RTMedia')) 
    	{
    		$bp_tabs['rtmedia'] = array(
    				'type' => 'rt_media',
    				'name' => __('My work', 'kleo_framework'),
    				'class' => 'mySlider'
    		);
    	}
    
    	/* Bp-Album tab - only if plugin installed */
    	elseif (function_exists('bpa_init')) {
    		$bp_tabs['bp-album'] = array(
    				'type' => 'bp_album',
    				'name' => __('My photos', 'kleo_framework'),
    				'class' => 'mySlider'
    		);
    	}
    	
    	$bp_tabs['social'] = array(
    			'type' => 'regular',
    			'name' => __('Social', 'kleo_framework'),
    			'class' => 'regulartab'
    	);
    }</code>
Viewing 1 post (of 1 total)

Log in with your credentials

Forgot your details?