mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-20 01:25:30 +01:00
e9c75f4bd2
git-svn-id: http://svn.automattic.com/wordpress/trunk@3570 1a063a9b-81f0-0310-95a4-ce76da25c4cd
49 lines
1.7 KiB
PHP
49 lines
1.7 KiB
PHP
<?php
|
|
require_once('admin.php');
|
|
|
|
$title = __('Add Bookmark');
|
|
$this_file = 'link-manager.php';
|
|
$parent_file = 'link-manager.php';
|
|
|
|
|
|
$wpvarstoreset = array('action', 'cat_id', 'linkurl', 'name', 'image',
|
|
'description', 'visible', 'target', 'category', 'link_id',
|
|
'submit', 'order_by', 'links_show_cat_id', 'rating', 'rel',
|
|
'notes', 'linkcheck[]');
|
|
for ($i=0; $i<count($wpvarstoreset); $i += 1) {
|
|
$wpvar = $wpvarstoreset[$i];
|
|
if (!isset($$wpvar)) {
|
|
if (empty($_POST["$wpvar"])) {
|
|
if (empty($_GET["$wpvar"])) {
|
|
$$wpvar = '';
|
|
} else {
|
|
$$wpvar = $_GET["$wpvar"];
|
|
}
|
|
} else {
|
|
$$wpvar = $_POST["$wpvar"];
|
|
}
|
|
}
|
|
}
|
|
|
|
$xfn_js = true;
|
|
$editing = true;
|
|
require('admin-header.php');
|
|
?>
|
|
|
|
<?php if ($_GET['added']) : ?>
|
|
<div id="message" class="updated fade"><p><?php _e('Bookmark added.'); ?></p></div>
|
|
<?php endif; ?>
|
|
|
|
<?php
|
|
$link = get_default_link_to_edit();
|
|
include('edit-link-form.php');
|
|
?>
|
|
|
|
<div class="wrap">
|
|
<?php printf(__('<p>You can drag <a href="%s" title="Bookmark add bookmarklet">Link This</a> to your toolbar and when you click it a window will pop up that will allow you to add whatever site you’re on to your bookmarks! Right now this only works on Mozilla or Netscape, but we’re working on it.</p>'), "javascript:void(linkmanpopup=window.open('" . get_settings('siteurl') . "/wp-admin/link-add.php?action=popup&linkurl='+escape(location.href)+'&name='+escape(document.title),'LinkManager','scrollbars=yes,width=750,height=550,left=15,top=15,status=yes,resizable=yes'));linkmanpopup.focus();window.focus();linkmanpopup.focus();") ?>
|
|
</div>
|
|
|
|
<?php
|
|
require('admin-footer.php');
|
|
?>
|