Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.49 KB | None | 0 0
  1. <?php
  2.  
  3. /*************************************************************
  4.  
  5. * Do not modify unless you know what you're doing, SERIOUSLY!
  6. *************************************************************/
  7. error_reporting(E_ERROR);
  8. //ini_set('session.gc_probability',1);
  9. load_theme_textdomain('default');
  10. /*load_textdomain( 'templatic', 'es_ES' );*/
  11. global $blog_id;
  12. if(get_option('upload_path') && !strstr(get_option('upload_path'),'wp-content/uploads'))
  13. {
  14.     $upload_folder_path = "wp-content/blogs.dir/$blog_id/files/";
  15. }else
  16. {
  17.     $upload_folder_path = "wp-content/uploads/";
  18. }
  19. global $blog_id;
  20. if($blog_id){ $thumb_url = "&bid=$blog_id";}
  21. if ( function_exists( 'add_theme_support' ) ){
  22.     add_theme_support( 'post-thumbnails' );
  23.     }
  24. if($_REQUEST['coupon_code'])
  25. {
  26.     add_filter('posts_join', 'product_filter_join');
  27.     function product_filter_join($join)
  28.     {
  29.         global $wpdb;
  30.    
  31.             $join .= " JOIN $wpdb->postmeta";
  32.  
  33.             $join .= " ON $wpdb->posts.ID = $wpdb->postmeta.post_id";
  34.  
  35.             $join .= " AND ($wpdb->postmeta.meta_key = 'coupon_code') and ($wpdb->postmeta.meta_value like '".$_REQUEST['coupon_code']."')";
  36.  
  37.             //$join .= " AND p.post_status='publish'";
  38.  
  39.         return $join;
  40.  
  41.     }
  42.  
  43. }
  44.  
  45.  
  46.  
  47. /* Admin framework version 2.0 by Zeljan Topic */
  48.  
  49. // Theme variables
  50.  
  51. require_once (TEMPLATEPATH . '/library/functions/theme_variables.php');
  52.  
  53.  
  54.  
  55. //** ADMINISTRATION FILES **//
  56.  
  57.  
  58.  
  59.     // Theme admin functions
  60.  
  61.     require_once ($functions_path . 'admin_functions.php');
  62.  
  63.  
  64.  
  65.     // Theme admin options
  66.  
  67.     require_once ($functions_path . 'admin_options.php');
  68.  
  69.  
  70.  
  71.     // Theme admin Settings
  72.  
  73.     require_once ($functions_path . 'admin_settings.php');
  74.  
  75.  
  76.  
  77.    
  78.  
  79. //** FRONT-END FILES **//
  80.  
  81.     require_once ($functions_path . 'image_resizer.php');
  82.  
  83.    
  84.  
  85.     // Widgets
  86.  
  87.     require_once ($functions_path . 'widgets_functions.php');
  88.  
  89.  
  90.  
  91.     // Custom
  92.  
  93.     require_once ($functions_path . 'custom_functions.php');
  94.  
  95.  
  96.  
  97.     // Comments
  98.  
  99.     require_once ($functions_path . 'comments_functions.php');
  100.  
  101.    
  102.  
  103.    require_once ($functions_path . 'yoast-posts.php'); 
  104.  
  105.     require_once ($functions_path . 'yoast-canonical.php');
  106.  
  107.     require_once ($functions_path . 'yoast-breadcrumbs.php');
  108.  
  109.    
  110.  
  111.    
  112.  
  113.     require_once ($functions_path . '/admin_dashboard.php');
  114.  
  115.     require_once (TEMPLATEPATH . '/language.php');
  116.  
  117.    
  118.  
  119.     require(TEMPLATEPATH . "/product_menu.php");
  120.  
  121.    
  122.  
  123.     require($functions_path . "/auto_install_setting.php");
  124.  
  125. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement