File tree Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 38
38
echo '<div class="container"> ' ;
39
39
echo '<div class="row"><div class="col"> ' ;
40
40
41
- if ($ edit_visible || $ delete_visible ) echo '<span class="float-right"> ' ;
42
- if ($ edit_visible ) echo '<a class="btn btn-sm btn-secondary" href=" ' . $ edit_url . '" title="Edit">📝</a> ' ;
43
- if ($ delete_visible ) echo '<a class="btn btn-sm btn-secondary" href=" ' . $ delete_url . '" title="Delete">❌</a> ' ;
44
- if ($ edit_visible || $ delete_visible ) echo '</span> ' ;
41
+ if ($ delete_visible ) echo '<span class="float-right ml-1"><a class="btn btn-sm btn-danger" href=" ' . $ delete_url . '" title="Delete">❌</a></span> ' ;
42
+ if ($ edit_visible ) echo '<span class="float-right ml-1"><a class="btn btn-sm btn-secondary" href=" ' . $ edit_url . '" title="Edit">📝</a></span> ' ;
45
43
46
44
echo '<h1><a href=" ' . $ url . '"> ' . filter_var ($ news_post_title , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) . '</a></h1> ' ;
47
45
if (!($ news_post ->getOptionsBitmask () & \BNETDocs \Libraries \News \Post::OPTION_PUBLISHED ))
Original file line number Diff line number Diff line change @@ -48,13 +48,12 @@ require('./Includes/header.inc.phtml'); ?>
48
48
<div class="alert alert-warning">This news post is marked as <strong>draft</strong>. Edit the news post to <strong>publish</strong> it.</div>
49
49
<? } ?>
50
50
<div class="row"><div class="col">
51
- <span class="float-right">
52
- <? if ($ edit_visible ) { ?>
53
- <a class="btn btn-sm btn-secondary" href="<?= $ edit_url?> " title="Edit">📝</a>
54
- <? } if ($ delete_visible ) { ?>
55
- <a class="btn btn-sm btn-danger" href="<?= $ delete_url?> " title="Delete">❌</a>
56
- <? } ?>
57
- </span>
51
+ <? if ($ delete_visible ) { ?>
52
+ <span class="float-right ml-1"><a class="btn btn-sm btn-danger" href="<?= $ delete_url?> " title="Delete">❌</a></span>
53
+ <? } if ($ edit_visible ) { ?>
54
+ <span class="float-right ml-1"><a class="btn btn-sm btn-secondary" href="<?= $ edit_url?> " title="Edit">📝</a></span>
55
+ <? } ?>
56
+
58
57
<h1><a href="<?= $ url?> "><?= filter_var ($ title , FILTER_SANITIZE_FULL_SPECIAL_CHARS )?> </a></h1>
59
58
<? if (!($ object ->getOptionsBitmask () & \BNETDocs \Libraries \News \Post::OPTION_PUBLISHED )) { ?>
60
59
<section class="red"><p><strong>Warning:</strong> This news post is not yet published. You can view this because you are allowed to create, modify, or delete news posts.</p></section>
You can’t perform that action at this time.
0 commit comments