Merge pull request 'ss' (#23) from b2 into master

Reviewed-on: #23
master
Subhodip Ghosh 2025-02-14 12:23:17 +00:00
commit 8622436cb7
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;"> <td style="border: 2px solid #7a7a7a;">
<div style="display: flex; flex-direction: row; justify-content: center; color: blue; gap: 10px;"> <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 href="edit-content.php?id=<?php echo $pageData['id'] . '&slug=' . $pageData['slug'] . '&type=' . $pageData['type']; ?>">Edit</a>
<a target="_blank" href="<?php <a target="_blank" href="/<?php echo $pageData['slug']; ?>">View</a>
if ($pageData['type'] === 'notice') {
echo '/notice/' . $pageData['slug'];
} elseif ($pageData['type'] === 'page') {
echo '/' . $pageData['slug'];
}
?>">View</a>
<button class="copy-btn" data-slug="<?php echo $_SERVER['HTTP_HOST'] .'/'. $pageData['slug']; ?>">Copy</button> <button class="copy-btn" data-slug="<?php echo $_SERVER['HTTP_HOST'] .'/'. $pageData['slug']; ?>">Copy</button>
</div> </div>
</td> </td>