single-notice.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557
  1. <?php
  2. /**
  3. * The template for displaying all single notice posts
  4. *
  5. * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
  6. *
  7. * @package UIU_CSE
  8. */
  9. get_header(); ?>
  10. <?php while (have_posts()) : the_post(); ?>
  11. <main id="main" class="site-main" role="main">
  12. <section id="hero-single">
  13. <div class="container">
  14. <!-- page title -->
  15. <div class="page-title">
  16. Notice
  17. </div>
  18. <!-- breadcrumb -->
  19. <nav class="breadcrumb" aria-label="breadcrumb">
  20. <ul>
  21. <li><a href="#">Home</a></li>
  22. <li><a href="#">Category</a></li>
  23. <li>Page</li>
  24. </ul>
  25. </nav>
  26. <div class="content">
  27. <!-- main title -->
  28. <div class="main-title">
  29. <?php echo get_the_title(); ?>
  30. </div>
  31. <div class="publish-date">
  32. <span class="title">Publish Date :</span>
  33. <span class="date"><?php echo get_the_date(); ?></span>
  34. </div>
  35. <div class="links">
  36. <!-- message -->
  37. <a href="mailto:#">
  38. <img src="<?php echo (get_template_directory_uri()) ?>/img/envelope-solid.svg" alt="">
  39. </a>
  40. <!-- printer -->
  41. <a onclick="window.print()">
  42. <img src="<?php echo (get_template_directory_uri()) ?>/img/print-solid.svg" alt="">
  43. </a>
  44. <!-- facebook -->
  45. <a href="#">
  46. <img src="<?php echo (get_template_directory_uri()) ?>/img/facebook-f.svg" alt="">
  47. </a>
  48. <!-- twitter -->
  49. <a href="#">
  50. <img src="<?php echo (get_template_directory_uri()) ?>/img/twitter.svg" alt="">
  51. </a>
  52. <!-- linkedin -->
  53. <a href="#">
  54. <img src="<?php echo (get_template_directory_uri()) ?>/img/linkedin-in.svg" alt="">
  55. </a>
  56. </div>
  57. </div>
  58. </div>
  59. </section>
  60. <div class="container">
  61. <section id="notice-container">
  62. <!-- main component -->
  63. <div class="main-comp">
  64. <div class="feature-image-holder">
  65. <img src="<?php echo get_the_post_thumbnail_url(); ?>" alt="">
  66. </div>
  67. <!-- notice details -->
  68. <div class="notice-details">
  69. <?php the_content(); ?>
  70. </div>
  71. </div>
  72. <!-- side component -->
  73. <div class="side-comp">
  74. <!-- notice -->
  75. <div class="item">
  76. <!-- title -->
  77. <div class="item-title">
  78. NOTICES
  79. </div>
  80. <!-- item container -->
  81. <div class="item-container">
  82. <a class="single-item" href="#">
  83. <div class="date">
  84. January 28, 2024
  85. </div>
  86. <div class="details">
  87. Orientation Program for the Newly Admitted Students of Summer 2023 Trimester
  88. </div>
  89. </a>
  90. <a class="single-item" href="#">
  91. <div class="date">
  92. January 28, 2024
  93. </div>
  94. <div class="details">
  95. Orientation Program for the Newly Admitted Students of Summer 2023 Trimester
  96. </div>
  97. </a>
  98. <a class="single-item" href="#">
  99. <div class="date">
  100. January 28, 2024
  101. </div>
  102. <div class="details">
  103. Orientation Program for the Newly Admitted Students of Summer 2023 Trimester
  104. </div>
  105. </a>
  106. <a class="single-item" href="#">
  107. <div class="date">
  108. January 28, 2024
  109. </div>
  110. <div class="details">
  111. Orientation Program for the Newly Admitted Students of Summer 2023 Trimester
  112. </div>
  113. </a>
  114. <a class="single-item" href="#">
  115. <div class="date">
  116. January 28, 2024
  117. </div>
  118. <div class="details">
  119. Orientation Program for the Newly Admitted Students of Summer 2023 Trimester
  120. </div>
  121. </a>
  122. </div>
  123. <!-- view more button -->
  124. <a class="view-more" href="#">
  125. <div class="icon">
  126. <img src="./img/square-plus-solid.svg" alt="">
  127. </div>
  128. <span>
  129. View more
  130. </span>
  131. </a>
  132. </div>
  133. <!-- news -->
  134. <div class="item">
  135. <!-- title -->
  136. <div class="item-title">
  137. NEWS
  138. </div>
  139. <!-- item container -->
  140. <div class="item-container">
  141. <a class="single-item" href="#">
  142. <div class="date">
  143. January 28, 2024
  144. </div>
  145. <div class="details">
  146. Orientation Program for the Newly Admitted Students of Summer 2023 Trimester
  147. </div>
  148. </a>
  149. <a class="single-item" href="#">
  150. <div class="date">
  151. January 28, 2024
  152. </div>
  153. <div class="details">
  154. Orientation Program for the Newly Admitted Students of Summer 2023 Trimester
  155. </div>
  156. </a>
  157. <a class="single-item" href="#">
  158. <div class="date">
  159. January 28, 2024
  160. </div>
  161. <div class="details">
  162. Orientation Program for the Newly Admitted Students of Summer 2023 Trimester
  163. </div>
  164. </a>
  165. <a class="single-item" href="#">
  166. <div class="date">
  167. January 28, 2024
  168. </div>
  169. <div class="details">
  170. Orientation Program for the Newly Admitted Students of Summer 2023 Trimester
  171. </div>
  172. </a>
  173. <a class="single-item" href="#">
  174. <div class="date">
  175. January 28, 2024
  176. </div>
  177. <div class="details">
  178. Orientation Program for the Newly Admitted Students of Summer 2023 Trimester
  179. </div>
  180. </a>
  181. </div>
  182. <!-- view more button -->
  183. <a class="view-more" href="#">
  184. <div class="icon">
  185. <img src="./img/square-plus-solid.svg" alt="">
  186. </div>
  187. <span>
  188. View more
  189. </span>
  190. </a>
  191. </div>
  192. </div>
  193. </section>
  194. </div>
  195. </main>
  196. <?php endwhile; ?>
  197. <style>
  198. #hero-single {
  199. padding: 6rem 0 3rem;
  200. }
  201. #hero-single .page-title {
  202. font-size: 1.8rem;
  203. font-weight: bold;
  204. color: #0f465e;
  205. font-family: "DM Serif Text", serif;
  206. letter-spacing: 3px;
  207. }
  208. #hero-single .breadcrumb {
  209. margin-top: 0 !important;
  210. }
  211. #hero-single .breadcrumb li {
  212. padding-top: 10px;
  213. padding-bottom: 10px;
  214. font-size: 0.8rem;
  215. font-weight: 600;
  216. }
  217. #hero-single .content {
  218. display: block;
  219. }
  220. #hero-single .main-title {
  221. margin-top: 1.5rem;
  222. font-size: 1.7rem;
  223. font-weight: bold;
  224. letter-spacing: 2px;
  225. line-height: 1.4 !important;
  226. color: #333 !important;
  227. text-transform: capitalize;
  228. font-family: "DM Serif Text", serif;
  229. }
  230. #hero-single .publish-date {
  231. margin-top: 0.75rem;
  232. font-size: 0.8rem;
  233. }
  234. #hero-single .publish-date .title {
  235. font-weight: bold;
  236. }
  237. #hero-single .publish-date .date {
  238. margin-left: 0.25rem;
  239. font-weight: 600;
  240. }
  241. #hero-single .links {
  242. margin-top: 2.5rem;
  243. padding-top: 1rem;
  244. border-top: 1px solid #000;
  245. display: flex;
  246. gap: 1.5rem;
  247. }
  248. #hero-single .links a {
  249. height: 1.2rem;
  250. }
  251. #hero-single .links a:hover {
  252. transform: scale(1.2);
  253. opacity: 1 !important;
  254. }
  255. #hero-single .links a img {
  256. height: 100%;
  257. }
  258. #notice-info {
  259. padding-top: 0;
  260. margin-bottom: 1rem;
  261. }
  262. #notice-info .content {
  263. background: #0f465e;
  264. padding: 1.5rem 2rem;
  265. color: #fff;
  266. }
  267. #notice-info .content .single-content {
  268. display: flex;
  269. align-items: flex-start;
  270. margin-bottom: 0.75rem;
  271. font-size: 0.8rem;
  272. }
  273. #notice-info .content .single-content:last-child {
  274. margin-bottom: unset;
  275. }
  276. #notice-info .content .single-content .title {
  277. min-width: 200px;
  278. font-weight: 700;
  279. font-size: inherit;
  280. }
  281. #notice-info .content .single-content .detail {
  282. font-size: inherit;
  283. font-weight: 500;
  284. }
  285. a {
  286. transition: all 0.25s ease-in-out;
  287. }
  288. a:hover {
  289. opacity: 0.65;
  290. text-decoration: none;
  291. }
  292. #notice-container {
  293. margin: 0.5rem 0;
  294. display: flex;
  295. gap: 1rem;
  296. }
  297. @media (max-width: 1000px) {
  298. #notice-container {
  299. display: block;
  300. }
  301. }
  302. #notice-container .main-comp {
  303. flex: 5;
  304. padding: 0 0.75rem 1rem 0;
  305. }
  306. #notice-container .main-comp .feature-image-holder {
  307. width: 100%;
  308. margin-bottom: 2rem;
  309. }
  310. #notice-container .main-comp .feature-image-holder img {
  311. width: 100%;
  312. }
  313. #notice-container .main-comp .notice-details {
  314. margin-top: 1rem;
  315. }
  316. #notice-container .main-comp .notice-details img {
  317. width: 100%;
  318. margin-bottom: 2rem;
  319. }
  320. #notice-container .side-comp {
  321. flex: 2;
  322. padding: 0 0.25rem 1rem 0 !important;
  323. }
  324. #notice-container .side-comp .item {
  325. margin-bottom: 2rem;
  326. border: 1px solid #2c5d73;
  327. }
  328. #notice-container .side-comp .item .item-title {
  329. padding: 0.25rem 1rem;
  330. text-align: center;
  331. background: #2c5d73;
  332. color: #fff;
  333. }
  334. #notice-container .side-comp .item .item-container {
  335. padding: 0.5rem;
  336. }
  337. #notice-container .side-comp .item .item-container .single-item {
  338. display: block;
  339. margin-bottom: 0.75rem;
  340. padding-bottom: 2rem;
  341. border-bottom: 1px solid #2c5d73;
  342. transition: all 0.25s ease-in-out;
  343. }
  344. #notice-container .side-comp .item .item-container .single-item:last-child {
  345. border-bottom: none;
  346. margin-bottom: 0rem;
  347. padding-bottom: 0.25rem;
  348. }
  349. #notice-container .side-comp .item .item-container .single-item .date {
  350. font-size: 0.8rem;
  351. font-weight: 500;
  352. color: #c66f17;
  353. }
  354. #notice-container .side-comp .item .item-container .single-item .single-item-title {
  355. font-size: 0.8rem;
  356. font-weight: 700;
  357. color: #2c5d73;
  358. }
  359. #notice-container .side-comp .item .item-container .single-item .date-container {
  360. display: flex;
  361. align-items: center;
  362. gap: 0.7rem;
  363. }
  364. #notice-container .side-comp .item .item-container .single-item .date-container .date {
  365. font-size: 0.75rem;
  366. }
  367. #notice-container .side-comp .item .item-container .single-item .date-container .icon {
  368. width: 0.75rem;
  369. color: #ffffff;
  370. }
  371. #notice-container .side-comp .item .item-container .single-item .date-container .icon img {
  372. width: 100%;
  373. }
  374. #notice-container .side-comp .item .item-container .single-item .details {
  375. font-size: 0.7rem;
  376. margin-top: 0.3rem;
  377. color: #232323;
  378. }
  379. #notice-container .side-comp .item .news {
  380. font-size: 0.7rem !important;
  381. padding-bottom: 2rem !important;
  382. }
  383. #notice-container .side-comp .item .view-more {
  384. display: flex;
  385. align-items: center;
  386. padding: 0 0.5rem 0.5rem;
  387. gap: 0.5rem;
  388. }
  389. #notice-container .side-comp .item .view-more .icon {
  390. width: 1rem;
  391. }
  392. #notice-container .side-comp .item .view-more .icon img {
  393. width: 100%;
  394. }
  395. #notice-container .side-comp .item .view-more span {
  396. font-size: 0.85rem;
  397. color: #2F4858;
  398. font-weight: bolder !important;
  399. transition: all 0.35s ease-in-out;
  400. }
  401. #notice-container .side-comp .item .view-more:hover {
  402. opacity: 1;
  403. }
  404. #notice-container .side-comp .item .view-more:hover span {
  405. color: #E55807;
  406. }
  407. @media print {
  408. head,
  409. header,
  410. footer {
  411. display: none;
  412. }
  413. main {
  414. padding-top: 0 !important;
  415. margin-top: 0 !important;
  416. }
  417. #archive-hero {
  418. margin: 0;
  419. }
  420. #notice-container {
  421. padding: 0;
  422. }
  423. }
  424. /*# sourceMappingURL=single-notice.css.map */
  425. </style>
  426. <?php get_footer(); ?>