<h4>Templates Admin — v7 Card Rebuild</h4>
<ul>
<li><strong>template_list.php</strong> — full portlet/BS3 → Bootstrap 5 card layout rebuild</li>
<li>Left column: v7 card with Sync Data button, search, Add New Template button, pagination</li>
<li>Right column: 4 v7 cards (Details, Styles, Pages, Widgets) with action buttons in card-header</li>
<li>Fixed PHP <code>hidden</code> attr → <code>style="display:none"</code></li>
<li>Fixed PHP + JS status badges: <code>label label-success/danger</code> → <code>badge bg-success/danger</code></li>
<li>Fixed template card HTML in <code>displayTemplates()</code>: <code>blog-box-one card-box</code> → v7 card</li>
<li>Fixed all table classes → <code>table-custom table-centered table-hover table-sm</code></li>
<li>Fixed <code>img-responsive</code> → <code>img-fluid</code>, <code>col-xs-6</code> → <code>col-6</code>, removed BS3 ripple classes</li>
<li>All <code>.modal()</code> → <code>.modal("show")</code> (BS5)</li>
<li><strong>custom_js.php</strong> — CRITICAL: undefined <code>TPLURL</code> → <code>TMPLT_URL</code> in <code>getAllWidgets()</code></li>
<li>Fixed deprecated <code>$.parseJSON()</code> → <code>JSON.parse()</code></li>
<li>Fixed <code>html</code> variable used before initialization</li>
<li><strong>template_modals.php</strong> — 5 modals fully converted BS3 → BS5: <code>data-bs-dismiss</code>, <code>btn-close</code>, <code>form-check</code>, <code>form-label</code>, <code>mb-3</code>, <code>input-group-text</code>, <code>btn-secondary</code></li>
</ul>