restore gpt seo copy pipeline and stabilize seo tkd output
This commit is contained in:
57
code/app/home/view/videoGpt1/module/seo_copy/collection.html
Normal file
57
code/app/home/view/videoGpt1/module/seo_copy/collection.html
Normal file
@@ -0,0 +1,57 @@
|
||||
{php}
|
||||
$arrGuideLines = [];
|
||||
foreach ([
|
||||
$seoCopy['search_landing'] ?? '',
|
||||
$seoCopy['category_intro'] ?? '',
|
||||
$seoCopy['intro_text'] ?? '',
|
||||
$seoCopy['intro_meta'] ?? '',
|
||||
$seoCopy['faq_content'] ?? '',
|
||||
] as $strGuideLine) {
|
||||
$strGuideLine = trim((string)$strGuideLine);
|
||||
if ($strGuideLine !== '' && !in_array($strGuideLine, $arrGuideLines, true)) {
|
||||
$arrGuideLines[] = $strGuideLine;
|
||||
}
|
||||
}
|
||||
$arrGuideCards = array_values(array_filter((array)($seoCopy['guide_cards'] ?? []), static function ($arrCard): bool {
|
||||
return is_array($arrCard)
|
||||
&& (
|
||||
trim((string)($arrCard['title'] ?? '')) !== ''
|
||||
|| trim((string)($arrCard['text'] ?? '')) !== ''
|
||||
);
|
||||
}));
|
||||
{/php}
|
||||
|
||||
{if !empty($arrGuideLines) || !empty($arrGuideCards)}
|
||||
<section class="{$TpStyle.dom_prefix}-guide {$TpStyle.dom_prefix}-guide-collection"
|
||||
style="margin:28px 0 18px;padding:20px 22px;border:1px solid var(--border-color);border-radius:22px;background:linear-gradient(180deg,var(--bg-soft-color),rgba(255,255,255,.96));box-shadow:0 12px 28px rgba(0,0,0,.04);">
|
||||
|
||||
{notempty name="arrGuideLines"}
|
||||
<div style="display:grid;gap:10px;margin-bottom:{notempty name='arrGuideCards'}16px{else/}0{/notempty};">
|
||||
{foreach $arrGuideLines as $strGuideLine}
|
||||
<p style="margin:0;line-height:1.9;color:var(--text-color);font-size:15px;">
|
||||
{$strGuideLine}
|
||||
</p>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/notempty}
|
||||
|
||||
{notempty name="arrGuideCards"}
|
||||
<div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;">
|
||||
{foreach $arrGuideCards as $arrGuideCard}
|
||||
<article style="padding:14px 16px;border-radius:16px;background:rgba(255,255,255,.9);border:1px solid rgba(0,0,0,.06);">
|
||||
{notempty name="$arrGuideCard.title"}
|
||||
<h3 style="margin:0 0 8px;font-size:15px;line-height:1.4;color:var(--text-color);">
|
||||
{$arrGuideCard.title}
|
||||
</h3>
|
||||
{/notempty}
|
||||
{notempty name="$arrGuideCard.text"}
|
||||
<p style="margin:0;line-height:1.8;color:var(--text-muted-color);font-size:13px;">
|
||||
{$arrGuideCard.text}
|
||||
</p>
|
||||
{/notempty}
|
||||
</article>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/notempty}
|
||||
</section>
|
||||
{/if}
|
||||
Reference in New Issue
Block a user