From f4683848c3c35cfc2b297eadb519616b8c9e2056 Mon Sep 17 00:00:00 2001 From: James Hunt Date: Wed, 23 Sep 2020 08:18:50 +0200 Subject: [PATCH] Theme fixes and improvements (#335) * Adding minimum PHP and WP versions to style.css * Fix closing div outside if statement in header * Fixing admin header search input, closes #306 * Adding checks for including LF MU files, ref #284 * Adding admin message to LF MU if the plugin is not installed, ref #284 * Updating pagination styles to match other links, ref #328 * Adding accepted dates to projects link title, ref #261 * Fixing code sniffs * Changing project date to n/j/Y format * Adding youtube-nocookie to responsive video wrapper, ref #311 --- .../mu-plugins/lf-admin-dashboard.php | 23 ++++++--- web/wp-content/mu-plugins/lf-blocks.php | 12 +++-- web/wp-content/mu-plugins/lf-mu.php | 47 +++++++++++++------ .../mu-plugins/wp-no-base-permalink.php | 25 +++++++--- .../themes/lf-theme/components/header.php | 40 +++++++++------- .../lf-theme/includes/shortcode-projects.php | 6 ++- .../themes/lf-theme/source/js/global/nav.js | 5 +- .../themes/lf-theme/source/js/global/video.js | 2 +- .../source/scss/core/_pagination.scss | 17 +++++-- web/wp-content/themes/lf-theme/style.css | 5 +- 10 files changed, 122 insertions(+), 60 deletions(-) diff --git a/web/wp-content/mu-plugins/lf-admin-dashboard.php b/web/wp-content/mu-plugins/lf-admin-dashboard.php index ca7fd44f..f93f50a9 100644 --- a/web/wp-content/mu-plugins/lf-admin-dashboard.php +++ b/web/wp-content/mu-plugins/lf-admin-dashboard.php @@ -1,13 +1,24 @@ - + +
+

The Linux Foundation CNCF Theme requires the LF MU Plugin to be installed.

+ +

Download the latest version of this plugin, unzip the archive, rename it's containing folder from wp-mu-plugins-master to wp-mu-plugins and then copy the plugin to /wp-content/mu-plugins/.

+ +

Visit the LF MU Plugin repo on Github to file any support issues.

+
+ " height="38" alt=""> - + @@ -91,7 +94,8 @@ endif; -