esc_html__('Main Menu', 'calanthalite'))); add_theme_support('align-wide'); add_theme_support('align-full'); add_theme_support( 'woocommerce' ); add_theme_support( 'custom-background' ); add_theme_support('editor-styles'); add_editor_style('style-editor.css'); } # Enqueue Scripts add_action( 'wp_enqueue_scripts', 'calanthalite_load_scripts' ); function calanthalite_load_scripts() { # CSS wp_enqueue_style('bootstrap', CALANTHALITE_LIBS_URI . 'bootstrap/bootstrap.css'); wp_enqueue_style('calanthalite-font-awesome', CALANTHALITE_LIBS_URI . 'font-awesome/css/all.css'); wp_enqueue_style('chosen', CALANTHALITE_LIBS_URI . 'chosen/chosen.css'); wp_enqueue_style('wp-mediaelement'); wp_enqueue_style('calanthalite-style', get_theme_root_uri() . '/calanthalite/style.css'); wp_enqueue_style('calanthalite-theme-style', get_theme_root_uri() . '/calanthalite/assets/css/theme.css'); # JS wp_enqueue_script('jquery'); wp_enqueue_script('fitvids', CALANTHALITE_LIBS_URI . 'fitvids/fitvids.js', array(), false, true); wp_enqueue_script('chosen', CALANTHALITE_LIBS_URI . 'chosen/chosen.js', array(), false, true); wp_enqueue_script( 'wp-mediaelement' ); wp_enqueue_script('calanthalite-scripts', get_template_directory_uri() . '/assets/js/calanthalite-scripts.js', array(), false, true); if ( is_singular() && get_option('thread_comments') ) { wp_enqueue_script('comment-reply'); } } # Register Sidebar add_action( 'widgets_init', 'calanthalite_widgets_init' ); function calanthalite_widgets_init() { register_sidebar(array( 'name' => esc_html__('Sidebar', 'calanthalite'), 'id' => 'sidebar', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); register_sidebar(array( 'name' => esc_html__('Footer Instagram', 'calanthalite'), 'id' => 'footer-ins', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); } # Check file exists function calanthalite_require_file( $path ) { if ( file_exists($path) ) { require $path; } } # Require file calanthalite_require_file( get_template_directory() . '/core/init.php' ); //Exclude pages from WordPress Search if ( !is_admin() ) { function calanthalite_search_filter($query) { if ($query->is_search) { $query->set('post_type', 'post'); } return $query; } add_filter('pre_get_posts','calanthalite_search_filter'); } // Social Network function calanthalite_social_network( $header = true ) { $empty = false; $facebook_url = get_theme_mod('calanthalite_facebook_url'); $twitter_url = get_theme_mod('calanthalite_twitter_url'); $instagram_url = get_theme_mod('calanthalite_instagram_url'); $pinterest_url = get_theme_mod('calanthalite_pinterest_url'); $youtube_url = get_theme_mod('calanthalite_youtube_url'); $vimeo_url = get_theme_mod('calanthalite_vimeo_url'); $linkedin_url = get_theme_mod('calanthalite_linkedin_url'); if ( $facebook_url == '' && $twitter_url == '' && $instagram_url =='' && $pinterest_url == '' && $youtube_url == '' && $vimeo_url == '' && $linkedin_url == '' ) { $empty = true; } $class = $header ? 'header-social' : 'footer-social'; if ( ! $empty ) { ?>
< id="comment-">

$add_below, 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
comment_approved == '0' ) : ?>
found_posts > (int)get_option('posts_per_page') ) : ?>
'', 'next_text' => '' ); the_posts_pagination($args); ?>
esc_html__('Kirki Customizer Framework', 'calanthalite'), 'slug' => 'kirki' ), array( 'name' => esc_html__('Contact Form 7', 'calanthalite'), 'slug' => 'contact-form-7' ), array( 'name' => esc_html__('Smash Balloon Social Photo Feed', 'calanthalite'), 'slug' => 'instagram-feed' ), array( 'name' => esc_html__('MailChimp for WordPress', 'calanthalite'), 'slug' => 'mailchimp-for-wp' ), ); $config = array( 'id' => 'calanthalite', 'default_path' => '', 'menu' => 'tgmpa-install-plugins', 'parent_slug' => 'themes.php', 'capability' => 'edit_theme_options', 'has_notices' => true, 'dismissable' => true, 'dismiss_msg' => '', 'is_automatic' => true, 'message' => '' ); tgmpa($plugins, $config); }