示例#1
0
/**
 * auto add footer type in visual composer
 */
function training_wpo_load_vc_widgets()
{
    training_wpo_includes(WPO_THEME_INC_DIR . '/vendors/visualcomposer/shortcodes/class/*.php');
    training_wpo_includes(WPO_THEME_INC_DIR . '/vendors/visualcomposer/shortcodes/*.php');
}
示例#2
0
training_wpo_includes(WPO_THEME_DIR . '/inc/plugins/*.php');
training_wpo_includes(WPO_THEME_DIR . '/inc/classes/*.php');
if (is_admin()) {
    /**
     * Admin Classess Core Frameworks Included
     */
    training_wpo_includes(WPO_THEME_DIR . '/inc/classes/admin/*.php');
}
/// include list of functions to process logics of worpdress not support 3rd-plugins.
training_wpo_includes(WPO_THEME_INC_DIR . '/functions/*.php');
/// WooCommerce specified functions
if (WPO_VISUAL_COMPOSER_ACTIVED) {
    training_wpo_includes(WPO_THEME_INC_DIR . '/vendors/visualcomposer/*.php');
}
/// WooCommerce specified functions
if (WPO_WOOCOMMERCE_ACTIVED) {
    training_wpo_includes(WPO_THEME_INC_DIR . '/vendors/woocommerce/*.php');
}
if (WPO_PUDDYPRESS_ACTIVED) {
    training_wpo_includes(WPO_THEME_INC_DIR . '/vendors/buddypress/*.php');
}
if (WPO_IBEDUCATOR_ACTIVED) {
    training_wpo_includes(WPO_THEME_INC_DIR . '/vendors/ibeducator/*.php');
}
/**
 * Theme Customizer
 */
training_wpo_includes(WPO_THEME_INC_DIR . '/customizer/*.php');
$wpoEngine = new Training_WPO_TemplateFront();
$protocol = is_ssl() ? 'https:' : 'http:';
$wpoEngine->init();