/* * This theme styles the visual editor to resemble the theme style, * specifically font, colors, icons, and column width. */ if ( function_exists('register_sidebar') ) register_sidebar(array('name'=>'Sidebar', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); if( !function_exists('theme_setup') ) { function theme_setup() { register_nav_menus( array( 'main-menu' => __( 'Main Navigation' ), 'footer-menu' => __( 'Footer Navigation' ) ) ); } } add_action( 'after_setup_theme', 'theme_setup' ); define( 'BASE_DIR', TEMPLATEPATH . '/' ); include( BASE_DIR . 'inc/tools.php' ); include( BASE_DIR . 'inc/options-sidebar.php' ); if ( function_exists( 'add_theme_support' ) ) { add_theme_support( 'post-thumbnails' ); add_image_size( 'thumb100', 100, 80, true ); }; if ( !function_exists( 'optionsframework_init' ) ) { define( 'OPTIONS_FRAMEWORK_DIRECTORY', get_template_directory_uri() . '/inc/' ); require_once dirname( __FILE__ ) . '/inc/options-framework.php'; } add_action('wp_print_scripts', 'jquery_script',8); function jquery_script(){ if ( function_exists('esc_attr') ) wp_enqueue_script('jquery'); else { wp_deregister_script('jquery'); wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js', false, '1.3.2'); } } function my_scripts_method() { wp_enqueue_script('myscript2', get_template_directory_uri() . '/js/js-mainmenu.js', array('jquery'), false, true); } add_action('wp_enqueue_scripts', 'my_scripts_method'); function options_stylesheets_alt_style() { if ( of_get_option('stylesheet') ) { wp_enqueue_style( 'options_stylesheets_alt_style', of_get_option('stylesheet'), array(), null ); } } add_action( 'wp_enqueue_scripts', 'options_stylesheets_alt_style' ); add_filter( 'use_default_gallery_style', '__return_false' ); homestay pacitan | Homestay Pacitan - Homestay Pacitan