single-notice.php 11 KB

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