diff --git a/boards.php b/boards.php index 39876d68..c85346e8 100644 --- a/boards.php +++ b/boards.php @@ -93,8 +93,7 @@ $searchHTML = Element("8chan/boards-search.html", array( $pageHTML = Element("page.html", array( "config" => $config, - "body" => $searchHTML, - "title" => "Boards on ∞chan" + "body" => $searchHTML ) ); diff --git a/inc/instance-config.php b/inc/instance-config.php index 1701fc64..56783e33 100644 --- a/inc/instance-config.php +++ b/inc/instance-config.php @@ -152,25 +152,25 @@ $config['stylesheets']['Dark'] = 'dark.css'; $config['stylesheets']['Photon'] = 'photon.css'; $config['stylesheets']['Redchanit'] = 'redchanit.css'; - + $config['stylesheets_board'] = true; $config['markup'][] = array("/^[ |\t]*==(.+?)==[ |\t]*$/m", "\$1"); $config['markup'][] = array("/\[spoiler\](.+?)\[\/spoiler\]/", "\$1"); $config['markup'][] = array("/~~(.+?)~~/", "\$1"); $config['markup'][] = array("/__(.+?)__/", "\$1"); $config['markup'][] = array("/###([^\s']+)###/", "###\$1###"); - + $config['boards'] = array(array('' => '/', '' => '/boards.html', '' => '/faq.html', '' => '/random.php', '' => '/create.php', '' => '/bans.html', '' => '/search.php', '' => '/mod.php', '' => 'https://qchat.rizon.net/?channels=#8chan'), array('b', 'news+', 'boards'), array('operate', 'meta'), array(''=>'https://twitter.com/infinitechan')); //$config['boards'] = array(array('' => '/', '' => '/boards.html', '' => '/faq.html', '' => '/random.php', '' => '/create.php', '' => '/search.php', '' => '/mod.php', '' => 'https://qchat.rizon.net/?channels=#8chan'), array('b', 'meta', 'int'), array('v', 'a', 'tg', 'fit', 'pol', 'tech', 'mu', 'co', 'sp', 'boards'), array(''=>'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.'; $config['footer'][] = 'We have not been served any secret court orders and are not under any gag orders.'; $config['footer'][] = 'To make a DMCA request or report illegal content, please email admin@8chan.co.'; - + $config['search']['enable'] = true; - + $config['syslog'] = true; - + $config['hour_max_threads'] = 10; $config['filters'][] = array( 'condition' => array( @@ -200,6 +200,10 @@ $config['report_captcha'] = true; $config['page_404'] = 'page_404'; +// Flavor and design. +$config['site_name'] = "∞chan"; +$config['site_logo'] = "/static/logo_33.svg"; + // 8chan specific mod pages require '8chan-mod-config.php'; diff --git a/static/nsfw.png b/static/nsfw.png deleted file mode 100644 index 475868b3..00000000 Binary files a/static/nsfw.png and /dev/null differ diff --git a/static/sfw.png b/static/sfw.png deleted file mode 100644 index e031f3c3..00000000 Binary files a/static/sfw.png and /dev/null differ diff --git a/stylesheets/style.css b/stylesheets/style.css index 62559dd4..372bdd74 100644 --- a/stylesheets/style.css +++ b/stylesheets/style.css @@ -1033,6 +1033,23 @@ span.pln { } } +/* === SITE-WIDE ASSETS === */ +#logo { + display: block; + width: 100%; + padding: 0; + margin: 0; + text-align: center; +} +#logo-link { + display: inline; +} +#logo-img { + display: inline-block; + height: 128px; + width: auto; +} + /* === GENERAL CLASSES === */ .loading { background: none; diff --git a/templates/page.html b/templates/page.html index c8cb8f2f..11b6b953 100644 --- a/templates/page.html +++ b/templates/page.html @@ -12,7 +12,15 @@ {% if pm %}
You have an unread PM{% if pm.waiting > 0 %}, plus {{ pm.waiting }} more waiting{% endif %}.

{% endif %}
-

{{ title }}

+ {% if config.site_logo %} + + {% endif %} + + {% if title %}

{{ title }}

{% endif %}
{% if subtitle %} {{ subtitle }}