| 1 |
<?php |
| 2 |
// Exit if accessed directly |
| 3 |
if( !defined( 'ABSPATH' ) ) exit; |
| 4 |
global $wpforo ?> |
| 5 |
|
| 6 |
<div id="wpf-admin-wrap" class="wrap"> |
| 7 |
<h1 style="padding:30px 0px 10px 0px;"><?php _e('wpForo Dashboard', 'wpforo'); ?></h1> |
| 8 |
<?php $wpforo->notice->show(FALSE) ?> |
| 9 |
|
| 10 |
|
| 11 |
<div id="dashboard-widgets-wrap" style="padding-top:10px;"> |
| 12 |
<div class="metabox-holder" id="dashboard-widgets"> |
| 13 |
|
| 14 |
|
| 15 |
<div class="postbox-container" id="postbox-container-0" style="width:100%;"> |
| 16 |
<div class="meta-box-sortables ui-sortable" id="normal-sortables" style="min-height:60px;"> |
| 17 |
|
| 18 |
<div class="postbox" id="wpforo_dashboard_widget_0"> |
| 19 |
<button aria-expanded="true" class="handlediv button-link" type="button"> |
| 20 |
<span class="screen-reader-text"> </span> |
| 21 |
<span class="toggle-indicator"></span> |
| 22 |
</button> |
| 23 |
<h2 class="hndle ui-sortable-handle"><span><?php _e('Welcome Message', 'wpforo'); ?></span></h2> |
| 24 |
<div class="inside"> |
| 25 |
<div class="main" style="padding:5px 15px 15px 15px;"> |
| 26 |
<div style="float:left; vertical-align:top; width:calc(100% - 300px);;"> |
| 27 |
<p style="font-size:30px; margin:0px 0px 10px 0px; font-family:Constantia, 'Lucida Bright', 'DejaVu Serif', Georgia, serif">Welcome to wpForo <?php echo esc_html($wpforo->version) ?></p> |
| 28 |
<p style="margin:0px; font-size:14px;font-family:'Lucida Bright', 'DejaVu Serif', Georgia, serif""> |
| 29 |
<?php _e('Thank you for trying wpForo! This forum development was started on 2013 and we were using it for our support community. Now it\'s ready for WordPress community as well. |
| 30 |
It\'s on the Beta stage and we\'re working hard to reach the Gold 1.0.0 version as soon as possible. |
| 31 |
wpForo is a professional bulletin board for WorPress, and the only forum software which comes with Multi-layout template system. |
| 32 |
The "Extended", "Simplified" and "Question & Answer" layouts fit almost all type of discussions needs. You can use wpForo for small and extremely large communities. |
| 33 |
<br />If you found some issue or bug please open a support topic in plugin page or in our support forum at gVectors.com. If you liked wpForo please leave some good review for this plugin. We really need your good reviews. |
| 34 |
If you didn\'t like wpForo please leave a list of issues and requirements you\'d like us to fix and add in near future. We\'re here to help you and improve wpForo as much as possible.', 'wpforo'); ?></p> |
| 35 |
</div> |
| 36 |
<div style="float:right; vertical-align:top; padding-right:20px; width:280px; text-align:right; padding-top:20px;"> |
| 37 |
<img class="wpforo-dashboard-logo" src="<?php echo WPFORO_URL ?>/wpf-assets/images/wpforo-logo.png"/> |
| 38 |
<p style="font-size:11px; color:#B1B1B1; font-style:italic; text-align:right; line-height:14px; padding-top:15px; margin:0px;"> |
| 39 |
Thank you!<br> Sincerely yours,<br> |
| 40 |
gVectors Team |
| 41 |
</p> |
| 42 |
</div> |
| 43 |
<div style="clear:both;"></div> |
| 44 |
</div> |
| 45 |
</div> |
| 46 |
</div><!-- widget / postbox --> |
| 47 |
|
| 48 |
</div> |
| 49 |
</div> |
| 50 |
|
| 51 |
<?php if(current_user_can('administrator') || current_user_can('editor') || current_user_can('author') ): ?> |
| 52 |
<div class="postbox-container" id="postbox-container-1"> |
| 53 |
<div class="meta-box-sortables ui-sortable" id="normal-sortables"> |
| 54 |
|
| 55 |
<div class="postbox" id="wpforo_dashboard_widget_1"> |
| 56 |
<button aria-expanded="true" class="handlediv button-link" type="button"> |
| 57 |
<span class="screen-reader-text">Toggle panel: General Information</span> |
| 58 |
<span class="toggle-indicator"></span> |
| 59 |
</button> |
| 60 |
<h2 class="hndle ui-sortable-handle"><span><?php _e('General Information', 'wpforo'); ?></span></h2> |
| 61 |
<div class="inside"> |
| 62 |
<div class="main"> |
| 63 |
<ul> |
| 64 |
<li class="post-count"><strong><?php _e('You are currently running', 'wpforo'); ?> wpForo <?php echo esc_html($wpforo->version) ?></strong></li> |
| 65 |
<li class="page-count"><?php _e('Active Theme', 'wpforo'); ?>: Classic</li> |
| 66 |
<li class="page-count"><?php _e('wpForo Website', 'wpforo'); ?>: <a href="http://wpforo.com">wpForo.com</a></li> |
| 67 |
<li class="page-count"><?php _e('Support Forum', 'wpforo'); ?>: <a href="https://wordpress.org/support/plugin/<?php echo WPFORO_FOLDER; ?>/">WordPress.org Forum</a></li> |
| 68 |
</ul> |
| 69 |
</div> |
| 70 |
</div> |
| 71 |
</div><!-- widget / postbox --> |
| 72 |
|
| 73 |
<div class="postbox" id="wpforo_dashboard_widget_server"> |
| 74 |
<button aria-expanded="true" class="handlediv button-link" type="button"> |
| 75 |
<span class="screen-reader-text">Toggle panel: Server Information</span> |
| 76 |
<span class="toggle-indicator"></span> |
| 77 |
</button> |
| 78 |
<h2 class="hndle ui-sortable-handle"><span><?php _e('Server Information', 'wpforo'); ?></span></h2> |
| 79 |
<div class="inside"> |
| 80 |
<div class="main"> |
| 81 |
<table style="width:98%; margin:0px auto; text-align:left;"> |
| 82 |
<tr class="wpf-dw-tr"> |
| 83 |
<td class="wpf-dw-td">USER AGENT</td> |
| 84 |
<td class="wpf-dw-td-value"><?php echo $_SERVER['HTTP_USER_AGENT'] ?></td> |
| 85 |
</tr> |
| 86 |
<tr class="wpf-dw-tr"> |
| 87 |
<td class="wpf-dw-td">Web Server / PHP</td> |
| 88 |
<td class="wpf-dw-td-value"><?php echo $_SERVER['SERVER_SOFTWARE'] ?></td> |
| 89 |
</tr> |
| 90 |
<tr class="wpf-dw-tr"> |
| 91 |
<td class="wpf-dw-td">MySQL Version</td> |
| 92 |
<td class="wpf-dw-td-value"><?php echo $wpforo->db->db_version(); ?></td> |
| 93 |
</tr> |
| 94 |
<tr class="wpf-dw-tr"> |
| 95 |
<td class="wpf-dw-td">PHP Max Post Size</td> |
| 96 |
<td class="wpf-dw-td-value"><?php echo ini_get('post_max_size'); ?></td> |
| 97 |
</tr> |
| 98 |
<tr class="wpf-dw-tr"> |
| 99 |
<td class="wpf-dw-td">PHP Max Upload Size</td> |
| 100 |
<td class="wpf-dw-td-value"><?php echo ini_get('upload_max_filesize'); ?></td> |
| 101 |
</tr> |
| 102 |
<tr class="wpf-dw-tr"> |
| 103 |
<td class="wpf-dw-td">PHP Memory Limit</td> |
| 104 |
<td class="wpf-dw-td-value"><?php echo ini_get('memory_limit'); ?></td> |
| 105 |
</tr> |
| 106 |
<tr class="wpf-dw-tr"> |
| 107 |
<td class="wpf-dw-td">PHP DateTime Class</td> |
| 108 |
<td class="wpf-dw-td-value"><?php echo (class_exists('DateTime') && class_exists('DateTimeZone')) ? '<span class="wpf-green">' . __('Available', 'wpforo') . '</span>' : '<span class="wpf-red">' . __('Not available', 'wpforo') . '</span> | <a href="http://php.net/manual/en/datetime.installation.php" target="_blank">more info»</a>'; ?> </td> |
| 109 |
</tr> |
| 110 |
</table> |
| 111 |
</div> |
| 112 |
</div> |
| 113 |
</div><!-- widget / postbox --> |
| 114 |
|
| 115 |
</div><!-- normal-sortables --> |
| 116 |
</div><!-- wpforo_postbox_container --> |
| 117 |
|
| 118 |
<div class="postbox-container" id="postbox-container-2"> |
| 119 |
<div class="meta-box-sortables ui-sortable" id="normal-sortables"> |
| 120 |
|
| 121 |
<div class="postbox" id="wpforo_dashboard_widget_statistic"> |
| 122 |
<button aria-expanded="true" class="handlediv button-link" type="button"> |
| 123 |
<span class="screen-reader-text">Toggle panel: Board Statistic</span> |
| 124 |
<span class="toggle-indicator"></span> |
| 125 |
</button> |
| 126 |
<h2 class="hndle ui-sortable-handle"><span><?php _e('Board Statistic', 'wpforo'); ?></span></h2> |
| 127 |
<div class="inside"> |
| 128 |
<div class="main"> |
| 129 |
<table style="width:98%; margin:0px auto; text-align:left;"> |
| 130 |
<?php $statistic = $wpforo->get_statistic(); ?> |
| 131 |
<tr class="wpf-dw-tr"> |
| 132 |
<td class="wpf-dw-td"><?php _e('Forums', 'wpforo'); ?></td> |
| 133 |
<td class="wpf-dw-td-value"><?php echo intval($statistic['forums']) ?></td> |
| 134 |
</tr> |
| 135 |
<tr class="wpf-dw-tr"> |
| 136 |
<td class="wpf-dw-td"><?php _e('Topics', 'wpforo'); ?></td> |
| 137 |
<td class="wpf-dw-td-value"><?php echo intval($statistic['topics']) ?></td> |
| 138 |
</tr> |
| 139 |
<tr class="wpf-dw-tr"> |
| 140 |
<td class="wpf-dw-td"><?php _e('Posts', 'wpforo'); ?></td> |
| 141 |
<td class="wpf-dw-td-value"><?php echo intval($statistic['posts']) ?></td> |
| 142 |
</tr> |
| 143 |
<tr class="wpf-dw-tr"> |
| 144 |
<td class="wpf-dw-td"><?php _e('Members', 'wpforo'); ?></td> |
| 145 |
<td class="wpf-dw-td-value"><?php echo intval($statistic['members']) ?></td> |
| 146 |
</tr> |
| 147 |
<tr class="wpf-dw-tr"> |
| 148 |
<td class="wpf-dw-td"><?php _e('Members Online', 'wpforo'); ?></td> |
| 149 |
<td class="wpf-dw-td-value"><?php echo intval($statistic['online_members_count']) ?></td> |
| 150 |
</tr> |
| 151 |
|
| 152 |
<?php if( isset($statistic['attachments']) && $statistic['attachment_sizes'] ) : ?> |
| 153 |
|
| 154 |
<tr class="wpf-dw-tr"> |
| 155 |
<td class="wpf-dw-td"><?php _e('Attachments', 'wpforo'); ?></td> |
| 156 |
<td class="wpf-dw-td-value"><?php echo esc_html($statistic['attachments']) ?></td> |
| 157 |
</tr> |
| 158 |
<tr class="wpf-dw-tr"> |
| 159 |
<td class="wpf-dw-td"><?php _e('Attachments Size', 'wpforo'); ?></td> |
| 160 |
<td class="wpf-dw-td-value"><?php echo wpforo_human_filesize( $statistic['attachment_sizes'] ); ?></td> |
| 161 |
</tr> |
| 162 |
|
| 163 |
<?php endif ?> |
| 164 |
|
| 165 |
</table> |
| 166 |
</div> |
| 167 |
</div> |
| 168 |
</div><!-- widget / postbox --> |
| 169 |
|
| 170 |
</div><!-- normal-sortables --> |
| 171 |
</div><!-- wpforo_postbox_container --> |
| 172 |
<?php endif; ?> |
| 173 |
|
| 174 |
<div class="postbox-container" id="postbox-container-3"> |
| 175 |
<div class="meta-box-sortables ui-sortable" id="normal-sortables"> |
| 176 |
|
| 177 |
|
| 178 |
|
| 179 |
</div><!-- normal-sortables --> |
| 180 |
</div><!-- wpforo_postbox_container --> |
| 181 |
|
| 182 |
|
| 183 |
|
| 184 |
</div><!-- dashboard-widgets --> |
| 185 |
</div><!-- dashboard-widgets-wrap --> |
| 186 |
|
| 187 |
</div><!-- wpwrap --> |
| 188 |
|
| 189 |
|