Plugin Directory

Changeset 799707


Ignore:
Timestamp:
11/06/2013 09:11:22 AM (12 years ago)
Author:
danwester
Message:

Updated the button image url and some small typos

Location:
lemonwhale-video/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lemonwhale-video/trunk/lemonwhale.php

    r799247 r799707  
    22/*
    33    Plugin Name: Lemonwhale
    4     Description: Publish lemonwhale video real easy
    5     Author: Svante Holmdahl
    6     Version: 1.1.1
    7     Author URL: http://lemonwhale.com
     4    Description: Publish Lemonwhale video real easy
     5    Author: Dan Wester
     6    Version: 1.0.1
     7    Author URL: http://www.lemonwhale.com
    88
    99    [lemonwhale vid="" width="480" height ="360" theme="MAGAZINE" pid=""]
     
    2323        'vid' => '',
    2424        'width' => '480',
    25         'height' => '360',
     25        'height' => '270',
    2626        'theme' => 'MAGAZINE',
    2727        'uid' => '',
     
    3131        return $content;
    3232
    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>';
    3434
    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);
    3737    $sPlayerTemplate = str_replace('%VID%', $vid, $sPlayerTemplate);
    3838    $sPlayerTemplate = str_replace('%PID%', $pid, $sPlayerTemplate);
     
    5858            }else{
    5959                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']. '"]');
    6161                }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';
    6363                }
    6464            }
    6565        }
    6666        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';
    6868        }
    6969        else {
     
    8080
    8181    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>
    8484                <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>
    8686                <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>
    8787                <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>
    8989              </div>';
    9090}
     
    9393function lemonwhale_media_button()
    9494{
    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>";
    9696    printf($out);
    9797}
  • lemonwhale-video/trunk/readme.txt

    r799247 r799707  
    2626== Changelog ==
    2727
     28= 1.0.1 =
     29- Change url to button image
     30
    2831= 1.0 =
    29 
    3032- First version
Note: See TracChangeset for help on using the changeset viewer.