'.get_bloginfo('name').'.' .' Powered by WordPress.'; if (function_exists('add_theme_support')) { add_theme_support('menus'); register_nav_menu('primary', __('primary', 'adsticle')); }; add_theme_support( 'automatic-feed-links' ); add_theme_support('post-thumbnails'); set_post_thumbnail_size( 100, 100, true ); add_theme_support( 'custom-background' ); if ( ! defined( 'HEADER_TEXTCOLOR' ) ) define( 'HEADER_TEXTCOLOR', '87fda1' ); if ( ! defined( 'HEADER_IMAGE' ) ) define( 'HEADER_IMAGE', '%s/img/top-default1.png' ); define( 'HEADER_IMAGE_WIDTH', apply_filters( 'adsticle_header_image_width', 1000 ) ); define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'adsticle_header_image_height', 80 ) ); //set_post_thumbnail_size( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, true ); if ( ! defined( 'NO_HEADER_TEXT' ) ) define( 'NO_HEADER_TEXT', false ); add_theme_support( 'custom-header'); register_default_headers( array( 'default1' => array( 'url' => '%s/img/top-default1.jpg', 'thumbnail_url' => '%s/img/top-default1-thumb.jpg', 'description' => __( 'Default', 'adsticle' ) ))); if ( ! defined( 'ADT_BACKGROUND_COLOR' ) ) define( 'ADT_BACKGROUND_COLOR', '#14253e' ); if ( ! defined( 'ADT_COLOR_H' ) ) define( 'ADT_COLOR_H', '#1152c0' ); if ( ! defined( 'ADT_COLOR_LINK' ) ) define( 'ADT_COLOR_LINK', '#008000' ); if ( ! defined( 'ADT_COLOR_TEXT' ) ) define( 'ADT_COLOR_TEXT', '#000000' ); if ( ! defined( 'ADT_COLOR_STICKY' ) ) define( 'ADT_COLOR_STICKY', '#7af0b5' ); if ( ! defined( 'ADT_COLOR_BACKGROUND1' ) ) define( 'ADT_COLOR_BACKGROUND1', '#ffffff' ); if ( ! defined( 'ADT_COLOR_LINE' ) ) define( 'ADT_COLOR_LINE', '#8ab1b7' ); if ( ! defined( 'ADT_COLOR_MENUBACKGROUND' ) ) define( 'ADT_COLOR_MENUBACKGROUND', '#8ab1b7' ); if ( ! defined( 'ADT_WIDTH_LINE_MAINMENU' ) ) define( 'ADT_WIDTH_LINE_MAINMENU', '3' ); if ( ! defined( 'ADT_WIDTH_LINE_WIDGET' ) ) define( 'ADT_WIDTH_LINE_WIDGET', '1' ); if ( ! defined( 'ADT_WIDTH_LINE_FOOTER' ) ) define( 'ADT_WIDTH_LINE_FOOTER', '1' ); }; endif; add_action('after_setup_theme', 'adt_template_setup'); add_action('init', 'adt_ilc_farbtastic_script'); if ( ! function_exists( 'adt_ilc_farbtastic_script' ) ) : function adt_ilc_farbtastic_script() { if (is_admin()) { wp_enqueue_style( 'farbtastic' ); wp_enqueue_script( 'farbtastic' ); }; }; endif; add_action( 'admin_print_styles-appearance_page_theme_options', 'adt_ilc_farbtastic_script' ); if ( ! function_exists( 'adt_filter_wp_title' ) ) : function adt_filter_wp_title( $title ) { $site_name = get_bloginfo( 'name' ); $filtered_title = $site_name . $title; return $filtered_title; } endif; add_filter( 'wp_title', 'adt_filter_wp_title' ); if ( ! function_exists( 'adsticle_sidebars' ) ) : function adsticle_sidebars() { if ( function_exists('register_sidebar') ) { register_sidebar(array( 'id' => 'big1', 'name' => __('First right wide sidebar area', 'adsticle'), 'before_widget' => '
', 'before_title' => '
'; for ($i=0; $i<=$Amax; $i++) { $s = ''; if ($i == $Adef) $s = ' selected '; echo ''; }; echo ''; }; endif; $adsticle_options = get_option( 'adsticle_options' ); $ADT_COLOR_H = $adsticle_options['ADT_COLOR_H']; $ADT_COLOR_LINK = $adsticle_options['ADT_COLOR_LINK']; $ADT_COLOR_TEXT = $adsticle_options['ADT_COLOR_TEXT']; $ADT_COLOR_STICKY = $adsticle_options['ADT_COLOR_STICKY']; $ADT_COLOR_BACKGROUND1 = $adsticle_options['ADT_COLOR_BACKGROUND1']; $ADT_COLOR_LINE = $adsticle_options['ADT_COLOR_LINE']; $ADT_WIDTH_LINE_MAINMENU = $adsticle_options['ADT_WIDTH_LINE_MAINMENU']; $ADT_WIDTH_LINE_WIDGET = $adsticle_options['ADT_WIDTH_LINE_WIDGET']; $ADT_WIDTH_LINE_FOOTER = $adsticle_options['ADT_WIDTH_LINE_FOOTER']; $ADT_COLOR_MENUBACKGROUND = $adsticle_options['ADT_COLOR_MENUBACKGROUND']; $adt_a468x60 = $adsticle_options[trim('adt_a468x60')]; $adt_a728x15_top = $adsticle_options[trim('adt_a728x15-top')]; $adt_a728x15_footer = $adsticle_options[trim('adt_a728x15-footer')]; $ads_250_250_post = $adsticle_options[trim('ads_250-250-post')]; if ( ! function_exists( 'adt_options_update' ) ) : function adt_options_update() { global $_POST, $adt_favicon_url, $adt_footer_text; if ($_POST['adt_favicon_url'] != '') { update_option('adt_favicon_url', $_POST['adt_favicon_url']); } else { update_option('adt_favicon_url', $adt_favicon_url); }; if ($_POST['adt_footer_text'] != '') { update_option('adt_footer_text', $_POST['adt_footer_text']); } else { update_option('adt_footer_text', $footer_text); }; if ($_POST['adt_show_main_menu'] != '') { update_option('adt_show_main_menu', $_POST['adt_show_main_menu']); } else { update_option('adt_show_main_menu', '0'); }; if ($_POST['adt_show_featured_image'] != '') { update_option('adt_show_featured_image', $_POST['adt_show_featured_image']); } else { update_option('adt_show_featured_image', '0'); }; }; endif; if ( ! function_exists( 'adt_options_validate ' ) ) : function adt_options_validate ( $adsticle_options) { $output = array(); foreach( $adsticle_options as $key => $value ) { if( isset( $adsticle_options[$key] ) ) { $output[$key] = strip_tags( stripslashes( $adsticle_options[ $key ] ) ); } } return apply_filters( 'adt_options_validate', $output, $adsticle_options ); } endif; if ( ! function_exists( 'adsticle_general_options_page' ) ) : function adsticle_general_options_page() { global $_POST, $adt_favicon_url, $adt_footer_text; if ( isset($_POST['update_options']) && $_POST['update_options'] == 'true' ) ?>