Skip to content

Commit

Permalink
Merge branch 'release/1.0.2' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
dashkevych committed Aug 6, 2022
2 parents b4889d3 + b4be28e commit 77f48c4
Show file tree
Hide file tree
Showing 12 changed files with 526 additions and 370 deletions.
21 changes: 13 additions & 8 deletions assets/css/public/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
--wwp--color--text: #000000;
--wwp--color--link: #007cba;

max-width: 340px;
max-width: 360px;
max-height: 80vh;
position: fixed;
z-index: 999;
background-color: var(--wwp--color--background);
color: var(--wwp--color--text);
border: 1px solid;
Expand Down Expand Up @@ -136,8 +137,6 @@
*/

.welcomewp-message.has-excerpt .welcomewp-message__excerpt {
-webkit-padding-end: 1em;
padding-inline-end: 1em;
-webkit-padding-start: 0.125em;
padding-inline-start: 0.125em;
-webkit-box-flex: 1;
Expand All @@ -158,6 +157,7 @@
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
line-height: 1.45;
}

/**
Expand All @@ -166,9 +166,10 @@

.welcomewp-message__header {
font-weight: bold;
padding: 1em;
padding: var(--wp--style--block-gap, 1em);
line-height: 1.4;
padding-block: 1em;
padding-block: var(--wp--style--block-gap, 1em);
padding-inline: 1em calc(1em + 12px);
padding-inline: var(--wp--style--block-gap, 1em) calc(var(--wp--style--block-gap, 1em) + 12px);
}

.welcomewp-message__header::marker {
Expand Down Expand Up @@ -198,8 +199,8 @@
*/

.welcomewp-message__content {
padding: 1em;
padding: var(--wp--style--block-gap, 1em);
padding: 1em 1em 0;
padding: var(--wp--style--block-gap, 1em) var(--wp--style--block-gap, 1em) 0;
}

/**
Expand Down Expand Up @@ -258,6 +259,10 @@
color: var(--wwp--color--link);
}

#welcomewp-message .welcomewp-message__close-button {
background: none;
}

/* states */

#welcomewp-message[aria-hidden="true"] {
Expand Down
2 changes: 1 addition & 1 deletion assets/css/public/base.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 14 additions & 11 deletions includes/class-dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,24 +33,27 @@ public function __construct() {
add_action( 'admin_init', array( $this, 'register_settings' ) );
add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );

add_filter( 'welcomewp-pointerplus_list', array( $this, 'init_onboarding' ), 10, 2 );
add_filter( 'welcomewp-pointerplus_list', array( $this, 'init_onboarding' ) );
}

/**
* Set up onboarding process.
*
* @since 1.0.1
*/
public function init_onboarding() {
return array(
$this->slug . '_settings' => array(
'selector' => '#menu-posts-greeter',
'title' => esc_html__( 'WelcomeWP', 'welcomewp' ),
'text' => esc_html__( 'The plugin is active. Now create a website welcome message using the Greeters functionality.', 'your-pointer-domain' ),
'width' => 250,
'icon_class' => 'dashicons-nametag',
'pages' => array( 'plugins.php' ),
),
public function init_onboarding( $pointers ) {
return array_merge(
$pointers,
array(
$this->slug . '_settings' => array(
'selector' => '#menu-posts-greeter',
'title' => esc_html__( 'WelcomeWP', 'welcomewp' ),
'text' => esc_html__( 'The plugin is active. Use `Greeters` to create a website message.', 'welcomewp' ),
'width' => 250,
'icon_class' => 'dashicons-nametag',
'pages' => array( 'plugins.php' ),
),
)
);
}

Expand Down
Loading

0 comments on commit 77f48c4

Please sign in to comment.