/
var
/
www
/
barefootlaw.org
/
wp-content
/
themes
/
barefoot
/
Upload File
HOME
<?php /** * Covercase functions and definitions * * Set up the theme and provides some helper functions, which are used in the * theme as custom template tags. Others are attached to action and filter * hooks in WordPress to change core functionality. * * When using a child theme you can override certain functions (those wrapped * in a function_exists() call) by defining them first in your child theme's * functions.php file. The child theme's functions.php file is included before * the parent theme's file, so the child theme functions would be used. * * @link https://codex.wordpress.org/Theme_Development * @link https://codex.wordpress.org/Child_Themes * * For more information on hooks, actions, and filters, * {@link https://codex.wordpress.org/Plugin_API} * * @package Aisconverse * @subpackage Covercase * @since Covercase 1.0 */ /** * Covercase only works in WordPress 4.7 or later. */ if ( version_compare( $GLOBALS['wp_version'], '4.7-alpha', '<' ) ) { require( get_theme_file_path( 'inc/back-compat.php' ) ); return; } /** * Define Theme Version Constant */ if ( ! defined( 'COVERCASE_VERSION' ) ) { define( 'COVERCASE_VERSION', '1.0' ); } /** * Basement Framework Core * * @since Covercase 1.0 */ if ( ! class_exists( 'Basement_Framework' ) ) { require( get_theme_file_path( 'inc/basement/bootstrap.php' ) ); } /** * Main Settings * * @since Covercase 1.0 */ require( get_theme_file_path( 'inc/settings.php' ) ); /** * Custom Theme Walkers * * @since Covercase 1.0 */ require_once( get_theme_file_path( 'inc/walker/class-comments_walker.php' ) ); require_once( get_theme_file_path( 'inc/walker/class-menu_walker.php' ) ); require_once( get_theme_file_path( 'inc/walker/class-simple_menu_walker.php' ) ); /** * Include JS/CSS * * @since Covercase 1.0 */ require( get_theme_file_path( 'inc/wp-enqueue.php' ) ); /** * Custom template tags for this theme. * * @since Covercase 1.0 */ require( get_theme_file_path( 'inc/template-tags.php' ) ); /** * Visual Composer Settings * * @since Covercase 1.0 */ if ( basement_vc_active() ) { require( get_theme_file_path( 'inc/vc/bootstrap.php' ) ); } /** * Contact Form 7 Settings * * @since Covercase 1.0 */ if ( basement_cf7_active() ) { require( get_theme_file_path( 'inc/contact-form-7.php' ) ); } /** * BCN Breadcrumbs Settings * * @since Covercase 1.0 */ if ( basement_bcnavxt_active() ) { require( get_theme_file_path( 'inc/bcn-breadcrumbs.php' ) ); } /** * Revoslider Settings * * @since Covercase 1.0 */ if ( basement_revslider_active() ) { require( get_theme_file_path( 'inc/revslider.php' ) ); } /** * WooCommerce Settings * * @since Covercase 1.0 */ if ( basement_woo_active() ) { require( get_theme_file_path( 'inc/woocommerce/bootstrap.php' ) ); } /** * Load TGM * * @since Covercase 1.0 */ $activation_file = 'inc/activation/activation.php'; if ( file_exists( get_theme_file_path( $activation_file ) ) ) { require get_theme_file_path( $activation_file ); } /** * Demo Settings * * @since Covercase 1.0 */ $demo_tags_file = 'inc/demo-tags.php'; if ( file_exists( get_theme_file_path( $demo_tags_file ) ) ) { require get_theme_file_path( $demo_tags_file ); }