Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theme review notice #26

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Theme review notice #26

wants to merge 4 commits into from

Conversation

NituShrestha
Copy link
Contributor

No description provided.

@@ -0,0 +1,18 @@
.theme-review-notice .links {
margin: 10px 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better give margin .5em 0 for the p tag above by WP


.theme-review-notice .links a.button-primary {
margin-left: 0;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be shortened the CSS to

`.notice.updated.theme-review-notice {
padding-right: 40px;
}
.theme-review-notice .links {
margin: 0.5em 0;
}

.theme-review-notice .links a {
margin: 2px;
}

.theme-review-notice .links .dashicons {
line-height: 30px;
}
`


// Set the installed time in `esteem_theme_installed_time` option table.
$option = get_option( 'esteem_theme_installed_time' );
if ( ! $option ) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line break between other expression and control structure

*/
public function esteem_ignore_theme_review_notice_partially() {

$user_id = get_current_user_id();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary use of a variable. Please see Zakra's latest code for detail. You do not need to use a variable here as it is used only once inside this method.

*/
public function esteem_theme_rating_notice_enqueue() {

wp_enqueue_style( 'esteem-theme-review-notice', get_template_directory_uri() . '/css/admin/theme-review-notice.css' );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to create separate file and enqueue it for review. You can just create a single CSS file for all admin notice CSS code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants