File: /home/mmickelson/martyknows.com/wp-content/themes/shaan/includes/welcome.php
<?php
/**
* Add theme welcome page
*
* @since Shaan 2.0
*/
add_action( 'admin_menu', 'register_shaan_intro_page' );
function register_shaan_intro_page() {
//add_theme_page( $page_title, $menu_title, $capability, $menu_slug, $function );
add_theme_page( 'Shaan WP Theme', 'Shaan WP Theme', 'manage_options', 'shaan', 'shaan_theme_page' );
}
function shaan_theme_page() {
// Theme Info
$shaan_theme_info = wp_get_theme('shaan');
?>
<div class="wrap about-wrap">
<h1><?php echo esc_html(get_admin_page_title()); ?></h1>
<div class="about-text">
<p class="about-description"><?php echo esc_attr($shaan_theme_info->get('Name')); ?> <a href="<?php echo esc_url($shaan_theme_info->get('ThemeURI')); ?>">(Version <?php echo esc_attr($shaan_theme_info->get('Version')); ?>)</a> by <a href="<?php echo esc_url($shaan_theme_info->get('AuthorURI')); ?>" target="_blank"><?php echo esc_attr( $shaan_theme_info->get('Author')); ?></a></p>
<p class="about-description"><?php echo esc_attr($shaan_theme_info->get('Description')); ?></p>
</div>
<div class="panel">
<h3>Recommended for You!</h3>
<p class="about-description">Thank you for rocking with WordPress and <?php echo esc_attr($shaan_theme_info->get('Name')); ?>.</p>
<p class="about-description"><span class="dashicons dashicons-megaphone" style="color: #0073aa"></span> Customize the theme using <code>Appearance > Customize</code> menu. You can add logo, header image, social media links, choose layout, and more for your website.</p>
<p class="about-description"><span class="dashicons dashicons-megaphone" style="color: #0073aa"></span> There's no PRO or premium version of the theme. Everything is absolutely FREE! Don't forget to rate the theme. Share your <i class="dashicons dashicons-heart" style="color: #f21a1a"></i> love by <a href="https://speckygeek.com/donate/">sending some money contributions</a>.</p>
<div class="plugin-card">
<div class="plugin-card-top">
<h3>Advertising Plugin</h3>
<p>For adding advertisements in your website, get ADREDUX. It is a simple and efficient plugin that allows you to control and automatically insert ads in posts & pages. No bloating.</p>
</div>
<div class="plugin-card-bottom">
<a class="button button-primary" href="<?php echo esc_url_raw( add_query_arg( array('s'=> 'adredux','tab'=> 'search','type'=> 'term',), admin_url( 'plugin-install.php' ) ) ); ?>">Get Adredux Plugin</a>
</div>
</div>
<div class="plugin-card">
<div class="plugin-card-top">
<h3>Contribute & Help</h3>
<p><span class="dashicons dashicons-heart" style="color: #f21a1a;"></span> Found the theme useful? Consider supporting me to create free themes with some coffee. Send some love via donations & contributions. <span class="dashicons dashicons-editor-help"></span> For support, drop an email to <code>pritam@speckygeek.com</code></p>
</div>
<div class="plugin-card-bottom"> <a href="https://speckygeek.com/donate/" class="button button-primary">Donate & Support Me!</a>
</div>
</div>
</div>
</div>
<?php
}
/**
* Add theme donate notice
*
* @since Shaan 2.0
*/
add_filter('admin_footer_text', 'shaan_admin_footer');
function shaan_admin_footer($default){
// Theme Info
$shaan_theme_info = wp_get_theme('shaan');
return $default . ' ' . get_bloginfo('name') . ' — powered by <span class="dashicons dashicons-heart" style="color: #f21a1a;"></span> <a href="' . esc_url_raw( add_query_arg( 'page', 'shaan', admin_url( 'themes.php' ) ) ) . '">'. esc_attr($shaan_theme_info->get('Name')) . ' WordPress theme</a>';
}