responsive_mobile_front_page_reading_notice

Add notification to Reading Settings page to notify if Custom Front Page is enabled.

Description

responsive_mobile_front_page_reading_notice(); 

Usage

  1. if ( !function_exists( 'responsive_mobile_front_page_reading_notice' ) ) { 
  2. require_once '/includes/functions-theme-options-page.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = responsive_mobile_front_page_reading_notice(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/functions-theme-options-page.php  
  1. function responsive_mobile_front_page_reading_notice() { 
  2. $screen = get_current_screen(); 
  3. $responsive_mobile_options = responsive_mobile_get_options(); 
  4. if ( 'options-reading' == $screen->id ) { 
  5. $html = '<div class="updated">'; 
  6. if ( 1 == $responsive_mobile_options['front_page'] ) { 
  7. $html .= '<p>' . sprintf( __( 'The Custom Front Page is enabled. You can disable it in the <a href="%1$s">theme settings</a>.', 'responsive-mobile' ), admin_url( 'themes.php?page=theme_options' ) ) . '</p>'; 
  8. } else { 
  9. $html .= '<p>' . sprintf( __( 'The Custom Front Page is disabled. You can enable it in the <a href="%1$s">theme settings</a>.', 'responsive-mobile' ), admin_url( 'themes.php?page=theme_options' ) ) . '</p>'; 
  10. $html .= '</div>'; 
  11. echo $html;