Viewing file: functions.php (4.04 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php global $themename, $data; $shortname = "wm";
function wm_wp_head() { global $themename, $data,$shortname,$data,$post;
$wm_head_include = get_option( $shortname.'_head_include',''); echo $wm_head_include;
///width of the slider caption if(get_post_meta($post->ID, 'kingsize_post_slide_caption', true ) != '') $width_slide_caption = get_post_meta($post->ID, 'kingsize_post_slide_caption', true ); elseif(get_post_meta($post->ID, 'kingsize_page_slide_caption', true ) != '' ) $width_slide_caption = get_post_meta($post->ID, 'kingsize_page_slide_caption', true ); elseif(get_post_meta($post->ID, 'kingsize_portfolio_slide_caption', true ) != '' ) $width_slide_caption = get_post_meta($post->ID, 'kingsize_portfolio_slide_caption', true ); else $width_slide_caption = $data['wm_slide_caption'];
?> <style type="text/css"> a, .more-link {color: <?php echo $data['wm_link_color']; ?>;} a:hover, a:focus, a.underline:hover, a.comment-reply-link:hover {color: <?php echo $data['wm_link_color_hover']; ?>;} p, body {color: <?php echo $data['wm_color_text']; ?>;} #logo {height: <?php echo $data['wm_logo_height']; ?>px;} #navContainer h5 {color: <?php echo $data['wm_menu_text_color']; ?>;} #navContainer h6 {color: <?php echo $data['wm_menu_description_text_color']; ?>;} .post h3 a, h3.post_title a {color: <?php echo $data['wm_post_title_color']; ?>;} .post h3 a:hover, h3.post_title a:hover {color: <?php echo $data['wm_post_title_color_hover']; ?>;} #mainNavigation ul li ul li a.active, #mainNavigation li.current-menu-item a, #navbar li.current-menu-ancestor > a , #mainNavigation li.current-menu-parent > a, #mainNavigation li.current-menu-item a, #mainNavigation li.current-menu-ancestor > a h5, #mainNavigation li.current-menu-parent > a > h5, #mainNavigation li.current-menu-parent > a, #mainNavigation li.current-menu-item a , #mainNavigation li.current-menu-ancestor > a, #mainNavigation li.current-menu-item h5 {color: <?php echo $data['wm_menu_active_color']; ?>;} #navContainer h6.sub.space.active {color: <?php echo $data['wm_menu_active_description_color']; ?> ;} div.hide.success p {color: <?php echo $data['wm_success_color']; ?>;} #mainNavigation ul li ul {background: <?php echo $data['wm_submenu_color']; ?>;} #mainNavigation ul li ul {border: 1px solid <?php echo $data['wm_submenu_border_color']; ?>;} #gallery_prettyphoto.portfolio ul li {height: <?php echo $data['wm_portfolio_height']; ?>px;} h1 {color: <?php echo $data['wm_heading_text_color_h1']; ?>;} h2 {color: <?php echo $data['wm_heading_text_color_h2']; ?>;} h3, #footer_columns h3, #sidebar h3 {color: <?php echo $data['wm_heading_text_color_h3']; ?>;} h4 {color: <?php echo $data['wm_heading_text_color_h4']; ?>;} h5 {color: <?php echo $data['wm_heading_text_color_h5']; ?>;} h6 {color: <?php echo $data['wm_heading_text_color_h6']; ?>;} h2.title-page {color: <?php echo $data['wm_section_header_titles_color']; ?>;} #mainNavigation ul li ul li a, .post_title, .older-entries, .title-page, .menu, h1, h2, h3, h4, h5, h6 {font-family: <?php if ( $data['wm_google_fonts_name']!= "" ) {?><?php echo $data['wm_google_fonts_name']; ?>!important <?php } else { ?><!-- Default CSS --><?php } ?>;} h2.slidecaption {color: <?php echo $data['wm_heading_text_color_h2_slider']; ?>;} #slidedescriptiontext {color: <?php echo $data['wm_text_color_slider']; ?>;} a#slidebutton {color: <?php echo $data['wm_text_color_slider_link']; ?>;} a#slidebutton:hover {color: <?php echo $data['wm_text_color_slider_link_hover']; ?>;} /*.slider-desc {width: <?php echo $width_slide_caption; ?>%;}*/ /*.menu { opacity: <?php echo $data['wm_menu_opacity']; ?>; filter: alpha(opacity=<?php echo $data['wm_menu_opacity_ie']; ?>); }*/ div#navContainer { position: <?php if ( $data['wm_menu_position_enabled'] == "1" ) {?>absolute<?php } else { ?>fixed<?php } ?>; } <?php if($data["wm_gallery_titles_prettyphoto"] != "Enable PrettyPhoto Titles") {?> div.ppt, .pp_description { display: none !important; } <?php } ?> </style> <?php }
add_action('wp_head', $shortname.'_wp_head'); ?>
|