page-home.php 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601
  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. $i = 0;
  25. if (have_rows('home_slider_slides', 'option')) :
  26. while (have_rows('home_slider_slides', 'option')) : the_row();
  27. $bg_image = get_sub_field('bg_image');
  28. $sub_heading = get_sub_field('sub_heading');
  29. $heading_main = get_sub_field('heading_main');
  30. $text = get_sub_field('text'); ?>
  31. <li class="slide" <?php if ($i == 0) {
  32. echo 'data-active';
  33. } ?>>
  34. <div class="slider-single-div">
  35. <img src="<?php echo $bg_image ?>" alt="">
  36. <div class="banner-overlay">
  37. <h4><?php echo $sub_heading ?></h4>
  38. <h1><?php echo $heading_main ?></h1>
  39. <h3>
  40. <?php echo $text ?>
  41. </h3>
  42. </div>
  43. </div>
  44. </li>
  45. <?php
  46. $i = $i + 1;
  47. endwhile;
  48. else :
  49. echo '<div class="no-post-found">No faculty profile has found! </div>';
  50. endif; ?>
  51. </ul>
  52. </div>
  53. </section>
  54. <main id="main" class="site-main" role="main">
  55. <div class="sections">
  56. <section class="container-fluid white-bg">
  57. <div class="container">
  58. <h1>We evolve with technology</h1>
  59. <p>
  60. 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.
  61. </p>
  62. <button class="primary-c">Learn more</button>
  63. <div class="grid">
  64. <div class="program">
  65. <div class="img-cont-2">
  66. <img src="<?php echo (get_template_directory_uri()) ?>/img/student_03.jpg" alt="">
  67. </div>
  68. <div class="program-details">
  69. <h2>Graduate Program</h2>
  70. <p>
  71. <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.
  72. </p>
  73. <button class="primary-c"> View All Programs </button>
  74. </div>
  75. </div>
  76. <div class="program">
  77. <div class="img-cont-2">
  78. <img src="<?php echo (get_template_directory_uri()) ?>/img/undergrad.jpg" alt="">
  79. </div>
  80. <div class="program-details">
  81. <h2>Undergraduate Program</h2>
  82. <p>
  83. 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.
  84. </p>
  85. <button class="primary-c"> View All Programs </button>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </section>
  91. <section id="faculty-section" class="container-fluid white-bg">
  92. <div class="container">
  93. <h1>World Class Faculty</h1>
  94. <p>
  95. The Department of Computer Science and Engineering at UIU boasts one of the biggest faculty bodies
  96. amongst all private universities in the country and is bolstered by a rich and diverse battery of published research work.
  97. </p>
  98. </div>
  99. <div class="container">
  100. <div id="faculty-img">
  101. <img src="<?php echo (get_template_directory_uri()) ?>/img/faculty-grp.jpg" alt="">
  102. </div>
  103. <p>
  104. 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.
  105. </p>
  106. <a href="/faculty/">
  107. <button class="primary-c">
  108. View complete faculty list
  109. </button>
  110. </a>
  111. </div>
  112. </section>
  113. <section class="container-fluid car" id="faculty-carousel">
  114. <div class="car-buttons">
  115. <button class="car-control primary-c" id="prev-car" onclick="scrollToPrev()">
  116. >
  117. </button>
  118. <button class="car-control primary-c" id="next-car" onclick="scrollToNext()">
  119. >
  120. </button>
  121. </div>
  122. <div class="profile-carousel">
  123. <?php
  124. $args = array(
  125. 'post_type' => 'faculty',
  126. 'posts_per_page' => 10,
  127. //'post__not_in' => array(get_the_ID()),
  128. 'orderby' => 'date',
  129. 'order' => 'DESC',
  130. );
  131. $query = new WP_Query($args);
  132. if ($query->have_posts()) :
  133. while ($query->have_posts()) : $query->the_post();
  134. $login_id_e = "";
  135. $auth_token = get_field('auth_token', 'option');
  136. $client_id = get_field('client_id', 'option');
  137. $employee_info_api = get_field('employee_info_api', 'option');
  138. if (function_exists('get_field')) {
  139. $pid_content = get_post();
  140. if (has_blocks($pid_content)) {
  141. $blocks = parse_blocks($pid_content->post_content);
  142. foreach ($blocks as $block) {
  143. if ($block["blockName"] == "acf/faculty-member") {
  144. // $FullName = $block['login_id_e'];
  145. $login_id_e = $block["attrs"]["data"]["login_id"];
  146. // $Designation = $block["attrs"]["data"];
  147. }
  148. }
  149. }
  150. };
  151. $response_employeeInfo = wp_remote_post(
  152. $employee_info_api,
  153. array(
  154. 'body' => array(
  155. 'user_login_id' => $client_id,
  156. 'login_id' => $login_id_e,
  157. 'auth_token' => $auth_token
  158. )
  159. )
  160. );
  161. $employeeInfo = json_decode(wp_remote_retrieve_body($response_employeeInfo), true);
  162. $Title = $employeeInfo[0]['Title'];
  163. $FullName = $Title . ' ' . $employeeInfo[0]['FullName'];
  164. $Designation = $employeeInfo[0]['Designation'] . ', ' . $employeeInfo[0]['Office'];
  165. ?>
  166. <div class="car-item">
  167. <div class="car-item-holder">
  168. <div class="car-img-holder">
  169. <img src="<?php the_field('profile_photo') ?>" alt="">
  170. </div>
  171. <a class="faculty-name" href="<?php echo get_the_permalink(); ?>">
  172. <div class="faculty-details">
  173. <h2><?php echo $FullName; ?><span class="degree"><?php if ($Title == "Dr.") {
  174. echo ', PhD';
  175. } ?></span></h2>
  176. <h3><span class="degree"><?php echo $Designation; ?></span></h3>
  177. </div>
  178. </a>
  179. </div>
  180. </div>
  181. <?php
  182. endwhile;
  183. else :
  184. echo '<div class="no-post-found">No faculty profile has found! </div>';
  185. endif; ?>
  186. </div>
  187. </section>
  188. <section id="Success-section" class="container-fluid white-bg">
  189. <div class="container">
  190. <h1>Success Stories</h1>
  191. <p>
  192. 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.
  193. </p>
  194. </div>
  195. <div class="container">
  196. <div id="us-imgs" class="grid student-stories">
  197. <?php
  198. $args = array(
  199. 'post_type' => 'success_story',
  200. 'posts_per_page' => 3,
  201. //'post__not_in' => array(get_the_ID()),
  202. 'orderby' => 'date',
  203. 'order' => 'DESC',
  204. );
  205. $query = new WP_Query($args);
  206. if ($query->have_posts()) :
  207. while ($query->have_posts()) :
  208. $query->the_post(); ?>
  209. <div>
  210. <div class="img-cont">
  211. <img src="<?php the_field('profile_image'); ?>" alt="">
  212. </div>
  213. <div>
  214. <h2><?php echo get_the_title() ?></h2>
  215. <h5><?php the_field('student_designation'); ?></h5>
  216. <p>
  217. <?php the_excerpt(); ?>
  218. </p>
  219. <a href="<?php echo get_the_permalink() ?>">Learn more</a>
  220. </div>
  221. </div>
  222. <?php
  223. endwhile;
  224. else :
  225. echo '<div class="no-post-found">No success story has found! </div>';
  226. endif; ?>
  227. </div>
  228. <div>
  229. <h1>Notable Alumni</h1>
  230. <p>
  231. Pellentesque est est, luctus non iaculis sed, congue non diam. In efficitur gravida ipsum vitae finibus. Etiam sollicitudin placerat leo.
  232. </p>
  233. </div>
  234. <a href="/alumni/">
  235. <button class="primary-c">
  236. View complete Alumni list
  237. </button>
  238. </a>
  239. </div>
  240. </section>
  241. <section class="container-fluid car" id="alumni-carousel">
  242. <div class="car-buttons">
  243. <button class="car-control primary-c" onclick="scrollToPrevAl()">
  244. < </button>
  245. <button class="car-control primary-c" onclick="scrollToNextAl()">
  246. >
  247. </button>
  248. </div>
  249. <div class="profile-carousel">
  250. <?php
  251. $args = array(
  252. 'post_type' => 'alumni',
  253. 'posts_per_page' => 10,
  254. //'post__not_in' => array(get_the_ID()),
  255. 'orderby' => 'date',
  256. 'order' => 'DESC',
  257. );
  258. $query = new WP_Query($args);
  259. if ($query->have_posts()) :
  260. while ($query->have_posts()) :
  261. $query->the_post(); ?>
  262. <div class="car-item">
  263. <div class="car-item-holder">
  264. <div class="car-img-holder">
  265. <img src="<?php the_field('profile_photo'); ?>" alt="">
  266. </div>
  267. <a class="faculty-name" href="<?php echo get_the_permalink(); ?>">
  268. <div class="faculty-details">
  269. <h2><?php echo get_the_title(); ?></h2>
  270. <h3><span class="degree"><?php the_field('alumni_designation'); ?></span></h3>
  271. </div>
  272. </a>
  273. </div>
  274. </div>
  275. <?php
  276. endwhile;
  277. else :
  278. echo '<div class="no-post-found">No alumni has found! </div>';
  279. endif; ?>
  280. </div>
  281. </section>
  282. <section id="dept-notices" class="container-fluid mid-roll">
  283. <div class="bg-tint">
  284. <div class="container">
  285. <h1>Department Notices</h1>
  286. <div class="notice-main">
  287. <?php
  288. $args = array(
  289. 'post_type' => 'notice',
  290. 'posts_per_page' => 5,
  291. 'orderby' => 'date',
  292. 'order' => 'DESC',
  293. );
  294. $query = new WP_Query($args);
  295. if ($query->have_posts()) :
  296. while ($query->have_posts()) :
  297. $query->the_post();
  298. $custom_date_full = get_the_date('M jS, Y');
  299. $custom_date_min = explode(', ', $custom_date_full);
  300. $custom_date_array = explode(' ', $custom_date_min[0]);
  301. ?>
  302. <a href="<?php echo get_the_permalink(); ?>">
  303. <div class="notice-container">
  304. <div class="event-date">
  305. <h3><?php echo $custom_date_array[0] ?></h3>
  306. <h3><?php echo $custom_date_array[1] ?></h3>
  307. </div>
  308. <div>
  309. <h6><span class="subtitle"><?php echo get_the_date(); ?></span></h6>
  310. <h4><?php echo get_the_title(); ?></h4>
  311. <p>Maecenas sed enim ut sem viverra aliquet. Neque laoreet suspendisse interdum consectetur.</p>
  312. </div>
  313. </div>
  314. </a>
  315. <?php
  316. endwhile;
  317. else :
  318. echo '<div class="no-post-found">No event has found! </div>';
  319. endif; ?>
  320. <a href="/notice/">
  321. <button>View All Notices</button>
  322. </a>
  323. </div>
  324. </div>
  325. </div>
  326. </section>
  327. <section id="dept-news" class="container-fluid white-bg">
  328. <div class="container">
  329. <h1>Department News</h1>
  330. <p>
  331. Catch up with what's happening at the Department of CSE
  332. </p>
  333. <div class="news-row">
  334. <div class="news-big-img">
  335. <div class="news-big-img-holder">
  336. <img src="<?php echo (get_template_directory_uri()) ?>/img/campus_05.jpg" alt="">
  337. </div>
  338. <div class="news-big-img-text">
  339. <h5>28th March, 2016</h5>
  340. <h4> <a href=""> Seminar</a></h4>
  341. <a href="">
  342. <p>Development and Mining of a Volatile Organic Compound Database</p>
  343. </a>
  344. </div>
  345. </div>
  346. <div class="news-small-img">
  347. <div class="news-sm-img-holder">
  348. <img src="<?php echo (get_template_directory_uri()) ?>/img/campus_05.jpg" alt="">
  349. </div>
  350. <div class="news-sm-img-text">
  351. <h5>28th March, 2016</h5>
  352. <h4> <a href=""> Seminar</a></h4>
  353. <a href="">
  354. <p>Development and Mining of a Volatile Compounds</p>
  355. </a>
  356. </div>
  357. </div>
  358. <div class="news-small-img">
  359. <div class="news-sm-img-holder">
  360. <img src="<?php echo (get_template_directory_uri()) ?>/img/campus_01.jpg" alt="">
  361. </div>
  362. <div class="news-sm-img-text">
  363. <h5>28th March, 2016</h5>
  364. <h4> <a href=""> Seminar</a></h4>
  365. <a href="">
  366. <p>Development and Mining of a Volatile Compounds</p>
  367. </a>
  368. </div>
  369. </div>
  370. <div class="news-small-img">
  371. <div class="news-sm-img-holder">
  372. <img src="<?php echo (get_template_directory_uri()) ?>/img/campus_05.jpg" alt="">
  373. </div>
  374. <div class="news-sm-img-text">
  375. <h5>28th March, 2016</h5>
  376. <h4> <a href=""> Seminar</a></h4>
  377. <a href="">
  378. <p>Development and Mining of a Volatile Compounds</p>
  379. </a>
  380. </div>
  381. </div>
  382. <div class="news-small-img">
  383. <div class="news-sm-img-holder">
  384. <img src="<?php echo (get_template_directory_uri()) ?>/img/campus_01.jpg" alt="">
  385. </div>
  386. <div class="news-sm-img-text">
  387. <h5>28th March, 2016</h5>
  388. <h4> <a href=""> Seminar</a></h4>
  389. <a href="">
  390. <p>Development and Mining of a Volatile Compounds</p>
  391. </a>
  392. </div>
  393. </div>
  394. <div class="news-big-img">
  395. <div class="news-big-img-holder">
  396. <img src="<?php echo (get_template_directory_uri()) ?>/img/campus_05.jpg" alt="">
  397. </div>
  398. <div class="news-big-img-text">
  399. <h5>28th March, 2016</h5>
  400. <h4> <a href=""> Seminar</a></h4>
  401. <a href="">
  402. <p>Development and Mining of a Volatile Organic Compound Database</p>
  403. </a>
  404. </div>
  405. </div>
  406. </div>
  407. <a href="/news/">
  408. <button class="primary-c">View All News</button> </a>
  409. </div>
  410. </section>
  411. <section id="events" class="container-fluid mid-roll">
  412. <div class="bg-tint">
  413. <div class="container">
  414. <h1>Upcoming Events</h1>
  415. <div class="grid">
  416. <?php
  417. $args = array(
  418. 'post_type' => 'event',
  419. 'posts_per_page' => 5,
  420. //'post__not_in' => array(get_the_ID()),
  421. 'orderby' => 'date',
  422. 'order' => 'DESC',
  423. );
  424. $query = new WP_Query($args);
  425. if ($query->have_posts()) :
  426. while ($query->have_posts()) :
  427. $query->the_post(); ?>
  428. <div class="event-holder">
  429. <div class="event-img-holder">
  430. <img src="<?php echo get_the_post_thumbnail_url(); ?>" alt="">
  431. </div>
  432. <div class="event-date primary-c">
  433. <h3><?php the_field('event_date_start'); ?></h3>
  434. </div>
  435. <div class="event-details">
  436. <a href="">
  437. <h3><?php echo get_the_title(); ?></h3>
  438. <h2><?php the_field('event_venue'); ?></h2>
  439. </a>
  440. </div>
  441. </div>
  442. <?php
  443. endwhile;
  444. else :
  445. echo '<div class="no-post-found">No event has found! </div>';
  446. endif; ?>
  447. </div>
  448. <a href="/event/">
  449. <button class="primary-c">View all events</button>
  450. </a>
  451. </div>
  452. </div>
  453. </section>
  454. <section id="research-grants" class="white-bg">
  455. <div class="container">
  456. <h1>Research &amp; Grants</h1>
  457. <p>Maecenas sed enim ut sem viverra aliquet. Neque laoreet suspendisse interdum consectetur.
  458. Mus mauris vitae ultricies leo integer malesuada nunc vel. Mus mauris vitae ultricies leo integer malesuada nunc vel.
  459. </p>
  460. <div id="research-pointers" class="grid">
  461. <div>
  462. <h3>32 Research Projects</h3>
  463. <p>Spread across Undergraduate and Graduate Programs</p>
  464. </div>
  465. <div>
  466. <h3>Tk 5 Crores in grants</h3>
  467. <p>Spread across Undergraduate and Graduate Programs</p>
  468. </div>
  469. <div>
  470. <h3>32 Research Projects</h3>
  471. <p>Spread across Undergraduate and Graduate Programs</p>
  472. </div>
  473. </div>
  474. </div>
  475. </section>
  476. </div>
  477. </main><!-- #main -->
  478. <!-- </div> .row -->
  479. <!-- </div>.container -->
  480. <?php get_footer(); ?>