/_templates/default/_cache/%%9C^9C8^9C8CAA4B%%sidebar.tpl.php

https://github.com/GunioRobot/Jobberbase · PHP · 124 lines · 119 code · 5 blank · 0 comment · 34 complexity · 8ed9ac694f7883f454cf5b587f142ab4 MD5 · raw file

  1. <?php /* Smarty version 2.6.26, created on 2009-12-01 09:02:15
  2. compiled from sidebar.tpl */ ?>
  3. <?php if ($this->_tpl_vars['CURRENT_PAGE'] != ''): ?>
  4. <a href="<?php echo $this->_tpl_vars['BASE_URL']; ?>
  5. " title="<?php echo $this->_tpl_vars['translations']['header']['title']; ?>
  6. ">&laquo; <?php echo $this->_tpl_vars['translations']['header']['home']; ?>
  7. </a><br />
  8. <?php endif; ?>
  9. <?php if ($this->_tpl_vars['navigation']['secondary'] != ''): ?>
  10. <h4><?php echo $this->_tpl_vars['translations']['sidebar']['menu_title']; ?>
  11. </h4>
  12. <ul>
  13. <?php unset($this->_sections['tmp']);
  14. $this->_sections['tmp']['name'] = 'tmp';
  15. $this->_sections['tmp']['loop'] = is_array($_loop=$this->_tpl_vars['navigation']['secondary']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
  16. $this->_sections['tmp']['show'] = true;
  17. $this->_sections['tmp']['max'] = $this->_sections['tmp']['loop'];
  18. $this->_sections['tmp']['step'] = 1;
  19. $this->_sections['tmp']['start'] = $this->_sections['tmp']['step'] > 0 ? 0 : $this->_sections['tmp']['loop']-1;
  20. if ($this->_sections['tmp']['show']) {
  21. $this->_sections['tmp']['total'] = $this->_sections['tmp']['loop'];
  22. if ($this->_sections['tmp']['total'] == 0)
  23. $this->_sections['tmp']['show'] = false;
  24. } else
  25. $this->_sections['tmp']['total'] = 0;
  26. if ($this->_sections['tmp']['show']):
  27. for ($this->_sections['tmp']['index'] = $this->_sections['tmp']['start'], $this->_sections['tmp']['iteration'] = 1;
  28. $this->_sections['tmp']['iteration'] <= $this->_sections['tmp']['total'];
  29. $this->_sections['tmp']['index'] += $this->_sections['tmp']['step'], $this->_sections['tmp']['iteration']++):
  30. $this->_sections['tmp']['rownum'] = $this->_sections['tmp']['iteration'];
  31. $this->_sections['tmp']['index_prev'] = $this->_sections['tmp']['index'] - $this->_sections['tmp']['step'];
  32. $this->_sections['tmp']['index_next'] = $this->_sections['tmp']['index'] + $this->_sections['tmp']['step'];
  33. $this->_sections['tmp']['first'] = ($this->_sections['tmp']['iteration'] == 1);
  34. $this->_sections['tmp']['last'] = ($this->_sections['tmp']['iteration'] == $this->_sections['tmp']['total']);
  35. ?>
  36. <?php if (@ENABLE_NEW_JOBS || ( ! @ENABLE_NEW_JOBS && $this->_tpl_vars['navigation']['secondary'][$this->_sections['tmp']['index']]['url'] != 'post' )): ?>
  37. <li><a href="<?php if ($this->_tpl_vars['navigation']['secondary'][$this->_sections['tmp']['index']]['outside'] != 1): ?><?php echo $this->_tpl_vars['BASE_URL']; ?>
  38. <?php endif; ?><?php echo $this->_tpl_vars['navigation']['secondary'][$this->_sections['tmp']['index']]['url']; ?>
  39. /" title="<?php echo $this->_tpl_vars['navigation']['secondary'][$this->_sections['tmp']['index']]['title']; ?>
  40. " ><?php echo $this->_tpl_vars['navigation']['secondary'][$this->_sections['tmp']['index']]['name']; ?>
  41. </a></li>
  42. <?php endif; ?>
  43. <?php endfor; endif; ?>
  44. <?php endif; ?>
  45. </ul>
  46. <?php if ($_SESSION['last_viewed_jobs']): ?>
  47. <h4><?php echo $this->_tpl_vars['translations']['header']['seen_recently']; ?>
  48. </h4>
  49. <ul>
  50. <?php unset($this->_sections['last']);
  51. $this->_sections['last']['name'] = 'last';
  52. $this->_sections['last']['loop'] = is_array($_loop=$_SESSION['last_viewed_jobs']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
  53. $this->_sections['last']['show'] = true;
  54. $this->_sections['last']['max'] = $this->_sections['last']['loop'];
  55. $this->_sections['last']['step'] = 1;
  56. $this->_sections['last']['start'] = $this->_sections['last']['step'] > 0 ? 0 : $this->_sections['last']['loop']-1;
  57. if ($this->_sections['last']['show']) {
  58. $this->_sections['last']['total'] = $this->_sections['last']['loop'];
  59. if ($this->_sections['last']['total'] == 0)
  60. $this->_sections['last']['show'] = false;
  61. } else
  62. $this->_sections['last']['total'] = 0;
  63. if ($this->_sections['last']['show']):
  64. for ($this->_sections['last']['index'] = $this->_sections['last']['start'], $this->_sections['last']['iteration'] = 1;
  65. $this->_sections['last']['iteration'] <= $this->_sections['last']['total'];
  66. $this->_sections['last']['index'] += $this->_sections['last']['step'], $this->_sections['last']['iteration']++):
  67. $this->_sections['last']['rownum'] = $this->_sections['last']['iteration'];
  68. $this->_sections['last']['index_prev'] = $this->_sections['last']['index'] - $this->_sections['last']['step'];
  69. $this->_sections['last']['index_next'] = $this->_sections['last']['index'] + $this->_sections['last']['step'];
  70. $this->_sections['last']['first'] = ($this->_sections['last']['iteration'] == 1);
  71. $this->_sections['last']['last'] = ($this->_sections['last']['iteration'] == $this->_sections['last']['total']);
  72. ?>
  73. <li><a href="<?php echo $_SESSION['last_viewed_jobs'][$this->_sections['last']['index']]['url']; ?>
  74. ">&raquo; <?php echo $_SESSION['last_viewed_jobs'][$this->_sections['last']['index']]['title']; ?>
  75. </a></li>
  76. <?php endfor; endif; ?>
  77. </ul>
  78. <?php endif; ?>
  79. <?php if ($this->_tpl_vars['CURRENT_PAGE'] == ''): ?>
  80. <br />
  81. <div id="stats">
  82. <strong><?php echo $this->_tpl_vars['jobs_count_all']; ?>
  83. <?php echo $this->_tpl_vars['translations']['homepage']['sidebar_totaljobs']; ?>
  84. </strong>
  85. <br />
  86. <?php if (@SIDEBAR_SHOW_WHAT == 'categories'): ?>
  87. <?php $_from = $this->_tpl_vars['jobs_count_all_categs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  88. foreach ($_from as $this->_tpl_vars['job']):
  89. ?>
  90. <strong><?php echo $this->_tpl_vars['job']['categ_count']; ?>
  91. </strong> <?php echo $this->_tpl_vars['translations']['homepage']['sidebar_for']; ?>
  92. <a href="<?php echo $this->_tpl_vars['BASE_URL']; ?>
  93. <?php echo $this->_tpl_vars['URL_JOBS']; ?>
  94. /<?php echo $this->_tpl_vars['job']['categ_varname']; ?>
  95. /"><?php echo $this->_tpl_vars['job']['categ_name']; ?>
  96. </a><br />
  97. <?php endforeach; endif; unset($_from); ?>
  98. <?php else: ?>
  99. <?php $_from = $this->_tpl_vars['jobs_count_per_city']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  100. foreach ($_from as $this->_tpl_vars['job']):
  101. ?>
  102. <strong><?php echo $this->_tpl_vars['job']['jobs_in_city']; ?>
  103. </strong> <?php echo $this->_tpl_vars['translations']['jobscity']['sidebar_jobs_in']; ?>
  104. <a href="<?php echo $this->_tpl_vars['BASE_URL']; ?>
  105. <?php echo $this->_tpl_vars['URL_JOBS_IN_CITY']; ?>
  106. /<?php echo $this->_tpl_vars['job']['city_ascii_name']; ?>
  107. /"><?php echo $this->_tpl_vars['job']['city_name']; ?>
  108. </a><br />
  109. <?php endforeach; endif; unset($_from); ?>
  110. <?php if (! $this->_tpl_vars['hide_other_cities_in_sidebar']): ?>
  111. <strong><?php echo $this->_tpl_vars['jobs_count_in_other_cities']; ?>
  112. </strong> <?php echo $this->_tpl_vars['translations']['jobscity']['sidebar_jobs_in']; ?>
  113. <a href="<?php echo $this->_tpl_vars['BASE_URL']; ?>
  114. jobs-in-other-cities/"><?php echo $this->_tpl_vars['translations']['sidebar']['other_cities']; ?>
  115. </a>
  116. <?php endif; ?>
  117. <?php endif; ?>
  118. </div><!-- #stats -->
  119. <?php endif; ?>