瀏覽代碼

Course description field added

Md Mozahidur Rahman 1 年之前
父節點
當前提交
c34771ca1a
共有 3 個文件被更改,包括 267 次插入23 次删除
  1. 1 1
      functions.php
  2. 244 0
      inc/acf-json/group_6486ae15c0e64.json
  3. 22 22
      page-template/page-course-description.php

+ 1 - 1
functions.php

@@ -171,7 +171,7 @@ function uiu_cse_header_menu()
 {
 	register_nav_menus(
 		array(
-			'uiu-header-menu' => __('UIU Header Menu'),
+			'uiu-header-menu' => __('UIU Header'),
 			'cse-header-menu' => __('CSE Header Menu'),
 			'uiu-footer-menu' => __('UIU Footer Menu')
 		)

+ 244 - 0
inc/acf-json/group_6486ae15c0e64.json

@@ -0,0 +1,244 @@
+{
+    "key": "group_6486ae15c0e64",
+    "title": "Course Description",
+    "fields": [
+        {
+            "key": "field_6486ae1668690",
+            "label": "Course List",
+            "name": "course_list",
+            "aria-label": "",
+            "type": "repeater",
+            "instructions": "",
+            "required": 0,
+            "conditional_logic": 0,
+            "wrapper": {
+                "width": "",
+                "class": "",
+                "id": ""
+            },
+            "layout": "table",
+            "pagination": 0,
+            "min": 0,
+            "max": 0,
+            "collapsed": "",
+            "button_label": "Add Row",
+            "rows_per_page": 20,
+            "sub_fields": [
+                {
+                    "key": "field_6486af6204bcd",
+                    "label": "Course Group Title",
+                    "name": "course_group_title",
+                    "aria-label": "",
+                    "type": "text",
+                    "instructions": "",
+                    "required": 0,
+                    "conditional_logic": 0,
+                    "wrapper": {
+                        "width": "",
+                        "class": "",
+                        "id": ""
+                    },
+                    "default_value": "",
+                    "maxlength": "",
+                    "placeholder": "",
+                    "prepend": "",
+                    "append": "",
+                    "parent_repeater": "field_6486ae1668690"
+                },
+                {
+                    "key": "field_6486afd504bce",
+                    "label": "Course Categories",
+                    "name": "course_categories",
+                    "aria-label": "",
+                    "type": "repeater",
+                    "instructions": "",
+                    "required": 0,
+                    "conditional_logic": 0,
+                    "wrapper": {
+                        "width": "",
+                        "class": "",
+                        "id": ""
+                    },
+                    "layout": "table",
+                    "min": 0,
+                    "max": 0,
+                    "collapsed": "",
+                    "button_label": "Add Row",
+                    "rows_per_page": 20,
+                    "sub_fields": [
+                        {
+                            "key": "field_6486b24de4a8e",
+                            "label": "Course Category Name",
+                            "name": "course_category_name",
+                            "aria-label": "",
+                            "type": "text",
+                            "instructions": "",
+                            "required": 0,
+                            "conditional_logic": 0,
+                            "wrapper": {
+                                "width": "",
+                                "class": "",
+                                "id": ""
+                            },
+                            "default_value": "",
+                            "maxlength": "",
+                            "placeholder": "",
+                            "prepend": "",
+                            "append": "",
+                            "parent_repeater": "field_6486afd504bce"
+                        },
+                        {
+                            "key": "field_6486b2bbe4a8f",
+                            "label": "Courses",
+                            "name": "courses",
+                            "aria-label": "",
+                            "type": "repeater",
+                            "instructions": "",
+                            "required": 0,
+                            "conditional_logic": 0,
+                            "wrapper": {
+                                "width": "",
+                                "class": "",
+                                "id": ""
+                            },
+                            "layout": "table",
+                            "min": 0,
+                            "max": 0,
+                            "collapsed": "",
+                            "button_label": "Add Row",
+                            "rows_per_page": 20,
+                            "sub_fields": [
+                                {
+                                    "key": "field_6486b2f9edc2f",
+                                    "label": "Course name",
+                                    "name": "course_name",
+                                    "aria-label": "",
+                                    "type": "text",
+                                    "instructions": "",
+                                    "required": 0,
+                                    "conditional_logic": 0,
+                                    "wrapper": {
+                                        "width": "",
+                                        "class": "",
+                                        "id": ""
+                                    },
+                                    "default_value": "",
+                                    "maxlength": "",
+                                    "placeholder": "",
+                                    "prepend": "",
+                                    "append": "",
+                                    "parent_repeater": "field_6486b2bbe4a8f"
+                                },
+                                {
+                                    "key": "field_6486b301edc30",
+                                    "label": "Course code",
+                                    "name": "course_code",
+                                    "aria-label": "",
+                                    "type": "text",
+                                    "instructions": "",
+                                    "required": 0,
+                                    "conditional_logic": 0,
+                                    "wrapper": {
+                                        "width": "",
+                                        "class": "",
+                                        "id": ""
+                                    },
+                                    "default_value": "",
+                                    "maxlength": "",
+                                    "placeholder": "",
+                                    "prepend": "",
+                                    "append": "",
+                                    "parent_repeater": "field_6486b2bbe4a8f"
+                                },
+                                {
+                                    "key": "field_6486b513edc31",
+                                    "label": "Credit hour",
+                                    "name": "credit_hour",
+                                    "aria-label": "",
+                                    "type": "text",
+                                    "instructions": "",
+                                    "required": 0,
+                                    "conditional_logic": 0,
+                                    "wrapper": {
+                                        "width": "",
+                                        "class": "",
+                                        "id": ""
+                                    },
+                                    "default_value": "",
+                                    "maxlength": "",
+                                    "placeholder": "",
+                                    "prepend": "",
+                                    "append": "",
+                                    "parent_repeater": "field_6486b2bbe4a8f"
+                                },
+                                {
+                                    "key": "field_6486b523edc32",
+                                    "label": "Prerequisite",
+                                    "name": "prerequisite",
+                                    "aria-label": "",
+                                    "type": "text",
+                                    "instructions": "",
+                                    "required": 0,
+                                    "conditional_logic": 0,
+                                    "wrapper": {
+                                        "width": "",
+                                        "class": "",
+                                        "id": ""
+                                    },
+                                    "default_value": "",
+                                    "maxlength": "",
+                                    "placeholder": "",
+                                    "prepend": "",
+                                    "append": "",
+                                    "parent_repeater": "field_6486b2bbe4a8f"
+                                },
+                                {
+                                    "key": "field_6486bab5c90b7",
+                                    "label": "Course details",
+                                    "name": "course_details",
+                                    "aria-label": "",
+                                    "type": "wysiwyg",
+                                    "instructions": "",
+                                    "required": 0,
+                                    "conditional_logic": 0,
+                                    "wrapper": {
+                                        "width": "",
+                                        "class": "",
+                                        "id": ""
+                                    },
+                                    "tabs": "all",
+                                    "toolbar": "full",
+                                    "media_upload": 1,
+                                    "default_value": "",
+                                    "delay": 0,
+                                    "parent_repeater": "field_6486b2bbe4a8f"
+                                }
+                            ],
+                            "parent_repeater": "field_6486afd504bce"
+                        }
+                    ],
+                    "parent_repeater": "field_6486ae1668690"
+                }
+            ]
+        }
+    ],
+    "location": [
+        [
+            {
+                "param": "page_template",
+                "operator": "==",
+                "value": "page-template\/page-course-description.php"
+            }
+        ]
+    ],
+    "menu_order": 0,
+    "position": "normal",
+    "style": "default",
+    "label_placement": "top",
+    "instruction_placement": "label",
+    "hide_on_screen": "",
+    "active": true,
+    "description": "",
+    "show_in_rest": 1,
+    "modified": 1686553671
+}

+ 22 - 22
page-template/page-event.php → page-template/page-course-description.php

@@ -1,23 +1,23 @@
-<?php
-
-/**
- * Template Name: Event
- *
- * @package UIU_CSE
- */
-get_header(); ?>
-
-<div class="container full-width">
-    <div class="row">
-        <main id="main" class="site-main" role="main">
-            <?php while (have_posts()) : the_post(); ?>
-                <div class="sections">
-                    <?php the_content(); ?>
-                </div><!-- .sections -->
-            <?php endwhile; // end of the loop.
-            ?>
-        </main><!-- #main -->
-    </div><!-- .row -->
-</div><!-- .container -->
-
+<?php
+
+/**
+ * Template Name: Course Description
+ *
+ * @package UIU_CSE
+ */
+get_header(); ?>
+
+<div class="container full-width">
+    <div class="row">
+        <main id="main" class="site-main" role="main">
+            <?php while (have_posts()) : the_post(); ?>
+                <div class="sections">
+                    <?php the_content(); ?>
+                </div><!-- .sections -->
+            <?php endwhile; // end of the loop.
+            ?>
+        </main><!-- #main -->
+    </div><!-- .row -->
+</div><!-- .container -->
+
 <?php get_footer(); ?>