Changeset 2016530
- Timestamp:
- 01/21/2019 10:57:40 PM (7 years ago)
- File:
-
- 1 edited
-
bingewith/trunk/bingewith.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
bingewith/trunk/bingewith.php
r2015988 r2016530 81 81 } 82 82 83 if (!function_exists("bingewith_shortcode")) { 84 function bingewith_shortcode($atts) { 85 $atts = shortcode_atts( 86 array( 87 'height' => '65', 88 'width' => '480', 89 ), 90 $atts, 91 'bingewith' 92 ); 93 $permalink = get_permalink(); 94 return "<iframe height='" . $atts['height'] . "' width='" . $atts['width'] . "' frameBorder='0' style='margin: 0;' src='https://bingewith.com/article/::_wp&permalink=$permalink' scrolling='no'></iframe>"; 95 } 96 add_shortcode('bingewith', 'bingewith_shortcode'); 97 } 98 83 99 ?>
Note: See TracChangeset
for help on using the changeset viewer.