Skip to content

Commit f12573a

Browse files
authored
Preview: Refresh homepage (#1938)
* Most of the front page * Update NewsHandler with docblock type, reusable filtering. Add reliable fallback for 'updated' => 'published'. * Bring in conferences, tweak some icons and styles, create separate clickable card and renderer * Updated news. * Run cs fixer which apparently has opinions on constant order. * Roll back pregen news for this commit. * Better focused state for card buttons. * Add support for injecting "unsafe" HTML into places that currently take strings as an escape hatch a-la dangerouslySetInnerHTML. Use it to highlight code elements in hero page. * Allow injecting SVG classes directly into ClickableCard to allow them picking up on currentColor * Place composer and php foundation logos in padded containers. * Fix version status labels showing date instead of 'End of Life' * Delete newly added * Re-add the images * Delete unused vendors * Update bg-texture-light.png * Remove the invertocat - it's define via SVG * Remake bg-texture-dark.png --------- Co-authored-by: Mark Randall <marandall@php.net>
1 parent d353cf2 commit f12573a

35 files changed

Lines changed: 3011 additions & 197 deletions

include/branch-highlights.inc

Lines changed: 495 additions & 0 deletions
Large diffs are not rendered by default.

include/footer.inc

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
</section><!-- layout-content -->
1+
2+
<?php use phpweb\Themes\FooterRenderer;
3+
4+
if (($config['include_section'] ?? true) === true) { ?>
5+
</section><!-- layout-content -->
6+
<?php } ?>
7+
28
<?php
39
if (!empty($config['spanning-content'])) {
410
echo "<div class='spanning-content'>";
@@ -59,7 +65,11 @@
5965

6066
</div><!-- layout -->
6167

62-
<?php if(!isset($config['footer']) || $config['footer']): ?>
68+
<?php if (($config['footer_style'] ?? '') === 'new') { ?>
69+
<div role="doc-footnote">
70+
<?php FooterRenderer::renderFooter() ?>
71+
</div>
72+
<?php } else if(!isset($config['footer']) || $config['footer']): ?>
6373
<footer>
6474
<div class="container footer-content">
6575
<div class="row-fluid">

include/header.inc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ $css_files = [
77
'/fonts/Font-Awesome/css/fontello.css',
88
'/styles/theme-base.css',
99
'/styles/theme-medium.css',
10+
// '/styles/theme-gst.css',
1011
];
1112

1213
if (isset($config['css'])) {
@@ -364,6 +365,7 @@ if (!isset($config["languages"])) {
364365
</div>
365366
<?php endif;?>
366367

367-
368+
<?php if (($config['include_section'] ?? true) === true) { ?>
368369
<div id="layout" class="clearfix">
369370
<section id="layout-content">
371+
<?php } ?>

public/images/bg-texture-dark.png

118 Bytes
Loading

public/images/bg-texture-light.png

118 Bytes
Loading

public/images/community/libera.svg

Lines changed: 8 additions & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
11.7 KB
Loading
36 KB
Loading
3.7 KB
Loading

0 commit comments

Comments
 (0)