Merge pull request #3 from towards-a-new-leftypol/sidebar_rules

Add links to sidebar to Faq and Rules pages
This commit is contained in:
discomrade 2021-05-15 06:40:56 +00:00 committed by GitHub
commit f13e4dfa2b
2 changed files with 22 additions and 0 deletions

View file

@ -49,6 +49,22 @@ Requires $config[\'categories\'].';
'default' => 'news.html',
'comment' => '(eg. "news.html")'
);
$theme['config'][] = Array(
'title' => 'FAQ file',
'name' => 'file_faq',
'type' => 'text',
'default' => 'faq.html',
'comment' => '(eg. "faq.html")'
);
$theme['config'][] = Array(
'title' => 'Rules file',
'name' => 'file_rules',
'type' => 'text',
'default' => 'rules.html',
'comment' => '(eg. "rules.html")'
);
// Unique function name for building everything
$theme['build_function'] = 'categories_build';

View file

@ -6,6 +6,12 @@
<li>
<a class="system" href="{{ settings.file_news }}">[News]</a>
</li>
<li>
<a class="system" href="{{ settings.file_faq }}">[Help/FAQ]</a>
</li>
<li>
<a class="system" href="{{ settings.file_rules }}">[Rules]</a>
</li>
</ul>
</fieldset>