get_base() . '/' . $tab->get_name() . '.php';
}
/**
* @param WPSEO_Option_Tabs $option_tabs Option Tabs to get tabs from.
* @param Yoast_Form $yform Yoast Form which is being used in the views.
* @param array $options Options which are being used in the views.
*/
public function run( WPSEO_Option_Tabs $option_tabs, Yoast_Form $yform, $options = array() ) {
echo '
';
foreach ( $option_tabs->get_tabs() as $tab ) {
printf( '%2$s', $tab->get_name(), $tab->get_label() );
}
echo '
';
foreach ( $option_tabs->get_tabs() as $tab ) {
// Prepare the help center for each tab.
$help_center = new WPSEO_Help_Center( $option_tabs->get_base(), $tab );
$identifier = $tab->get_name();
printf( '', $identifier );
// Output the help center.
$help_center->output_help_center();
// Output the settings view for all tabs.
$tab_view = $this->get_tab_view( $option_tabs, $tab );
if ( is_file( $tab_view ) ) {
require_once $tab_view;
}
echo '
';
}
}
}