diff --git a/libs/timeline.css b/libs/timeline.css index 428c846..43efc74 100644 --- a/libs/timeline.css +++ b/libs/timeline.css @@ -86,6 +86,10 @@ header img.avatar { vertical-align: sub; } +header a span { + padding-left: 0.5rem; +} + header p a, header p a:visited { /* font-weight: bold;*/ @@ -134,6 +138,7 @@ img.avatar { height: 2.5rem; width: 2.5rem; object-fit: cover; + border: none; } a.author { diff --git a/libs/twtxt.php b/libs/twtxt.php index e8ab6ae..64631e1 100644 --- a/libs/twtxt.php +++ b/libs/twtxt.php @@ -408,9 +408,9 @@ function getTwtsFromTwtxtString($url) { // that's why I leave the UTF-8 representation for future reference $twtContent = str_replace("\u{2028}", "\n
\n", $twtContent); - //$twtContent = replaceMarkdownLinksFromTwt($twtContent); - //$twtContent = replaceImagesFromTwt($twtContent); - $twtContent = Slimdown::render($twtContent); + $twtContent = replaceMarkdownLinksFromTwt($twtContent); + $twtContent = replaceImagesFromTwt($twtContent); + //$twtContent = Slimdown::render($twtContent); $twtContent = replaceLinksFromTwt($twtContent); // TODO: // Get and remove the hash diff --git a/partials/header.php b/partials/header.php index 49459de..3209c8c 100644 --- a/partials/header.php +++ b/partials/header.php @@ -40,20 +40,20 @@ $profile = getTwtsFromTwtxtString($config['public_txt_url']); -
  •  Refresh
  • -
  •  Timeline
  • -
  •  Profile
  • -
  •  Gallery
  • -
  •  Following
  • -
  •  Add feed
  • -
  •  Log Out
  • +
  • Refresh
  • +
  • Timeline
  • +
  • Profile
  • +
  • Gallery
  • +
  • Following
  • +
  • Add feed
  • +
  • Log Out
  • -
  •  Profile
  • -
  •  Gallery
  • -
  •  Following
  • -
  •  Timeline
  • -
  • Log in
  • +
  • Profile
  • +
  • Gallery
  • +
  • Following
  • +
  • Timeline
  • +
  • Log in
  • diff --git a/views/conv.php b/views/conv.php index 289d01b..ef6d08f 100644 --- a/views/conv.php +++ b/views/conv.php @@ -17,9 +17,10 @@ $title = "Conversation: ".$id." - ".$title; include_once 'partials/header.php'; ?> -

    Conversation

    - -

    Recent twts in reply to #

    +
    +

    Conversation

    +

    Recent posts in reply to #

    +
    diff --git a/views/home.php b/views/home.php index e103e3d..e9cda6a 100644 --- a/views/home.php +++ b/views/home.php @@ -33,6 +33,12 @@ include_once 'partials/header.php'; if (isset($_SESSION['password'])) { include 'views/new_twt.php'; // TODO: Split up new_twt into a view and a partial +} else { + + echo '

    Timeline

    '; + + echo '

    Recent posts from feeds followed by + '.$config['public_nick'].'@'. parse_url($profile->mainURL, PHP_URL_HOST).'

    '; } include_once 'partials/timeline.php';