pull/23/head
Suvodip 2025-02-14 17:52:44 +05:30
parent 5f51ada6a1
commit 3864087d97
1 changed files with 1 additions and 7 deletions

View File

@ -47,13 +47,7 @@ $content = $stmt->fetchAll(PDO::FETCH_ASSOC);
<td style="border: 2px solid #7a7a7a;">
<div style="display: flex; flex-direction: row; justify-content: center; color: blue; gap: 10px;">
<a href="edit-content.php?id=<?php echo $pageData['id'] . '&slug=' . $pageData['slug'] . '&type=' . $pageData['type']; ?>">Edit</a>
<a target="_blank" href="<?php
if ($pageData['type'] === 'notice') {
echo '/notice/' . $pageData['slug'];
} elseif ($pageData['type'] === 'page') {
echo '/' . $pageData['slug'];
}
?>">View</a>
<a target="_blank" href="/<?php echo $pageData['slug']; ?>">View</a>
<button class="copy-btn" data-slug="<?php echo $_SERVER['HTTP_HOST'] .'/'. $pageData['slug']; ?>">Copy</button>
</div>
</td>