ss #23
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue