function add_button($button, $author_lk) { global $user_ID; switch ($this->public) { case 0: if (!$user_ID || $user_ID != $author_lk) { return $button; } break; case -1: if (!$user_ID || $user_ID == $author_lk) { return $button; } break; case -2: if ($user_ID && $user_ID == $author_lk) { return $button; } break; } $args = array('id_tab' => $this->id, 'name' => $this->name, 'class' => $this->class); if ($this->output && $button == '') { $button = false; } if (isset($this->key)) { $args['key'] = $this->key; } return rcl_get_button_tab($args, $button); }
<?php rcl_buttons(); ?> </div> <!--<div id="chat-inner-tabs"> <?php //echo rcl_get_button_tab(array('name'=>'Contacts','id_tab'=>'contacts')); //echo rcl_get_button_tab(array('name'=>'Groups','id_tab'=>'groups')); //echo rcl_get_button_tab(array('name'=>'History','id_tab'=>'privat')); ?> </div>--> <div id="lk-content" class="rcl-content"> <div id="chat-inner-tabs"> <?php echo rcl_get_button_tab(array('name' => 'Contacts', 'id_tab' => 'contacts')); echo rcl_get_button_tab(array('name' => 'Groups', 'id_tab' => 'groups')); echo rcl_get_button_tab(array('name' => 'History', 'id_tab' => 'privat')); ?> </div> <?php rcl_tabs(); ?> </div> </div> </div> <?php rcl_after(); ?>