PHP 8.1.33
Preview: edit-link-form.php Size: 6.21 KB
/home/jambtst2015/public_html/www.securiskbrokers.com/wp-admin/edit-link-form.php

<?php
/**
 * Edit links form for inclusion in administration panels.
 *
 * @package WordPress
 * @subpackage Administration
 */

// Don't load directly.
if ( ! defined( 'ABSPATH' ) ) {
	die( '-1' );
}

if ( ! empty( $link_id ) ) {
	/* translators: %s: URL to Links screen. */
	$heading      = sprintf( __( '<a href="%s">Links</a> / Edit Link' ), 'link-manager.php' );
	$submit_text  = __( 'Update Link' );
	$form_name    = 'editlink';
	$nonce_action = 'update-bookmark_' . $link_id;
} else {
	/* translators: %s: URL to Links screen. */
	$heading      = sprintf( __( '<a href="%s">Links</a> / Add New Link' ), 'link-manager.php' );
	$submit_text  = __( 'Add Link' );
	$form_name    = 'addlink';
	$nonce_action = 'add-bookmark';
}

require_once ABSPATH . 'wp-admin/includes/meta-boxes.php';

add_meta_box( 'linksubmitdiv', __( 'Save' ), 'link_submit_meta_box', null, 'side', 'core' );
add_meta_box( 'linkcategorydiv', __( 'Categories' ), 'link_categories_meta_box', null, 'normal', 'core' );
add_meta_box( 'linktargetdiv', __( 'Target' ), 'link_target_meta_box', null, 'normal', 'core' );
add_meta_box( 'linkxfndiv', __( 'Link Relationship (XFN)' ), 'link_xfn_meta_box', null, 'normal', 'core' );
add_meta_box( 'linkadvanceddiv', __( 'Advanced' ), 'link_advanced_meta_box', null, 'normal', 'core' );

/** This action is documented in wp-admin/includes/meta-boxes.php */
do_action( 'add_meta_boxes', 'link', $link );

/**
 * Fires when link-specific meta boxes are added.
 *
 * @since 3.0.0
 *
 * @param object $link Link object.
 */
do_action( 'add_meta_boxes_link', $link );

/** This action is documented in wp-admin/includes/meta-boxes.php */
do_action( 'do_meta_boxes', 'link', 'normal', $link );
/** This action is documented in wp-admin/includes/meta-boxes.php */
do_action( 'do_meta_boxes', 'link', 'advanced', $link );
/** This action is documented in wp-admin/includes/meta-boxes.php */
do_action( 'do_meta_boxes', 'link', 'side', $link );

add_screen_option(
	'layout_columns',
	array(
		'max'     => 2,
		'default' => 2,
	)
);

get_current_screen()->add_help_tab(
	array(
		'id'      => 'overview',
		'title'   => __( 'Overview' ),
		'content' =>
		'<p>' . __( 'You can add or edit links on this screen by entering information in each of the boxes. Only the link&#8217;s web address and name (the text you want to display on your site as the link) are required fields.' ) . '</p>' .
		'<p>' . __( 'The boxes for link name, web address, and description have fixed positions, while the others may be repositioned using drag and drop. You can also hide boxes you do not use in the Screen Options tab, or minimize boxes by clicking on the title bar of the box.' ) . '</p>' .
		'<p>' . __( 'XFN stands for <a href="https://gmpg.org/xfn/">XHTML Friends Network</a>, which is optional. WordPress allows the generation of XFN attributes to show how you are related to the authors/owners of the site to which you are linking.' ) . '</p>',
	)
);

get_current_screen()->set_help_sidebar(
	'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
	'<p>' . __( '<a href="https://codex.wordpress.org/Links_Add_New_Screen">Documentation on Creating Links</a>' ) . '</p>' .
	'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
);

require_once ABSPATH . 'wp-admin/admin-header.php';
?>

<div class="wrap">
<h1 class="wp-heading-inline">
<?php
echo esc_html( $title );
?>
</h1>

<a href="link-add.php" class="page-title-action"><?php echo esc_html__( 'Add New Link' ); ?></a>

<hr class="wp-header-end">

<?php
if ( isset( $_GET['added'] ) ) {
	wp_admin_notice(
		__( 'Link added.' ),
		array(
			'id'                 => 'message',
			'additional_classes' => array( 'updated' ),
			'dismissible'        => true,
		)
	);
}
?>

<form name="<?php echo esc_attr( $form_name ); ?>" id="<?php echo esc_attr( $form_name ); ?>" method="post" action="link.php">
<?php
if ( ! empty( $link_added ) ) {
	echo $link_added;
}

wp_nonce_field( $nonce_action );
wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false );
?>

<div id="poststuff">

<div id="post-body" class="metabox-holder columns-<?php echo ( 1 === get_current_screen()->get_columns() ) ? '1' : '2'; ?>">
<div id="post-body-content">
<div id="namediv" class="postbox">
<h2 class="postbox-header"><label for="link_name"><?php _ex( 'Name', 'link name' ); ?></label></h2>
<div class="inside">
	<input type="text" name="link_name" size="30" maxlength="255" value="<?php echo esc_attr( $link->link_name ); ?>" id="link_name" />
	<p><?php _e( 'Example: Nifty blogging software' ); ?></p>
</div>
</div>

<div id="addressdiv" class="postbox">
<h2 class="postbox-header"><label for="link_url"><?php _e( 'Web Address' ); ?></label></h2>
<div class="inside">
	<input type="text" name="link_url" size="30" maxlength="255" class="code" value="<?php echo esc_url( $link->link_url ); ?>" id="link_url" />
	<p><?php _e( 'Example: <code>https://wordpress.org/</code> &#8212; do not forget the <code>https://</code>' ); ?></p>
</div>
</div>

<div id="descriptiondiv" class="postbox">
<h2 class="postbox-header"><label for="link_description"><?php _e( 'Description' ); ?></label></h2>
<div class="inside">
	<input type="text" name="link_description" size="30" maxlength="255" value="<?php echo isset( $link->link_description ) ? esc_attr( $link->link_description ) : ''; ?>" id="link_description" />
	<p><?php _e( 'This will be shown when someone hovers over the link in the blogroll, or optionally below the link.' ); ?></p>
</div>
</div>
</div><!-- /post-body-content -->

<div id="postbox-container-1" class="postbox-container">
<?php

/** This action is documented in wp-admin/includes/meta-boxes.php */
do_action( 'submitlink_box' );
$side_meta_boxes = do_meta_boxes( 'link', 'side', $link );

?>
</div>
<div id="postbox-container-2" class="postbox-container">
<?php

do_meta_boxes( null, 'normal', $link );

do_meta_boxes( null, 'advanced', $link );

?>
</div>
<?php

if ( $link_id ) :
	?>
<input type="hidden" name="action" value="save" />
<input type="hidden" name="link_id" value="<?php echo (int) $link_id; ?>" />
<input type="hidden" name="cat_id" value="<?php echo (int) $cat_id; ?>" />
<?php else : ?>
<input type="hidden" name="action" value="add" />
<?php endif; ?>

</div>
</div>

</form>
</div>

Directory Contents

Dirs: 7 × Files: 94

Name Size Perms Modified Actions
css DIR
- drwxr-xr-x 2024-12-09 13:54:39
Edit Download
images DIR
- drwxr-xr-x 2024-12-09 13:54:39
Edit Download
includes DIR
- drwxr-xr-x 2025-10-17 03:02:14
Edit Download
js DIR
- drwxr-xr-x 2024-12-09 13:54:39
Edit Download
maint DIR
- drwxr-xr-x 2024-12-09 13:54:39
Edit Download
network DIR
- drwxr-xr-x 2024-12-09 13:54:39
Edit Download
user DIR
- drwxr-xr-x 2024-12-09 13:54:39
Edit Download
17.64 KB lrw-r--r-- 2025-09-30 21:31:58
Edit Download
5.03 KB lrw-r--r-- 2024-07-04 15:22:14
Edit Download
2.77 KB lrw-r--r-- 2024-09-26 19:41:14
Edit Download
406 B lrw-r--r-- 2020-02-06 11:33:12
Edit Download
8.86 KB lrw-r--r-- 2024-09-08 02:44:18
Edit Download
2.02 KB lrw-r--r-- 2024-05-01 22:01:12
Edit Download
12.27 KB lrw-r--r-- 2024-09-03 22:19:14
Edit Download
4.74 KB lrw-r--r-- 2024-12-19 01:58:16
Edit Download
10.09 KB lrw-r--r-- 2023-09-14 04:54:20
Edit Download
11.35 KB lrw-r--r-- 2024-05-01 22:01:12
Edit Download
5.59 KB lrw-r--r-- 2024-02-27 04:51:12
Edit Download
3.75 KB lrw-r--r-- 2024-02-27 04:51:12
Edit Download
416 B lrw-r--r-- 2020-02-06 11:33:12
Edit Download
426 B lrw-r--r-- 2020-02-06 11:33:12
Edit Download
10.87 KB lrw-r--r-- 2024-07-24 20:23:18
Edit Download
14.38 KB lrw-r--r-- 2023-09-17 19:33:18
Edit Download
28.86 KB lrw-r--r-- 2024-10-07 20:57:16
Edit Download
12.96 KB lrw-r--r-- 2024-10-30 02:55:18
Edit Download
8.34 KB lrw-r--r-- 2023-02-07 22:10:22
Edit Download
6.21 KB lrw-r--r-- 2023-09-14 06:15:18
Edit Download
10.44 KB lrw-r--r-- 2024-08-20 21:50:16
Edit Download
22.00 KB lrw-r--r-- 2025-02-04 08:26:20
Edit Download
19.48 KB lrw-r--r-- 2024-10-04 02:46:16
Edit Download
7.33 KB lrw-r--r-- 2024-04-18 00:21:16
Edit Download
2.78 KB lrw-r--r-- 2025-10-22 20:59:09
Edit Download
7.75 KB lrw-r--r-- 2024-04-18 00:21:16
Edit Download
11.02 KB lrw-r--r-- 2024-05-27 00:51:14
Edit Download
4.50 KB lrw-r--r-- 2024-02-27 04:51:12
Edit Download
7.48 KB lrw-r--r-- 2024-02-27 01:35:08
Edit Download
7.68 KB lrw-r--r-- 2023-09-14 04:54:20
Edit Download
6.80 KB lrw-r--r-- 2022-11-20 19:10:16
Edit Download
17.10 KB lrw-r--r-- 2024-09-17 04:03:54
Edit Download
938 B lrw-r--r-- 2024-05-01 22:01:12
Edit Download
4.26 KB lrw-r--r-- 2023-09-14 06:15:18
Edit Download
2.63 KB lrw-r--r-- 2024-06-14 00:50:14
Edit Download
2.89 KB lrw-r--r-- 2024-05-01 22:01:12
Edit Download
2.02 KB lrw-r--r-- 2024-08-26 03:48:14
Edit Download
2.92 KB lrw-r--r-- 2024-11-05 04:36:16
Edit Download
3.18 KB lrw-r--r-- 2023-02-23 15:38:22
Edit Download
3.49 KB lrw-r--r-- 2023-09-07 18:59:22
Edit Download
819 B lrw-r--r-- 2024-05-01 22:01:12
Edit Download
9.83 KB lrw-r--r-- 2024-06-20 23:41:16
Edit Download
16.67 KB lrw-r--r-- 2024-10-04 02:46:16
Edit Download
307 B lrw-r--r-- 2020-02-06 11:33:12
Edit Download
196 B lrw-r--r-- 2020-02-06 11:33:12
Edit Download
4.19 KB lrw-r--r-- 2024-09-03 22:19:14
Edit Download
216 B lrw-r--r-- 2020-02-06 11:33:12
Edit Download
229 B lrw-r--r-- 2024-06-22 15:47:16
Edit Download
215 B lrw-r--r-- 2020-02-06 11:33:12
Edit Download
217 B lrw-r--r-- 2020-02-06 11:33:12
Edit Download
219 B lrw-r--r-- 2020-02-06 11:33:12
Edit Download
215 B lrw-r--r-- 2020-02-06 11:33:12
Edit Download
4.74 KB lrw-r--r-- 2023-09-05 23:26:26
Edit Download
48.12 KB lrw-r--r-- 2024-10-21 23:55:16
Edit Download
5.39 KB lrw-r--r-- 2024-03-09 03:38:08
Edit Download
15.40 KB lrw-r--r-- 2024-10-04 01:28:18
Edit Download
21.51 KB lrw-r--r-- 2024-08-24 02:47:16
Edit Download
548 B lrw-r--r-- 2024-05-01 22:01:12
Edit Download
6.35 KB lrw-r--r-- 2023-02-23 15:38:22
Edit Download
21.21 KB lrw-r--r-- 2024-03-09 03:38:08
Edit Download
9.95 KB lrw-r--r-- 2024-01-16 22:31:14
Edit Download
10.03 KB lrw-r--r-- 2024-05-14 22:05:12
Edit Download
9.10 KB lrw-r--r-- 2024-03-09 03:38:08
Edit Download
13.45 KB lrw-r--r-- 2024-09-02 04:13:16
Edit Download
13.42 KB lrw-r--r-- 2024-03-19 18:46:16
Edit Download
6.96 KB lrw-r--r-- 2024-02-20 12:27:06
Edit Download
30.01 KB lrw-r--r-- 2024-09-26 17:50:16
Edit Download
2.70 KB lrw-r--r-- 2024-06-15 16:34:14
Edit Download
9.97 KB lrw-r--r-- 2024-06-15 16:34:14
Edit Download
2.34 KB lrw-r--r-- 2024-02-27 01:35:08
Edit Download
3.67 KB lrw-r--r-- 2023-11-22 22:44:24
Edit Download
2.48 KB lrw-r--r-- 2024-02-27 04:51:12
Edit Download
283 B lrw-r--r-- 2020-02-06 11:33:12
Edit Download
5.71 KB lrw-r--r-- 2024-05-01 22:01:12
Edit Download
17.48 KB lrw-r--r-- 2024-09-17 04:03:54
Edit Download
7.05 KB lrw-r--r-- 2024-10-30 02:55:18
Edit Download
3.99 KB lrw-r--r-- 2024-06-03 20:56:16
Edit Download
10.20 KB lrw-r--r-- 2024-05-01 22:01:12
Edit Download
2.20 KB lrw-r--r-- 2022-06-01 22:14:10
Edit Download
15.42 KB lrw-r--r-- 2024-05-01 22:01:12
Edit Download
23.37 KB lrw-r--r-- 2024-09-15 17:49:16
Edit Download
46.95 KB lrw-r--r-- 2024-08-11 03:02:06
Edit Download
3.43 KB lrw-r--r-- 2023-02-23 15:38:22
Edit Download
45.43 KB lrw-r--r-- 2024-10-03 04:25:16
Edit Download
12.79 KB lrw-r--r-- 2024-01-30 19:23:12
Edit Download
341 B lrw-r--r-- 2020-02-06 11:33:12
Edit Download
5.57 KB lrw-r--r-- 2024-09-17 04:03:54
Edit Download
14.85 KB lrw-r--r-- 2024-03-09 23:07:16
Edit Download
39.60 KB lrw-r--r-- 2024-09-18 04:14:14
Edit Download
23.97 KB lrw-r--r-- 2024-09-09 14:17:16
Edit Download
23.29 KB lrw-r--r-- 2024-06-25 17:54:14
Edit Download
4.97 KB lrw-r--r-- 2024-10-15 12:52:18
Edit Download
19.17 KB lrw-r--r-- 2024-01-16 22:31:14
Edit Download
1.09 KB lrw-r--r-- 2022-03-22 23:59:04
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).