Skip to content

Instantly share code, notes, and snippets.

@adrianspeyer
Last active August 29, 2015 14:09
Show Gist options
  • Save adrianspeyer/fcda6cec5bfd4de44694 to your computer and use it in GitHub Desktop.
Save adrianspeyer/fcda6cec5bfd4de44694 to your computer and use it in GitHub Desktop.
Conditional for Vanilla Forums to Add Search Bar on Index.
<div class="Column ContentColumn" id="Content">
{if $BodyID =='vanilla_categories_index'}
<div class="SearchBox">
<form method="get" action="/search">
<input type="text" id="Form_Search" name="Search" placeholder="{t c="Search"}" class="InputBox js-search">
<input type="submit" id="Form_Go" value="Go" class="Button">
</form>
</div>
{/if}
{asset name="Content"}
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment