Add Tool info links and MCP section to tool cards and preview pages
- Dashboard: add "Tool info" link → preview.php on every tool card footer - Landing page: convert lt-card <a> to div+onclick, add footer with "Learn more" link and copyable MCP slug pill - preview.php: add MCP Integration section per tool (slug, copy button, claude_desktop_config.json snippet, login note) - CSS: lt-card__footer, lt-card__mcp-pill, lt-preview-mcp section styles Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+8
-1
@@ -125,6 +125,7 @@ $dashL = [
|
||||
'guide_link' => 'Guide',
|
||||
'tech_link' => 'Technical',
|
||||
'open_tool' => 'Open tool',
|
||||
'tool_info' => 'Tool info',
|
||||
],
|
||||
'no' => [
|
||||
'acct_header' => 'Konto',
|
||||
@@ -152,6 +153,7 @@ $dashL = [
|
||||
'guide_link' => 'Guide',
|
||||
'tech_link' => 'Teknisk',
|
||||
'open_tool' => 'Åpne verktøy',
|
||||
'tool_info' => 'Verktøyinfo',
|
||||
],
|
||||
'uk' => [
|
||||
'acct_header' => 'Обліковий запис',
|
||||
@@ -179,6 +181,7 @@ $dashL = [
|
||||
'guide_link' => 'Посібник',
|
||||
'tech_link' => 'Технічний',
|
||||
'open_tool' => 'Відкрити',
|
||||
'tool_info' => 'Про інструмент',
|
||||
],
|
||||
'pl' => [
|
||||
'acct_header' => 'Konto',
|
||||
@@ -206,6 +209,7 @@ $dashL = [
|
||||
'guide_link' => 'Poradnik',
|
||||
'tech_link' => 'Techniczny',
|
||||
'open_tool' => 'Otwórz',
|
||||
'tool_info' => 'Info',
|
||||
],
|
||||
];
|
||||
$dl = $dashL[$uiLang] ?? $dashL['en'];
|
||||
@@ -462,9 +466,12 @@ window.DBN_TOOLS_LANG = <?= json_encode($uiLang, JSON_UNESCAPED_UNICODE) ?>;
|
||||
</div>
|
||||
<p style="margin:0; font-size:.98rem; color:#4b5563; line-height:1.55;"><?= htmlspecialchars($item['description']) ?></p>
|
||||
<div class="dash-card-footer">
|
||||
<a href="/preview.php?tool=<?= htmlspecialchars($slug) ?><?= $uiLang !== 'en' ? '&lang=' . urlencode($uiLang) : '' ?>" onclick="event.stopPropagation();"
|
||||
style="color:#374151; font-size:.88rem; text-decoration:none; white-space:nowrap;"><?= htmlspecialchars($dl['tool_info']) ?></a>
|
||||
<?php if ($docs): ?>
|
||||
<span style="color:#d1d5db;" aria-hidden="true">·</span>
|
||||
<a href="<?= htmlspecialchars($docs[0] . $langSuffix) ?>" onclick="event.stopPropagation();"
|
||||
style="color:#00205B; font-size:.88rem; font-weight:600; text-decoration:none; white-space:nowrap;"><?= htmlspecialchars($dl['about_link']) ?></a>
|
||||
style="color:#374151; font-size:.88rem; text-decoration:none; white-space:nowrap;"><?= htmlspecialchars($dl['about_link']) ?></a>
|
||||
<span style="color:#d1d5db;" aria-hidden="true">·</span>
|
||||
<a href="<?= htmlspecialchars($docs[1] . $langSuffix) ?>" onclick="event.stopPropagation();"
|
||||
style="color:#374151; font-size:.88rem; text-decoration:none; white-space:nowrap;"><?= htmlspecialchars($dl['guide_link']) ?></a>
|
||||
|
||||
Reference in New Issue
Block a user