/** * How to display the widget on the screen. */ function widget($args, $instance) { extract($args); /* Our variables from the widget settings. */ $title = apply_filters('widget_title', isset($instance['title']) ? $instance['title'] : ''); $advert_image = isset($instance['advert_image']) ? $instance['advert_image'] : ''; $advert_link = isset($instance['advert_link']) ? $instance['advert_link'] : ''; $advert_code = isset($instance['advert_code']) ? $instance['advert_code'] : ''; /* Before widget (defined by themes). */ echo $before_widget; if ($title) { echo $before_title . $title . $after_title; } ?> <div class="widget_advert_inner"> <?php if ($advert_image != '') { echo ($advert_link != '' ? '<a href="' . esc_url($advert_link) . '"' : '<span') . ' class="image_wrap"><img src="' . esc_url($advert_image) . '" alt="' . esc_attr($title) . '" />' . ($advert_link != '' ? '</a>' : '</span>'); } if ($advert_code != '') { echo force_balance_tags(axiom_substitute_all($advert_code)); } ?> </div> <?php /* After widget (defined by themes). */ echo $after_widget; }
// Show main sidebar get_sidebar(); if (axiom_get_custom_option('body_style') != 'fullscreen') { axiom_close_wrapper(); } // <!-- </.content_wrap> --> ?> </div> <!-- </.page_content_wrap> --> <?php // User custom footer if (axiom_get_custom_option('show_user_footer') == 'yes') { $user_footer = axiom_strclear(axiom_get_custom_option('user_footer_content'), 'p'); if (!empty($user_footer)) { $user_footer = axiom_substitute_all($user_footer); ?> <footer class="user_footer_wrap"><?php echo $user_footer; ?> </footer> <?php } } // Footer sidebar $footer_show = axiom_get_custom_option('show_sidebar_footer'); $footer_parts = explode(' ', $footer_show); $footer_tint = !empty($footer_parts[0]) ? $footer_parts[0] : 'dark'; $footer_style = !empty($footer_parts[1]) ? $footer_parts[1] : $footer_tint; if (!axiom_sc_param_is_off($footer_show)) { $AXIOM_GLOBALS['current_sidebar'] = 'footer';
<div class="page_wrap"> <?php // Top panel and Slider if (in_array($top_panel_position, array('above', 'over'))) { require_once axiom_get_file_dir('templates/parts/top-panel.php'); } require_once axiom_get_file_dir('templates/parts/slider.php'); if ($top_panel_position == 'below') { require_once axiom_get_file_dir('templates/parts/top-panel.php'); } // User custom header if (axiom_get_custom_option('show_user_header') == 'yes') { $user_header = axiom_strclear(axiom_get_custom_option('user_header_content'), 'p'); if (!empty($user_header)) { $user_header = axiom_substitute_all($user_header); ?> <div class="user_header_wrap"><?php echo $user_header; ?> </div> <?php } } // Top of page section: page title and breadcrumbs $header_style = ''; if ($top_panel_style == 'light') { $header_image2 = get_header_image(); $header_color = axiom_get_custom_option('show_page_top') == 'yes' ? apply_filters('axiom_filter_get_link_color', axiom_get_custom_option('top_panel_bg_color')) : ''; if (empty($header_image2) && file_exists(axiom_get_file_dir('skins/' . $theme_skin . '/images/bg_over.png'))) { $header_image2 = axiom_get_file_url('skins/' . $theme_skin . '/images/bg_over.png');
function axiom_widget_text_substitutes($text) { return axiom_substitute_all($text); }