function powerpressadmin_welcome($GeneralSettings) { ?> <div> <div class="powerpress-welcome-news"> <h2><?php echo __('Blubrry PowerPress and Community Podcast', 'powerpress'); ?> </h2> <?php powerpressadmin_community_news(); ?> <p style="margin-bottom: 0; font-size: 85%;"> <input type="checkbox" name="General[disable_dashboard_news]" value="1" <?php echo empty($GeneralSettings['disable_dashboard_news']) ? '' : 'checked'; ?> /> <?php echo __('Remove from dashboard', 'powerpress'); ?> </p> </div> <div class="powerpress-welcome-highlighted"> <div> <h2><?php echo __('Highlighted Topics', 'powerpress'); ?> </h2> <?php powerpressadmin_community_highlighted(); ?> </div> </div> <div class="clear"></div> </div> <?php }
function powerpress_dashboard_news_content() { $Settings = get_option('powerpress_general'); if (isset($Settings['disable_dashboard_news']) && $Settings['disable_dashboard_news'] == 1) { return; } // Lets not do anything to the dashboard for PowerPress News powerpressadmin_community_news(); }