__('Header Menu'), 'footer_menu' => __('Footer Menu'), 'right_sidebar' => __('Rigth Sidebar Menu'), 'header_submenu' => __('Header Submenu'), ) ); /* ============================== Theme support functions ================================ */ add_theme_support('html5,', array('search-form', 'comment-form', 'gallery', 'comment-list', 'caption')); add_theme_support('custom-header'); add_theme_support('post-formats', array('aside', 'image', 'video')); /* ============================== Theme Style and script ================================ */ function awesomeblog_script() { wp_enqueue_style('bs_css', 'https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"'); wp_enqueue_style('fontawesome_free', get_template_directory_uri() . '/assets/fontawesome/css/all.css', array(), '4.0', 'all'); wp_enqueue_style('style_animation', get_template_directory_uri() . '/assets/animation/animate.min.css', array(), '0.0', 'all'); wp_enqueue_style('style_animation_pakage', get_template_directory_uri() . '/assets/animation/fadeIn.css', array(), '0.0', 'all'); wp_enqueue_style('style', get_stylesheet_uri()); wp_enqueue_script('submenu_script', get_template_directory_uri() . '/js/submenu.js', array('jquery'), '1.0.0', true); wp_enqueue_script('mobilemenu_script', get_template_directory_uri() . '/js/mobilemenu.js', array('jquery'), '1.0.0', true); if (is_singular()) wp_enqueue_script('comment-reply'); }; /** * Filter the excerpt "read more" string. * * @param string $more "Read more" excerpt string. * @return string (Maybe) modified "read more" excerpt string. */ function wpdocs_excerpt_more($more) { return ' .... '; } add_filter('excerpt_more', 'wpdocs_excerpt_more'); add_action('wp_enqueue_scripts', 'awesomeblog_script'); /* ============================== Customize Api theme color ================================ */ require_once(__DIR__ . "/customize/api-custom-color.php"); /* ============================== Customize Api theme footer ================================ */ require_once(__DIR__ . "/customize/api-custom-footer.php"); /* Custom function */ function the_current_date() { $this_date = date('Y'); return $this_date; } /* ============================== widget Function ================================ */ function awesome_blog_widget_setup() { register_sidebar(array( 'name' => __('Sidebar rigth'), 'id' => 'sidebar-rigth', 'class' => 'sidebar-custom', 'description' => 'Standar Sidebar appear at the rigth side', 'before_widget' => '', 'before_title' => '
>