gdwpm

The Google Drive WP Media gdwpm shortcode.


Usage

  1. // basic usage 
  2. echo do_shortcode('[gdwpm]'); 
  1. // variable usage 
  2. $result = do_shortcode('[gdwpm]'); 
  3. echo $result;  

Defined (1)

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

/google-drive-wp-media.php  
  1. $gdwpm_kode_berkas = shortcode_atts( array( 'id' => '', 'w' => $gdwpm_ukuran_preview[4], 'h' => $gdwpm_ukuran_preview[5], 'video' => $gdwpm_ukuran_preview[3]), $gdwpm_kode_berkas, 'gdwpm' ); 
  2. if($gdwpm_kode_berkas['video'] == 'auto') {$mode_autoplay = '1';}else{$mode_autoplay = '0';} 
  3. return '<embed src="https://video.google.com/get_player?autoplay=' . $mode_autoplay . '&docid=' . $gdwpm_kode_berkas['id'] . '&ps=docs&partnerid=30" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="' . $gdwpm_kode_berkas['w'] . '" height="' . $gdwpm_kode_berkas['h'] . '"></embed>'; 
  4. add_shortcode('gdwpm', 'gdwpm_iframe_shortcode');  
  5.  
  6. function gdwpm_gallery_code($atts) { 
  7. extract( shortcode_atts( array('id' => null), $atts ) ); 
  8.  
  9. $terms = get_the_terms( $id, 'gdwpm_album' );