Skip to content

Commit f649c98

Browse files
author
alice
committed
searchform label
1 parent 3a7cd15 commit f649c98

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

main.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
tpl_button('recent');
107107
tpl_button('index');
108108
tpl_button('login');
109-
if(tpl_getConf('sidebar') == 'none') tpl_searchform();
109+
if(tpl_getConf('sidebar') == 'none') arctic_tpl_searchform();
110110
} else {
111111
tpl_button('login');
112112
}
@@ -119,7 +119,7 @@
119119
tpl_actionlink('recent');
120120
tpl_actionlink('index');
121121
tpl_actionlink('login');
122-
if(tpl_getConf('sidebar') == 'none') tpl_searchform();
122+
if(tpl_getConf('sidebar') == 'none') arctic_tpl_searchform();
123123
} else {
124124
tpl_actionlink('login');
125125
}
@@ -139,7 +139,7 @@
139139

140140
<?php if(!arctic_tpl_sidebar_hide()) { ?>
141141
<div class="left_sidebar">
142-
<?php tpl_searchform() ?>
142+
<?php arctic_tpl_searchform() ?>
143143
<?php arctic_tpl_sidebar('left') ?>
144144
</div>
145145
<main class="right_page" id="dokuwiki__content" tabindex="-1">
@@ -158,7 +158,7 @@
158158
<?php ($notoc) ? tpl_content(false) : tpl_content() ?>
159159
</main>
160160
<div class="right_sidebar">
161-
<?php tpl_searchform() ?>
161+
<?php arctic_tpl_searchform() ?>
162162
<?php arctic_tpl_sidebar('right') ?>
163163
</div>
164164
<?php } else { ?>
@@ -171,14 +171,14 @@
171171

172172
<?php if(!arctic_tpl_sidebar_hide()) { ?>
173173
<div class="left_sidebar">
174-
<?php if(tpl_getConf('search') == 'left') tpl_searchform() ?>
174+
<?php if(tpl_getConf('search') == 'left') arctic_tpl_searchform() ?>
175175
<?php arctic_tpl_sidebar('left') ?>
176176
</div>
177177
<main class="center_page" id="dokuwiki__content" tabindex="-1">
178178
<?php ($notoc) ? tpl_content(false) : tpl_content() ?>
179179
</main>
180180
<div class="right_sidebar">
181-
<?php if(tpl_getConf('search') == 'right') tpl_searchform() ?>
181+
<?php if(tpl_getConf('search') == 'right') arctic_tpl_searchform() ?>
182182
<?php arctic_tpl_sidebar('right') ?>
183183
</div>
184184
<?php } else { ?>

tpl_functions.php

+14
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,20 @@ function p_index_xhtml($ns,$pos) {
338338
print '</div>' . DOKU_LF;
339339
}
340340

341+
/**
342+
* Renders the Searchform
343+
* calls of tpl_searchform located in /inc/html.php
344+
* and adds a label
345+
*
346+
* @author Samuel Fischer <[email protected]>
347+
*/
348+
function arctic_tpl_searchform(){
349+
#print '<label>' . DOKU_LF;
350+
tpl_searchform();
351+
#print '</label>' . DOKU_LF;
352+
}
353+
354+
341355
/**
342356
* searches for namespace sidebars
343357
*

0 commit comments

Comments
 (0)