rpicms

A CMS for the Raspberry Pi
git clone git://archive.git.mtrnord.blog/RpicmsTeam/rpicms.git
Log | Files | Refs | README | LICENSE

commit 46e2b159cf54ed4da1735815d19b597ac11d829e
parent 6fbdeac269dbc4f12156cb7f9f26aa917db2dba0
Author: MTRNord <mtrnord1@gmail.com>
Date:   Wed, 13 May 2015 19:48:33 +0200

add alert

Diffstat:
Mcore/backend/admin/blog/newpost.php | 2+-
Mthemes/jumbotron/admin.php | 6++++++
2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/core/backend/admin/blog/newpost.php b/core/backend/admin/blog/newpost.php @@ -48,5 +48,5 @@ while (ob_get_status()) { ob_end_clean(); } header("HTTP/1.1 301 Moved Permanently", true, 301); -header( "Location: ../../../../?file=admin.php#newpost" ); +header( "Location: ../../../../?file=admin.php#newpost2" ); ?> diff --git a/themes/jumbotron/admin.php b/themes/jumbotron/admin.php @@ -245,6 +245,12 @@ foreach($langs as $prio => $lang) { include($root."/themes/jumbotron/admin_pages/newpost.php"); ?> </div> + <div class="hide_" id="newpost2"> + <?php + echo "<div class="alert alert-success" role="alert">Post successfully created!<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button></div>"; + include($root."/themes/jumbotron/admin_pages/newpost.php"); + ?> + </div> </div> </div> </div>