function cultiv8_setup() { // Translation load_theme_textdomain('cultiv8', get_template_directory() . '/languages'); // Add Church Theme Content support if (function_exists('cultiv8_add_ctc')) { cultiv8_add_ctc(); } if (is_user_logged_in()) { if (function_exists('ctcex_update_recurring_events')) { ctcex_update_recurring_events(); } } // Setup images cultiv8_image_setup(); // Add support for site logo in WP 4.5 add_theme_support('custom-logo'); }
function harvest_setup() { $template_path = trailingslashit(get_template_directory()); // Load helpers include_once get_template_directory() . '/helpers/class-tgm-plugin-activation.php'; include_once get_template_directory() . '/helpers/ctc-support.php'; include_once get_template_directory() . '/helpers/display.php'; include_once get_template_directory() . '/helpers/images.php'; include_once get_template_directory() . '/helpers/feeds.php'; include_once get_template_directory() . '/helpers/sidebars.php'; include_once get_template_directory() . '/helpers/widgets.php'; //include_once( get_template_directory() . '/kirki/kirki.php' ); // Apply theme styles to visual editor harvest_editor_styles(); // Register Menus register_nav_menus(array('header-menu' => __('Header Menu', 'harvest'), 'footer-menu' => __('Footer Menu', 'harvest'))); //add_filter( 'kirki/config', 'kirki_demo_configuration_sample' ); // Create Admin settins page if (is_admin() && file_exists($template_path . '/admin/class.theme-options.php')) { include_once get_template_directory() . '/admin/class.theme-options.php'; include_once get_template_directory() . '/admin/harvest-options.php'; // Options and sections are defined in harvest-options.php $theme_options = new Theme_Options($harvest_theme_options, $harvest_theme_sections); } // Add Church Theme Content support harvest_add_ctc(); //add_theme_support( 'title-tag' ); add_theme_support('automatic-feed-links'); // Complete theme setup harvest_thumb_setup(); // Translation load_theme_textdomain('harvest', get_template_directory() . '/lang'); if (is_user_logged_in()) { if (function_exists('ctcex_update_recurring_events')) { ctcex_update_recurring_events(); } } }