feat: switch article display from grid to list layout

Rewrites public CSS to match actual .pn-* class names from the PHP
template and changes the default shortcode layout from card/grid to a
horizontal list: fixed-width thumbnail on the left, title + summary on
the right.  Includes compact variant for widgets and responsive
stacking on small screens.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Peptide News Team
2026-04-06 18:43:16 +07:00
parent 15306ade35
commit 203aa46036
2 changed files with 182 additions and 43 deletions

View File

@@ -75,7 +75,7 @@ class Peptide_News_Public {
public function render_shortcode( $atts ) {
$atts = shortcode_atts( array(
'count' => get_option( 'peptide_news_articles_count', 10 ),
'layout' => 'card', // card | compact | list
'layout' => 'list', // card | compact | list
), $atts, 'peptide_news' );
$articles = $this->get_articles( absint( $atts['count'] ) );