diff --git a/custom-function.php b/custom-function.php new file mode 100644 index 0000000..1191b3b --- /dev/null +++ b/custom-function.php @@ -0,0 +1,162 @@ + + + "kontol_meta_box", + "title" => esc_html__( "Information Anime", "kontol" ), + "post_types" => array( "post" ), + "context" => "advanced", + "priority" => "high", + "autosave" => true, + "fields" => array( + array( + "id" => "alternative-titles", + "type" => "heading", + "name" => esc_html__( "Alternative Titles", "kontol" ), + ), + array( + "id" => $prefix . "english", + "type" => "text", + "name" => esc_html__( "English", "kontol" ), + ), + array( + "id" => $prefix . "japanese", + "type" => "text", + "name" => esc_html__( "Japanese", "kontol" ), + ), + array( + "id" => $prefix . "synonyms", + "type" => "text", + "name" => esc_html__( "Synonyms", "shirozare" ), + ), + array( + "id" => "information", + "type" => "heading", + "name" => esc_html__( "Information", "kontol" ), + ), + array( + "id" => $prefix . "episodes", + "type" => "text", + "name" => esc_html__( "Episodes", "kontol" ), + ), + array( + "id" => $prefix . "status", + "type" => "text", + "name" => esc_html__( "Status", "kontol" ), + ), + array( + "id" => $prefix . "aired", + "type" => "text", + "name" => esc_html__( "Aired", "kontol" ), + ), + array( + "id" => $prefix . "broadcast", + "type" => "text", + "name" => esc_html__( "Broadcast", "kontol" ), + ), + array( + "id" => $prefix . "type", + "type" => "text", + "name" => esc_html__( "Type", "kontol" ), + ), + array( + "id" => $prefix . "licensors", + "type" => "text", + "name" => esc_html__( "Licensors", "kontol" ), + ), + array( + "id" => $prefix . "studios", + "type" => "text", + "name" => esc_html__( "Studios", "kontol" ), + ), + array( + "id" => $prefix . "premiered", + "type" => "text", + "name" => esc_html__( "Premiered", "kontol" ), + ), + array( + "id" => $prefix . "source", + "type" => "text", + "name" => esc_html__( "Source", "kontol" ), + ), + array( + "id" => $prefix . "duration", + "type" => "text", + "name" => esc_html__( "Duration", "kontol" ), + ), + array( + "id" => $prefix . "rating", + "type" => "text", + "name" => esc_html__( "Rating", "kontol" ), + ), + array( + "id" => "statistics", + "type" => "heading", + "name" => esc_html__( "Statistics", "kontol" ), + ), + array( + "id" => $prefix . "score", + "type" => "text", + "name" => esc_html__( "Score", "kontol" ), + ), + array( + "id" => $prefix . "ranked", + "type" => "text", + "name" => esc_html__( "Ranked", "kontol" ), + ), + array( + "id" => $prefix . "popularity", + "type" => "text", + "name" => esc_html__( "Popularity", "kontol" ), + ), + array( + "id" => $prefix . "dlbatch", + "name" => esc_html__( "Download", "kontol" ), + "type" => "wysiwyg", + ), + ), + ); + + return $meta_boxes; +} +function MyAnimeList_API_Meta_Box($post){ +?> +
+
+
+ +
+
+
+ +
+ Generate +
+
+
+