page-home.php 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569
  1. <?php
  2. /**
  3. * Template Name: Home
  4. *
  5. * @package UIU_CSE
  6. */
  7. get_header(); ?>
  8. <!-- <div class="container full-width">
  9. <div class="row"> -->
  10. <section id="banner" class="container-fluid">
  11. <div class="banner-slider" data-banner-slider>
  12. <button class="banner-slider-button prev" data-banner-slider-button="prev">
  13. <span class="material-symbols-outlined">
  14. arrow_back_ios
  15. </span>
  16. </button>
  17. <button class="banner-slider-button next" data-banner-slider-button="next">
  18. <span class="material-symbols-outlined">
  19. arrow_forward_ios
  20. </span>
  21. </button>
  22. <ul data-slides>
  23. <?php
  24. $args = array(
  25. 'post_type' => 'faculty',
  26. 'posts_per_page' => 10,
  27. //'post__not_in' => array(get_the_ID()),
  28. 'orderby' => 'date',
  29. 'order' => 'DESC',
  30. );
  31. $query = new WP_Query($args);
  32. if ($query->have_posts()) :
  33. while ($query->have_posts()) :
  34. $query->the_post(); ?>
  35. <li class="slide" data-active>
  36. <div class="slider-single-div">
  37. <img src="<?php echo (get_template_directory_uri()) ?>/img/campus_01.jpg" alt="">
  38. <div class="banner-overlay">
  39. <h4>Welcome to </h4>
  40. <h1>United<br> International<br> University</h1>
  41. <h3>
  42. Department of <br>
  43. Computer Science &amp; Engineering
  44. </h3>
  45. </div>
  46. </div>
  47. </li>
  48. <?php
  49. endwhile;
  50. else :
  51. echo '<div class="no-post-found">No faculty profile has found! </div>';
  52. endif; ?>
  53. </ul>
  54. </div>
  55. </section>
  56. <main id="main" class="site-main" role="main">
  57. <div class="sections">
  58. <section class="container-fluid white-bg">
  59. <div class="container">
  60. <h1>We evolve with technology</h1>
  61. <p>
  62. The CSE Department of UIU has been involved in several projects in last five years including projects under Thrust/Emerging Areas, Modernization and Removal of Obsolescence, Industry-Institution Interaction.
  63. </p>
  64. <button class="primary-c">Learn more</button>
  65. <div class="grid">
  66. <div class="program">
  67. <div class="img-cont-2">
  68. <img src="<?php echo (get_template_directory_uri()) ?>/img/student_03.jpg" alt="">
  69. </div>
  70. <div class="program-details">
  71. <h2>Graduate Program</h2>
  72. <p>
  73. <b>UIU</b> has been running its M.Sc. in Computer Science and Engineering program since its inception and has attracted not only fresh undergraduates but also a handful number of ICT professionals from the industry.
  74. </p>
  75. <button class="primary-c"> View All Programs </button>
  76. </div>
  77. </div>
  78. <div class="program">
  79. <div class="img-cont-2">
  80. <img src="<?php echo (get_template_directory_uri()) ?>/img/undergrad.jpg" alt="">
  81. </div>
  82. <div class="program-details">
  83. <h2>Undergraduate Program</h2>
  84. <p>
  85. Bachelor of Science in Computer Science and Engineering primarily involves the study of a number of core courses, which every CSE graduate should know, and a significant number of courses from specialized areas.
  86. </p>
  87. <button class="primary-c"> View All Programs </button>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. </section>
  93. <section id="faculty-section" class="container-fluid white-bg">
  94. <div class="container">
  95. <h1>World Class Faculty</h1>
  96. <p>
  97. The Department of Computer Science and Engineering at UIU boasts one of the biggest faculty bodies
  98. amongst all private universities in the country and is bolstered by a rich and diverse battery of published research work.
  99. </p>
  100. </div>
  101. <div class="container">
  102. <div id="faculty-img">
  103. <img src="<?php echo (get_template_directory_uri()) ?>/img/faculty-grp.jpg" alt="">
  104. </div>
  105. <p>
  106. The Department of Computer Science and Engineering faculty members are an impressive group, bearing the academic tradition of higher excellence. World renowned, they are engaged in ground-breaking research. Further, they are so attuned to what’s happening in business that they are shaping its future.
  107. </p>
  108. <a href="/faculty/">
  109. <button class="primary-c">
  110. View complete faculty list
  111. </button>
  112. </a>
  113. </div>
  114. </section>
  115. <section class="container-fluid car" id="faculty-carousel">
  116. <div class="car-buttons">
  117. <button class="car-control primary-c" id="prev-car" onclick="scrollToPrev()">
  118. >
  119. </button>
  120. <button class="car-control primary-c" id="next-car" onclick="scrollToNext()">
  121. >
  122. </button>
  123. </div>
  124. <div class="profile-carousel">
  125. <?php
  126. $args = array(
  127. 'post_type' => 'faculty',
  128. 'posts_per_page' => 10,
  129. //'post__not_in' => array(get_the_ID()),
  130. 'orderby' => 'date',
  131. 'order' => 'DESC',
  132. );
  133. $query = new WP_Query($args);
  134. if ($query->have_posts()) :
  135. while ($query->have_posts()) :
  136. $query->the_post(); ?>
  137. <div class="car-item">
  138. <div class="car-item-holder">
  139. <div class="car-img-holder">
  140. <img src="<?php the_field('profile_photo') ?>" alt="">
  141. </div>
  142. <a class="faculty-name" href="<?php echo get_the_permalink(); ?>">
  143. <div class="faculty-details">
  144. <h2><?php echo get_the_title(); ?><span class="degree">, Ph.D.</span></h2>
  145. <h3><span class="degree">Department of Computer Science and Engineering</span></h3>
  146. </div>
  147. </a>
  148. </div>
  149. </div>
  150. <?php
  151. endwhile;
  152. else :
  153. echo '<div class="no-post-found">No faculty profile has found! </div>';
  154. endif; ?>
  155. </div>
  156. </section>
  157. <section id="Success-section" class="container-fluid white-bg">
  158. <div class="container">
  159. <h1>Success Stories</h1>
  160. <p>
  161. Our students inspire us by their courage and perseverance, and are a reminder that obstacles can be overcome when you have just one person cheering you on to the finish line.
  162. </p>
  163. </div>
  164. <div class="container">
  165. <div id="us-imgs" class="grid student-stories">
  166. <?php
  167. $args = array(
  168. 'post_type' => 'success_story',
  169. 'posts_per_page' => 3,
  170. //'post__not_in' => array(get_the_ID()),
  171. 'orderby' => 'date',
  172. 'order' => 'DESC',
  173. );
  174. $query = new WP_Query($args);
  175. if ($query->have_posts()) :
  176. while ($query->have_posts()) :
  177. $query->the_post(); ?>
  178. <div>
  179. <div class="img-cont">
  180. <img src="<?php the_field('profile_image'); ?>" alt="">
  181. </div>
  182. <div>
  183. <h2><?php echo get_the_title() ?></h2>
  184. <h5><?php the_field('student_designation'); ?></h5>
  185. <p>
  186. <?php the_excerpt(); ?>
  187. </p>
  188. <a href="<?php echo get_the_permalink() ?>">Learn more</a>
  189. </div>
  190. </div>
  191. <?php
  192. endwhile;
  193. else :
  194. echo '<div class="no-post-found">No success story has found! </div>';
  195. endif; ?>
  196. </div>
  197. <div>
  198. <h1>Notable Alumni</h1>
  199. <p>
  200. Pellentesque est est, luctus non iaculis sed, congue non diam. In efficitur gravida ipsum vitae finibus. Etiam sollicitudin placerat leo.
  201. </p>
  202. </div>
  203. <a href="/alumni/">
  204. <button class="primary-c">
  205. View complete Alumni list
  206. </button>
  207. </a>
  208. </div>
  209. </section>
  210. <section class="container-fluid car" id="alumni-carousel">
  211. <div class="car-buttons">
  212. <button class="car-control primary-c" onclick="scrollToPrevAl()">
  213. < </button>
  214. <button class="car-control primary-c" onclick="scrollToNextAl()">
  215. >
  216. </button>
  217. </div>
  218. <div class="profile-carousel">
  219. <?php
  220. $args = array(
  221. 'post_type' => 'alumni',
  222. 'posts_per_page' => 10,
  223. //'post__not_in' => array(get_the_ID()),
  224. 'orderby' => 'date',
  225. 'order' => 'DESC',
  226. );
  227. $query = new WP_Query($args);
  228. if ($query->have_posts()) :
  229. while ($query->have_posts()) :
  230. $query->the_post(); ?>
  231. <div class="car-item">
  232. <div class="car-item-holder">
  233. <div class="car-img-holder">
  234. <img src="<?php the_field('profile_photo'); ?>" alt="">
  235. </div>
  236. <a class="faculty-name" href="<?php echo get_the_permalink(); ?>">
  237. <div class="faculty-details">
  238. <h2><?php echo get_the_title(); ?></h2>
  239. <h3><span class="degree"><?php the_field('alumni_designation'); ?></span></h3>
  240. </div>
  241. </a>
  242. </div>
  243. </div>
  244. <?php
  245. endwhile;
  246. else :
  247. echo '<div class="no-post-found">No alumni has found! </div>';
  248. endif; ?>
  249. </div>
  250. </section>
  251. <section id="dept-notices" class="container-fluid mid-roll">
  252. <div class="bg-tint">
  253. <div class="container">
  254. <h1>Department Notices</h1>
  255. <div class="notice-main">
  256. <?php
  257. $args = array(
  258. 'post_type' => 'notice',
  259. 'posts_per_page' => 5,
  260. 'orderby' => 'date',
  261. 'order' => 'DESC',
  262. );
  263. $query = new WP_Query($args);
  264. if ($query->have_posts()) :
  265. while ($query->have_posts()) :
  266. $query->the_post();
  267. $custom_date_full = get_the_date('M jS, Y');
  268. $custom_date_min = explode(', ', $custom_date_full);
  269. $custom_date_array = explode(' ', $custom_date_min[0]);
  270. ?>
  271. <a href="<?php echo get_the_permalink(); ?>">
  272. <div class="notice-container">
  273. <div class="event-date">
  274. <h3><?php echo $custom_date_array[0] ?></h3>
  275. <h3><?php echo $custom_date_array[1] ?></h3>
  276. </div>
  277. <div>
  278. <h6><span class="subtitle"><?php echo get_the_date(); ?></span></h6>
  279. <h4><?php echo get_the_title(); ?></h4>
  280. <p>Maecenas sed enim ut sem viverra aliquet. Neque laoreet suspendisse interdum consectetur.</p>
  281. </div>
  282. </div>
  283. </a>
  284. <?php
  285. endwhile;
  286. else :
  287. echo '<div class="no-post-found">No event has found! </div>';
  288. endif; ?>
  289. <a href="/notice/">
  290. <button>View All Notices</button>
  291. </a>
  292. </div>
  293. </div>
  294. </div>
  295. </section>
  296. <section id="dept-news" class="container-fluid white-bg">
  297. <div class="container">
  298. <h1>Department News</h1>
  299. <p>
  300. Catch up with what's happening at the Department of CSE
  301. </p>
  302. <div class="news-row">
  303. <div class="news-big-img">
  304. <div class="news-big-img-holder">
  305. <img src="<?php echo (get_template_directory_uri()) ?>/img/campus_05.jpg" alt="">
  306. </div>
  307. <div class="news-big-img-text">
  308. <h5>28th March, 2016</h5>
  309. <h4> <a href=""> Seminar</a></h4>
  310. <a href="">
  311. <p>Development and Mining of a Volatile Organic Compound Database</p>
  312. </a>
  313. </div>
  314. </div>
  315. <div class="news-small-img">
  316. <div class="news-sm-img-holder">
  317. <img src="<?php echo (get_template_directory_uri()) ?>/img/campus_05.jpg" alt="">
  318. </div>
  319. <div class="news-sm-img-text">
  320. <h5>28th March, 2016</h5>
  321. <h4> <a href=""> Seminar</a></h4>
  322. <a href="">
  323. <p>Development and Mining of a Volatile Compounds</p>
  324. </a>
  325. </div>
  326. </div>
  327. <div class="news-small-img">
  328. <div class="news-sm-img-holder">
  329. <img src="<?php echo (get_template_directory_uri()) ?>/img/campus_01.jpg" alt="">
  330. </div>
  331. <div class="news-sm-img-text">
  332. <h5>28th March, 2016</h5>
  333. <h4> <a href=""> Seminar</a></h4>
  334. <a href="">
  335. <p>Development and Mining of a Volatile Compounds</p>
  336. </a>
  337. </div>
  338. </div>
  339. <div class="news-small-img">
  340. <div class="news-sm-img-holder">
  341. <img src="<?php echo (get_template_directory_uri()) ?>/img/campus_05.jpg" alt="">
  342. </div>
  343. <div class="news-sm-img-text">
  344. <h5>28th March, 2016</h5>
  345. <h4> <a href=""> Seminar</a></h4>
  346. <a href="">
  347. <p>Development and Mining of a Volatile Compounds</p>
  348. </a>
  349. </div>
  350. </div>
  351. <div class="news-small-img">
  352. <div class="news-sm-img-holder">
  353. <img src="<?php echo (get_template_directory_uri()) ?>/img/campus_01.jpg" alt="">
  354. </div>
  355. <div class="news-sm-img-text">
  356. <h5>28th March, 2016</h5>
  357. <h4> <a href=""> Seminar</a></h4>
  358. <a href="">
  359. <p>Development and Mining of a Volatile Compounds</p>
  360. </a>
  361. </div>
  362. </div>
  363. <div class="news-big-img">
  364. <div class="news-big-img-holder">
  365. <img src="<?php echo (get_template_directory_uri()) ?>/img/campus_05.jpg" alt="">
  366. </div>
  367. <div class="news-big-img-text">
  368. <h5>28th March, 2016</h5>
  369. <h4> <a href=""> Seminar</a></h4>
  370. <a href="">
  371. <p>Development and Mining of a Volatile Organic Compound Database</p>
  372. </a>
  373. </div>
  374. </div>
  375. </div>
  376. <a href="/news/">
  377. <button class="primary-c">View All News</button> </a>
  378. </div>
  379. </section>
  380. <section id="events" class="container-fluid mid-roll">
  381. <div class="bg-tint">
  382. <div class="container">
  383. <h1>Upcoming Events</h1>
  384. <div class="grid">
  385. <?php
  386. $args = array(
  387. 'post_type' => 'event',
  388. 'posts_per_page' => 5,
  389. //'post__not_in' => array(get_the_ID()),
  390. 'orderby' => 'date',
  391. 'order' => 'DESC',
  392. );
  393. $query = new WP_Query($args);
  394. if ($query->have_posts()) :
  395. while ($query->have_posts()) :
  396. $query->the_post(); ?>
  397. <div class="event-holder">
  398. <div class="event-img-holder">
  399. <img src="<?php echo get_the_post_thumbnail_url(); ?>" alt="">
  400. </div>
  401. <div class="event-date primary-c">
  402. <h3><?php the_field('event_date_start'); ?></h3>
  403. </div>
  404. <div class="event-details">
  405. <a href="">
  406. <h3><?php echo get_the_title(); ?></h3>
  407. <h2><?php the_field('event_venue'); ?></h2>
  408. </a>
  409. </div>
  410. </div>
  411. <?php
  412. endwhile;
  413. else :
  414. echo '<div class="no-post-found">No event has found! </div>';
  415. endif; ?>
  416. </div>
  417. <a href="/event/">
  418. <button class="primary-c">View all events</button>
  419. </a>
  420. </div>
  421. </div>
  422. </section>
  423. <section id="research-grants" class="white-bg">
  424. <div class="container">
  425. <h1>Research &amp; Grants</h1>
  426. <p>Maecenas sed enim ut sem viverra aliquet. Neque laoreet suspendisse interdum consectetur.
  427. Mus mauris vitae ultricies leo integer malesuada nunc vel. Mus mauris vitae ultricies leo integer malesuada nunc vel.
  428. </p>
  429. <div id="research-pointers" class="grid">
  430. <div>
  431. <h3>32 Research Projects</h3>
  432. <p>Spread across Undergraduate and Graduate Programs</p>
  433. </div>
  434. <div>
  435. <h3>Tk 5 Crores in grants</h3>
  436. <p>Spread across Undergraduate and Graduate Programs</p>
  437. </div>
  438. <div>
  439. <h3>32 Research Projects</h3>
  440. <p>Spread across Undergraduate and Graduate Programs</p>
  441. </div>
  442. </div>
  443. </div>
  444. </section>
  445. </div>
  446. </main><!-- #main -->
  447. <!-- </div> .row -->
  448. <!-- </div>.container -->
  449. <?php get_footer(); ?>