| 1 |
<?php |
| 2 |
// Exit if accessed directly |
| 3 |
if( !defined( 'ABSPATH' ) ) exit; |
| 4 |
if( !current_user_can('administrator') ) exit; |
| 5 |
?> |
| 6 |
|
| 7 |
<?php $plugins = true; ?> |
| 8 |
<div id="icon-tools" class="icon32"><br></div><div class="wrap"><h2 style="padding:20px 0px 30px 0px;line-height: 20px;"><?php _e('Forum Settings') ?></h2></div> |
| 9 |
<?php $wpforo->notice->show(FALSE) ?> |
| 10 |
<?php do_action('wpforo_settings_page_top') ?> |
| 11 |
<div id="wpf-admin-wrap" class="wrap"><div id="icon-users" class="icon32"><br /></div> |
| 12 |
<?php |
| 13 |
$tabs = array( |
| 14 |
'general' => __('General', 'wpforo'), |
| 15 |
'forums' => __('Forums', 'wpforo'), |
| 16 |
'accesses' => __('Forum Accesses', 'wpforo'), |
| 17 |
'posts' => __('Topics & Posts', 'wpforo'), |
| 18 |
'members' => __('Members', 'wpforo'), |
| 19 |
'emails' => __('Emails', 'wpforo'), |
| 20 |
'features' => __('Features', 'wpforo') |
| 21 |
); |
| 22 |
if( !empty( $wpforo->theme_options['styles'] ) ) $tabs['styles'] = __('Styles', 'wpforo'); |
| 23 |
if( $plugins ) $tabs['plugins'] = __('Addons', 'wpforo'); |
| 24 |
wpforo_admin_options_tabs( $tabs, ( isset($_GET['tab']) ? $_GET['tab'] : 'general' ) ); |
| 25 |
?> |
| 26 |
<div class="wpf-info-bar"><br /> |
| 27 |
<?php |
| 28 |
if(isset($_GET['tab'])){ |
| 29 |
switch($_GET['tab']){ |
| 30 |
case 'accesses': |
| 31 |
include( 'options-tabs/accesses.php' ); |
| 32 |
break; |
| 33 |
case 'posts': |
| 34 |
include( 'options-tabs/posts.php' ); |
| 35 |
break; |
| 36 |
case 'forums': |
| 37 |
include( 'options-tabs/forums.php' ); |
| 38 |
break; |
| 39 |
case 'members': |
| 40 |
include( 'options-tabs/members.php' ); |
| 41 |
break; |
| 42 |
case 'features': |
| 43 |
include( 'options-tabs/features.php' ); |
| 44 |
break; |
| 45 |
case 'styles': |
| 46 |
include( 'options-tabs/styles.php' ); |
| 47 |
break; |
| 48 |
case 'emails': |
| 49 |
include( 'options-tabs/emails.php' ); |
| 50 |
break; |
| 51 |
case 'plugins': |
| 52 |
include( 'options-tabs/plugins.php' ); |
| 53 |
break; |
| 54 |
default: |
| 55 |
include_once( 'options-tabs/general.php' ); |
| 56 |
} |
| 57 |
}else{ |
| 58 |
include_once( 'options-tabs/general.php' ); |
| 59 |
} |
| 60 |
?> |
| 61 |
</div> |
| 62 |
</div> |