Changeset 19007 for trunk/wp-admin/includes/dashboard.php
- Timestamp:
- 10/19/2011 04:41:26 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/dashboard.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/dashboard.php
r18930 r19007 1266 1266 */ 1267 1267 function wp_welcome_panel() { 1268 1269 if ( ! current_user_can( 'edit_theme_options' ) ) 1270 return; 1271 1272 $classes = 'welcome-panel'; 1273 1274 if ( ! get_user_option( 'show_welcome_panel' ) ) 1275 $classes .= ' hidden'; 1276 1268 1277 ?> 1269 <div class="welcome-panel"> 1278 <div id="welcome-panel" class="<?php echo esc_attr( $classes ); ?>"> 1279 1280 <?php wp_nonce_field( 'welcome-panel-nonce', 'welcomepanelnonce', false ); ?> 1281 1282 <a class="welcome-panel-close" href="#"><?php _e('Close'); ?></a> 1283 1270 1284 <h3><?php _e( 'Welcome to WordPress!' ); ?></h3> 1271 1272 <a class="welcome-panel-close" href="#"><?php _e('Close'); ?></a> 1273 1274 <?php 1275 // For now, we'll just approximate capabilities for each role. 1276 ?> 1277 1278 <?php if ( current_user_can('switch_themes') ): ?> 1279 <p>[admin placeholder]</p> 1280 <?php elseif ( current_user_can('edit_others_posts') ): ?> 1281 <p>[editor placeholder]</p> 1282 <?php elseif ( current_user_can('publish_posts') ): ?> 1283 <p>[author placeholder]</p> 1284 <?php elseif ( current_user_can('edit_posts') ): ?> 1285 <p>[contributor placeholder]</p> 1286 <?php else: ?> 1287 <p>[subscriber placeholder]</p> 1288 <?php endif; ?> 1285 <p><?php _e( 'Welcome to your new WordPress site! Here are some things most people do when they set up a new WordPress site. To get started, use the links below and we’ll give you some extra help with these tasks.' ); ?></p> 1286 1287 <div class="welcome-panel-column"> 1288 <ul> 1289 <li> 1290 <a href="<?php echo esc_url( admin_url('profile.php') ); ?>"> 1291 <?php _e('Fill in your profile.'); ?> 1292 </a> 1293 </li> 1294 <li> 1295 <a href="<?php echo esc_url( admin_url('options-discussion.php') ); ?>"> 1296 <?php _e('Choose comment settings.'); ?> 1297 </a> 1298 </li> 1299 <li> 1300 <a href="<?php echo esc_url( admin_url('options-general.php') ); ?>"> 1301 <?php _e('Set your time zone.'); ?> 1302 </a> 1303 </li> 1304 </ul> 1305 </div> 1306 <div class="welcome-panel-column"> 1307 <ul> 1308 <li> 1309 <a href="<?php echo esc_url( admin_url('options-general.php') ); ?>"> 1310 <?php _e('Edit your site tagline.'); ?> 1311 </a> 1312 </li> 1313 <li> 1314 <a href="<?php echo esc_url( admin_url('themes.php') ); ?>"> 1315 <?php _e('Choose a theme.'); ?> 1316 </a> 1317 </li> 1318 <li> 1319 <a href="<?php echo esc_url( admin_url('widgets.php') ); ?>"> 1320 <?php _e('Add some widgets.'); ?> 1321 </a> 1322 </li> 1323 </ul> 1324 </div> 1325 <div class="welcome-panel-column"> 1326 <ul> 1327 <li> 1328 <?php echo sprintf( 1329 __( 'Delete the default <a href="%1$s">post</a> and <a href="%2$s">comment</a>.' ), 1330 esc_url( admin_url('edit.php') ), 1331 esc_url( admin_url('edit-comments.php') ) 1332 ); ?> 1333 </li> 1334 <li> 1335 <a href="<?php echo esc_url( admin_url('post-new.php') ); ?>"> 1336 <?php _e('Create your first post.'); ?> 1337 </a> 1338 </li> 1339 <li> 1340 <?php echo sprintf( 1341 __( '<a href="%s">Edit the sample page</a> to be about you.' ), 1342 esc_url( admin_url('edit.php?post_type=page') ) 1343 ); ?> 1344 </li> 1345 </ul> 1346 </div> 1289 1347 </div> 1290 1348 <?php
Note: See TracChangeset
for help on using the changeset viewer.