From 96811498064e54b93ee712806a012fe988496251 Mon Sep 17 00:00:00 2001
From: Alex Kirk
Date: Sun, 1 May 2022 14:44:23 +0200
Subject: [PATCH] Add some instructions
---
friends-admin.css | 3 +++
friends-admin.js | 2 +-
templates/admin/add-friend.php | 25 ++++++++++++++++++-------
3 files changed, 22 insertions(+), 8 deletions(-)
diff --git a/friends-admin.css b/friends-admin.css
index d015a326..79527101 100644
--- a/friends-admin.css
+++ b/friends-admin.css
@@ -122,6 +122,9 @@ span#friends_enable_retention_days_line, span#friends_enable_retention_number_li
display: block;
}
+ul.friend-suggestions {
+ margin: 0;
+}
ul.friend-suggestions li {
display: inline-block;
margin-right: 1em;
diff --git a/friends-admin.js b/friends-admin.js
index 1b59a91c..0130674f 100644
--- a/friends-admin.js
+++ b/friends-admin.js
@@ -235,7 +235,7 @@ jQuery( function( $ ) {
search: search
} ).done( function( response ) {
if ( response.data ) {
- $( 'tr.friend-suggestions' ).show().find( 'td' ).html( response.data.content ).show();
+ $( 'tr.friend-suggestions' ).show().find( 'div' ).html( response.data.content ).show();
} else {
$( 'tr.friend-suggestions' ).hide();
}
diff --git a/templates/admin/add-friend.php b/templates/admin/add-friend.php
index c8f6ff3c..9fcd5c09 100644
--- a/templates/admin/add-friend.php
+++ b/templates/admin/add-friend.php
@@ -7,6 +7,7 @@
*/
$quick_subscribe = _x( 'Quick Subscribe', 'button', 'friends' );
+
$links = get_bookmarks(
array(
'orderby' => 'updated',
@@ -36,16 +37,26 @@
-
+
|
- get_template_part( 'admin/links', null, array( 'links' => $links ) );
- }
- ?>
+
+ get_template_part( 'admin/links', null, array( 'links' => $links ) );
+ }
+ ?>
+
-
+ Link Manager.', 'friends' ),
+ esc_url( self_admin_url( 'link-manager.php' ) )
+ );
+ ?>
|