Server IP : 66.29.132.124 / Your IP : 3.139.70.69 Web Server : LiteSpeed System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : wavevlvu ( 1524) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/wavevlvu/tacafoundation.org/wp-content/themes/charite/ |
Upload File : |
<?php /** * charite functions and definitions * * @link https://developer.wordpress.org/themes/basics/theme-functions/ * * @package charite */ /** * Define Const for theme Dir * @since 1.0.0 * */ define('CHARITE_ROOT_PATH', get_template_directory()); define('CHARITE_ROOT_URL', get_template_directory_uri()); define('CHARITE_CSS', CHARITE_ROOT_URL . '/assets/css'); define('CHARITE_JS', CHARITE_ROOT_URL . '/assets/js'); define('CHARITE_INC', CHARITE_ROOT_PATH . '/inc'); define('CHARITE_THEME_OPTIONS', CHARITE_INC . '/theme-options'); define('CHARITE_THEME_STYLESHEETS', CHARITE_INC . '/theme-stylesheets'); /** * define theme info * @since 1.0.0 * */ if (is_child_theme()) { $charite_theme = wp_get_theme(); $charite_parent_theme = $charite_theme->Template; $charite_theme_info = wp_get_theme($charite_parent_theme); } else { $charite_theme_info = wp_get_theme(); } define('CHARITE_DEV_MODE', false); $charite_version = CHARITE_DEV_MODE ? time() : $charite_theme_info->get('Version'); define('CHARITE_NAME', $charite_theme_info->get('Name')); define('CHARITE_VERSION', $charite_version); define('CHARITE_AUTHOR', $charite_theme_info->get('Author')); define('CHARITE_AUTHOR_URI', $charite_theme_info->get('AuthorURI')); /* * Include theme options helper functions * @since 1.0.0 */ if (file_exists(CHARITE_INC . '/get-theme-options.php')) { require_once CHARITE_INC . '/get-theme-options.php'; } /* * Include theme init file * @since 1.0.0 */ if (file_exists(CHARITE_INC . '/class-charite-init.php')) { require_once CHARITE_INC . '/class-charite-init.php'; } /* * template functions * @since 1.0.0 */ if (file_exists(CHARITE_INC . '/template-functions.php')) { require_once CHARITE_INC . '/template-functions.php'; } /* * template tags * @since 1.0.0 */ if (file_exists(CHARITE_INC . '/template-tags.php')) { require_once CHARITE_INC . '/template-tags.php'; }