Browse Source

adding alt text for banner image

main
jk 1 year ago
parent
commit
d5bb807800
  1. 5
      controllers/editor.php
  2. 2
      public/editor-files/style.css

5
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]
);
}

2
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;

Loading…
Cancel
Save