everbox_custom_head

The EverBox everbox custom head function.

Description

everbox_custom_head(); 

Usage

  1. if ( !function_exists( 'everbox_custom_head' ) ) { 
  2. require_once '/inc/customizer.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = everbox_custom_head(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/inc/customizer.php  
  1. function everbox_custom_head() { 
  2.  
  3. $primary_color = get_theme_mod( 'everbox_primary_color', '' ); 
  4. $favicon_url = get_theme_mod('everbox_favicon', ''); 
  5. $iphone_icon = get_theme_mod('everbox_app', ''); 
  6. ?> 
  7. <!--[if lt IE 9]> 
  8. <script src="<?php echo EVERBOX_URL . '/js/' ?>html5shiv-printshiv.js"></script> 
  9. <![endif]--> 
  10. <!-- Set the viewport. --> 
  11. <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> 
  12. <!-- Allow web app to be run in full-screen mode. --> 
  13. <meta content="yes" name="apple-mobile-web-app-capable" /> 
  14. <!-- Make the app title different than the page title. --> 
  15. <meta name="apple-mobile-web-app-title" content="<?php bloginfo('name'); ?>"> 
  16. <meta name="apple-mobile-web-app-capable" content="yes"> 
  17. <!-- Configure the status bar. --> 
  18. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> 
  19. <!-- Disable automatic phone number detection. --> 
  20. <meta name="format-detection" content="telephone=no"> 
  21.  
  22. <!-- ICONS --> 
  23. <?php if(!empty($favicon_url)) : ?> 
  24. <link href="<?php echo esc_url( $favicon_url ); ?>" rel="icon"> 
  25. <?php endif; ?> 
  26. <?php if(!empty($iphone_icon)) : ?> 
  27. <!-- iPhone 5/6 icon --> 
  28. <link href="<?php echo esc_url( $iphone_icon ); ?>" sizes="120x120" rel="apple-touch-icon-precomposed"> 
  29. <?php endif; ?> 
  30.  
  31. <?php if(!empty($primary_color)) : ?> 
  32. <style type="text/css"> 
  33. a { 
  34. color: <?php echo esc_textarea($primary_color) ?>; 
  35. #secondary .secondary-toggle {  
  36. background-color: <?php echo esc_textarea($primary_color) ?>;  
  37. a:hover { 
  38. color: <?php echo everbox_adjustBrightness($primary_color, -25); ?>; 
  39. .archive-header .archive-title,  
  40. .search-header .search-title { 
  41. border-color: <?php echo esc_textarea($primary_color) ?>; 
  42. .post-meta.category-links a:hover { 
  43. background-color: <?php echo esc_textarea($primary_color) ?>; 
  44. .post-meta a:hover { 
  45. color: <?php echo esc_textarea($primary_color) ?>; 
  46. .post-meta .author { 
  47. color: <?php echo esc_textarea($primary_color) ?>; 
  48. .pagination .current { 
  49. background-color: <?php echo esc_textarea($primary_color) ?>; 
  50. border-color: <?php echo esc_textarea($primary_color) ?>; 
  51. .comments-area .comment-header .comment-title { 
  52. border-color: <?php echo esc_textarea($primary_color) ?>; 
  53. .comments-list li .comment-body .comment-heading .comment-reply-link:hover { 
  54. color: <?php echo esc_textarea($primary_color) ?>; 
  55. .comments-list li .comment-body .comment-byauthor { 
  56. background: <?php echo esc_textarea($primary_color) ?> !important; 
  57. .filter-button.active { 
  58. color: <?php echo esc_textarea($primary_color) ?>; 
  59. .filter-button.active a { 
  60. color: <?php echo esc_textarea($primary_color) ?>; 
  61. .widget .widget-head .widgettitle,  
  62. .widget .widget-head .widget-title { 
  63. border-color: <?php echo esc_textarea($primary_color) ?>; 
  64. .tagcloud a:hover, .page-tags a:hover { 
  65. background-color: <?php echo esc_textarea($primary_color) ?>; 
  66. border-color: <?php echo esc_textarea($primary_color) ?>; 
  67. #wp-calendar tbody td a { 
  68. background: <?php echo esc_textarea($primary_color) ?>; 
  69. #wp-calendar tbody td:hover a { 
  70. background: <?php echo everbox_adjustBrightness($primary_color, 15); ?>; 
  71. #wp-calendar caption { 
  72. background: <?php echo esc_textarea($primary_color) ?>; 
  73. .link-pages > span { 
  74. background-color: <?php echo esc_textarea($primary_color) ?>; 
  75. border-color: <?php echo esc_textarea($primary_color) ?>;  
  76. .link-pages > span:hover { 
  77. background-color: <?php echo esc_textarea($primary_color) ?>; 
  78. .pagination .current { 
  79. background-color: <?php echo esc_textarea($primary_color) ?>; 
  80. border-color: <?php echo esc_textarea($primary_color) ?>; 
  81. .pagination .current:hover { 
  82. background-color: <?php echo esc_textarea($primary_color) ?>; 
  83. .site-header { 
  84. background: <?php echo esc_textarea($primary_color) ?>; 
  85. border-bottom: 1px solid <?php echo everbox_adjustBrightness($primary_color, -15); ?>; 
  86. div.main-nav > ul ul.sub-menu,  
  87. div.main-nav > ul ul.children,  
  88. ul.main-nav ul.sub-menu,  
  89. ul.main-nav ul.children { 
  90. background: <?php echo everbox_adjustBrightness($primary_color, -15); ?>; 
  91. .mobile-menu-container,  
  92. .mobile-search-container { 
  93. background: <?php echo everbox_adjustBrightness($primary_color, -20); ?>; 
  94. .site-search-area .searchform #s { 
  95. border: 1px solid <?php echo everbox_adjustBrightness($primary_color, -20); ?>; 
  96. @media (device-width: 375px) and (height: 667px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 2) { 
  97. .site-header { 
  98. background: <?php echo esc_textarea($primary_color) ?>; 
  99. background-image: none; 
  100. .mobile-menu-container, .mobile-search-container { 
  101. background: <?php echo everbox_adjustBrightness($primary_color, -15); ?>; 
  102. </style> 
  103. <?php endif; ?> 
  104. <?php