Update welcome page with theme link

This commit is contained in:
Brian Miyaji
2015-04-14 17:51:18 +10:00
parent c0f8cc54ca
commit 841fcd8124
2 changed files with 18 additions and 5 deletions

View File

@@ -736,6 +736,9 @@ table.sp-status-table td mark.yes {
margin-left: 3px;
vertical-align: middle;
}
.about-sportspress-wrap .nav-tab-wrapper {
clear: both;
}
.about-sportspress-wrap .sp-feature {
overflow: visible !important;
*zoom:1;
@@ -769,6 +772,10 @@ table.sp-status-table td mark.yes {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.about-sportspress-wrap .sp-theme-screenshot {
float: left;
margin-right: 15px;
}
.about-sportspress-wrap .form-table th {
width: auto;
}

View File

@@ -303,11 +303,17 @@ class SP_Admin_Welcome {
</form>
<?php } ?>
</div>
<?php if ( current_user_can( 'install_themes' ) && ! current_theme_supports( 'sportspress' ) ) { ?>
<div class="last-feature">
<h4><?php _e( 'What is SportsPress?', 'sportspress' ); ?></h4>
<?php $hl = substr( get_locale(), 0, 2 ); ?>
<div class="sp-welcome-video sp-fitvids"><iframe width="500" height="281" src="//www.youtube.com/embed/KQyga_C5a6M?rel=0&amp;controls=2&amp;showinfo=0&amp;hl=<?php echo $hl; ?>" frameborder="0" allowfullscreen></iframe></div>
<h4><?php _e( 'Free SportsPress Theme', 'sportspress' ); ?></h4>
<a href="<?php echo add_query_arg( array( 'theme' => 'rookie' ), network_admin_url( 'theme-install.php' ) ); ?>" class="sp-theme-screenshot"><img src="<?php echo plugin_dir_url( SP_PLUGIN_FILE ); ?>/assets/images/modules/rookie.png"></a>
<p><?php _e( 'Have you tried the free Rookie theme yet?', 'sportspress' ); ?></p>
<p><?php _e( 'Rookie is a free starter theme for SportsPress designed by ThemeBoy.', 'sportspress' ); ?></p>
<p class="sp-module-actions">
<a class="button button-large" href="<?php echo add_query_arg( array( 'theme' => 'rookie' ), network_admin_url( 'theme-install.php' ) ); ?>"><?php _e( 'Install Now', 'sportspress' ); ?></a>
</p>
</div>
<?php } ?>
</div>
</div>
<?php