scribd_shortcode_markup

The Jetpack by WordPress.com scribd shortcode markup function.

Description

scribd_shortcode_markup( $atts ); 

Parameters (1)

0. $atts
The atts.

Usage

  1. if ( !function_exists( 'scribd_shortcode_markup' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/shortcodes/scribd.php'; 
  3.  
  4. // The atts. 
  5. $atts = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = scribd_shortcode_markup($atts); 
  9.  

Defined (1)

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

/modules/shortcodes/scribd.php  
  1. function scribd_shortcode_markup( $atts ) { 
  2. $markup = <<<EOD 
  3. <iframe class="scribd_iframe_embed" src="//www.scribd.com/embeds/$atts[id]/content?start_page=1&view_mode=$atts[mode]&access_key=$atts[key]" data-auto-height="true" scrolling="no" id="scribd_$atts[id]" width="100%" height="500" frameborder="0"></iframe> 
  4. <div style="font-size:10px;text-align:center;width:100%"><a href="http://www.scribd.com/doc/$atts[id]">View this document on Scribd</a></div> 
  5. EOD; 
  6.  
  7. return $markup;