function presscore_load_template($_template_file, $args = array(), $require_once = true) { return presscore_template_manager()->load_template($_template_file, $args, $require_once); }
private function setup_services() { presscore_template_manager()->add_path('mod_team', dt_plugin_dir_relative_path(dirname(__FILE__)) . 'public/templates'); }
/** * Theme setup. * * @since 1.0.0 */ function presscore_setup() { /** * Load child theme text domain. */ if (is_child_theme()) { load_child_theme_textdomain('the7mk2', get_stylesheet_directory() . '/languages'); } /** * Load theme text domain. */ load_theme_textdomain('the7mk2', get_template_directory() . '/languages'); /** * Register custom menu. */ register_nav_menus(array('primary' => _x('Primary Menu', 'backend', 'the7mk2'), 'split_left' => _x('Split Menu Left', 'backend', 'the7mk2'), 'split_right' => _x('Split Menu Right', 'backend', 'the7mk2'), 'mobile' => _x('Mobile Menu', 'backend', 'the7mk2'), 'top' => _x('Top Menu', 'backend', 'the7mk2'), 'bottom' => _x('Bottom Menu', 'backend', 'the7mk2'))); /** * Load editor style. */ add_editor_style(); /** * Add default posts and comments RSS feed links to head. */ add_theme_support('automatic-feed-links'); /** * Enable support for Post Thumbnails. */ add_theme_support('post-thumbnails'); /** * Add title tag support. */ add_theme_support('title-tag'); /** * Enable support for Post Formats. */ add_theme_support('post-formats', array('aside', 'image', 'video', 'quote', 'link', 'gallery', 'status')); /** * Enable support for various theme modules. */ presscore_enable_theme_modules(); /** * Allow shortcodes in widgets. */ add_filter('widget_text', 'do_shortcode'); /** * Create upload dir. */ wp_upload_dir(); /** * Register theme template parts dir. */ presscore_template_manager()->add_path('theme', 'template-parts'); }