forked from GithubBackups/vichan
news+ -> n
This commit is contained in:
parent
b6675ba7b7
commit
bcb387da43
@ -165,7 +165,7 @@
|
||||
$config['markup_paragraphs'] = true;
|
||||
$config['markup_rtl'] = true;
|
||||
|
||||
$config['boards'] = array(array('<i class="fa fa-home" title="Home"></i>' => '/', '<i class="fa fa-tags" title="Boards"></i>' => '/boards.html', '<i class="fa fa-question" title="FAQ"></i>' => '/faq.html', '<i class="fa fa-random" title="Random"></i>' => '/random.php', '<i class="fa fa-plus" title="New board"></i>' => '/create.php', '<i class="fa fa-ban" title="Public ban list"></i>' => '/bans.html', '<i class="fa fa-search" title="Search"></i>' => '/search.php', '<i class="fa fa-cog" title="Manage board"></i>' => '/mod.php', '<i class="fa fa-quote-right" title="Chat"></i>' => 'https://qchat.rizon.net/?channels=#8chan'), array('b', 'news+', 'boards'), array('operate', 'meta'), array('<i class="fa fa-twitter" title="Twitter"></i>'=>'https://twitter.com/infinitechan'));
|
||||
$config['boards'] = array(array('<i class="fa fa-home" title="Home"></i>' => '/', '<i class="fa fa-tags" title="Boards"></i>' => '/boards.html', '<i class="fa fa-question" title="FAQ"></i>' => '/faq.html', '<i class="fa fa-random" title="Random"></i>' => '/random.php', '<i class="fa fa-plus" title="New board"></i>' => '/create.php', '<i class="fa fa-ban" title="Public ban list"></i>' => '/bans.html', '<i class="fa fa-search" title="Search"></i>' => '/search.php', '<i class="fa fa-cog" title="Manage board"></i>' => '/mod.php', '<i class="fa fa-quote-right" title="Chat"></i>' => 'https://qchat.rizon.net/?channels=#8chan'), array('b', 'n', 'boards'), array('operate', 'meta'), array('<i class="fa fa-twitter" title="Twitter"></i>'=>'https://twitter.com/infinitechan'));
|
||||
//$config['boards'] = array(array('<i class="fa fa-home" title="Home"></i>' => '/', '<i class="fa fa-tags" title="Boards"></i>' => '/boards.html', '<i class="fa fa-question" title="FAQ"></i>' => '/faq.html', '<i class="fa fa-random" title="Random"></i>' => '/random.php', '<i class="fa fa-plus" title="New board"></i>' => '/create.php', '<i class="fa fa-search" title="Search"></i>' => '/search.php', '<i class="fa fa-cog" title="Manage board"></i>' => '/mod.php', '<i class="fa fa-quote-right" title="Chat"></i>' => 'https://qchat.rizon.net/?channels=#8chan'), array('b', 'meta', 'int'), array('v', 'a', 'tg', 'fit', 'pol', 'tech', 'mu', 'co', 'sp', 'boards'), array('<i class="fa fa-twitter" title="Twitter"></i>'=>'https://twitter.com/infinitechan'));
|
||||
|
||||
$config['footer'][] = 'All posts on 8chan are the responsibility of the individual poster and not the administration of 8chan, pursuant to 47 U.S.C. § 230.';
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
include 'inc/functions.php';
|
||||
$query = query('SELECT np.* FROM newsplus np INNER JOIN `posts_news+` p ON np.thread=p.id WHERE np.dead IS FALSE ORDER BY p.bump DESC');
|
||||
$query = query('SELECT np.* FROM newsplus np INNER JOIN `posts_n` p ON np.thread=p.id WHERE np.dead IS FALSE ORDER BY p.bump DESC');
|
||||
if ($query) {
|
||||
$newsplus = $query->fetchAll(PDO::FETCH_ASSOC);
|
||||
} else {
|
||||
@ -10,4 +10,4 @@ if ($query) {
|
||||
$index = Element("8chan/index.html", array("config" => $config, "newsplus" => $newsplus));
|
||||
file_write('index.html', $index);
|
||||
|
||||
echo $index;
|
||||
echo $index;
|
||||
|
@ -209,18 +209,18 @@
|
||||
<div class="col col-9 header_text">
|
||||
<em>{% trans %}Welcome to 8chan, the infinitely expanding imageboard.{% endtrans %}</em>
|
||||
<br>
|
||||
<span>[ <a href="/b/">/b/ - Random</a> | <a href="/news+/">/news+/ - News</a> | <a href="/boards/">/boards/ - Boards</a>]</span>
|
||||
<span>[ <a href="/b/">/b/ - Random</a> | <a href="/n/">/n/ - News</a> | <a href="/boards/">/boards/ - Boards</a>]</span>
|
||||
<br>
|
||||
<strong>{% trans %}Top 25 boards:{% endtrans %}</strong>
|
||||
<span class="sub" data-description="3"></span>
|
||||
<br>
|
||||
<!-- <br>
|
||||
<strong>
|
||||
{% trans %}Boards of the week:{% endtrans %} [
|
||||
{% for board in config.boards_of_the_week %}
|
||||
<a href="/{{ board }}">{% if not loop.first %} {% endif %}{{ board }}</a>{% if not loop.last %} /{% endif %}
|
||||
{% endfor %}
|
||||
]
|
||||
</strong>
|
||||
</strong> -->
|
||||
</div>
|
||||
</header>
|
||||
|
||||
@ -276,11 +276,11 @@
|
||||
<a href="create.php" class="button">{% trans %}Create your board{% endtrans %}</a>
|
||||
<a href="boards.html" class="button">{% trans %}Browse existing boards{% endtrans %}</a>
|
||||
</div>
|
||||
<p><table><th><a href="/news+/">Latest headlines</a></th>
|
||||
<p><table><th><a href="/n/">Latest headlines</a></th>
|
||||
<tr><td>
|
||||
<ol style="padding-left:40px">
|
||||
{% for n in newsplus[:15] %}
|
||||
<li><a href="/news+/res/{{ n.thread }}.html">{{ n.subject|e }}</a> (<a href="{{ n.link|e }}">link</a>)</li>
|
||||
<li><a href="/n/res/{{ n.thread }}.html">{{ n.subject|e }}</a> (<a href="{{ n.link|e }}">link</a>)</li>
|
||||
{% endfor %}
|
||||
</ol>
|
||||
</td></tr></table></p>
|
||||
|
Loading…
x
Reference in New Issue
Block a user