File "functions.php"
Full Path: /home/exhehbu/www/wp-content/themes/revolution/functions.php
File size: 2.05 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/**
* Here we have all the custom functions for the theme
* Please be extremely cautious editing this file.
* You have been warned!
*/
update_option( sprintf( 'thb_%s_key', get_option( 'template' ) ), 'activated' );
update_option( sprintf( 'thb_%s_key_expired', get_option( 'template' ) ), 0 );
// Option-Tree Theme Mode.
require get_theme_file_path( '/inc/admin/option-tree/init.php' );
// Mobile Detection.
require get_theme_file_path( '/inc/framework/thb-mobile-detect.php' );
// Theme Admin.
require get_theme_file_path( '/inc/admin/welcome/class-thb-theme-admin.php' );
// TGM Plugin Activation Class.
require get_theme_file_path( '/inc/admin/plugins/plugins.php' );
// Imports.
require get_theme_file_path( '/inc/admin/imports/import.php' );
// Misc.
require get_theme_file_path( '/inc/misc.php' );
// Script Calls.
require get_theme_file_path( '/inc/script-calls.php' );
// CSS Output of Theme Options.
require get_theme_file_path( '/inc/selection.php' );
// Add Menu Support.
require get_theme_file_path( '/inc/wp3menu.php' );
// Enable Sidebars.
require get_theme_file_path( '/inc/sidebar.php' );
// Lazy Loading.
require get_theme_file_path( '/inc/framework/thb-lazyload.php' );
// Post Likes.
require get_theme_file_path( '/inc/framework/thb-post-likes.php' );
// Ajax.
require get_theme_file_path( '/inc/ajax.php' );
// Portfolio Related.
require get_theme_file_path( '/inc/portfolio-related.php' );
// Visual Composer Integration.
require get_theme_file_path( '/inc/framework/visualcomposer/visualcomposer.php' );
// Instagram.
require get_theme_file_path( '/inc/framework/thb-random-user-agent.php' );
require get_theme_file_path( '/inc/framework/thb-instagram.php' );
// Twitter oAuth.
require get_theme_file_path( '/inc/framework/class-thbtwitterapiexchange.php' );
require get_theme_file_path( '/inc/framework/class-thbtwitterhelper.php' );
// WPML Support.
require get_theme_file_path( '/inc/wpml.php' );
// WooCommerce Support.
require get_theme_file_path( '/inc/woocommerce.php' );
require get_theme_file_path( '/inc/woocommerce-category-image.php' );