Smart YouTube PRO - Version 4.0.3

Version Description

  • More bug fixes
Download this release

Release Info

Developer freediver
Plugin Icon 128x128 Smart YouTube PRO
Version 4.0.3
Comparing to
See all releases

Code changes from version 4.0.2 to 4.0.3

Files changed (2) hide show
  1. readme.txt +3 -0
  2. smartyoutube.php +39 -95
readme.txt CHANGED
@@ -40,6 +40,9 @@ Plugin by Vladimir Prelovac. Also check out <a href="http://managewp.com">Manage
40
 
41
  == Changelog ==
42
 
 
 
 
43
  = 4.0.2 =
44
  * Bug fix release
45
 
40
 
41
  == Changelog ==
42
 
43
+ = 4.0.3 =
44
+ * More bug fixes
45
+
46
  = 4.0.2 =
47
  * Bug fix release
48
 
smartyoutube.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Smart Youtube PRO
4
  Plugin URI: http://www.prelovac.com/vladimir/wordpress-plugins/smart-youtube
5
  Description: Insert YouTube videos in posts, comments and RSS feeds with ease and full customization.
6
  Author: Vladimir Prelovac
7
- Version: 4.0.2
8
  Author URI: http://www.prelovac.com/vladimir/
9
 
10
 
@@ -553,11 +553,9 @@ class SmartYouTube_PRO {
553
 
554
  function handle_colorbox_options() {
555
  if ( isset( $_POST['submitted'] ) ) {
556
- $this->colorbox['theme'] = ( ! isset( $_POST['colorbox_theme'] ) ? '1' : $_POST['colorbox_theme'] );
557
 
558
- $options['colorbox'] = $this->colorbox;
559
-
560
- update_option( $this->key, $options );
561
 
562
  $msg_status = __( 'SEO Friendly Images PRO colorbox options saved.', 'smart-youtube' );
563
 
@@ -589,14 +587,14 @@ class SmartYouTube_PRO {
589
  <label for="colorbox_theme"><?php _e( 'Choose ColorBox theme:', 'smart-youtube' ); ?></label>
590
  <select id="colorbox_theme" name="colorbox_theme">
591
  <?php for($i = 1; $i <= 11; $i++): ?>
592
- <option value="<?php echo $i; ?>" <?php echo ( $this->options['colorbox']['theme'] == $i ) ? 'selected="yes"' : ''; ?>><?php echo __( 'Theme ', 'smart-youtube' ) . $i; ?></option>
593
  <?php endfor; ?>
594
  </select>
595
  </div>
596
  <div>
597
  <label for="screenshot_image"><?php _e( 'Theme screenshot:', 'smart-youtube' ); ?></label>
598
  <div id="screenshot_image">
599
- <img src="<?php echo $this->plugin_url . '/screenshots/screenshot-' . $this->options['colorbox']['theme'] . '.jpg'; ?>" />
600
  </div>
601
  </div>
602
  <div style="padding: 1.5em 0;margin: 5px 0;">
@@ -917,7 +915,7 @@ EOT;
917
  return $the_content;
918
  }
919
  if ( isset( $result ) ) {
920
- $the_content = '<div style="float:' . $this->options["excerpt_thumb"] . ';padding-' . ( $this->options["excerpt_thumb"] == 'left' ? 'right' : 'left' ) . ':10px;">' . $result . '</div>' . $the_content . '<div style="clear:both"></div>';
921
  }
922
  }
923
 
@@ -984,10 +982,6 @@ EOT;
984
  $height = ! $high ? 360 : 344;
985
  }
986
 
987
- if ( $disp_border ) {
988
- $height += 18;
989
- }
990
-
991
  $ap = '';
992
  if ( is_single() ) {
993
  if ( $context == 'post' && $autoplay_first && ! $this->first ) {
@@ -1023,9 +1017,7 @@ EOT;
1023
  global $post;
1024
  $post_url = get_permalink( $post->ID );
1025
  $yte_tag = <<<EOT
1026
- <a href="$post_url">
1027
- <img src="$img_url" height="$height" width="$width" />
1028
- </a>
1029
  EOT;
1030
  }
1031
 
@@ -1035,9 +1027,7 @@ EOT;
1035
  global $post;
1036
  $post_url = get_permalink( $post->ID );
1037
  $yte_tag = <<<EOT
1038
- <a href="$post_url">
1039
- <img src="$img_url" height="$height" width="$width" />
1040
- </a>
1041
  EOT;
1042
  } else {
1043
  $yte_tag = <<<EOT
@@ -1053,79 +1043,60 @@ EOT;
1053
  if ( $playlist ) {
1054
  $video_url = htmlspecialchars( "$root_url/embed/videoseries?list=$file&fs=1&hl=en$ap$ll&loop=$loop{$disp_info}$disp_ann&showsearch=$disp_search&rel=$disp_rel&theme=$theme", ENT_QUOTES ) . $high . $time;
1055
  $yte_tag = <<<EOT
1056
- <span class="youtube">
1057
- <iframe class="youtube-player" src="$video_url" width="$width" height="$height" frameborder="0" allowfullscreen></iframe>
1058
- </span>
1059
  EOT;
1060
  } elseif ( $valid == 'off' || strpos( $_SERVER['HTTP_USER_AGENT'], 'iPhone' ) === TRUE || strpos( $_SERVER['HTTP_USER_AGENT'], 'iPod' ) === TRUE || strpos( $_SERVER['HTTP_USER_AGENT'], 'iPad' ) === TRUE ) {
1061
  if ( $context == 'post' && $colorbox == 'on' && is_singular() ) {
1062
  $img_url = htmlspecialchars( "http://img.youtube.com/vi/$file/0.jpg" );
1063
  $yte_tag = <<<EOT
1064
- <a class="colorbox_video" href="$video_url">
1065
- <img width="$width" height="$height" src="$img_url" /></iframe>
1066
- </span>
1067
  EOT;
1068
  } else if ( $this->options['iframe'] == 'on' )
1069
  $yte_tag = <<<EOT
1070
- <span class="youtube">
1071
- <iframe title="YouTube video player" class="youtube-player" type="text/html" width="$width" height="$height" src="$video_url" frameborder="0" allowfullscreen></iframe>
1072
- </span>
1073
  EOT;
1074
  else
1075
  $yte_tag = <<<EOT
1076
- <span class="youtube">
1077
- <object width="$width" height="$height">
1078
- <param name="movie" value="$video_url" />
1079
- <param name="allowFullScreen" value="true" />
1080
- <embed wmode="opaque" src="$video_url" type="application/x-shockwave-flash" allowfullscreen="true" width="$width" height="$height"></embed>
1081
- <param name="wmode" value="opaque" />
1082
- </object>
1083
- </span>
1084
  EOT;
1085
  } else {
1086
  if ( $context == 'post' && $colorbox == 'on' && is_singular() ) {
1087
  $img_url = htmlspecialchars( "http://img.youtube.com/vi/$file/0.jpg" );
1088
  $yte_tag = <<<EOT
1089
- <a class="colorbox_video" href="$video_url">
1090
- <img width="$width" height="$height" src="$img_url" /></iframe>
1091
- </span>
1092
  EOT;
1093
  } else if ( $this->options['iframe'] == 'on' ) {
1094
  $yte_tag = <<<EOT
1095
- <span class="youtube">
1096
- <iframe title="YouTube video player" class="youtube-player" type="text/html" width="$width" height="$height" src="$video_url" frameborder="0" allowfullscreen></iframe>
1097
- </span>
1098
  EOT;
1099
  } else {
1100
  $yte_tag = <<<EOT
1101
- <span class="youtube">
1102
- <object type="application/x-shockwave-flash" width="$width" height="$height" data="$video_url">
1103
- <param name="movie" value="$video_url" />
1104
- <param name="allowFullScreen" value="true" />
1105
- <param name="wmode" value="transparent" />
1106
- </object>
1107
- </span>
1108
  EOT;
1109
  }
1110
  }
1111
  }
1112
 
1113
- if ( is_feed() && $context == 'post' ) {
1114
  if ( $high ) {
1115
  $high = '&fmt=18';
1116
  }
1117
  if ( $playlist )
1118
- $url='http://www.youtube.com/view_play_list?p=';
1119
  else
1120
- $url='http://www.youtube.com/watch?v=';
1121
 
1122
- if ( $this->options['img'] == 'on' ) {
1123
- $yte_tag .= '<p><a href="'.$url . $file . $high. '"><img src="http://img.youtube.com/vi/' . $file . '/default.jpg" width="130" height="97" border=0></a></p>';
 
1124
  }
1125
 
1126
- if ( $this->options['link'] == 'on' ) {
1127
- $yte_tag.='<p><a href="'.$url . $file . $high . '">www.youtube.com/watch?v=' . $file . '</a></p>';
1128
  }
 
1129
  // if ($this->options['link'] == 'off' && $this->options['img'] == 'off')
1130
  // $yte_tag='http://www.youtube.com/watch?v='.$file;
1131
  }
@@ -1186,9 +1157,7 @@ EOT;
1186
  global $post;
1187
  $post_url = get_permalink( $post->ID );
1188
  $yte_tag = <<<EOT
1189
- <a href="$post_url">
1190
- <img src="$img_url" height="$height" width="$width" />
1191
- </a>
1192
  EOT;
1193
  } else {
1194
  $yte_tag = <<<EOT
@@ -1198,14 +1167,11 @@ EOT;
1198
  } else if ( $context == 'post' && $colorbox == 'on' && is_singular() ) {
1199
  $img_url = htmlspecialchars( "http://www.metacafe.com/thumb/$file.jpg" );
1200
  $yte_tag = <<<EOT
1201
- <a class="colorbox_video" href="http://www.metacafe.com/fplayer/$file/$name.swf">
1202
- <img width="$width" height="$height" src="$img_url" /></iframe>
1203
- </span>
1204
  EOT;
1205
  } else {
1206
  $yte_tag = <<<EOT
1207
- <embed flashVars="$flash_vars" src="http://www.metacafe.com/fplayer/$file/$name.swf" width="$width" height="$height" wmode="transparent" allowFullScreen="true" allowScriptAccess="always" name="Metacafe_6261286" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash">
1208
- </embed>
1209
  EOT;
1210
  }
1211
 
@@ -1271,9 +1237,7 @@ EOT;
1271
  global $post;
1272
  $post_url = get_permalink( $post->ID );
1273
  $yte_tag = <<<EOT
1274
- <a href="$post_url">
1275
- <img src="$img_url" height="$height" width="$width" />
1276
- </a>
1277
  EOT;
1278
  } else {
1279
  $yte_tag = <<<EOT
@@ -1285,9 +1249,7 @@ EOT;
1285
  $thumbs = unserialize( file_get_contents( "http://vimeo.com/api/v2/video/$file.php" ) );
1286
  $img_url = htmlspecialchars( $thumbs[0]['thumbnail_large'] );
1287
  $yte_tag = <<<EOT
1288
- <a class="colorbox_video" href="$video_url">
1289
- <img width="$width" height="$height" src="$img_url" /></iframe>
1290
- </span>
1291
  EOT;
1292
  } else {
1293
  $yte_tag = <<<EOT
@@ -1326,9 +1288,7 @@ EOT;
1326
  global $post;
1327
  $post_url = get_permalink( $post->ID );
1328
  $yte_tag = <<<EOT
1329
- <a href="$post_url">
1330
- <img src="$img_url" height="$height" width="$width" />
1331
- </a>
1332
  EOT;
1333
  } else {
1334
  $yte_tag = <<<EOT
@@ -1338,17 +1298,11 @@ EOT;
1338
  } else if ( $context == 'post' && $colorbox == 'on' && is_singular() ) {
1339
  $img_url = htmlspecialchars( $this->plugin_url . '/img/default.jpg' );
1340
  $yte_tag = <<<EOT
1341
- <a class="colorbox_video" href="http://www.liveleak.com/e/$file">
1342
- <img width="$width" height="$height" src="$img_url" /></iframe>
1343
- </span>
1344
  EOT;
1345
  } else {
1346
  $yte_tag = <<<EOT
1347
- <object width="$width" height="$height">
1348
- <param name="movie" value="http://www.liveleak.com/e/$file"></param>
1349
- <param name="wmode" value="transparent"></param><param name="allowscriptaccess" value="always"></param>
1350
- <embed src="http://www.liveleak.com/e/$file" type="application/x-shockwave-flash" wmode="transparent" allowscriptaccess="always" width="$width" height="$height"></embed>
1351
- </object>
1352
  EOT;
1353
  }
1354
 
@@ -1383,9 +1337,7 @@ EOT;
1383
  global $post;
1384
  $post_url = get_permalink( $post->ID );
1385
  $yte_tag = <<<EOT
1386
- <a href="$post_url">
1387
- <img src="$img_url" height="$height" width="$width" />
1388
- </a>
1389
  EOT;
1390
  } else {
1391
  $yte_tag = <<<EOT
@@ -1395,19 +1347,12 @@ EOT;
1395
  } else if ( $context == 'post' && $colorbox == 'on' && is_singular() ) {
1396
  $img_url = htmlspecialchars( $this->plugin_url . '/img/default.jpg' );
1397
  $yte_tag = <<<EOT
1398
- <a class="colorbox_video" href="http://www.facebook.com/v/$file">
1399
- <img width="$width" height="$height" src="$img_url" /></iframe>
1400
- </span>
1401
  EOT;
1402
  } else {
1403
  $yte_tag = <<<EOT
1404
- <object width="$width" height="$height">
1405
- <param name="allowfullscreen" value="true" />
1406
- <param name="allowscriptaccess" value="always" />
1407
- <param name="movie" value="http://www.facebook.com/v/$file" />
1408
- <embed src="http://www.facebook.com/v/$file" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="$width" height="$height">
1409
- </embed>
1410
- </object>
1411
  EOT;
1412
  }
1413
 
@@ -1455,10 +1400,9 @@ EOT;
1455
  'colorbox' => 'off',
1456
  'colorbox_theme' => 1,
1457
  'excerpt' => 'not',
1458
- 'excerpt_thumb' => 'left',
1459
  'logoless' => 'on',
1460
  'wiziapp' => 'off',
1461
- 'teheme' => 'dark'
1462
  );
1463
  $saved = get_option( $this->key );
1464
 
4
  Plugin URI: http://www.prelovac.com/vladimir/wordpress-plugins/smart-youtube
5
  Description: Insert YouTube videos in posts, comments and RSS feeds with ease and full customization.
6
  Author: Vladimir Prelovac
7
+ Version: 4.0.3
8
  Author URI: http://www.prelovac.com/vladimir/
9
 
10
 
553
 
554
  function handle_colorbox_options() {
555
  if ( isset( $_POST['submitted'] ) ) {
556
+ $this->options['colorbox_theme'] = ( ! isset( $_POST['colorbox_theme'] ) ? '1' : $_POST['colorbox_theme'] );
557
 
558
+ update_option( $this->key, $this->options );
 
 
559
 
560
  $msg_status = __( 'SEO Friendly Images PRO colorbox options saved.', 'smart-youtube' );
561
 
587
  <label for="colorbox_theme"><?php _e( 'Choose ColorBox theme:', 'smart-youtube' ); ?></label>
588
  <select id="colorbox_theme" name="colorbox_theme">
589
  <?php for($i = 1; $i <= 11; $i++): ?>
590
+ <option value="<?php echo $i; ?>" <?php echo ( $this->options['colorbox_theme'] == $i ) ? 'selected="yes"' : ''; ?>><?php echo __( 'Theme ', 'smart-youtube' ) . $i; ?></option>
591
  <?php endfor; ?>
592
  </select>
593
  </div>
594
  <div>
595
  <label for="screenshot_image"><?php _e( 'Theme screenshot:', 'smart-youtube' ); ?></label>
596
  <div id="screenshot_image">
597
+ <img src="<?php echo $this->plugin_url . '/screenshots/screenshot-' . $this->options['colorbox_theme'] . '.jpg'; ?>" />
598
  </div>
599
  </div>
600
  <div style="padding: 1.5em 0;margin: 5px 0;">
915
  return $the_content;
916
  }
917
  if ( isset( $result ) ) {
918
+ $the_content = '<div style="float:' . $this->options["excerpt_align"] . ';padding-' . ( $this->options["excerpt_aign"] == 'left' ? 'right' : 'left' ) . ':10px;">' . $result . '</div>' . $the_content . '<div style="clear:both"></div>';
919
  }
920
  }
921
 
982
  $height = ! $high ? 360 : 344;
983
  }
984
 
 
 
 
 
985
  $ap = '';
986
  if ( is_single() ) {
987
  if ( $context == 'post' && $autoplay_first && ! $this->first ) {
1017
  global $post;
1018
  $post_url = get_permalink( $post->ID );
1019
  $yte_tag = <<<EOT
1020
+ <a href="$post_url"><img src="$img_url" height="$height" width="$width" /></a>
 
 
1021
  EOT;
1022
  }
1023
 
1027
  global $post;
1028
  $post_url = get_permalink( $post->ID );
1029
  $yte_tag = <<<EOT
1030
+ <a href="$post_url"><img src="$img_url" height="$height" width="$width" /></a>
 
 
1031
  EOT;
1032
  } else {
1033
  $yte_tag = <<<EOT
1043
  if ( $playlist ) {
1044
  $video_url = htmlspecialchars( "$root_url/embed/videoseries?list=$file&fs=1&hl=en$ap$ll&loop=$loop{$disp_info}$disp_ann&showsearch=$disp_search&rel=$disp_rel&theme=$theme", ENT_QUOTES ) . $high . $time;
1045
  $yte_tag = <<<EOT
1046
+ <span class="youtube"><iframe class="youtube-player" src="$video_url" width="$width" height="$height" frameborder="0" allowfullscreen></iframe></span>
 
 
1047
  EOT;
1048
  } elseif ( $valid == 'off' || strpos( $_SERVER['HTTP_USER_AGENT'], 'iPhone' ) === TRUE || strpos( $_SERVER['HTTP_USER_AGENT'], 'iPod' ) === TRUE || strpos( $_SERVER['HTTP_USER_AGENT'], 'iPad' ) === TRUE ) {
1049
  if ( $context == 'post' && $colorbox == 'on' && is_singular() ) {
1050
  $img_url = htmlspecialchars( "http://img.youtube.com/vi/$file/0.jpg" );
1051
  $yte_tag = <<<EOT
1052
+ <a class="colorbox_video" href="$video_url"><img width="$width" height="$height" src="$img_url" /></iframe></span>
 
 
1053
  EOT;
1054
  } else if ( $this->options['iframe'] == 'on' )
1055
  $yte_tag = <<<EOT
1056
+ <span class="youtube"><iframe title="YouTube video player" class="youtube-player" type="text/html" width="$width" height="$height" src="$video_url" frameborder="0" allowfullscreen></iframe></span>
 
 
1057
  EOT;
1058
  else
1059
  $yte_tag = <<<EOT
1060
+ <span class="youtube"><object width="$width" height="$height"><param name="movie" value="$video_url" />
1061
+ <param name="allowFullScreen" value="true" /><embed wmode="opaque" src="$video_url" type="application/x-shockwave-flash" allowfullscreen="true" width="$width" height="$height"></embed><param name="wmode" value="opaque" /></object></span>
 
 
 
 
 
 
1062
  EOT;
1063
  } else {
1064
  if ( $context == 'post' && $colorbox == 'on' && is_singular() ) {
1065
  $img_url = htmlspecialchars( "http://img.youtube.com/vi/$file/0.jpg" );
1066
  $yte_tag = <<<EOT
1067
+ <a class="colorbox_video" href="$video_url"><img width="$width" height="$height" src="$img_url" /></iframe></span>
 
 
1068
  EOT;
1069
  } else if ( $this->options['iframe'] == 'on' ) {
1070
  $yte_tag = <<<EOT
1071
+ <span class="youtube"><iframe title="YouTube video player" class="youtube-player" type="text/html" width="$width" height="$height" src="$video_url" frameborder="0" allowfullscreen></iframe></span>
 
 
1072
  EOT;
1073
  } else {
1074
  $yte_tag = <<<EOT
1075
+ <span class="youtube"><object type="application/x-shockwave-flash" width="$width" height="$height" data="$video_url"><param name="movie" value="$video_url" />
1076
+ <param name="allowFullScreen" value="true" /><param name="wmode" value="transparent" /></object></span>
 
 
 
 
 
1077
  EOT;
1078
  }
1079
  }
1080
  }
1081
 
1082
+ if ( is_feed() && ( $context == 'post' || $context = 'excerpt' ) ) {
1083
  if ( $high ) {
1084
  $high = '&fmt=18';
1085
  }
1086
  if ( $playlist )
1087
+ $url = 'http://www.youtube.com/view_play_list?p=';
1088
  else
1089
+ $url = 'http://www.youtube.com/watch?v=';
1090
 
1091
+ $yte_tag = '';
1092
+ if ( $this->options['link'] == 'on' ) {
1093
+ $yte_tag .= '<p><a href="' . $url . $file . $high . '">www.youtube.com/watch?v=' . $file . '</a></p>';
1094
  }
1095
 
1096
+ if ( $this->options['img'] == 'on' ) {
1097
+ $yte_tag .= '<p><a href="' . $url . $file . $high. '"><img src="http://img.youtube.com/vi/' . $file . '/default.jpg" width="130" height="97" border=0></a></p>';
1098
  }
1099
+
1100
  // if ($this->options['link'] == 'off' && $this->options['img'] == 'off')
1101
  // $yte_tag='http://www.youtube.com/watch?v='.$file;
1102
  }
1157
  global $post;
1158
  $post_url = get_permalink( $post->ID );
1159
  $yte_tag = <<<EOT
1160
+ <a href="$post_url"><img src="$img_url" height="$height" width="$width" /></a>
 
 
1161
  EOT;
1162
  } else {
1163
  $yte_tag = <<<EOT
1167
  } else if ( $context == 'post' && $colorbox == 'on' && is_singular() ) {
1168
  $img_url = htmlspecialchars( "http://www.metacafe.com/thumb/$file.jpg" );
1169
  $yte_tag = <<<EOT
1170
+ <a class="colorbox_video" href="http://www.metacafe.com/fplayer/$file/$name.swf"><img width="$width" height="$height" src="$img_url" /></iframe></span>
 
 
1171
  EOT;
1172
  } else {
1173
  $yte_tag = <<<EOT
1174
+ <embed flashVars="$flash_vars" src="http://www.metacafe.com/fplayer/$file/$name.swf" width="$width" height="$height" wmode="transparent" allowFullScreen="true" allowScriptAccess="always" name="Metacafe_6261286" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
 
1175
  EOT;
1176
  }
1177
 
1237
  global $post;
1238
  $post_url = get_permalink( $post->ID );
1239
  $yte_tag = <<<EOT
1240
+ <a href="$post_url"><img src="$img_url" height="$height" width="$width" /></a>
 
 
1241
  EOT;
1242
  } else {
1243
  $yte_tag = <<<EOT
1249
  $thumbs = unserialize( file_get_contents( "http://vimeo.com/api/v2/video/$file.php" ) );
1250
  $img_url = htmlspecialchars( $thumbs[0]['thumbnail_large'] );
1251
  $yte_tag = <<<EOT
1252
+ <a class="colorbox_video" href="$video_url"><img width="$width" height="$height" src="$img_url" /></a>
 
 
1253
  EOT;
1254
  } else {
1255
  $yte_tag = <<<EOT
1288
  global $post;
1289
  $post_url = get_permalink( $post->ID );
1290
  $yte_tag = <<<EOT
1291
+ <a href="$post_url"><img src="$img_url" height="$height" width="$width" /></a>
 
 
1292
  EOT;
1293
  } else {
1294
  $yte_tag = <<<EOT
1298
  } else if ( $context == 'post' && $colorbox == 'on' && is_singular() ) {
1299
  $img_url = htmlspecialchars( $this->plugin_url . '/img/default.jpg' );
1300
  $yte_tag = <<<EOT
1301
+ <a class="colorbox_video" href="http://www.liveleak.com/e/$file"><img width="$width" height="$height" src="$img_url" /></iframe></span>
 
 
1302
  EOT;
1303
  } else {
1304
  $yte_tag = <<<EOT
1305
+ <object width="$width" height="$height"><param name="movie" value="http://www.liveleak.com/e/$file"></param><param name="wmode" value="transparent"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.liveleak.com/e/$file" type="application/x-shockwave-flash" wmode="transparent" allowscriptaccess="always" width="$width" height="$height"></embed></object>
 
 
 
 
1306
  EOT;
1307
  }
1308
 
1337
  global $post;
1338
  $post_url = get_permalink( $post->ID );
1339
  $yte_tag = <<<EOT
1340
+ <a href="$post_url"><img src="$img_url" height="$height" width="$width" /></a>
 
 
1341
  EOT;
1342
  } else {
1343
  $yte_tag = <<<EOT
1347
  } else if ( $context == 'post' && $colorbox == 'on' && is_singular() ) {
1348
  $img_url = htmlspecialchars( $this->plugin_url . '/img/default.jpg' );
1349
  $yte_tag = <<<EOT
1350
+ <a class="colorbox_video" href="http://www.facebook.com/v/$file"><img width="$width" height="$height" src="$img_url" /></iframe></span>
 
 
1351
  EOT;
1352
  } else {
1353
  $yte_tag = <<<EOT
1354
+ <object width="$width" height="$height"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" />
1355
+ <param name="movie" value="http://www.facebook.com/v/$file" /><embed src="http://www.facebook.com/v/$file" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="$width" height="$height"></embed></object>
 
 
 
 
 
1356
  EOT;
1357
  }
1358
 
1400
  'colorbox' => 'off',
1401
  'colorbox_theme' => 1,
1402
  'excerpt' => 'not',
 
1403
  'logoless' => 'on',
1404
  'wiziapp' => 'off',
1405
+ 'theme' => 'dark'
1406
  );
1407
  $saved = get_option( $this->key );
1408