File: /home/codo66ho/public_html/aamcc.emtiyz.com/wp-content/themes/consultar/functions.php
<?php
/*
* Consultar Theme's Functions
* Author & Copyright:wpoceans
* URL: http://themeforest.net/user/wpoceans
*/
/**
* Define - Folder Paths
*/
define('CONSULTAR_THEMEROOT_URI', get_template_directory_uri());
define('CONSULTAR_CSS', CONSULTAR_THEMEROOT_URI . '/assets/css');
define('CONSULTAR_IMAGES', CONSULTAR_THEMEROOT_URI . '/assets/images');
define('CONSULTAR_SCRIPTS', CONSULTAR_THEMEROOT_URI . '/assets/js');
define('CONSULTAR_FRAMEWORK', get_template_directory() . '/includes');
define('CONSULTAR_LAYOUT', get_template_directory() . '/theme-layouts');
define('CONSULTAR_CS_IMAGES', CONSULTAR_THEMEROOT_URI . '/includes/theme-options/framework-extend/images');
define('CONSULTAR_CS_FRAMEWORK', get_template_directory() . '/includes/theme-options/framework-extend'); // Called in Icons field *.json
define('CONSULTAR_ADMIN_PATH', get_template_directory() . '/includes/theme-options/cs-framework'); // Called in Icons field *.json
/**
* Define - Global Theme Info's
*/
if (is_child_theme()) { // If Child Theme Active
$consultar_theme_child = wp_get_theme();
$consultar_get_parent = $consultar_theme_child->Template;
$consultar_theme = wp_get_theme($consultar_get_parent);
} else { // Parent Theme Active
$consultar_theme = wp_get_theme();
}
define('CONSULTAR_NAME', $consultar_theme->get('Name'));
define('CONSULTAR_VERSION', $consultar_theme->get('Version'));
define('CONSULTAR_BRAND_URL', $consultar_theme->get('AuthorURI'));
define('CONSULTAR_BRAND_NAME', $consultar_theme->get('Author'));
/**
* All Main Files Include
*/
require_once(CONSULTAR_FRAMEWORK . '/init.php');