64 if ( is_a(
$id,
'WPDKView' ) ) {
65 $this->
id = sanitize_key(
$id->id );
67 $this->content =
$id->html();
70 $this->
id = sanitize_key(
$id );
118 parent::__construct(
$id,
'wpdk-jquery-ui' );
120 $this->border =
true;
132 if ( is_object( $tab ) && is_a( $tab,
'WPDKjQueryTab' ) ) {
134 $this->tabs[
$id] = $tab;
146 if ( is_object( $tab ) && is_a( $tab,
'WPDKjQueryTab' ) ) {
149 elseif ( is_string( $tab ) ) {
152 if ( !empty(
$id ) && isset( $this->tabs[
$id] ) ) {
153 unset( $this->tabs[$id] );
167 foreach ( $this->tabs as $tab ) {
168 $html_titles .= sprintf(
'<li class="%s"><a href="#%s">%s</a></li>', $tab->id, $tab->id, $tab->title );
169 $html_content .= sprintf(
'%s', $tab->content );
172 <div
class=
"<?php echo $this->border ? 'wpdk-border-container' : '' ?>">
173 <div
id=
"<?php echo $this->id . '-tabs-view' ?>" class=
"wpdk-tabs">
175 <?php echo $html_titles ?>
177 <?php echo $html_content ?>
212 $this->view->addSubview(
$view );