Skip to content

Instantly share code, notes, and snippets.

@mikeyhoward1977
Last active August 20, 2018 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeyhoward1977/76de8cec79df500c637fc6c959868202 to your computer and use it in GitHub Desktop.
Save mikeyhoward1977/76de8cec79df500c637fc6c959868202 to your computer and use it in GitHub Desktop.
Example welcome panel from Easy Plugin Demo
<style>
.welcome-panel .welcome-register:before { content: "\f481"; }
.welcome-panel .welcome-themes:before { content: "\f100"; }
.welcome-panel .welcome-plugins:before { content: "\f106"; top: -3px; }
.welcome-panel .welcome-docs:before { content: "\f118"; top: -2px; }
.welcome-panel .welcome-rate:before { content: "\f155"; top: -2px; }
.welcome-panel .welcome-support:before { content: "\f125"; top: -2px; }
</style>
<h2><?php _e( 'Welcome to the {demo_product_name} (EPD) Demo!', 'easy-plugin-demo' ); ?></h2>
<p class="about-description"><?php _e( "We've provided some links below to help you get started quickly and easily", 'easy-plugin-demo' ); ?></p>
<div class="welcome-panel-column-container">
<div class="welcome-panel-column">
<h3><?php _e( 'Get Started', 'easy-plugin-demo' ); ?></h3>
<a class="button button-primary button-hero" href="<?php echo $settings_url; ?>"><?php _e( 'Configure EPD Settings', 'easy-plugin-demo' ); ?></a>
</div>
<div class="welcome-panel-column">
<h3><?php _e( 'Next Steps', 'easy-plugin-demo' ); ?></h3>
<ul>
<li><?php printf( '<a href="%s" class="welcome-icon welcome-register">' . __( 'Create your registration page', 'easy-plugin-demo' ) . '</a>', admin_url( 'post-new.php?post_type=page' ) ); ?></li>
<li><?php printf( '<a href="%s" class="welcome-icon welcome-themes">' . __( 'Install themes for your demo sites', 'easy-plugin-demo' ) . '</a>', admin_url( 'network/themes.php' ) ); ?></li>
<li><?php printf( '<a href="%s" class="welcome-icon welcome-plugins">' . __( 'Install plugins for your demo sites', 'easy-plugin-demo' ) . '</a>', admin_url( 'network/plugins.php' ) ); ?></li>
</ul>
</div>
<div class="welcome-panel-column welcome-panel-last">
<h3><?php _e( 'More Actions', 'easy-plugin-demo' ); ?></h3>
<ul>
<li><?php printf( __( '<a href="%s" target="_blank" class="welcome-icon welcome-docs">View support documents</a>', 'easy-plugin-demo' ), 'https://easy-plugin-demo/support/' );?></li>
<li><?php printf( __( '<a href="%s" target="_blank" class="welcome-icon welcome-support">Visit support forum</a>', 'easy-plugin-demo' ), 'https://wordpress.org/support/plugin/easy-plugin-demo' );?></li>
<li><?php printf( __( '<a href="%s" target="_blank" class="welcome-icon welcome-rate">Add your review on WordPress.org</a>', 'easy-plugin-demo' ), 'https://wordpress.org/support/plugin/easy-plugin-demo/reviews/#new-post' );?></li>
</ul>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment