respectzr

Untitled

Jan 19th, 2018
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. <?php
  2.  
  3. $template_directory = get_template_directory() . '/';
  4.  
  5. // Loads the loader of oculus if not included before
  6. require $template_directory . 'includes/libs/better-framework/oculus/better-framework-oculus-loader.php';
  7.  
  8. // Includes BF loader if not included before
  9. require $template_directory . 'includes/libs/better-framework/init.php';
  10.  
  11. // handy functions and overrides
  12. include $template_directory . 'includes/functions.php';
  13.  
  14. // Includes core of theme
  15. include $template_directory . 'includes/libs/bs-theme-core/init.php';
  16.  
  17. // do config
  18. include $template_directory . 'includes/pages/global.php';
  19. if ( is_admin() ) {
  20. include $template_directory . 'includes/pages/init.php';
  21. }
  22.  
  23. // Registers and prepare all stuffs about BF that is used in theme
  24. include $template_directory . 'includes/publisher-setup.php';
  25. new Publisher_Setup();
  26.  
  27. // Fire up Publisher search
  28. include $template_directory . 'includes/publisher-search.php';
  29. Publisher_Search::init();
  30.  
  31. // Fire up Publisher comments
  32. include $template_directory . 'includes/publisher-comments.php';
  33. Publisher_Comments::init();
  34.  
  35. // Fire up Publisher third-party plugins compatibility
  36. include $template_directory . 'includes/publisher-plugins-compatibility.php';
  37. Publisher_Plugins_Compatibility::init();
  38.  
  39. // Fire up Publisher
  40. include $template_directory . 'includes/publisher.php';
  41. new Publisher();
  42.  
  43. // Fire up Publisher admin
  44. include $template_directory . 'includes/publisher-admin.php';
  45. Publisher_Admin::init();
  46.  
  47. // Publisher Facebook Instant Articles configuration
  48. if ( defined( 'IA_PLUGIN_VERSION' ) ) {
  49. include $template_directory . 'includes/fia/publisher-fia.php';
  50. Publisher_FIA::init();
  51. }
Advertisement
Add Comment
Please, Sign In to add comment