File: /mnt/home/lcipakco/public_html/wp-content/themes/convis/functions.php
<?php
/**
* Convis functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package Convis
*/
/**
* Define constant
*/
$theme = wp_get_theme();
$name = $theme->parent() == false ? wp_get_theme()->get( 'Name' ) : wp_get_theme()->parent()->get( 'Name' );
$version = $theme->parent() == false ? wp_get_theme()->get( 'Version' ) : wp_get_theme()->parent()->get( 'Version' );
define( 'CONVIS_NAME', $name );
define( 'CONVIS_VERSION', $version );
define( 'CONVIS_PATH', untrailingslashit( get_template_directory() ) );
define( 'CONVIS_URI', untrailingslashit( get_template_directory_uri() ) );
define( 'CONVIS_ASSETS', untrailingslashit( get_template_directory_uri() ) . '/assets' );
define( 'CONVIS_VENDOR', untrailingslashit( get_template_directory_uri() ) . '/assets/vendor' );
define( 'CONVIS_INCLUDES', CONVIS_PATH . '/includes' );
define( 'CONVIS_CLASSES', CONVIS_PATH . '/includes/classes' );
define( 'CONVIS_ADMIN', CONVIS_PATH . '/includes/admin' );
define( 'CONVIS_IS_RTL', is_rtl() ? true : false );
/**
* Load theme files
*/
require_once CONVIS_CLASSES . '/class-setup.php';
require_once CONVIS_CLASSES . '/class-helper.php';
require_once CONVIS_CLASSES . '/class-assets.php';
require_once CONVIS_CLASSES . '/class-post-helper.php';
require_once CONVIS_CLASSES . '/class-comment-walker.php';
require_once CONVIS_CLASSES . '/class-breadcrumb.php';
require_once CONVIS_ADMIN . '/class-admin-panel.php';
require_once CONVIS_INCLUDES . '/library/class-tgm-plugin-activation.php';
require_once CONVIS_INCLUDES . '/library/required-plugin.php';
if ( class_exists( 'Woocommerce' ) ) {
require_once CONVIS_CLASSES . '/class-woocommerce.php';
}