Sindbad~EG File Manager
<?php
/**
* Theme functions and definitions.
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
*/
define( 'THIM_DIR', trailingslashit( get_template_directory() ) );
define( 'THIM_URI', trailingslashit( get_template_directory_uri() ) );
define( 'THIM_THEME_VERSION', '1.0.0' );
/**
* Custom template tags for this theme.
*/
require_once( THIM_DIR . 'inc/template-tags.php' );
/**
* Custom functions that act independently of the theme templates.
*/
require_once( THIM_DIR . 'inc/extras.php' );
//logo
require_once THIM_DIR . 'templates/header/logo.php';
/**
* Custom wrapper layout for theme
*/
require_once( THIM_DIR . 'inc/wrapper-layout.php' );
/**
* Custom functions
*/
require_once( THIM_DIR . 'inc/custom-functions.php' );
//
require_once( THIM_DIR . 'inc/init.php' );
/**
* Custom Realpress
*/
if ( class_exists( '\RealPress\RealPress' ) ) {
require_once( THIM_DIR . 'realpress/realpress.php' );
}
if ( class_exists( 'WooCommerce' ) ) {
require THIM_DIR . 'woocommerce/woocommerce.php';
}
add_image_size( 'thim_gallery_thumbnails', 615, 411, true );
function remove_pages_from_search() {
global $wp_post_types;
$wp_post_types['page']->exclude_from_search = true;
if ( class_exists( '\RealPress\RealPress' ) ) {
$wp_post_types['realpress-property']->exclude_from_search = true;
}
}
add_action('init', 'remove_pages_from_search', 10, 0);
// register widget elementor kit
if ( class_exists( 'TP' ) ) {
require THIM_DIR . 'inc/widgets/widgets.php';
}
require get_template_directory() . '/elementor/elementor.php';
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists