screen = $screen; } public function set_help_tabs( $type ) { switch ( $type ) { case 'list': $this->screen->add_help_tab( array( 'id' => 'list_overview', 'title' => __( 'Overview', '3cx-clicktotalk' ), 'content' => $this->content( 'list_overview' ) ) ); $this->screen->add_help_tab( array( 'id' => 'list_available_actions', 'title' => __( 'Available Actions', '3cx-clicktotalk' ), 'content' => $this->content( 'list_available_actions' ) ) ); $this->sidebar(); return; case 'edit': $this->screen->add_help_tab( array( 'id' => 'edit_overview', 'title' => __( 'Overview', '3cx-clicktotalk' ), 'content' => $this->content( 'edit_overview' ) ) ); $this->sidebar(); return; } } private function content( $name ) { $content = array(); $content['list_overview'] = '

' . __( "On this screen, you can manage Click To Talk item provided by 3CX Click To Talk. You can manage an unlimited number of Click To Talk item. Each Click To Talk item has a unique ID and 3CX Click To Talk shortcode ([3cx-clicktotalk ...]). To insert a Click To Talk item into a post or a text widget, insert the shortcode into the target.", '3cx-clicktotalk' ) . '

'; $content['list_available_actions'] = '

' . __( "Hovering over a row in the Click To Talk item list will display action links that allow you to manage your Click To Talk item. You can perform the following actions:", '3cx-clicktotalk' ) . '

'; $content['list_available_actions'] .= '

' . __( "Edit - Navigates to the editing screen for that Click To Talk item. You can also reach that screen by clicking on the Click To Talk item title.", '3cx-clicktotalk' ) . '

'; $content['list_available_actions'] .= '

' . __( "Duplicate - Clones that Click To Talk item. A cloned Click To Talk item inherits all content from the original, but has a different ID.", '3cx-clicktotalk' ) . '

'; $content['edit_overview'] = '

' . __( "On this screen, you can edit a Click To Talk item. A Click To Talk item includes following components:", '3cx-clicktotalk' ) . '

'; $content['edit_overview'] .= '

' . __( "Title is the title of a Click To Talk item. This title is only used for labeling a Click To Talk item, and can be edited.", '3cx-clicktotalk' ) . '

'; $content['edit_overview'] .= '

' . __( "Configuration is the section where you enter you 3CX PBX configuration. Look at PBX Management Console into WebMeeting section to find your parameters.", '3cx-clicktotalk' ) . '

'; if ( ! empty( $content[$name] ) ) { return $content[$name]; } } public function sidebar() { $content = '

' . __( 'For more information:', '3cx-clicktotalk' ) . '

'; $content .= '

' . wp3cxc2c_link( __( 'https://www.3cx.com/phone-system/video-conferencing/', '3cx-clicktotalk' ), __( '3CX WebMeeting', '3cx-clicktotalk' ) ) . '

'; $content .= '

' . wp3cxc2c_link( __( 'https://www.3cx.com/support/', '3cx-clicktotalk' ), __( 'Support', '3cx-clicktotalk' ) ) . '

'; $this->screen->set_help_sidebar( $content ); } }