Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function my_file_get_contents($url) {
- $ch = curl_init();
- $timeout = 5; // set to zero for no timeout
- curl_setopt ($ch, CURLOPT_URL, $url);
- curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
- $file_contents = curl_exec($ch);
- curl_close($ch);
- return $file_contents;
- }
- // Add RSS links to <head> section
- automatic_feed_links();
- // Load jQuery
- if ( !is_admin() ) {
- wp_deregister_script('jquery');
- wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"), false);
- wp_enqueue_script('jquery');
- }
- // Clean up the <head>
- function removeHeadLinks() {
- remove_action('wp_head', 'rsd_link');
- remove_action('wp_head', 'wlwmanifest_link');
- }
- add_action('init', 'removeHeadLinks');
- remove_action('wp_head', 'wp_generator');
- if (function_exists('register_sidebar')) {
- register_sidebar(array(
- 'name' => 'Sidebar Widgets',
- 'id' => 'sidebar-widgets',
- 'description' => 'These are widgets for the sidebar.',
- 'before_widget' => '<div id="%1$s" class="widget %2$s">',
- 'after_widget' => '</div>',
- 'before_title' => '<h2>',
- 'after_title' => '</h2>'
- ));
- add_theme_support( 'post-thumbnails' );
- set_post_thumbnail_size( 550, 80, true );
- add_image_size( 'my_thumbnail', 550, 99999, true );
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement