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:
@@ -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'] ) );
|
||||
|
||||
Reference in New Issue
Block a user