responsive_mobile_activation_notice

Customize theme activation message.

Description

responsive_mobile_activation_notice(); 

Usage

  1. if ( !function_exists( 'responsive_mobile_activation_notice' ) ) { 
  2. require_once '/core/functions-install.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = responsive_mobile_activation_notice(); 
  7.  

Defined (1)

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

/core/functions-install.php  
  1. function responsive_mobile_activation_notice() { 
  2. if ( isset( $_GET['activated'] ) ) { 
  3. $return = '<div class="updated activation"><p><strong>'; 
  4. $my_theme = wp_get_theme(); 
  5. if ( isset( $_GET['previewed'] ) ) { 
  6. $return .= sprintf( __( 'Settings saved and %s activated successfully.', 'responsive-mobile' ), $my_theme->get( 'Name' ) ); 
  7. } else { 
  8. $return .= sprintf( __( '%s activated successfully.', 'responsive-mobile' ), $my_theme->get( 'Name' ) ); 
  9. $return .= '</strong> <a href="' . home_url( '/' ) . '">' . __( 'Visit site', 'responsive-mobile' ) . '</a></p>'; 
  10. //$return .= '<p><a class="button button-primary customize load-customize" href="' . admin_url( 'customize.php?theme=' . get_stylesheet() ) . '">' . __( 'Customize', 'responsive-mobile' ) . '</a>'; 
  11. $return .= ' <a class="button button-primary theme-options" href="' . admin_url( 'themes.php?page=theme_options' ) . '">' . __( 'Theme Options', 'responsive-mobile' ) . '</a>'; 
  12. $return .= ' <a class="button button-primary help" href="https://cyberchimps.com/forum/free/responsive/">' . __( 'Help', 'responsive-mobile' ) . '</a>'; 
  13. $return .= '</p></div>'; 
  14. echo $return;