Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:public:card

This is an old revision of the document!


public/themes/blog/partials/card.php

Source: public/themes/blog/partials/card.php · 67 lines, ~293 statements · namespace: (global) · `declare(strict_types=1)`: no


Shared post card partial.

Renders a single post card (thumbnail + meta + title + excerpt) used by the home latest-posts grid and the category / blog / tag / archive listings. It is the single code path for grid cards so the markup is identical everywhere.

Expected variables: \ - $post PostViewModel already-safe, normalized post (see

                             prepare_post_card()); never a raw array

\ - $card_class string column wrapper classes (default 'col-xl-6');

                             escaped here, never pre-escaped by callers

$post→content() and $post→topics() are trusted, sanitized HTML and are printed as-is; all other fields are already escaped at the normalization boundary.

Includes

^ Mode ^ Target ^ Line ^
| ''include'' | ''include __DIR__ . '/meta.php';'' | 63 |

Generated by 'tools/gendoc'.

scriptlog/public/card.1790413764.txt.gz · Last modified: by admin