Skip to content

Commit

Permalink
Merge branch 'master' into feature/smarty5
Browse files Browse the repository at this point in the history
  • Loading branch information
onli committed Jan 31, 2025
2 parents 3f42e5e + a78a33f commit 0cf740a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docs/NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Version 2.6-alpha1 ()
* Update smarty from v4.3.5 to v5.4.3. This new major version has
breaking changes, worked around as much as possible in the s9y core

* Fix an often broken element of old themes by not adding the
integrated search box when 2k11 is used as the default theme

* Fix specific search terms (like a - at the end) causing an error
page when using MySQL/MariaDB (thanks to GuillaumeValadas)

Expand Down
3 changes: 2 additions & 1 deletion templates/2k11/index.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
{if $blogDescription}<p>{$blogDescription}</p>{/if}
</a>
</div>

{if $template == "2k11"}
<form id="searchform" action="{$serendipityHTTPPath}{$serendipityIndexFile}" method="get">
<div>
<input type="hidden" name="serendipity[action]" value="search">
Expand All @@ -56,6 +56,7 @@
</div>
</form>
{serendipity_hookPlugin hook="quicksearch_plugin" hookAll="true"}
{/if}
{if $template_option.header_img}
<img src="{$template_option.header_img|escape}" alt="">
{/if}
Expand Down
2 changes: 1 addition & 1 deletion templates/2k11/sidebar.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div id="serendipity{$pluginside}SideBar">
{/if}
{foreach from=$plugindata item=item}
{if $item.class != "serendipity_plugin_quicksearch"}
{if $item.class != "serendipity_plugin_quicksearch" || $template != "2k11"}
<section class="sidebar_plugin clearfix {cycle values="odd,even"} {$item.class}">
{if $item.title != ""}
<h3>{$item.title}</h3>
Expand Down

0 comments on commit 0cf740a

Please sign in to comment.