PageRenderTime 52ms CodeModel.GetById 29ms RepoModel.GetById 1ms app.codeStats 0ms

/themes/ejp_theme/templates/header.tpl.php

https://github.com/redrush85/EJP
PHP | 42 lines | 33 code | 5 blank | 4 comment | 9 complexity | 434e48966bffb034743bf9f69224430e MD5 | raw file
  1. <div class="header">
  2. <div class="headerin">
  3. <div class="logo"><a href="/"><img src="/<?php print drupal_get_path('theme', 'ejp_theme'); ?>/img/logo3.png" width="437" height="160" border="0" alt="EJP.EU"></a></div>
  4. <div class="dat">
  5. <?php
  6. /*$str = jdtojewish(gregoriantojd( date('m'), date('d'), date('Y')), false, CAL_JEWISH_ADD_GERESHAYIM + CAL_JEWISH_ADD_ALAFIM + CAL_JEWISH_ADD_ALAFIM_GERESH);
  7. $str1 = iconv ('WINDOWS-1255', 'UTF-8', $str);
  8. print date("d M Y");
  9. print " (".$str1.")";*/
  10. $daystamp = $datenow = gmmktime(0,0,0,date("n"),date("j"),date("Y"));
  11. $result .= date('D',$daystamp).', '.date('d',$daystamp).' '.date('M',$daystamp).' / ';
  12. $gregorianMonth = date('n',$daystamp);
  13. $gregorianDay = date('j',$daystamp);
  14. $gregorianYear = date('Y',$daystamp);
  15. $jdDate = gregoriantojd($gregorianMonth,$gregorianDay,$gregorianYear);
  16. $hebrewMonthName = jdmonthname($jdDate,4);
  17. $hebrewMonthName == 'AdarI' ? $hebrewMonthName = 'Adar I' : '';
  18. $hebrewMonthName == 'AdarII' ? $hebrewMonthName = 'Adar II' : '';
  19. $hebrewDate = jdtojewish($jdDate);
  20. list($hebrewMonth, $hebrewDay, $hebrewYear) = split('/',$hebrewDate);
  21. $result .= $hebrewDay.' '.$hebrewMonthName.' '.$hebrewYear.'</div>';
  22. print $result;
  23. ?>
  24. </div>
  25. </div>
  26. </div>
  27. <div class="headers"><div class="shadow"></div><div class="headersin"><?php if (!drupal_is_front_page()) print "<div class=noindex>"; ?>
  28. <a href="/" <?php if (drupal_is_front_page()) print "class=active" ?>>Main</a>
  29. <a href="/news" <?php if (stristr(request_uri(), "/news")) print "class=active" ?>>News</a>
  30. <a href="/members" <?php if (stristr(request_uri(), "/member")) print "class=active" ?>>Members</a>
  31. <a href="/events" <?php if (stristr(request_uri(), "/event")) print "class=active" ?>>Events</a>
  32. <a href="/documents" <?php if (stristr(request_uri(), "/document")) print "class=active" ?>>Documents</a>
  33. <a href="/feedback" <?php if (request_uri()=="/feedback") print "class=active" ?>>Contact Us</a>
  34. <?php //foreach($main_menu_links as $menu_link): ?>
  35. <?php //print l($menu_link['title'], $menu_link['href']); ?>
  36. <?php //endforeach; ?>
  37. </div></div></div>