added search form back bouton

This commit is contained in:
Bachir Soussi Chiadmi 2015-10-21 19:43:37 +02:00
parent ace9de07e2
commit 248c5ed3e1
50 changed files with 836 additions and 808 deletions

View File

@ -592,13 +592,20 @@ function materio_search_api_search_form($form, &$form_state){
$default_value = '';
}
// add a back tu search/base home bouton if on explore/foo
// if ($path == 'explore') {
// $form['actu'] = array(
// '#type' => 'markup',
// '#markup' => '<a href="/actuality"><i class="fi-home"></i></a>'
// );
// }
// add a back to search/base home bouton if on explore/foo
if ($path == 'explore') {
$link = l('<i class="fi-home"></i>', base_path().'actuality', array(
'html'=>true,
'attributes'=>array('class'=>'back-search-home')
));
$form['actu'] = array(
'#type' => 'markup',
'#markup' => $link,
//'<a href="'.base_path().'actuality" class="back-search-home"><i class="fi-home"></i></a>'
);
}
$form['searchfield'] = array(
'#type' => 'textfield',

File diff suppressed because it is too large Load Diff

View File

@ -1004,6 +1004,16 @@ $headerouterheight:$headerheight+$headerpaddingtop+$headerpaddingbottom;
}
}
a.back-search-home{
display:inline-block;
vertical-align: middle;
color:#000;
padding: 0 0.5em 0 0.2em;
i:before{
font-size:1.3em;
}
}
input#edit-searchfield{
border: 1px solid #ccc; @include rounded(15px);
margin:3px 0 3px 3px; padding: 4px 5px; height:20px;