From 2ebfa28b5a23283fa0f9d411c7703920d678da9c Mon Sep 17 00:00:00 2001 From: nigrosimone Date: Thu, 23 Feb 2017 20:26:10 +0100 Subject: [PATCH 1/2] make dashboard responsive --- Generic_Page_Dashboard_View.css | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/Generic_Page_Dashboard_View.css b/Generic_Page_Dashboard_View.css index 923b765..4506abd 100644 --- a/Generic_Page_Dashboard_View.css +++ b/Generic_Page_Dashboard_View.css @@ -112,6 +112,34 @@ float:left; margin-right:10px; } + +@media only screen and (max-device-width: 480px) { + #w3tc-dashboard-widgets #postbox-container-left { + margin-right: 0px; + } + #w3tc-dashboard-widgets { + min-width: auto; + } + #postbox-container-right { + width: 100%; + white-space: nowrap; + float: left; + margin-left: 0px; + } + #w3tc-dashboard-widgets { + background: none; + } + #w3tc-dashboard-widgets #normal-sortables .postbox { + width: 100%; + } + .w3tc_generic_widgetservice_label { + display: inline; + } + #cdn_maxcdn_authorization_key { + width: 100%; + } +} + /** * HiDPI Displays */ From 117662660de01bde1c532163a7e0070ecd4fedca Mon Sep 17 00:00:00 2001 From: nigrosimone Date: Sat, 25 Feb 2017 14:51:59 +0100 Subject: [PATCH 2/2] Apache v2.4+ has deprecated the "Allow, Deny, and Order" directives in .htaccess, in favor of the "Require" directive. Such servers would now be forced to load the "mod_access_compat" module to regain "Allow, Deny, and Order" (unlike pre-2.4). For w3tc's "Enable Compatibility Mode" to function correctly on servers that have upgraded i've put in the appropriate module condition check and corresponding directive. --- PgCache_Environment.php | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/PgCache_Environment.php b/PgCache_Environment.php index 34b51e9..aefc037 100644 --- a/PgCache_Environment.php +++ b/PgCache_Environment.php @@ -1188,10 +1188,27 @@ private function rules_cache_generate_apache( $config ) { if ( $compatibility ) { $rules .= "Options -MultiViews\n"; - // allow to read files by apache if they are blocked at some level above - $rules .= "\n"; - $rules .= " Allow from all\n"; - $rules .= "\n"; + // allow to read files by apache if they are blocked at some level above + $rules .= "\n"; + $rules .= " \n"; + $rules .= " \n"; + $rules .= " Order Allow,Deny\n"; + $rules .= " Allow from All\n"; + $rules .= " \n"; + $rules .= " = 2.4>\n"; + $rules .= " Require all granted\n"; + $rules .= " \n"; + $rules .= " \n"; + $rules .= " \n"; + $rules .= " \n"; + $rules .= " Order Allow,Deny\n"; + $rules .= " Allow from All\n"; + $rules .= " \n"; + $rules .= " \n"; + $rules .= " Require all granted\n"; + $rules .= " \n"; + $rules .= " \n"; + $rules .= "\n"; if ( !$etag ) { $rules .= "FileETag None\n";