-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsidebar.tpl
58 lines (55 loc) · 2.61 KB
/
sidebar.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{if $smarty.const.ENABLE_NEW_JOBS}
<a href="{$BASE_URL}post/" title="{$translations.search.submit_title}" id="postjob" class="add">Employers<span>{$translations.search.submit}</span></a>
{/if}
<div id="search">
<h4>Search Jobs</h4>
<form id="search_form" method="post" action="{$BASE_URL}search/">
<fieldset>
<div>
<input type="text" name="keywords" id="keywords" maxlength="30" value="{if $keywords}{$keywords}{else}{$translations.search.default}{/if}" />
<span id="indicator" style="display: none;"><img src="{$BASE_URL}_templates/{$THEME}/img/ajax-loader.gif" alt="" /></span>
</div>
<div><label class="suggestionTop">{$translations.search.example}</label></div>
</fieldset>
</form>
</div><!-- #search -->
{if $CURRENT_PAGE != ''}
<a href="{$BASE_URL}" title="{$translations.header.title}">« {$translations.header.home}</a><br />
{/if}
{if $navigation.secondary != ''}
<h4>{$translations.sidebar.menu_title}</h4>
<ul>
{section name=tmp loop=$navigation.secondary}
{if $smarty.const.ENABLE_NEW_JOBS || (!$smarty.const.ENABLE_NEW_JOBS && $navigation.secondary[tmp].url != 'post')}
<li><a href="{if $navigation.secondary[tmp].outside != 1}{$BASE_URL}{/if}{$navigation.secondary[tmp].url}/" title="{$navigation.secondary[tmp].title}" >{$navigation.secondary[tmp].name}</a></li>
{/if}
{/section}
{/if}
</ul>
{if $smarty.session.last_viewed_jobs}
<h4>{$translations.header.seen_recently}</h4>
<ul>
{section name=last loop=$smarty.session.last_viewed_jobs}
<li><a href="{$smarty.session.last_viewed_jobs[last].url}">» {$smarty.session.last_viewed_jobs[last].title}</a></li>
{/section}
</ul>
{/if}
{if $CURRENT_PAGE == ''}
<br />
<div id="stats">
<strong>{$jobs_count_all} {$translations.homepage.sidebar_totaljobs}</strong>
<br />
{if $smarty.const.SIDEBAR_SHOW_WHAT == 'categories'}
{foreach item=job from=$jobs_count_all_categs}
<strong>{$job.categ_count}</strong> {$translations.homepage.sidebar_for} <a href="{$BASE_URL}{$URL_JOBS}/{$job.categ_varname}/">{$job.categ_name}</a><br />
{/foreach}
{else}
{foreach item=job from=$jobs_count_per_city}
<strong>{$job.jobs_in_city}</strong> {$translations.jobscity.sidebar_jobs_in} <a href="{$BASE_URL}{$URL_JOBS_IN_CITY}/{$job.city_ascii_name}/">{$job.city_name}</a><br />
{/foreach}
{if !$hide_other_cities_in_sidebar}
<strong>{$jobs_count_in_other_cities}</strong> {$translations.jobscity.sidebar_jobs_in} <a href="{$BASE_URL}jobs-in-other-cities/">{$translations.sidebar.other_cities}</a>
{/if}
{/if}
</div><!-- #stats -->
{/if}