evolved_setup

The Evolved evolved setup function.

Description

evolved_setup(); 

Usage

  1. if ( !function_exists( 'evolved_setup' ) ) { 
  2. require_once '/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = evolved_setup(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/functions.php  
  1. function evolved_setup() { 
  2.  
  3.  
  4.  
  5. // Enable theme translations 
  6. load_theme_textdomain( 'evolved', get_template_directory() . '/languages' ); 
  7.  
  8. $locale = get_locale(); 
  9. $locale_file = get_template_directory() . "/languages/$locale.php"; 
  10. if ( is_readable( $locale_file ) ) 
  11. require_once( $locale_file ); 
  12.  
  13. // Add default posts and comments RSS feed links to head 
  14. add_theme_support( 'automatic-feed-links' ); 
  15.  
  16. // Add stylesheet for the WYSIWYG editor 
  17. add_editor_style(); 
  18.  
  19. // Image thumbnails 
  20. if (function_exists('add_theme_support')) { 
  21. add_theme_support('post-thumbnails'); 
  22. set_post_thumbnail_size(80, 80, true); 
  23. add_image_size('article-thumb', 200, 200, true); 
  24. add_image_size('gamecover', 137, 161, true); 
  25. add_image_size('gamecover-thumb', 100, 118, true); 
  26. add_image_size('video-thumb', 284, 158, true); 
  27. add_image_size('nivo-slide', 642, 362, true); 
  28. add_image_size('nivo-thumb', 128, 72, true); 
  29.  
  30. // Register menu 
  31. register_nav_menus( array( 
  32. 'primary-menu' => __('Evolved Main Menu', 'evolved'),  
  33. ) ); 
  34.  
  35. // Clean up the <head> 
  36. remove_action('wp_head', 'rsd_link'); 
  37. remove_action('wp_head', 'wlwmanifest_link'); 
  38. remove_action('wp_head', 'wp_generator'); 
  39.  
  40. // Custom backgrounds support 
  41. $defaults = array( 
  42. 'default-color' => '121212',  
  43. 'default-image' => get_template_directory_uri().'/images/body-bg1.png',  
  44. 'wp-head-callback' => 'evolved_custom_background_callback
  45. ); 
  46. add_theme_support( 'custom-background', $defaults ); 
  47.  
  48.