From 3fd6ca5dea36ca96ada01eeb231ac4593048bb3b Mon Sep 17 00:00:00 2001 From: Sergey Panteleev Date: Thu, 3 Jul 2025 12:12:36 +0300 Subject: [PATCH] Update layout --- downloads-get-instructions.php | 24 ++++---- downloads.php | 101 +++++++++++++++++---------------- styles/theme-base.css | 35 ++++++++++++ 3 files changed, 99 insertions(+), 61 deletions(-) diff --git a/downloads-get-instructions.php b/downloads-get-instructions.php index 768600cee..ac232001e 100644 --- a/downloads-get-instructions.php +++ b/downloads-get-instructions.php @@ -25,31 +25,31 @@ if ($_GET['os'] === 'osx') {

On the OSX command line shell, enter:

-
+
 brew install php{$version}
-
+

To enable PHP in Apache add the following to httpd.conf and restart Apache:

-
+
 LoadModule php_module \$HOMEBREW_PREFIX/opt/php/lib/httpd/modules/libphp.so
 
 <FilesMatch \.php$>
 SetHandler application/x-httpd-php
 </FilesMatch>
-
+

Finally, check DirectoryIndex includes index.php

-
+
 DirectoryIndex index.php index.html
-
+

The php.ini and php-fpm.ini file can be found in:

-
+
 \$HOMEBREW_PREFIX/etc/php/{$versionDir}/
-
+

ENDOSX; return; @@ -62,10 +62,10 @@ if ($_GET['os'] === 'linux' && str_starts_with($_GET['osvariant'], 'linux-deb'))

On the command line shell, enter:

-
+
 sudo apt-get update
 sudo apt-get install php
-
+
ENDAPT; } else { $version = match($_GET['version']) { @@ -79,12 +79,12 @@ ENDAPT;

On the command line shell, enter:

-
+
 sudo apt -y install software-properties-common
 sudo add-apt-repository ppa:ondrej/php
 sudo apt update
 sudo apt install php{$version}
-
+
ENDAPT; } return; diff --git a/downloads.php b/downloads.php index ad5a1a118..241644b9e 100644 --- a/downloads.php +++ b/downloads.php @@ -56,65 +56,68 @@ ENDOPT; ?>

Downloads & Installation Instructions

-
-Get PHP for - + +
+ I want to use PHP for + . +
- +
+ I work with + + , + and use + +
-to work on - + -with - + - - -
- -I want to have multiple versions at the same time: - - +
+ +

Instructions

-
+
- -

Binaries

diff --git a/styles/theme-base.css b/styles/theme-base.css index c28b2a138..96fdf06fa 100644 --- a/styles/theme-base.css +++ b/styles/theme-base.css @@ -508,6 +508,41 @@ div.classsynopsisinfo_comment { margin-top:1.5rem; } +.phpcode { + background-color: #FFF; + box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); + border-radius: 0 0 2px 2px; + overflow-x: auto; + display: flex; + align-items: center; + width: 100%; + height: 100%; + padding: 0 1.5rem; + box-sizing: border-box; + margin: 0; +} + +.instructions { + margin-bottom: 2rem; +} + +.instructions p { + margin: 1rem 0; +} + +.instructions-form { + display: flex; + flex-direction: column; + gap: .75rem; + margin-bottom: 2rem; +} + +.instructions-label { + display: flex; + align-items: center; + gap: 8px; +} + .warn { padding: .75rem 1rem; margin: 1.5rem 0 1.5rem 1.5rem;