drag this link [<a href="javascript:<?=$js?>">+</a>] to your bookmark bar
<br />
<br />
-</p>
+</p>
<p>
project keywords: <i>
-bookmarks,
+bookmarks,
delicious-clone.
webservice,
database,
<!-- echo '© 2011 <a href="http://quilime.com">gabriel dunne</a>'; -->
-<hr />
\ No newline at end of file
+<hr />
if (strpos($tagstr, ',')) {
$tags = explode(',', $tagstr);
} else {
- # match all quoted strings
+ # match anything inside a pair of quotes
preg_match_all('/"(.*?)"/', $tagstr, $quoted_tags);
# strip quoted strings from tag string
$tagstr_noquotes = str_replace($quoted_tags[0], '', $tagstr);
<input type="text" tabindex="2" name="url" value="<?php echo $clump['url']; ?>">
</p>
+ <p>
+ <label>description</label>
+ <textarea type="text" tabindex="4" name="description"><?php echo htmlentities($clump['description']); ?></textarea>
+ </p>
+
<p>
<label>tags</label>
<input type="text" tabindex="3" name="tags" value="<?php echo htmlentities($clump['tags']); ?>">
<p>
- <p>
- <label>description</label>
- <input type="text" tabindex="4" name="description" value="<?php echo htmlentities($clump['description']); ?>">
- </p>
-
<p>
<span class="meta" title="<?php echo date('r', strtotime($clump['date'])); ?>">
saved <?php echo approximate_time(date('U') - strtotime($clump['date'])) ?> ago</a> by
?>
<!DOCTYPE html><head>
<?php include 'head.html'; ?>
+ <script>
+ $(document).ready(function() {
+ $('#tag-input')[0].focus();
+ });
+ </script>
</head><body>
<?php
</p>
<p>
- <label>tags <span class="ui">(combine "multiple words" with quotes)</span></label>
- <input type="text" id="tag-input" name="tags" tabindex="3" value="">
+ <label>description</label>
+ <textarea name="description" tabindex="3"></textarea>
</p>
<p>
- <label>description</label>
- <input type="text" name="description" tabindex="4" value="">
+ <label>tags</label>
+ <input type="text" id="tag-input" name="tags" tabindex="4" value="">
</p>
<br />