diff --git a/controllers/editor.php b/controllers/editor.php index 191885a..7e5f70d 100644 --- a/controllers/editor.php +++ b/controllers/editor.php @@ -3,8 +3,7 @@ $app->get('/editor', function() use($app) { $user = require_login($app, false); $html = $app->render('editor.php', [ - 'user' => $user, - 'syndication_targets' => json_decode($user->syndication_targets, true) + 'user' => $user ]); $app->response()->body($html); }); @@ -25,6 +24,7 @@ $app->post('/editor/publish', function() use($app) { 'name' => [$params['name']], 'description' => [$params['description']], 'image' => [$params['image']], + 'imagealt' => [$params['imagealt']], 'content' => [$content] ); $json = true; @@ -36,6 +36,7 @@ $app->post('/editor/publish', function() use($app) { 'name' => [$params['name']], 'description' => [$params['description']], 'image' => [$params['image']], + 'imagealt' => [$params['imagealt']], 'content' => [$content] ); } diff --git a/public/editor-files/style.css b/public/editor-files/style.css index 166593e..2a314c8 100644 --- a/public/editor-files/style.css +++ b/public/editor-files/style.css @@ -267,7 +267,7 @@ body, input { font-size: 24px; width: 100%; } -#post-image { +#post-image, #post-imagealt { margin-top: 20px; margin-bottom: 20px; border: 0;