1
0
mirror of https://github.com/kremalicious/krtmn.git synced 2024-12-22 01:03:28 +01:00

yourls_html_addnew rewrite

This commit is contained in:
Matthias Kretschmann 2012-02-27 08:32:03 +01:00
parent a3dc60950f
commit 51e43d001d

View File

@ -139,8 +139,12 @@ function yourls_html_addnew( $url = '', $keyword = '' ) {
<div id="new_url">
<div>
<form id="new_url_form" action="" method="get">
<div><strong>Enter the URL</strong>:<input type="text" id="add-url" name="url" value="<?php echo $url; ?>" class="text" size="80" />
Optional: <strong>Custom short URL</strong>:<input type="text" id="add-keyword" name="keyword" value="<?php echo $keyword; ?>" class="text" size="8" />
<div>
<label for="add-url">Enter the URL</label>
<p>
<input type="text" id="add-url" name="url" value="<?php echo $url; ?>" class="text" size="80" />
<input type="text" id="add-keyword" name="keyword" value="<?php echo $keyword; ?>" class="text" placeholder="Custom" size="8" />
</p>
<?php yourls_nonce_field( 'add_url', 'nonce-add' ); ?>
<input type="button" id="add-button" name="add-button" value="Shorten The URL" class="button" onclick="add();" /></div>
</form>