diff --git a/libs/timeline.css b/libs/timeline.css index 71f9fbd..a1593b9 100644 --- a/libs/timeline.css +++ b/libs/timeline.css @@ -359,12 +359,40 @@ article small a:hover { min-width: 33%; } -nav.pagination { - display: flex; - justify-content: center; - padding: 0.5rem 0; +#new_twt a.upload-link { + float: right; + margin-top: -0.1rem; + margin-right: 0.5rem; + text-decoration: none; + color: var(--text-light); } +#new_twt a.upload-link:hover, +#new_twt a.upload-link:hover span { + color: var(--accent); +} + +/* === Upload Image Form === */ + +.upload-grid { + display: grid; + grid-template-columns: 1fr 10rem; + grid-gap: 1rem; + margin: 0.5rem 0; + padding: 0.5rem; +} + +.upload-grid img { + max-height: 200px; + width: 100%; + object-fit: cover; + object-position: 0 0; +} + +.upload-grid code { +} + + /* === REFRESH === */ #refreshInfo { diff --git a/views/new_twt.php b/views/new_twt.php index d1e2fb3..ca80a5b 100644 --- a/views/new_twt.php +++ b/views/new_twt.php @@ -105,9 +105,10 @@ if (isset($_POST['submit'])) {
-
- Upload images -
+
+
+ +
diff --git a/views/upload_img.php b/views/upload_img.php index bbdf3ad..e0635e6 100644 --- a/views/upload_img.php +++ b/views/upload_img.php @@ -131,23 +131,28 @@ $imgs_on_server = glob($media_upload."*.{jpg,jpeg,png,gif}", GLOB_BRACE); // Sort image files by date (based on: https://stackoverflow.com/questions/124958/glob-sort-array-of-files-by-last-modified-datetime-stamp usort($imgs_on_server, fn($a, $b) => -(filemtime($a) - filemtime($b))); -echo ''; +echo '
Copy the code for images and paste it into the new message box
'; foreach ($imgs_on_server as $img) { $public_file = $config["public_media"] . "/" . basename($img); - +/* echo ''; echo ''; //$img = str_replace('../', $base_url, $img); echo ''; echo ''; +*/ + echo '
'; + echo '![]('.$public_file.')'; + echo ''; + echo '
'; } -echo '
'; - echo ''; + echo ''; echo '![]('.$public_file.')
'; +//echo ''; ?>