web_dor_update_typography

The Business Responsive web dor update typography function.

Description

web_dor_update_typography(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function web_dor_update_typography() 
  2. //update options 
  3. global $dor_typography_page; 
  4.  
  5. foreach ($dor_typography_page->options_typography as $value) { 
  6. if(isset($value['id'])) { 
  7. if (get_theme_mod($value['id']) === FALSE) { 
  8. $$value['id'] = $value['std']; 
  9. } else { 
  10. $$value['id'] = get_theme_mod($value['id']); 
  11.  
  12. ?> 
  13.  
  14. <style type="text/css"> 
  15. h1, h2, h3, h4, h5, h6 { 
  16. font-family: <?php echo $_type_headers_font; ?>; 
  17. font-weight: <?php echo $_type_headers_weight; ?>; 
  18. letter-spacing: <?php echo $_type_headers_kern; ?>; 
  19. text-transform: <?php echo $_type_headers_transform; ?>; 
  20. font-variant: <?php echo $_type_headers_variant; ?>; 
  21. font-style: <?php echo $_type_headers_style; ?>; 
  22.  
  23. .nav, .metabar, .subtext, .subhead, .widget-title, .reply a, .editpage, #page .wp-pagenavi, .post-edit-link, #wp-calendar caption, #wp-calendar thead th, .soapbox-links a, .fancybox, .standard-form .admin-links, .ftitle small { 
  24. font-family: <?php echo $_type_headers_font; ?>; 
  25. font-weight: <?php echo $_type_headers_weight; ?>; 
  26. letter-spacing: <?php echo $_type_headers_kern; ?>; 
  27. text-transform: <?php echo $_type_headers_transform; ?>; 
  28. font-variant: <?php echo $_type_headers_variant; ?>; 
  29. font-style: <?php echo $_type_headers_style; ?>; 
  30.  
  31. body { 
  32. font-family: <?php echo $_type_primary_font; ?>; 
  33. font-weight: <?php echo $_type_primary_weight; ?>; 
  34. letter-spacing: <?php echo $_type_primary_kern; ?>; 
  35. text-transform: <?php echo $_type_primary_transform; ?>; 
  36. font-variant: <?php echo $_type_primary_variant; ?>; 
  37. font-style: <?php echo $_type_primary_style; ?>; 
  38.  
  39. input, textarea { 
  40. font-family: <?php echo $_type_inputs_font; ?>; 
  41. font-weight: <?php echo $_type_inputs_weight; ?>; 
  42. letter-spacing: <?php echo $_type_inputs_kern; ?>; 
  43. text-transform: <?php echo $_type_inputs_transform; ?>; 
  44. font-variant: <?php echo $_type_inputs_variant; ?>; 
  45. font-style: <?php echo $_type_inputs_style; ?>; 
  46.  
  47. </style> 
  48. <?php