Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
  • in reply to: Translation #152822
     alla_alla
    Participant
    COPY CODE
    class BpMembersTab
    {
        /* tabs instance */
        public $tabs_instance;
        public $args;
        
        public function __construct($args) 
        {
            $this->tabs_instance = BpMembersTabs::get_instance();
            
            $this->args = $args;
        }
        
        public function title()
        {
            $active = '';
            if($this->tabs_instance->active_tab === FALSE || $this->tabs_instance->active_tab == $this->args["name"] ) 
            { 
                $active = 'active';  
                $this->tabs_instance->active_tab = esc_attr(str_replace("%", "",sanitize_title_with_dashes($this->args["name"])));
            }
            
            return '<dd class="'.$active.'"><a href="#'.esc_attr(str_replace("%", "",sanitize_title_with_dashes($this->args["name"]))).'">'.$this->args["name"].'</a></dd>';
        }

    maybe there is something to change?

Viewing 1 post (of 1 total)

Log in with your credentials

Forgot your details?