Created
November 15, 2013 21:22
-
-
Save lancewillett/7491863 to your computer and use it in GitHub Desktop.
Sample welcome screen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Output Twenty Fourteen welcome panel content. | |
* | |
* @return void | |
*/ | |
function twentyfourteen_welcome_panel() { | |
?> | |
<p class="about-description"> | |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Aenean lacinia bibendum nulla sed consectetur. | |
</p> | |
<div class="welcome-panel-column-container"> | |
<div class="welcome-panel-column"> | |
<h4><span class="icon16 icon-settings"></span><?php _e( 'Title Here' ); ?></h4> | |
<p><?php _e( 'Cras justo odio, dapibus ac facilisis in, egestas eget quam.' ); ?></p> | |
<ul> | |
<li>Link</li> | |
<li>Link</li> | |
<li>Link</li> | |
</ul> | |
</div><!-- .welcome-panel-column --> | |
<div class="welcome-panel-column welcome-panel-last"> | |
<h4><span class="icon16 icon-page"></span><?php _e( 'Title Here' ); ?></h4> | |
<p><?php _e( 'Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus..' ); ?></p> | |
<ul> | |
<li>Link</li> | |
<li>Link</li> | |
<li>Link</li> | |
</ul> | |
</div><!-- .welcome-panel-column --> | |
<div class="welcome-panel-column"> | |
<h4><span class="icon16 icon-appearance"></span><?php _e( 'Yes, a Title Here' ); ?></h4> | |
<p><?php _e( 'Cras mattis consectetur purus sit amet fermentum. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.' ); ?></p> | |
<ul> | |
<li>Link</li> | |
<li>Link</li> | |
<li>Link</li> | |
</ul> | |
</div><!-- .welcome-panel-column --> | |
</div><!-- .welcome-panel-column-container --> | |
<?php | |
} | |
// Remove default Welcome Panel and add our own. | |
remove_action( 'welcome_panel', 'wp_welcome_panel' ); | |
add_action( 'welcome_panel', 'twentyfourteen_welcome_panel' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment