'.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_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_custom_image_header( '', 'adsticle_admin_header_style' ); 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( 'BACKGROUND_COLOR' ) ) define( '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' ); }; add_action('after_setup_theme', 'template_setup'); add_action('init', 'ilc_farbtastic_script'); function ilc_farbtastic_script() { if (is_admin()) { wp_enqueue_style( 'farbtastic' ); wp_enqueue_script( 'farbtastic' ); }; }; 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 ''; }; function 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); }; update_option('adt_a468x60', trim($_POST['adt_a468x60'])); update_option('adt_a728x15-top', trim($_POST['adt_a728x15-top'])); update_option('adt_a728x15-footer', trim($_POST['adt_a728x15-footer'])); update_option('ads_250-250-post', trim($_POST['ads_250-250-post'])); 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'); }; update_option('ADT_COLOR_H', $_POST['ADT_COLOR_H']); update_option('ADT_COLOR_LINK', $_POST['ADT_COLOR_LINK']); update_option('ADT_COLOR_TEXT', $_POST['ADT_COLOR_TEXT']); update_option('ADT_COLOR_STICKY', $_POST['ADT_COLOR_STICKY']); update_option('ADT_COLOR_BACKGROUND1', $_POST['ADT_COLOR_BACKGROUND1']); update_option('ADT_COLOR_LINE', $_POST['ADT_COLOR_LINE']); update_option('ADT_WIDTH_LINE_MAINMENU', $_POST['ADT_WIDTH_LINE_MAINMENU']); update_option('ADT_WIDTH_LINE_WIDGET', $_POST['ADT_WIDTH_LINE_WIDGET']); update_option('ADT_WIDTH_LINE_FOOTER', $_POST['ADT_WIDTH_LINE_FOOTER']); update_option('ADT_COLOR_MENUBACKGROUND', $_POST['ADT_COLOR_MENUBACKGROUND']); }; function adsticle_general_options_page() { global $_POST, $adt_favicon_url, $adt_footer_text; if ( $_POST['update_options'] == 'true' ) { options_update(); }; ?>