Skip to content

Commit f8d0e67

Browse files
committed
👌 IMPROVE: Updated the settings page to include doc and support buttons
1 parent f58f8da commit f8d0e67

4 files changed

+22
-8
lines changed

admin/class-link-attributes-for-publishers-admin.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function __construct( $_plugin_name, $_version ) {
7171
*/
7272
public function enqueue_styles() {
7373
// Admin - CSS.
74-
//wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/link-attributes-for-publishers-admin.css', [], $this->version, 'all' );
74+
wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/link-attributes-for-publishers-admin.css', [], $this->version, 'all' );
7575
}
7676

7777
/**

admin/class-wposa-settings.php

+8-3
Original file line numberDiff line numberDiff line change
@@ -722,9 +722,14 @@ public function admin_menu() {
722722

723723
public function plugin_page() {
724724
echo wp_kses_post( '<div class="wrap">' );
725-
echo wp_kses_post( '<h1>' . esc_html__( 'Link Attributes for Publishers', 'link-attributes-for-publishers' ) . ' <span style="font-size:50%;">v' . LINK_ATTRIBUTES_FOR_PUBLISHERS_VERSION . '</span></h1>' );
726-
echo wp_kses_post( '<p><span>' . esc_html__( 'Brought to you by', 'link-attributes-for-publishers' ) . ': <a href="https://deviodigital.com" target="_blank">Devio Digital</a></span></p>' );
727-
//$this->show_navigation();
725+
echo '<h1>' . esc_html__( 'Link Attributes for Publishers', 'link-attributes-for-publishers' ) . '
726+
<a id="lafp-support-btn" href="https://robertdevore.com/contact/" target="_blank" class="button button-alt" style="margin-left: 10px;">
727+
<span class="dashicons dashicons-format-chat" style="vertical-align: middle;"></span>' . esc_html__( 'Support', 'link-attributes-for-publishers' ) . '
728+
</a>
729+
<a id="lafp-docs-btn" href="https://deviodigital/documentation/" target="_blank" class="button button-alt" style="margin-left: 5px;">
730+
<span class="dashicons dashicons-media-document" style="vertical-align: middle;"></span>' . esc_html__( 'Documentation', 'link-attributes-for-publishers' ) . '
731+
</a>
732+
</h1>';
728733
$this->show_forms();
729734
echo wp_kses_post( '</div>' );
730735
echo wp_kses( '<style type="text/css">#wposa_general h2 {display: none;}</style>', lafp_allowed_tags() );
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
/**
22
* All of the CSS for your admin-specific functionality should be
33
* included in this file.
4-
*/
4+
*/
5+
6+
#lafp-support-btn,
7+
#lafp-docs-btn {
8+
line-height: 22px;
9+
float: right;
10+
margin-left: 12px;
11+
display: flex;
12+
align-content: center;
13+
align-items: center;
14+
gap: 6;
15+
}

link-attributes-for-publishers.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@
5353

5454
new WPComPluginHandler( plugin_basename( __FILE__ ), 'https://robertdevore.com/why-this-plugin-doesnt-support-wordpress-com-hosting/' );
5555

56-
/**
57-
* Current plugin version.
58-
*/
56+
// Current plugin version.
5957
define( 'LINK_ATTRIBUTES_FOR_PUBLISHERS_VERSION', '1.0.0' );
6058

6159
/**

0 commit comments

Comments
 (0)