jetpack_shortcodes_more_info_connected

The Jetpack by WordPress.com jetpack shortcodes more info connected function.

Description

jetpack_shortcodes_more_info_connected(); 

Usage

  1. if ( !function_exists( 'jetpack_shortcodes_more_info_connected' ) ) { 
  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_shortcodes_more_info_connected(); 
  7.  

Defined (1)

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

/modules/module-info.php  
  1. function jetpack_shortcodes_more_info_connected() { ?> 
  2. <div class="jp-info-img"> 
  3. <a href="http://en.support.wordpress.com/shortcodes/"> 
  4. <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/shortcodes.png' ) ?>" alt="<?php esc_attr_e( 'Shortcode Embeds', jetpack ) ?>" width="300" height="150" /> 
  5. </a> 
  6. </div> 
  7.  
  8. <p><?php esc_html_e( 'Shortcodes allow you to easily and safely embed media from other places in your site. With just one simple code, you can tell WordPress to embed YouTube, Flickr, and other media.', jetpack ) ?></p> 
  9. <p><?php esc_html_e( 'Enter a shortcode directly into the Post/Page editor to embed media. For specific instructions follow the links below.', jetpack ) ?></p> 
  10. <?php 
  11. $codes = array( 'archives' => 'http://support.wordpress.com/archives-shortcode/',  
  12. 'bandcamp' => 'http://en.support.wordpress.com/audio/bandcamp/',  
  13. 'blip.tv' => 'http://support.wordpress.com/videos/bliptv/',  
  14. 'dailymotion' => 'http://support.wordpress.com/videos/dailymotion/',  
  15. 'facebook' => 'http://en.support.wordpress.com/facebook-integration/facebook-embeds/',  
  16. 'flickr' => 'http://support.wordpress.com/videos/flickr-video/',  
  17. 'gist' => 'http://en.support.wordpress.com/gist/',  
  18. 'googlemaps' => 'http://support.wordpress.com/google-maps/',  
  19. 'jetpack_subscription_form' => 'http://jetpack.me/support/subscriptions/#display',  
  20. 'polldaddy' => 'http://support.polldaddy.com/wordpress-shortcodes/',  
  21. 'presentation' => 'http://en.support.wordpress.com/presentations/',  
  22. 'recipes' => 'http://en.support.wordpress.com/recipes/',  
  23. 'scribd' => 'http://support.wordpress.com/scribd/',  
  24. 'slideshare' => 'http://support.wordpress.com/slideshows/slideshare/',  
  25. 'slideshow' => 'http://en.support.wordpress.com/slideshows/',  
  26. 'soundcloud' => 'http://support.wordpress.com/audio/soundcloud-audio-player/',  
  27. 'ted' => 'http://en.support.wordpress.com/videos/ted-talks/',  
  28. 'twitter-timeline' => 'http://en.support.wordpress.com/widgets/twitter-timeline-widget/#embedding-with-a-shortcode',  
  29. // 'upcomingevents' => 'http://en.support.wordpress.com/widgets/upcoming-events/#events-list-shortcode',  
  30. 'vimeo' => 'http://support.wordpress.com/videos/vimeo/',  
  31. 'vine' => 'http://en.support.wordpress.com/videos/vine/',  
  32. 'youtube' => 'http://support.wordpress.com/videos/youtube/',  
  33. ); 
  34.  
  35. $codes['wpvideo (VideoPress)'] = 'http://en.support.wordpress.com/videopress/'; 
  36.  
  37. $available = ''; 
  38. foreach ( $codes as $code => $url ) { 
  39. $available[] = '<a href="' . $url . '" target="_blank">[' . $code . ']</a>'; 
  40.  
  41. ?> 
  42. <p><?php echo wp_sprintf( esc_html__( 'Available shortcodes are: %l.', jetpack ), $available ); ?></p> 
  43. <?php