Changeset 799707
- Timestamp:
- 11/06/2013 09:11:22 AM (12 years ago)
- Location:
- lemonwhale-video/trunk
- Files:
-
- 2 edited
-
lemonwhale.php (modified) (6 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lemonwhale-video/trunk/lemonwhale.php
r799247 r799707 2 2 /* 3 3 Plugin Name: Lemonwhale 4 Description: Publish lemonwhale video real easy5 Author: Svante Holmdahl6 Version: 1. 1.17 Author URL: http:// lemonwhale.com4 Description: Publish Lemonwhale video real easy 5 Author: Dan Wester 6 Version: 1.0.1 7 Author URL: http://www.lemonwhale.com 8 8 9 9 [lemonwhale vid="" width="480" height ="360" theme="MAGAZINE" pid=""] … … 23 23 'vid' => '', 24 24 'width' => '480', 25 'height' => ' 360',25 'height' => '270', 26 26 'theme' => 'MAGAZINE', 27 27 'uid' => '', … … 31 31 return $content; 32 32 33 $sPlayerTemplate = '<iframe src="http://ljsp.lwcdn.com/api/video/embed.jsp?id=%VID%&pi=%PID%" title="0;" byline="0;" portrait="0;" width="% WIDTH%" height="%HEIGHT%" frameborder="0"></iframe>';33 $sPlayerTemplate = '<iframe src="http://ljsp.lwcdn.com/api/video/embed.jsp?id=%VID%&pi=%PID%" title="0;" byline="0;" portrait="0;" width="%_WIDTH%" height="%_HEIGHT%" frameborder="0"></iframe>'; 34 34 35 $sPlayerTemplate = str_replace('% WIDTH%', $width, $sPlayerTemplate);36 $sPlayerTemplate = str_replace('% HEIGHT%', $height, $sPlayerTemplate);35 $sPlayerTemplate = str_replace('%_WIDTH%', $width, $sPlayerTemplate); 36 $sPlayerTemplate = str_replace('%_HEIGHT%', $height, $sPlayerTemplate); 37 37 $sPlayerTemplate = str_replace('%VID%', $vid, $sPlayerTemplate); 38 38 $sPlayerTemplate = str_replace('%PID%', $pid, $sPlayerTemplate); … … 58 58 }else{ 59 59 if(strpos($lwdataFromUrl[0],'lwcdn.com') !== false){ 60 return media_send_to_editor('[lemonwhale vid="' . $lwdataFromUrl[1] . '" pid="' . $lwdataFromUrl[3] . '" width="' . $_POST['width'] . '" height="' . $_POST['height']. ' ]');60 return media_send_to_editor('[lemonwhale vid="' . $lwdataFromUrl[1] . '" pid="' . $lwdataFromUrl[3] . '" width="' . $_POST['width'] . '" height="' . $_POST['height']. '"]'); 61 61 }else{ 62 echo '<div class="error"><p>We can not publish your video. Maybe you did not copy the whole wordpress data. Clear and copy again.</p></div';62 echo '<div class="error"><p>We can not publish your video. Maybe you did not copy the whole Wordpress data. Clear and copy again.</p></div'; 63 63 } 64 64 } 65 65 } 66 66 else if(sizeof($lwdata)>3) { 67 echo '<div class="error"><p>We can not publish your video. Maybe you pasted the wordpress data twice? Clear and paste again.</p></div';67 echo '<div class="error"><p>We can not publish your video. Maybe you pasted the Wordpress data twice? Clear and paste again.</p></div'; 68 68 } 69 69 else { … … 80 80 81 81 echo '<div style="padding: 30px;background-color:#FFFFFF;" ><div><img src="http://www.lemonwhale.com/wp-content/uploads/2013/10/Logo-300x98.png"></div> 82 <h3 class="media-title">Add a lemonwhale video to your blog post:</h3>83 <p style="font-size:10px;">Copy the " link Url" from your lemonwhale account and paste it here below. Set the correct size and click on "insert video".</p>82 <h3 class="media-title">Add a Lemonwhale video to your blog post:</h3> 83 <p style="font-size:10px;">Copy the "Link Url" from your Lemonwhale account and paste it here below. Set the correct size and click on "insert video".</p> 84 84 <div style="margin-top:5px; padding:15px; border-width:1px; border-style:solid; border-color:#bbbbbb;"><form method="post"> 85 <table border="0"><tr><td width="80px">Wordpress data </td><td><input type="text" name="url" size="55"/></td></tr>85 <table border="0"><tr><td width="80px">Wordpress data OR Link-Url</td><td><input type="text" name="url" size="55"/></td></tr> 86 86 <tr><td width="80px">Embed size: </td><td><input type="text" name="width" size="4" value="480"> x <input type="text" name="height" size="4" value="270"></td></tr></table> 87 87 <input type="submit" value="Insert video" /></form></div> 88 <p style="margin-top:20px; font-weight:bold;">Visit <a href="http://www.lemonwhale.com" target="_blank"> lemonwhale.com</a>.</p>88 <p style="margin-top:20px; font-weight:bold;">Visit <a href="http://www.lemonwhale.com" target="_blank">Lemonwhale</a>.</p> 89 89 </div>'; 90 90 } … … 93 93 function lemonwhale_media_button() 94 94 { 95 $out = "<a href='" . esc_url( get_upload_iframe_src('lemonwhale') ) . "' id='add_lemonwhale' class='thickbox' title='Add lemonwhale Video'><img src='" . esc_url( content_url('http://www.lemonwhale.com/wordpress-plugin/lemonwhale/LW-2.png') ) . "' alt='Add lemonwhale Video' /></a>";95 $out = "<a href='" . esc_url( get_upload_iframe_src('lemonwhale') ) . "' id='add_lemonwhale' class='thickbox' title='Add Lemonwhale Video'><img src='" . esc_url( content_url('/plugins/lemonwhale-video/LW-2.png') ) . "' alt='Add Lemonwhale Video' /></a>"; 96 96 printf($out); 97 97 } -
lemonwhale-video/trunk/readme.txt
r799247 r799707 26 26 == Changelog == 27 27 28 = 1.0.1 = 29 - Change url to button image 30 28 31 = 1.0 = 29 30 32 - First version
Note: See TracChangeset
for help on using the changeset viewer.