PageRenderTime 42ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-content/themes/nonus/templates/header.php

https://github.com/alniko009/magic
PHP | 57 lines | 50 code | 7 blank | 0 comment | 4 complexity | 0f772fe0de556e2feb1c46a769b90ad2 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1
  1. <!DOCTYPE html>
  2. <!--[if lt IE 7]>
  3. <html class="no-js lt-ie9 lt-ie8 lt-ie7" <?php language_attributes(); ?>> <![endif]-->
  4. <!--[if IE 7]>
  5. <html class="no-js lt-ie9 lt-ie8" <?php language_attributes(); ?>> <![endif]-->
  6. <!--[if IE 8]>
  7. <html class="no-js lt-ie9" <?php language_attributes(); ?>> <![endif]-->
  8. <!--[if gt IE 8]><!-->
  9. <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]-->
  10. <head>
  11. <meta charset="utf-8">
  12. <title><?php wp_title('|', true, 'right'); bloginfo('name'); ?></title>
  13. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  14. <?php if (have_posts()) : ?>
  15. <link rel="alternate" type="application/rss+xml" title="<?php echo get_bloginfo('name') ?> Feed" href="<?php echo home_url() ?>/feed/">
  16. <?php endif; ?>
  17. <?php wp_head(); ?>
  18. <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
  19. <!--[if lt IE 9]>
  20. <script src="<?php echo CT_THEME_ASSETS ?>/js/html5shiv.js"></script>
  21. <![endif]-->
  22. <script src="<?php echo CT_THEME_ASSETS ?>/js/touch.timeline.min.js"></script>
  23. <script src="<?php echo CT_THEME_ASSETS ?>/js/jquery.timer.js"></script>
  24. <link rel="stylesheet" href="<?php echo CT_THEME_ASSETS ?>/css/touch.timeline.light.min.css" type="text/css" />
  25. <script>
  26. jQuery( document ).ready(function() {
  27. var slider_timer = jQuery.timer(slider_loop);
  28. var tcount = jQuery(".timeline-title").size();
  29. var current = 1;
  30. slider_timer.set({ time : 5000, autostart : true });
  31. function slider_loop(){
  32. jQuery(".timeline-title").css('color','#333333');
  33. jQuery(".timeline-title").css('font-weight','normal');
  34. jQuery(".timeline-title").eq(current).click();
  35. if(current < tcount-1){
  36. current++;
  37. } else {
  38. current = 0;
  39. }
  40. }
  41. jQuery(".timeline-title").eq(0).css('color','#2d91ff');
  42. jQuery(".timeline-title").css('font-weight','normal');
  43. jQuery(".timeline-title").click(function(e){
  44. jQuery(".timeline-title").css('color','#333333');
  45. jQuery(this).css('color','#2d91ff');
  46. jQuery(this).css('font-weight','bold');
  47. });
  48. });
  49. </script>
  50. </head>