__( 'Menu Utama', 'edukarsa' ), 'menu-footer' => __( 'Menu Footer', 'edukarsa' ), ) ); } add_action( 'after_setup_theme', 'edukarsa_setup' ); // 2. MENGHUBUNGKAN ASET (CSS & JS FRONTEND) function edukarsa_scripts() { // Memuat Google Font: Plus Jakarta Sans (Native Webfont) wp_enqueue_style( 'edukarsa-google-fonts', 'https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap', array(), null ); // CSS Utama Tema dengan Cache Busting time() wp_enqueue_style( 'edukarsa-style', get_template_directory_uri() . '/style.css', array('edukarsa-google-fonts'), time(), 'all' ); } add_action( 'wp_enqueue_scripts', 'edukarsa_scripts' ); // 3. MEMUAT JAVASCRIPT UNTUK MEDIA UPLOADER (DASHBOARD) function edukarsa_admin_scripts( $hook ) { if ( strpos( $hook, 'edukarsa' ) !== false ) { wp_enqueue_media(); } } add_action( 'admin_enqueue_scripts', 'edukarsa_admin_scripts' ); // 4. REGISTRASI AREA WIDGET SIDEBAR function edukarsa_widgets_init() { register_sidebar( array( 'name' => __( 'Sidebar Artikel', 'edukarsa' ), 'id' => 'sidebar-artikel', 'description' => __( 'Area widget untuk halaman single berita/artikel.', 'edukarsa' ), 'before_widget' => '', 'before_title' => '', ) ); } add_action( 'widgets_init', 'edukarsa_widgets_init' );