web/wp-admin/link-add.php
changeset 194 32102edaa81b
parent 136 bde1974c263b
equal deleted inserted replaced
193:2f6f6f7551ca 194:32102edaa81b
     1 <?php
     1 <?php
     2 /**
     2 /**
     3  * Add Link Administration Panel.
     3  * Add Link Administration Screen.
     4  *
     4  *
     5  * @package WordPress
     5  * @package WordPress
     6  * @subpackage Administration
     6  * @subpackage Administration
     7  */
     7  */
     8 
     8 
     9 /** Load WordPress Administration Bootstrap */
     9 /** Load WordPress Administration Bootstrap */
    10 require_once('admin.php');
    10 require_once('./admin.php');
    11 
    11 
    12 if ( ! current_user_can('manage_links') )
    12 if ( ! current_user_can('manage_links') )
    13 	wp_die(__('You do not have sufficient permissions to add links to this blog.'));
    13 	wp_die(__('You do not have sufficient permissions to add links to this site.'));
    14 
    14 
    15 $title = __('Add New Link');
    15 $title = __('Add New Link');
    16 $parent_file = 'link-manager.php';
    16 $parent_file = 'link-manager.php';
    17 
    17 
    18 wp_reset_vars(array('action', 'cat_id', 'linkurl', 'name', 'image',
    18 wp_reset_vars(array('action', 'cat_id', 'linkurl', 'name', 'image',
    21 	'notes', 'linkcheck[]'));
    21 	'notes', 'linkcheck[]'));
    22 
    22 
    23 wp_enqueue_script('link');
    23 wp_enqueue_script('link');
    24 wp_enqueue_script('xfn');
    24 wp_enqueue_script('xfn');
    25 
    25 
       
    26 if ( wp_is_mobile() )
       
    27 	wp_enqueue_script( 'jquery-touch-punch' );
       
    28 
    26 $link = get_default_link_to_edit();
    29 $link = get_default_link_to_edit();
    27 include('edit-link-form.php');
    30 include('./edit-link-form.php');
    28 
    31 
    29 require('admin-footer.php');
    32 require('./admin-footer.php');
    30 ?>