From 74a3edc3fcc2af3bcc273a557f7ed3bf90e24afa Mon Sep 17 00:00:00 2001 From: Riza Maulana Ardiyanto Date: Tue, 26 Nov 2024 18:42:52 +0700 Subject: [PATCH 1/2] add yoast seo tab --- .gitignore | 1 + core/Utils/FieldsTabs.php | 5 +++++ modules/checklists/assets/css/admin-pages.css | 8 ++++++++ modules/checklists/templates/global-checklists.php | 4 +++- modules/yoastseo/lib/Requirement/Readability_Analysis.php | 2 +- modules/yoastseo/lib/Requirement/Seo_Analysis.php | 2 +- 6 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 7fe56e2b..b651a8ce 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ # Build Artifacts /build /dist +/svn # Dependencies /node_modules diff --git a/core/Utils/FieldsTabs.php b/core/Utils/FieldsTabs.php index 48ddf912..78d7a315 100644 --- a/core/Utils/FieldsTabs.php +++ b/core/Utils/FieldsTabs.php @@ -55,6 +55,11 @@ private function __construct() { "label" => "Taxonomies", "icon" => "dashicons dashicons-list-view" ), + "yoastseo" => array( + "label" => "Yoast SEO", + "icon" => "pp-checklists-tab-custom-icon", + "svg" => '' + ), "custom" => array( "label" => "Custom", "icon" => "dashicons dashicons-admin-generic" diff --git a/modules/checklists/assets/css/admin-pages.css b/modules/checklists/assets/css/admin-pages.css index 0fe159fd..ed247521 100644 --- a/modules/checklists/assets/css/admin-pages.css +++ b/modules/checklists/assets/css/admin-pages.css @@ -504,3 +504,11 @@ textarea.pp-checklists-custom-item-title { display: flex; background: #fff; } + +.pp-checklists-tab-custom-icon { + display: inline-block; + width: 15px; + height: 15px; + vertical-align: sub; + padding: 2px; +} \ No newline at end of file diff --git a/modules/checklists/templates/global-checklists.php b/modules/checklists/templates/global-checklists.php index 847a658f..6fb23e09 100644 --- a/modules/checklists/templates/global-checklists.php +++ b/modules/checklists/templates/global-checklists.php @@ -36,7 +36,9 @@ - + + + diff --git a/modules/yoastseo/lib/Requirement/Readability_Analysis.php b/modules/yoastseo/lib/Requirement/Readability_Analysis.php index 6479b9cd..0f065540 100644 --- a/modules/yoastseo/lib/Requirement/Readability_Analysis.php +++ b/modules/yoastseo/lib/Requirement/Readability_Analysis.php @@ -43,7 +43,7 @@ class Readability_Analysis extends Base_dropdown * * @var string */ - public $group = 'content'; + public $group = 'yoastseo'; /** * Initialize the language strings for the instance diff --git a/modules/yoastseo/lib/Requirement/Seo_Analysis.php b/modules/yoastseo/lib/Requirement/Seo_Analysis.php index 1b3fcccd..a23adc2a 100644 --- a/modules/yoastseo/lib/Requirement/Seo_Analysis.php +++ b/modules/yoastseo/lib/Requirement/Seo_Analysis.php @@ -42,7 +42,7 @@ class Seo_Analysis extends Base_dropdown * * @var string */ - public $group = 'content'; + public $group = 'yoastseo'; /** * Initialize the language strings for the instance From dfcd0a246ff05af34b2a7bac529bbd758e30f322 Mon Sep 17 00:00:00 2001 From: Riza Maulana Ardiyanto Date: Tue, 26 Nov 2024 18:47:08 +0700 Subject: [PATCH 2/2] reduce top spacing --- modules/checklists/assets/css/admin-pages.css | 4 ---- 1 file changed, 4 deletions(-) diff --git a/modules/checklists/assets/css/admin-pages.css b/modules/checklists/assets/css/admin-pages.css index ed247521..3f117432 100644 --- a/modules/checklists/assets/css/admin-pages.css +++ b/modules/checklists/assets/css/admin-pages.css @@ -10,10 +10,6 @@ height: 50px; } -.publishpress-checklists-admin header { - margin-bottom: 40px; -} - .pp-checklists-custom-item-title { width: 100%; }