page-course-description.php 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790
  1. <?php
  2. /**
  3. * Template Name: Course Description
  4. *
  5. * @package UIU_CSE
  6. */
  7. get_header();
  8. ?>
  9. <?php while (have_posts()) : the_post(); ?>
  10. <main id="primary" class="site-main">
  11. <section id="archive-hero">
  12. <div class="container">
  13. <!-- breadcrumb -->
  14. <nav aria-label="breadcrumb">
  15. <ul>
  16. <li><a href="#"> Home </a></li>
  17. <li><a href="#">UG Program</a></li>
  18. <li>Course Description</li>
  19. </ul>
  20. </nav>
  21. <div class="content">
  22. <!-- left content -->
  23. <div class="left-content">
  24. <div class="main-title">Course Description</div>
  25. <div class="short-details">
  26. Lorem ipsum dolor sit, amet consectetur adipisicing elit. Dolor ducimus eius magni non.
  27. </div>
  28. <div class="links">
  29. <!-- message -->
  30. <a href="#">
  31. <img src="<?php echo (get_template_directory_uri()) ?>/img/envelope-solid.svg" alt="">
  32. </a>
  33. <!-- printer -->
  34. <a href="#">
  35. <img src="<?php echo (get_template_directory_uri()) ?>/img/print-solid.svg" alt="">
  36. </a>
  37. <!-- facebook -->
  38. <a href="#">
  39. <img src="<?php echo (get_template_directory_uri()) ?>/img/facebook-f.svg" alt="">
  40. </a>
  41. <!-- twitter -->
  42. <a href="#">
  43. <img src="<?php echo (get_template_directory_uri()) ?>/img/twitter.svg" alt="">
  44. </a>
  45. <!-- linkedin -->
  46. <a href="#">
  47. <img src="<?php echo (get_template_directory_uri()) ?>/img/linkedin-in.svg" alt="">
  48. </a>
  49. </div>
  50. </div>
  51. <!-- right content -->
  52. <div class="right-content">
  53. <img src="<?php echo (get_template_directory_uri()) ?>/img/campus_07.jpg" alt="">
  54. </div>
  55. </div>
  56. </div>
  57. </section>
  58. <section class="container">
  59. <section id="course-description-container">
  60. <!-- side component -->
  61. <div class="side-comp">
  62. <!-- link -->
  63. <div class="item">
  64. <!-- title -->
  65. <div class="item-title">
  66. UG PROGRAM (B.SC IN CSE)
  67. </div>
  68. <!-- item container -->
  69. <div class="link-container">
  70. <ul>
  71. <li>
  72. <a href="#">Course Plan</a>
  73. </li>
  74. <li>
  75. <a href="#">Course Description</a>
  76. </li>
  77. <li>
  78. <a href="#">Course Plan (Old)</a>
  79. </li>
  80. <li>
  81. <a href="#">Course Description (New)</a>
  82. </li>
  83. <li>
  84. <a href="#">Mentor List</a>
  85. </li>
  86. </ul>
  87. </div>
  88. </div>
  89. <!-- notice -->
  90. <div class="item">
  91. <!-- title -->
  92. <div class="item-title">
  93. NOTICES
  94. </div>
  95. <!-- item container -->
  96. <div class="item-container">
  97. <a class="single-item" href="#">
  98. <div class="date">
  99. January 28, 2024
  100. </div>
  101. <div class="details">
  102. Orientation Program for the Newly Admitted Students of Summer 2023 Trimester
  103. </div>
  104. </a>
  105. <a class="single-item" href="#">
  106. <div class="date">
  107. January 28, 2024
  108. </div>
  109. <div class="details">
  110. Orientation Program for the Newly Admitted Students of Summer 2023 Trimester
  111. </div>
  112. </a>
  113. <a class="single-item" href="#">
  114. <div class="date">
  115. January 28, 2024
  116. </div>
  117. <div class="details">
  118. Orientation Program for the Newly Admitted Students of Summer 2023 Trimester
  119. </div>
  120. </a>
  121. <a class="single-item" href="#">
  122. <div class="date">
  123. January 28, 2024
  124. </div>
  125. <div class="details">
  126. Orientation Program for the Newly Admitted Students of Summer 2023 Trimester
  127. </div>
  128. </a>
  129. <a class="single-item" href="#">
  130. <div class="date">
  131. January 28, 2024
  132. </div>
  133. <div class="details">
  134. Orientation Program for the Newly Admitted Students of Summer 2023 Trimester
  135. </div>
  136. </a>
  137. </div>
  138. <!-- view more button -->
  139. <a class="view-more" href="#">
  140. <div class="icon">
  141. <img src="./img/square-plus-solid.svg" alt="">
  142. </div>
  143. <span>
  144. View more
  145. </span>
  146. </a>
  147. </div>
  148. </div>
  149. <!-- main component -->
  150. <div class="main-comp">
  151. <article>
  152. <!-- <h2>List of Courses</h2> -->
  153. <?php //the_content();
  154. ?>
  155. <?php while (have_rows('course_list')) : the_row(); ?>
  156. <div class="label label-group">
  157. <?php the_sub_field('course_group_title'); ?>
  158. </div>
  159. <?php while (have_rows('course_categories')) : the_row(); ?>
  160. <div class="label label-category">
  161. <?php the_sub_field('course_category_name'); ?>
  162. </div>
  163. <?php while (have_rows('courses')) : the_row(); ?>
  164. <div id="accordion" class="accordion">
  165. <button class="accordion-btn">
  166. <?php the_sub_field('course_name'); ?>
  167. </button>
  168. <div class="accordion-body">
  169. <ul class="course-info">
  170. <li>
  171. <span class="title">Course Code: </span>
  172. <span class="data"><?php the_sub_field('course_code'); ?></span>
  173. </li>
  174. <li>
  175. <span class="title">Credit Hour: </span>
  176. <span class="data"><?php the_sub_field('credit_hour'); ?></span>
  177. </li>
  178. <li>
  179. <span class="title">Prerequisite: </span>
  180. <span class="data"><?php the_sub_field('prerequisite'); ?></span>
  181. </li>
  182. </ul>
  183. <p class="details">
  184. <?php the_sub_field('course_details'); ?>
  185. </p>
  186. </div>
  187. </div>
  188. <?php
  189. endwhile ?>
  190. <?php
  191. endwhile ?>
  192. <?php
  193. endwhile ?>
  194. <!-- summery label -->
  195. <div class="label label-summery">
  196. Summary of Course Curriculum
  197. </div>
  198. <!-- summery table -->
  199. <div class="summery-table">
  200. <table>
  201. <thead>
  202. <tr>
  203. <th scope="col">#</th>
  204. <th scope="col">Group</th>
  205. <th scope="col">Theory</th>
  206. <th scope="col">Laboratory</th>
  207. <th scope="col">Final Year Design Project</th>
  208. <th scope="col">Total</th>
  209. </tr>
  210. </thead>
  211. <tbody>
  212. <tr>
  213. <th scope="row">1</th>
  214. <td>Language</td>
  215. <td>6.0</td>
  216. <td></td>
  217. <td></td>
  218. <td>6.0</td>
  219. </tr>
  220. <tr>
  221. <th scope="row">2</th>
  222. <td>General Education</td>
  223. <td>14.0</td>
  224. <td></td>
  225. <td></td>
  226. <td>14.0</td>
  227. </tr>
  228. <tr>
  229. <th scope="row">3</th>
  230. <td>Basic Sciences</td>
  231. <td>6.0</td>
  232. <td>1.0</td>
  233. <td></td>
  234. <td>7.0</td>
  235. </tr>
  236. <tr>
  237. <th scope="row">4</th>
  238. <td>Mathematics</td>
  239. <td>12.0</td>
  240. <td></td>
  241. <td></td>
  242. <td>12.0</td>
  243. </tr>
  244. <tr>
  245. <th scope="row">5</th>
  246. <td>Other Engineering</td>
  247. <td>9.0</td>
  248. <td>1.0</td>
  249. <td></td>
  250. <td>10.0</td>
  251. </tr>
  252. <tr>
  253. <th scope="row">6</th>
  254. <td>Core Courses</td>
  255. <td>51.0</td>
  256. <td>14.0</td>
  257. <td></td>
  258. <td>65.0</td>
  259. </tr>
  260. <tr>
  261. <th scope="row">7</th>
  262. <td>Elective Courses</td>
  263. <td>15.0</td>
  264. <td></td>
  265. <td></td>
  266. <td>15.0</td>
  267. </tr>
  268. <tr>
  269. <th scope="row">8</th>
  270. <td>University Required Courses</td>
  271. <td></td>
  272. <td>2.0</td>
  273. <td></td>
  274. <td>2.0</td>
  275. </tr>
  276. <tr>
  277. <th scope="row">9</th>
  278. <td>Final Year Design Project</td>
  279. <td></td>
  280. <td></td>
  281. <td>6.0</td>
  282. <td>6.0</td>
  283. </tr>
  284. <tr>
  285. <th scope="col"></th>
  286. <th scope="col">Total</th>
  287. <th scope="col">113.0</th>
  288. <th scope="col">18.0</th>
  289. <th scope="col">6.0</th>
  290. <th scope="col">137.0</th>
  291. </tr>
  292. </tbody>
  293. </table>
  294. </div>
  295. </article>
  296. </div>
  297. </section>
  298. </section>
  299. </main><!-- #main -->
  300. <?php endwhile; // end of the loop.
  301. ?>
  302. <style>
  303. #accordion {
  304. margin-bottom: 0.5rem;
  305. border: 1px solid #ccd4d7;
  306. border-radius: 0;
  307. overflow: hidden;
  308. margin-left: 30px;
  309. }
  310. #accordion .accordion-btn {
  311. margin-bottom: unset;
  312. padding: 0.25rem 1rem;
  313. font-weight: 500;
  314. font-size: 0.8rem;
  315. background-color: transparent;
  316. color: #333;
  317. background: #f5f5f5;
  318. border: none;
  319. border-radius: 0;
  320. text-align: start;
  321. margin: unset;
  322. max-width: unset;
  323. }
  324. #accordion .accordion-btn:focus {
  325. border: none;
  326. box-shadow: none;
  327. }
  328. #accordion .accordion-body {
  329. padding: 0.75rem;
  330. font-size: 0.8rem;
  331. display: none;
  332. }
  333. #accordion .accordion-body.show {
  334. display: block;
  335. }
  336. #archive-hero {
  337. padding: 2rem 0;
  338. background: #f3f0ec;
  339. }
  340. #archive-hero .content {
  341. display: flex;
  342. align-items: start;
  343. }
  344. #archive-hero .content .left-content {
  345. padding: 1rem;
  346. padding-left: 0 !important;
  347. flex: 1;
  348. }
  349. #archive-hero .content .left-content .main-title {
  350. font-size: 2.2rem;
  351. font-weight: 500;
  352. color: #000000;
  353. }
  354. #archive-hero .content .left-content .short-details {
  355. margin-top: 1.5rem;
  356. font-size: 1.1rem;
  357. font-weight: 400;
  358. }
  359. #archive-hero .content .left-content .links {
  360. margin-top: 2rem;
  361. display: flex;
  362. gap: 1.8rem;
  363. }
  364. #archive-hero .content .left-content .links a {
  365. height: 1.3rem;
  366. }
  367. #archive-hero .content .left-content .links a:hover {
  368. transform: scale(1.1);
  369. opacity: 1 !important;
  370. }
  371. #archive-hero .content .left-content .links a img {
  372. height: 100%;
  373. }
  374. #archive-hero .content .right-content {
  375. padding: 0 0 1rem 2rem !important;
  376. flex: 1;
  377. align-self: end;
  378. }
  379. #archive-hero .content .right-content img {
  380. width: 100%;
  381. }
  382. a {
  383. transition: all 0.25s ease-in-out;
  384. }
  385. a:hover {
  386. opacity: 0.65;
  387. text-decoration: none;
  388. }
  389. #course-description-container {
  390. margin-top: 3rem;
  391. display: flex;
  392. gap: 1rem;
  393. }
  394. @media (max-width: 1000px) {
  395. #course-description-container {
  396. flex-direction: column;
  397. }
  398. #course-description-container .main-comp {
  399. order: 0;
  400. flex: 1;
  401. }
  402. #course-description-container .side-comp {
  403. order: 1;
  404. flex: 1;
  405. }
  406. }
  407. #course-description-container .main-comp {
  408. flex: 7;
  409. padding: 0 0.75rem 1rem 0;
  410. }
  411. #course-description-container .main-comp article {
  412. margin-top: 0;
  413. padding-top: 1rem;
  414. }
  415. #course-description-container .main-comp article h2 {
  416. font-weight: 500;
  417. text-align: start;
  418. color: #000;
  419. }
  420. #course-description-container .main-comp article .label {
  421. margin-bottom: 0.5rem;
  422. padding: 0.25rem 1rem;
  423. width: -moz-fit-content;
  424. width: fit-content;
  425. font-weight: 600;
  426. font-size: 0.9rem;
  427. border-radius: 0;
  428. }
  429. #course-description-container .main-comp article .label-group {
  430. margin-top: 2rem;
  431. margin-bottom: 1rem;
  432. background: #2c5d73;
  433. color: #fff;
  434. width: 100%;
  435. }
  436. #course-description-container .main-comp article .label-category {
  437. color: #2C5D73;
  438. width: 100%;
  439. margin-top: 1.5rem;
  440. margin-left: 15px;
  441. padding: 0;
  442. }
  443. #course-description-container .main-comp article .label-summery {
  444. background: #f68b1f;
  445. color: #fff;
  446. margin-top: 4rem;
  447. border-radius: 0;
  448. width: 100%;
  449. }
  450. #course-description-container .main-comp article .course-info {
  451. font-size: 0.8rem;
  452. margin-bottom: 0.5rem;
  453. }
  454. #course-description-container .main-comp article .course-info li {
  455. list-style: none;
  456. margin-bottom: unset;
  457. }
  458. #course-description-container .main-comp article .course-info .title {
  459. font-weight: 600;
  460. color: #2c5d73;
  461. }
  462. #course-description-container .main-comp article .course-info .data {
  463. margin-left: 0.25rem;
  464. font-size: 0.75rem;
  465. font-weight: 500;
  466. color: #000000;
  467. }
  468. #course-description-container .main-comp article .details {
  469. font-size: 0.75rem;
  470. margin-bottom: 0.25rem;
  471. }
  472. #course-description-container .main-comp article .summery-table {
  473. margin-top: 1.5rem;
  474. }
  475. #course-description-container .main-comp article .summery-table table {
  476. border: 1px solid #000;
  477. }
  478. #course-description-container .main-comp article .summery-table th,
  479. #course-description-container .main-comp article .summery-table td {
  480. font-size: 0.75rem;
  481. padding: 0.5rem;
  482. border-bottom: 1px solid #000;
  483. border-left: 1px solid #000;
  484. }
  485. #course-description-container .main-comp article .summery-table th {
  486. font-weight: 700;
  487. }
  488. #course-description-container .main-comp article .summery-table td {
  489. font-weight: 500;
  490. }
  491. #course-description-container .side-comp {
  492. flex: 2;
  493. padding: 0 0.25rem 1rem 0 !important;
  494. }
  495. #course-description-container .side-comp .item {
  496. margin-bottom: 2rem;
  497. padding: 1rem;
  498. background-color: blanchedalmond;
  499. box-shadow: 0 0 10px rgba(0, 0, 0, 0.15), 0 3px 3px rgba(0, 0, 0, 0.15);
  500. }
  501. #course-description-container .side-comp .item .item-title {
  502. padding: 0.25rem 1rem 0.75rem;
  503. text-align: center;
  504. border-bottom: 3px solid #F68B1F;
  505. color: #000;
  506. font-weight: 700;
  507. font-size: 0.7rem;
  508. }
  509. #course-description-container .side-comp .item .item-container {
  510. padding: 0.5rem;
  511. }
  512. #course-description-container .side-comp .item .item-container .single-item {
  513. display: block;
  514. margin-bottom: 0.75rem;
  515. padding-bottom: 2rem;
  516. border-bottom: 1px solid #2c5d73;
  517. transition: all 0.25s ease-in-out;
  518. }
  519. #course-description-container .side-comp .item .item-container .single-item:last-child {
  520. border-bottom: none;
  521. margin-bottom: 0rem;
  522. padding-bottom: 0.25rem;
  523. }
  524. #course-description-container .side-comp .item .item-container .single-item .date {
  525. font-size: 0.8rem;
  526. font-weight: 500;
  527. color: #c66f17;
  528. }
  529. #course-description-container .side-comp .item .item-container .single-item .single-item-title {
  530. font-size: 0.8rem;
  531. font-weight: 700;
  532. color: #2c5d73;
  533. }
  534. #course-description-container .side-comp .item .item-container .single-item .date-container {
  535. display: flex;
  536. align-items: center;
  537. gap: 0.7rem;
  538. }
  539. #course-description-container .side-comp .item .item-container .single-item .date-container .date {
  540. font-size: 0.75rem;
  541. }
  542. #course-description-container .side-comp .item .item-container .single-item .date-container .icon {
  543. width: 0.75rem;
  544. color: #ffffff;
  545. }
  546. #course-description-container .side-comp .item .item-container .single-item .date-container .icon img {
  547. width: 100%;
  548. }
  549. #course-description-container .side-comp .item .item-container .single-item .details {
  550. font-size: 0.7rem;
  551. margin-top: 0.3rem;
  552. color: #232323;
  553. }
  554. #course-description-container .side-comp .item .link-container {
  555. padding-top: 0.25rem;
  556. }
  557. #course-description-container .side-comp .item .link-container ul {
  558. margin-bottom: unset;
  559. }
  560. #course-description-container .side-comp .item .link-container ul li {
  561. list-style: none;
  562. }
  563. #course-description-container .side-comp .item .link-container a {
  564. display: block;
  565. color: #333;
  566. font-size: 0.8rem;
  567. font-weight: 500;
  568. padding: 0.5rem 0;
  569. border-bottom: 1px solid #c5c5c5;
  570. }
  571. #course-description-container .side-comp .item .link-container a:hover {
  572. opacity: 1 !important;
  573. color: #ff860d;
  574. }
  575. #course-description-container .side-comp .item .news {
  576. font-size: 0.7rem !important;
  577. padding-bottom: 2rem !important;
  578. }
  579. #course-description-container .side-comp .item .view-more {
  580. display: flex;
  581. align-items: center;
  582. padding: 0 0.5rem 0.5rem;
  583. gap: 0.5rem;
  584. }
  585. #course-description-container .side-comp .item .view-more .icon {
  586. width: 1rem;
  587. }
  588. #course-description-container .side-comp .item .view-more .icon img {
  589. width: 100%;
  590. }
  591. #course-description-container .side-comp .item .view-more span {
  592. font-size: 0.85rem;
  593. color: #2F4858;
  594. font-weight: bolder !important;
  595. transition: all 0.35s ease-in-out;
  596. }
  597. #course-description-container .side-comp .item .view-more:hover {
  598. opacity: 1;
  599. }
  600. #course-description-container .side-comp .item .view-more:hover span {
  601. color: #E55807;
  602. }
  603. @media print {
  604. head,
  605. header,
  606. footer {
  607. display: none;
  608. }
  609. main {
  610. padding-top: 0 !important;
  611. margin-top: 0 !important;
  612. }
  613. #archive-hero {
  614. margin: 0;
  615. }
  616. #notice-container {
  617. padding: 0;
  618. }
  619. }
  620. /*# sourceMappingURL=course-description.css.map */
  621. </style>
  622. <?php
  623. get_footer();