Browse Source

Merge pull request #2656 from Frenzie/dir-auto

Automatic mostly-right RTL with dir="auto"
Alexandre Alapetite 6 years ago
parent
commit
932ac95396

+ 1 - 1
app/views/helpers/index/normal/entry_header.phtml

@@ -28,7 +28,7 @@
 		}
 	}
 	?><li class="item website"><a href="<?= _url('index', 'index', 'get', 'f_' . $this->feed->id()) ?>"><img class="favicon" src="<?= $this->feed->favicon() ?>" alt="✇" /> <span><?= $this->feed->name() ?></span></a></li>
-	<li class="item title"><a target="_blank" rel="noreferrer" href="<?= $this->entry->link() ?>"><?= $this->entry->title() ?></a><?php
+	<li class="item title" dir="auto"><a target="_blank" rel="noreferrer" href="<?= $this->entry->link() ?>"><?= $this->entry->title() ?></a><?php
 		if ($topline_display_authors):
 			?><div class="item author"><?php
 			$authors = $this->entry->authors();

+ 1 - 1
app/views/index/normal.phtml

@@ -64,7 +64,7 @@ if (!empty($this->entries)) {
 
 			$this->renderHelper('index/normal/entry_header');
 
-		?><div class="flux_content">
+		?><div class="flux_content" dir="auto">
 			<div class="content <?= $content_width ?>">
 				<h1 class="title"><a target="_blank" rel="noreferrer" class="go_website" href="<?= $this->entry->link() ?>"><?= $this->entry->title() ?></a></h1>
 				<div class="author"><?php

+ 1 - 1
app/views/index/reader.phtml

@@ -17,7 +17,7 @@ if (!empty($this->entries)) {
 			continue;
 		}
 	?><div class="flux<?= !$item->isRead() ? ' not_read' : '' ?><?= $item->isFavorite() ? ' favorite' : '' ?>" id="flux_<?= $item->id() ?>">
-		<div class="flux_content">
+		<div class="flux_content" dir="auto">
 			<div class="content <?= $content_width ?>">
 				<?php
 					$feed = FreshRSS_CategoryDAO::findFeed($this->categories, $item->feed());	//We most likely already have the feed object in cache