Advertisement
Guest User

Untitled

a guest
Aug 8th, 2012
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.15 KB | None | 0 0
  1. <?php session_start();
  2.  
  3. ob_start();
  4.  
  5.  
  6.  
  7. load_theme_textdomain('templatic');
  8.  
  9. load_textdomain( 'templatic', TEMPLATEPATH.'/language/en_US.mo' );
  10.  
  11. include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
  12.  
  13. include'library/includes/sidebar_blog_post.php';
  14.  
  15. define('TAGKW_TEXT_COUNT',40);
  16.  
  17. //error_reporting(0);
  18.  
  19. /*** Theme setup ***/
  20.  
  21. global $blog_id;
  22.  
  23. define('TT_ADMIN_FOLDER_NAME','admin');
  24.  
  25. define('TT_ADMIN_FOLDER_PATH',TEMPLATEPATH.'/'.TT_ADMIN_FOLDER_NAME.'/'); //admin folder path
  26.  
  27. update_option('thumbnail_size_w','150'); //admin folder path
  28.  
  29. update_option('thumbnail_size_h','105'); //admin folder path
  30.  
  31. if(get_option('upload_path') && !strstr(get_option('upload_path'),'wp-content/uploads')){
  32.  
  33.     $upload_folder_path = "wp-content/blogs.dir/$blog_id/files/";
  34.  
  35. }else {
  36.  
  37.     $upload_folder_path = "wp-content/uploads/";
  38.  
  39. }
  40.  
  41.  
  42.  
  43. if(file_exists(TT_ADMIN_FOLDER_PATH . 'constants.php')){
  44.  
  45.     include_once(TT_ADMIN_FOLDER_PATH.'constants.php');  //ALL CONSTANTS FILE INTEGRATOR
  46.  
  47. }
  48.  
  49.  
  50.  
  51. add_action('init','templ_set_my_city');
  52.  
  53. include_once (TT_FUNCTIONS_FOLDER_PATH . 'custom_functions.php');
  54.  
  55. if(file_exists(TEMPLATEPATH.'/language.php')){
  56.  
  57. include_once(TEMPLATEPATH.'/language.php');  //ALL CONSTANTS FILE INTEGRATOR
  58.  
  59. }
  60.  
  61.  
  62.  
  63. if(file_exists(TT_FUNCTIONS_FOLDER_PATH . 'custom_filters.php')){
  64.  
  65.     include_once (TT_FUNCTIONS_FOLDER_PATH . 'custom_filters.php'); // manage theme filters in the file
  66.  
  67. }
  68.  
  69.  
  70.  
  71. if(file_exists(TT_FUNCTIONS_FOLDER_PATH . 'image_resizer.php')){
  72.  
  73. include_once (TT_FUNCTIONS_FOLDER_PATH . 'image_resizer.php');
  74.  
  75. }
  76.  
  77. include_once(TT_ADMIN_FOLDER_PATH.'admin_main.php');  //ALL ADMIN FILE INTEGRATOR
  78.  
  79. // Theme admin functions
  80.  
  81.  
  82.  
  83. if(file_exists(TT_FUNCTIONS_FOLDER_PATH . 'widgets.php')){
  84.  
  85. include_once (TT_FUNCTIONS_FOLDER_PATH . 'widgets.php'); // theme widgets in the file
  86.  
  87. }
  88.  
  89.  
  90.  
  91. if(file_exists(TT_FUNCTIONS_FOLDER_PATH . 'meta_boxes.php')){
  92.  
  93. include_once (TT_FUNCTIONS_FOLDER_PATH . 'meta_boxes.php'); // theme meta boxes in the file
  94.  
  95. }
  96.  
  97.  
  98.  
  99. if(file_exists(TT_WIDGET_FOLDER_PATH . 'widgets_main.php')){
  100.  
  101. include_once (TT_WIDGET_FOLDER_PATH . 'widgets_main.php'); // theme widgets in the file
  102.  
  103. }
  104.  
  105. if(file_exists(TEMPLATEPATH . '/library/rating/post_rating.php')) {
  106.  
  107.     include_once (TEMPLATEPATH . '/library/rating/post_rating.php');
  108.  
  109. }
  110.  
  111. if(file_exists(TT_FUNCTIONS_FOLDER_PATH.'listing_filters.php')) {
  112.  
  113.     include_once (TT_FUNCTIONS_FOLDER_PATH.'listing_filters.php');
  114.  
  115. }
  116.  
  117. if(file_exists(TT_MODULES_FOLDER_PATH . 'modules_main.php')){
  118.  
  119. include_once (TT_MODULES_FOLDER_PATH . 'modules_main.php'); // Theme moduels include file
  120.  
  121. }
  122.  
  123.  
  124.  
  125. if(file_exists(TT_INCLUDES_FOLDER_PATH . 'auto_install/auto_install.php')){
  126.  
  127. include_once (TT_INCLUDES_FOLDER_PATH . 'auto_install/auto_install.php'); // sample data insert file
  128.  
  129. }
  130.  
  131.  
  132.  
  133.  
  134.  
  135. if(file_exists(TT_FUNCTIONS_FOLDER_PATH . "general_functions.php")){
  136.  
  137. require(TT_FUNCTIONS_FOLDER_PATH . "general_functions.php");
  138.  
  139. $General = new General();
  140.  
  141. global $General;
  142.  
  143. }
  144.  
  145.  
  146.  
  147. if(file_exists(TEMPLATEPATH . '/library/functions/mega_menu_widget.php')) {
  148.  
  149.     include_once (TEMPLATEPATH . '/library/functions/mega_menu_widget.php');
  150.  
  151. }
  152.  
  153. /* Below included file contains problem solution for taxonomy seo url BOF */
  154.  
  155. if(!file_exists(ABSPATH.'wp-content/plugins/taxonomic-seo-permalinks/taxonomic-seo-permalink.php') && !plugin_is_active('taxonomic-seo-permalinks') && file_exists(TEMPLATEPATH . '/library/functions/taxonomic-seo-permalinks/taxonomic-seo-permalink.php')) {
  156.  
  157.     include_once (TEMPLATEPATH . '/library/functions/taxonomic-seo-permalinks/taxonomic-seo-permalink.php');
  158.  
  159. }
  160.  
  161. /* Below included file contains problem solution for taxonomy seo url BOF */
  162.  
  163. add_theme_support( 'post-formats', array( 'aside', 'gallery','link', 'image','quote', 'status','video', 'audio','chat') );
  164.  
  165.  
  166.  
  167. if(get_option('ptthemes_alt_stylesheet') == '' || get_option('ptthemes_alt_stylesheet') == '1-default.css'){
  168.  
  169. update_option("ptthemes_alt_stylesheet",'1-default');
  170.  
  171. }
  172.  
  173. if(get_option('ptthemes_enable_claimownership') == ''){
  174.  
  175. update_option("ptthemes_enable_claimownership",'Yes');
  176.  
  177. }
  178.  
  179. add_action( 'templ_registration_form_end', 'baweic_register_form_add_field' );
  180.  
  181.  
  182. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement