Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 47 lines (40 sloc) 1.546 kb
133f2f4 Tim Murtaugh Initial commit
murtaugh authored
1 <?php
7562da6 Fx Bénard * Create the text domain function
fxbenard authored
2 // Translations can be filed in the /languages/ directory
3 load_theme_textdomain( 'html5reset', TEMPLATEPATH . '/languages' );
4
5 $locale = get_locale();
6 $locale_file = TEMPLATEPATH . "/languages/$locale.php";
7 if ( is_readable($locale_file) )
8 require_once($locale_file);
133f2f4 Tim Murtaugh Initial commit
murtaugh authored
9
10 // Add RSS links to <head> section
11 automatic_feed_links();
12
13 // Load jQuery
89a4a30 Claude Betancourt Wrapping jQuery replacement function into a replaceable function.
cbetancourt authored
14 if ( !function_exists(core_mods) ) {
15 function core_mods() {
16 if ( !is_admin() ) {
17 wp_deregister_script('jquery');
7562da6 Fx Bénard * Create the text domain function
fxbenard authored
18 wp_register_script('jquery', ("//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"), false);
89a4a30 Claude Betancourt Wrapping jQuery replacement function into a replaceable function.
cbetancourt authored
19 wp_enqueue_script('jquery');
20 }
21 }
4a75b79 Claude Betancourt Executes newly created function
cbetancourt authored
22 core_mods();
133f2f4 Tim Murtaugh Initial commit
murtaugh authored
23 }
89a4a30 Claude Betancourt Wrapping jQuery replacement function into a replaceable function.
cbetancourt authored
24
133f2f4 Tim Murtaugh Initial commit
murtaugh authored
25 // Clean up the <head>
26 function removeHeadLinks() {
27 remove_action('wp_head', 'rsd_link');
28 remove_action('wp_head', 'wlwmanifest_link');
29 }
30 add_action('init', 'removeHeadLinks');
31 remove_action('wp_head', 'wp_generator');
32
33 if (function_exists('register_sidebar')) {
34 register_sidebar(array(
7562da6 Fx Bénard * Create the text domain function
fxbenard authored
35 'name' => __('Sidebar Widgets','html5reset' ),
133f2f4 Tim Murtaugh Initial commit
murtaugh authored
36 'id' => 'sidebar-widgets',
7562da6 Fx Bénard * Create the text domain function
fxbenard authored
37 'description' => __( 'These are widgets for the sidebar.','html5reset' ),
133f2f4 Tim Murtaugh Initial commit
murtaugh authored
38 'before_widget' => '<div id="%1$s" class="widget %2$s">',
39 'after_widget' => '</div>',
40 'before_title' => '<h2>',
41 'after_title' => '</h2>'
42 ));
43 }
c4641d9 Tim Murtaugh add_theme_support
murtaugh authored
44
45 add_theme_support( 'post-formats', array('aside', 'gallery', 'link', 'image', 'quote', 'status', 'audio', 'chat', 'video')); // Add 3.1 post format theme support.
133f2f4 Tim Murtaugh Initial commit
murtaugh authored
46
c4641d9 Tim Murtaugh add_theme_support
murtaugh authored
47 ?>
Something went wrong with that request. Please try again.