/* * Add your custom functions here * so that it will not be affected when the parent theme is updated. */ add_action( 'wp_enqueue_scripts', 'pmairforceb_enqueue_styles' ); function pmairforceb_enqueue_styles() { wp_enqueue_style( 'pmthemes-stylesheet', get_template_directory_uri() . '/style.css' ); wp_enqueue_style('pmairforceb-stylesheet', get_stylesheet_uri()); } add_theme_support('custom-background', array( 'default-color' => 'c4c8ca', 'default-attachment' => '', 'default-image' => '')); // Includes require_once( get_stylesheet_directory() . '/inc/guide.php' ); // Enable body class for this child theme add_filter( 'body_class', 'pmthemes_child_body_classes' ); function pmthemes_child_body_classes( $classes ) { $theme_options = pmthemes_theme_options(); if ( isset($theme_options['topnav_down']) and $theme_options['topnav_down'] == false ) : $classes[] = 'natty'; endif; return $classes; } // Enable Replace Affiliate Links under ADS Settings tab function replaceable_affiliate_links() { return; } // Enable Custom eBook Store /*function custom_ebook_store() { return; }*/ ?> //* Define Theme Constants define( 'PMTHEMES_VERSION', '1.0.5'); define( 'PMTHEMES_NAME', 'Destined'); define( 'PMTHEMES_SITE_NAME', 'PMThemes'); define( 'PMTHEMES_SITE_URL', 'https://pmthemes.com/'); //* Define URL Location Constants define( 'PMTHEMES_URI', get_template_directory_uri() ); define ('PMTHEMES_INC_URI', PMTHEMES_URI . '/inc'); //* Define Directory Location Constants define( 'PMTHEMES_DIR', get_template_directory() ); define ('PMTHEMES_INC_DIR', PMTHEMES_DIR . '/inc'); //* INCLUDES require( PMTHEMES_INC_DIR . '/theme-functions.php' ); require( PMTHEMES_INC_DIR . '/options.php' ); require( PMTHEMES_INC_DIR . '/iex.php' ); // Include Theme Customizer Options require( PMTHEMES_INC_DIR . '/customizer/customizer.php' ); require( PMTHEMES_INC_DIR . '/customizer/default-options.php' ); // Include Customization Files require( PMTHEMES_INC_DIR . '/customizer/home/slider.php' ); // Include Template Functions require( PMTHEMES_INC_DIR . '/theme-tags.php' ); // Include Widget Files require( PMTHEMES_INC_DIR . '/widgets/posts-boxed.php' ); require( PMTHEMES_INC_DIR . '/widgets/posts-columns.php' ); require( PMTHEMES_INC_DIR . '/widgets/posts-grid.php' ); require( PMTHEMES_INC_DIR . '/widgets/posts-single.php' ); require( PMTHEMES_INC_DIR . '/widgets/popular-posts.php' ); require( PMTHEMES_INC_DIR . '/widgets/recent-comments.php' ); require( PMTHEMES_INC_DIR . '/widgets/recent-posts.php' ); require( PMTHEMES_INC_DIR . '/widgets/social-icons.php' ); require( PMTHEMES_INC_DIR . '/widgets/tabbed-content.php' ); // Include Featured Content class require( PMTHEMES_INC_DIR . '/featured-content.php' ); // Include Custom Colors, Fonts and Logo Files require( PMTHEMES_INC_DIR . '/custom-colors.php' ); require( PMTHEMES_INC_DIR . '/custom-fonts.php' ); require( PMTHEMES_INC_DIR . '/custom-logo.php' ); // admin files require( PMTHEMES_INC_DIR . '/update.php' ); ?>