diff --git a/cms/controller/index.php b/cms/controller/index.php index 2c3a4f6..7bb07b5 100644 --- a/cms/controller/index.php +++ b/cms/controller/index.php @@ -6,8 +6,8 @@ switch ($_REQUEST["action"]) { case "save": header('Content-type: application/json'); if (!empty($_POST['uri']) && !empty($_POST['content'])) { - $_SESSION['core']->saveContent($_POST['uri'], $_POST['content']); - echo json_encode(array('message' => 'Page has been saved')); + $filename=$_SESSION['core']->saveContent($_POST['uri'], $_POST['content']); + echo json_encode(array('message' => 'Page has been saved','destination'=>$filename)); } else { echo json_encode(array('error' => 'Unable to save page')); } diff --git a/cms/css/editor.css b/cms/css/editor.css index 993749f..0bbafac 100644 --- a/cms/css/editor.css +++ b/cms/css/editor.css @@ -34,7 +34,22 @@ body { .controls .buttonContainer { width: 400px; - margin: 12px auto; + margin: 12px 0; + position: absolute; + right: 110px; +} + +.controls #urlbox { + margin: 15px 150px; + text-align: center; + font-size: 1.5em; + color: black; + position: absolute; +} + +.controls #urlbox div { + float: right; + margin-left:10px; } .controls .loggedInDetails { @@ -61,11 +76,11 @@ body { border: 1px solid #1f2f47; display: inline-block; cursor: pointer; - color: #ffffff; + color: #ffffff !important; font-family: Arial, Helvetica, sans-serif; font-size: 15px; padding: 6px 13px; - text-decoration: none; + text-decoration: none !important; text-shadow: 0 1px 0 #263666; } diff --git a/cms/index.php b/cms/index.php index 025722e..b9da0c9 100644 --- a/cms/index.php +++ b/cms/index.php @@ -28,6 +28,7 @@ require_once "init.php";
+
';?>