예제 #1
0
 private function add_sb_options_section()
 {
     if (SB_Admin_Custom::is_about_page()) {
         add_settings_section('sb_options_section', __('About SB', 'sb-core'), array($this, 'print_section_info'), 'sb_options');
     }
 }
예제 #2
0
?>
                </ul>
            </div>
            <div class="main">
                <form id="sb-options-form" method="post" action="options.php" data-page="<?php 
echo $current_tab;
?>
">
                    <?php 
settings_fields('sb-setting');
?>
                    <?php 
sb_do_settings_sections($current_tab);
?>
                    <?php 
if (!SB_Admin_Custom::is_about_page()) {
    ?>
                    <?php 
    submit_button(__('Save changes', 'sb-core'));
    ?>
                    <div class="top-save-button"><?php 
    submit_button(__('Save changes', 'sb-core'));
    ?>
</div>
                    <div class="sb-button reset-button"><span class="button"><?php 
    _e('Reset', 'sb-core');
    ?>
<img src="<?php 
    echo SB_CORE_URL . '/images/ajax-loader.gif';
    ?>
"></span></div>