jetpack_custom_site_icon

The Jetpack by WordPress.com jetpack custom site icon function.

Description

jetpack_custom_site_icon(); 

Usage

  1. if ( !function_exists( 'jetpack_custom_site_icon' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/module-info.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = jetpack_custom_site_icon(); 
  7.  

Defined (1)

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

/modules/module-info.php  
  1. function jetpack_custom_site_icon() { ?> 
  2.  
  3.  
  4. <div class="jp-info-img"> 
  5. <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/site-icon.png' ) ?>" alt="<?php esc_attr_e( 'Site Icon', jetpack ) ?>" width="300" height="150" /> 
  6. </div> 
  7.  
  8. <p><?php esc_html_e( 'Site Icon lets you create an icon for your site. This icon will be used as favicon, mobile icon, and Tile on Windows 8 computers.', jetpack ); ?></p> 
  9. <p><?php printf( __( 'To add a new icon to your site, head over to <a href="%s">Settings → General → Site Icon</a>, and upload an icon.', jetpack ), admin_url( 'options-general.php#site-icon' ) ); ?></p> 
  10.  
  11. <?php