Guest User

Untitled

a guest
Dec 12th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.17 KB | None | 0 0
  1. <?php
  2. /**
  3. * Functions
  4. *
  5. * @package WP Executive
  6. * @subpackage Admin
  7. */
  8.  
  9. if ( function_exists('register_sidebar') )
  10. register_sidebar(array(
  11. 'name' => 'Sidebar Blog',
  12. 'description' => 'Widgets in this area will be shown in the sidebar area for blog & archives.',
  13. 'before_widget' => '<aside id="%1$s" class="widget %2$s left">',
  14. 'after_widget' => '</aside>',
  15. 'before_title' => '<h4>',
  16. 'after_title' => '</h4>',
  17. ));
  18.  
  19. if ( function_exists('register_sidebar') )
  20. register_sidebar(array(
  21. 'name' => 'Sidebar Pages',
  22. 'description' => 'Widgets in this area will be shown in the sidebar area for pages.',
  23. 'before_widget' => '<aside id="%1$s" class="widget %2$s left">',
  24. 'after_widget' => '</aside>',
  25. 'before_title' => '<h4>',
  26. 'after_title' => '</h4>',
  27. ));
  28.  
  29. if ( function_exists('register_sidebar') )
  30. register_sidebar(array(
  31. 'name' => 'Homepage',
  32. 'description' => 'Widgets in this area will be shown on the homepage, below the Featured Slider.',
  33. 'before_widget' => '<aside id="%1$s" class="widget home %2$s left">',
  34. 'after_widget' => '</aside>',
  35. 'before_title' => '<h4 class="triple"><span>',
  36. 'after_title' => '</span></h4>',
  37. ));
  38.  
  39. if ( function_exists('register_sidebar') )
  40. register_sidebar(array(
  41. 'name' => 'Footer',
  42. 'description' => 'Widgets in this area will be shown in the footer.',
  43. 'before_widget' => '<aside id="%1$s" class="widget footer %2$s left">',
  44. 'after_widget' => '</aside>',
  45. 'before_title' => '<h5>',
  46. 'after_title' => '</h5>',
  47. ));
  48.  
  49. $functions_path = TEMPLATEPATH . '/admin/';
  50. $includes_path = TEMPLATEPATH . '/includes/';
  51. $ct_resize = TEMPLATEPATH . '/img_resize/';
  52.  
  53. // Add Automatic Feed Links
  54. add_theme_support( 'automatic-feed-links' );
  55.  
  56. // Localization Support
  57. load_theme_textdomain( 'contempo', TEMPLATEPATH.'/languages' );
  58.  
  59. $locale = get_locale();
  60. $locale_file = TEMPLATEPATH."/languages/$locale.php";
  61. if ( is_readable($locale_file) )
  62. require_once($locale_file);
  63.  
  64. // Set Options on Theme Activation
  65. require_once ($functions_path . 'theme_activation_hook.php');
  66. require_once ($functions_path . 'theme_activation.php');
  67.  
  68. // Update Notifier
  69. require_once ($functions_path . 'update_notifier.php');
  70.  
  71. // Child Theme Creator
  72. require_once ($functions_path . 'ct-child-theme/ct-child-theme.php');
  73.  
  74. // Custom Profile Fields
  75. require_once ($functions_path . 'profile_fields.php');
  76.  
  77. // Custom Taxonomies
  78. require_once ($functions_path . 'custom_taxonomies.php');
  79.  
  80. // Custom Posts
  81. require_once ($functions_path . 'custom_posts.php');
  82.  
  83. // Custom Write Post Panel Fields
  84. require_once ($functions_path . 'custom_fields.php');
  85.  
  86. // Admin Options Panel
  87. require_once ($functions_path . 'options_panel.php');
  88.  
  89. // Theme Functions
  90. require_once ($functions_path . 'theme_functions.php');
  91.  
  92. // Custom Shortcodes
  93. require_once ($functions_path . 'shortcodes.php');
  94.  
  95. // TinyMCE Plugin for Shortcodes
  96. require_once ($functions_path . 'tiny_mce.php');
  97.  
  98. // Widgets
  99. require_once ($includes_path . 'widgets.php');
  100.  
  101. add_action('wp_head', 'ct_wp_head');
  102. add_action('admin_head', 'ct_admin_head');
  103.  
  104. ?>
Add Comment
Please, Sign In to add comment