Skip to content

Commit e23ac1a

Browse files
Merge pull request #9 from socketlabs/usr/matt.soler/bugfixes
Usr/matt.soler/bugfixes
2 parents e0d2a35 + 92695c2 commit e23ac1a

File tree

6 files changed

+25
-22
lines changed

6 files changed

+25
-22
lines changed

admin/class-socketlabs-admin.php

+15-14
Original file line numberDiff line numberDiff line change
@@ -93,20 +93,21 @@ public function enqueue_scripts() {
9393
wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/socketlabs-admin.js', array( 'jquery' ), $this->version, false );
9494
}
9595

96-
/**
97-
* Add the admin submenu options.
98-
*
99-
* @since 1.0.0
100-
*/
101-
public function admin_menu() {
102-
add_submenu_page(
103-
get_admin_page_parent(),
104-
'SocketLabs Options',
105-
'SocketLabs',
106-
'administrator',
107-
$this->plugin_name,
108-
array($this, 'create_admin_page') );
109-
}
96+
/**
97+
* Register a custom menu page.
98+
*/
99+
public function admin_menu() {
100+
add_menu_page(
101+
__( 'SocketLabs', 'textdomain' ), //page_title
102+
'SocketLabs', //menu_title
103+
'administrator', //capability
104+
'socketlabs/admin/partials/socketlabs-admin-display.php', //menu_slug
105+
'', //callback
106+
plugins_url( 'socketlabs/admin/images/logo-wp-icon.png' ), //icon_url
107+
'' //position
108+
);
109+
}
110+
//add_action( 'admin_menu', 'register_socketlabs_menu' );
110111

111112
/**
112113
* Create the admin UI.

admin/css/socketlabs-admin.css

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
#wpcontent{
2-
/*padding-left:0;*/
1+
#wpcontent:has(#sl-plugin-container){
2+
padding-left:0;
33
}
4+
45
.sl-right {
56
float: right;
67
}
@@ -186,7 +187,7 @@
186187
}
187188

188189
.sl-masthead__inside-container {
189-
padding:.375rem 0;
190+
padding:1rem 0;
190191
margin:0 auto;
191192
width:100%;
192193
max-width:45rem;
@@ -196,7 +197,7 @@
196197
padding:.3125rem 0 0
197198
}
198199
.sl-masthead__logo {
199-
height:1.8125rem;
200+
height:1.5rem;
200201
}
201202
.sl-masthead__logo-link {
202203
display:inline-block;
@@ -426,4 +427,4 @@
426427

427428
.sl-section-header__actions {
428429
line-height: 1.75rem;
429-
}
430+
}

admin/images/logo-wp-icon.png

492 Bytes
Loading

admin/images/logo-wp.svg

+1
Loading

admin/partials/socketlabs-admin-display.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<div class="sl-masthead">
1717
<div class="sl-masthead__inside-container">
1818
<div class="sl-masthead__logo-container">
19-
<img class="sl-masthead__logo" src="https://www.socketlabs.com/assets/socketlabs-logo1.png" alt="SocketLabs">
19+
<img class="sl-masthead__logo" src="<?php echo plugins_url( 'socketlabs/admin/images/logo-wp.svg' ) ?>" alt="SocketLabs">
2020
</div>
2121
</div>
2222
</div>

socketlabs.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* Plugin Name: SocketLabs
1717
* Plugin URI: https://github.com/socketlabs/wordpress
1818
* Description: Send emails using your SocketLabs account.
19-
* Version: 1.1.0
19+
* Version: 1.1.1
2020
* Author: SocketLabs
2121
* Author URI: https://socketlabs.com/
2222
* License: GPL-2.0+
@@ -52,7 +52,7 @@
5252
* Start at version 1.0.0 and use SemVer - https://semver.org
5353
* Rename this for your plugin and update it as you release new versions.
5454
*/
55-
define('SOCKETLABS_VERSION', '1.1.0');
55+
define('SOCKETLABS_VERSION', '1.1.1');
5656
define("SOCKETLABS_OPTION_GROUP", 'socketlabs');
5757
define("SOCKETLABS_API_KEY", 'socketlabs_api_key');
5858
define("SOCKETLABS_SERVER_ID", 'socketlabs_server_id');

0 commit comments

Comments
 (0)