Example #1
0
 function axiom_loader_theme_setup()
 {
     // Before init theme
     do_action('axiom_action_before_init_theme');
     // Load current values for main theme options
     axiom_load_main_options();
     // Theme core init - only for admin side. In frontend it called from header.php
     if (is_admin()) {
         axiom_core_init_theme();
     }
 }
Example #2
0
<?php

/**
 * The Header for our theme.
 */
global $AXIOM_GLOBALS;
// Theme init - don't remove next row! Load custom options
axiom_core_init_theme();
$theme_skin = axiom_esc(axiom_get_custom_option('theme_skin'));
$blog_style = axiom_get_custom_option(is_singular() && !axiom_get_global('blog_streampage') ? 'single_style' : 'blog_style');
$body_style = axiom_get_custom_option('body_style');
$logo_style = axiom_get_custom_option('top_panel_style');
$article_style = axiom_get_custom_option('article_style');
$top_panel_style = axiom_get_custom_option('top_panel_style');
$top_panel_opacity = axiom_get_custom_option('top_panel_opacity');
$top_panel_position = axiom_get_custom_option('top_panel_position');
$video_bg_show = axiom_get_custom_option('show_video_bg') == 'yes' && (axiom_get_custom_option('video_bg_youtube_code') != '' || axiom_get_custom_option('video_bg_url') != '');
?>
<!DOCTYPE html>
<html <?php 
language_attributes();
?>
>
<head>
	<meta charset="<?php 
bloginfo('charset');
?>
" />
	<?php 
if (axiom_get_theme_option('responsive_layouts') == 'yes') {
    ?>