</div> </div> </div> <div class="container fixed-footer show-footer"> <div class="row"> <div class="col-md-12"> <?php if (!dynamic_sidebar('footer1')) { ?> <?php } ?> </div> </div> </div> </footer> <?php $custom_js = carya_option("custom_js"); if (!empty($custom_js)) { ?> <script type="text/javascript"> <?php echo esc_js($custom_js); ?> </script> <?php } wp_footer(); ?> </body> </html>
function tekserve_studio_override_carya_inline_styling() { $option_values = array('menu_active' => '', 'footer_bg' => '', 'footer_color' => ''); if (function_exists('carya_option')) { foreach ($option_values as $key => $value) { $option_values[$key] = carya_option($key); } //end foreach( $option_values as $key => $value ) } else { $options = get_option('vpt_option'); if ($options !== FALSE) { foreach ($option_values as $key => $value) { $temp = NULL; if (array_key_exists($key, $options)) { $temp = $options[$key]; // $temp = $temp->get_options(); $option_values[$key] = $temp; } //end if( array_key_exists( 'menu_active', $options ) ) } //end foreach( $option_values as $key => $value ) } //end if( $options !== FALSE ) } //end if( function_exists( 'carya_option' ) ) ?> <style type="text/css" id="tekserve-studio-carya-overrides"> <?php if (!empty($option_values['menu_active'])) { ?> .tekserve-studio .menu a:hover, .tekserve-studio .menu-expand:hover { color: <?php echo esc_attr($option_values['menu_active']); ?> ; background: transparent; } .tekserve-studio .menu .current-menu-item > a { color: <?php echo esc_attr($option_values['menu_active']); ?> ; background: transparent; } <?php } ?> <?php if (!empty($option_values['footer_bg'])) { ?> .tekserve-studio .footer { background: transparent; } <?php $footer_bg_styles = 'background-color: #'; $footer_bg_colors = cAc_css2rgba($option_values['footer_bg'], '0.95'); $footer_bg_styles .= $footer_bg_colors['hex'] . '; background-color: '; $footer_bg_styles .= $footer_bg_colors['rgba'] . ';'; ?> .tekserve-studio .footer .fixed-footer { <?php echo $footer_bg_styles; ?> } <?php } ?> <?php if (!empty($option_values['footer_color'])) { ?> .tekserve-studio .footer { color: #444; } .tekserve-studio .footer .fixed-footer { color: <?php echo esc_attr($option_values['footer_color']); ?> ; } <?php } ?> </style> <?php }