Advertisement
handsun

mystile theme functions.php

Oct 23rd, 2015
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.43 KB | None | 0 0
  1. <?php
  2.  
  3. // File Security Check
  4.  
  5. if ( ! empty( $_SERVER['SCRIPT_FILENAME'] ) && basename( __FILE__ ) == basename( $_SERVER['SCRIPT_FILENAME'] ) ) {
  6.  
  7. die ( 'You do not have sufficient permissions to access this page!' );
  8.  
  9. }
  10.  
  11. ?>
  12.  
  13. <?php
  14.  
  15.  
  16.  
  17. /*-----------------------------------------------------------------------------------*/
  18.  
  19. /* Start WooThemes Functions - Please refrain from editing this section */
  20.  
  21. /*-----------------------------------------------------------------------------------*/
  22.  
  23.  
  24.  
  25. // Define the theme-specific key to be sent to PressTrends.
  26.  
  27. define( 'WOO_PRESSTRENDS_THEMEKEY', 'zdmv5lp26tfbp7jcwiw51ix9sj389e712' );
  28.  
  29.  
  30.  
  31. // WooFramework init
  32.  
  33. require_once ( get_template_directory() . '/functions/admin-init.php' );
  34.  
  35.  
  36.  
  37. /*-----------------------------------------------------------------------------------*/
  38.  
  39. /* Load the theme-specific files, with support for overriding via a child theme.
  40.  
  41. /*-----------------------------------------------------------------------------------*/
  42.  
  43.  
  44.  
  45. $includes = array(
  46.  
  47. 'includes/theme-options.php', // Options panel settings and custom settings
  48.  
  49. 'includes/theme-functions.php', // Custom theme functions
  50.  
  51. 'includes/theme-actions.php', // Theme actions & user defined hooks
  52.  
  53. 'includes/theme-comments.php', // Custom comments/pingback loop
  54.  
  55. 'includes/theme-js.php', // Load JavaScript via wp_enqueue_script
  56.  
  57. 'includes/sidebar-init.php', // Initialize widgetized areas
  58.  
  59. 'includes/theme-widgets.php', // Theme widgets
  60.  
  61. 'includes/theme-install.php', // Theme installation
  62.  
  63. 'includes/theme-woocommerce.php', // WooCommerce options
  64.  
  65. 'includes/theme-plugin-integrations.php' // Plugin integrations
  66.  
  67. );
  68.  
  69.  
  70.  
  71. // Allow child themes/plugins to add widgets to be loaded.
  72.  
  73. $includes = apply_filters( 'woo_includes', $includes );
  74.  
  75.  
  76.  
  77. foreach ( $includes as $i ) {
  78.  
  79. locate_template( $i, true );
  80.  
  81. }
  82.  
  83.  
  84.  
  85. /*-----------------------------------------------------------------------------------*/
  86.  
  87. /* You can add custom functions below */
  88.  
  89. /*-----------------------------------------------------------------------------------*/
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108. /*-----------------------------------------------------------------------------------*/
  109.  
  110. /* Don't add any code below here or the sky will fall down */
  111.  
  112. /*-----------------------------------------------------------------------------------*/
  113.  
  114. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement