관리-도구
편집 파일: home_page.php
<?php $this->load->view("layouts/header"); ?> <!-- Slider --> <?php if (!empty($homepagesliders)) { ?> <div class="container-fluid"> <div class="row slider"> <?php foreach ($homepagesliders as $slider) { ?> <div> <div class="th-slider" style="background-image: url('<?php echo base_url() ?>assets/images/<?php echo $slider->homepageslider_image; ?>');"> <?php // var_dump($slider); ?> <?php if(!empty(trim($slider->homepageslider_primarytext)) || !empty(trim($slider->homepageslider_secondarytext)) ){ echo '<div class="th-hero-image-contents-slider"> <div class="th-hero-image-contents">'; if(!empty(trim($slider->homepageslider_primarytext))){ ?> <div class="row1 px-5"><h1 class="homesliderheader"><?php echo $slider->homepageslider_primarytext; ?></h1></div> <?php } if(!empty(trim($slider->homepageslider_secondarytext))){ ?> <div class="row2 px-5 text-center "><h3 class="homeslidersubheader"><?php echo $slider->homepageslider_secondarytext; ?></h3></div> <?php } echo '</div></div>'; } ?> </div> </div> <?php } ?> </div> </div> <?php } ?> <!-- Slider End --> <!-- NOTIFICATION --> <?php if(!empty($this->session->userdata("general_settings")->notification)){ ?> <div class="container-fluid"> <div class="row align-items-center justify-content-around"> <div class="col-12 th-bg-blue"> <?php echo '<div class="text-center py-2 text-white">'.$this->session->userdata("general_settings")->notification.'</div>'; ?> </div> </div> </div> <?php } ?> <!-- NOTIFICATION --> <!-- About us --> <?php // var_dump($mission[0]); ?> <div class="container py-5"> <div class="row align-items-center justify-content-around"> <div class="col-md-5 col-xl-6 mb-4 mb-md-0"> <img src="<?php echo base_url() ?>assets/images/<?php echo $mission[0]->page_image; ?>" class=" about-img "> </div> <div class="col-md-7 col-xl-6"> <div class="row justify-content-center"> <div class="col-xl-10"> <span class="badge">Our Mission</span> <div class="my-3"> <span class="h1"> <?php echo $mission[0]->mission_title; ?></span> </div> <?php echo $mission[0]->mission_content; ?> </div> </div> </div> </div> </div> <!-- about us end --> <!--news--> <?php if (!empty($news)) { ?> <div class="container shadow-sm bg-white rounded-lg pt-3 px-5 py-0 mb-4"> <div class="row my-4"> <div class="col-8"> <h3 class="th-lato th-28 th-bold th-blue">Latest News</h3> </div> <?php if(count($news)>1){ ?> <div class="col-4 justify-content-end text-right" id="slider-overhead-btn"> <button type="button" class="btn shadow-sm th-btn-slider prevp"><img src="<?php echo base_url() ?>assets/img/back.svg"></button> <button type="button" class="btn shadow-sm th-btn-slider nextp"><img src="<?php echo base_url() ?>assets/img/arrow.svg"></button> </div> <?php } ?> </div> <?php if(count($news)==1){ ?> <div class="row"> <?php foreach ($news as $singlenews) { ?> <div class="col-lg-12 col-12 py-2"> <div class="th-news-card th-event-card-frame transition-3d-hover mb-5"> <div class="th-event-card-body p-4"> <div class="row align-items-center "> <div class="col-lg-7 col-12 pb-3"> <h4 class="h5 th-blue"> <?= $singlenews->news_title ?> </h4> <p class="th-txt-truncate-3"><?= strip_tags($singlenews->news_content) ?></p> <button class="th-btn-blue px-5" onclick="location.href='<?php echo base_url() ?>news/view/<?php echo $singlenews->news_id; ?>'">Know more</button> </div> <div class="col-lg-5 col-12"> <div class="hero-image" style="background-image: url(<?php echo base_url(); ?>assets/images/<?= $singlenews->news_image; ?>);"></div> </div> </div> </div> </div> </div> <?php } ?> </div> <?php }else{ ?> <div class="row news-slider"> <?php foreach ($news as $singlenews) { ?> <div class="col-lg-6 col-12 py-2"> <div class="th-news-card th-event-card-frame transition-3d-hover mb-5"> <div class="th-event-card-body p-4"> <div class="row align-items-center "> <div class="col-lg-7 col-12 pb-3"> <h4 class="h5 th-blue"> <?= $singlenews->news_title ?> </h4> <p class="th-txt-truncate-3"><?= strip_tags($singlenews->news_content) ?></p> <button class="th-btn-blue px-5" onclick="location.href='<?php echo base_url() ?>news/view/<?php echo $singlenews->news_id; ?>'">Know more</button> </div> <div class="col-lg-5 col-12"> <div class="hero-image" style="background-image: url(<?php echo base_url(); ?>assets/images/<?= $singlenews->news_image; ?>);"></div> </div> </div> </div> </div> </div> <?php } ?> </div> <?php } ?> <?php if ($news_count > 6) { ?> <div class="row pb-5"> <div class="col-lg-12 text-center "> <button class="th-btn-blue px-5" onclick="location.href='<?php echo base_url() ?>news/'">More News</button> </div> </div> <?php } ?> </div> <?php } ?> <!-- //news end--> <!-- Stats counter --> <div class="container-fluid mt-3"><div class="row py-1 th-bg-blue th-opacity"></div></div> <section id="counter-stats" class="wow fadeInRight pt-5" data-wow-duration="1.4s"> <div class="container"> <div class="row"> <div class="col-lg-4 stats p-4" > <!-- <i class="fa fa-graduation-cap" aria-hidden="true"></i> --> <img src="<?php echo base_url() ?>assets/images/student.svg" width="60px" > <div class="counting" data-count="<?php echo $this->session->userdata("general_settings")->count_students; ?>">0</div> <h5>NUMBER OF STUDENTS</h5> </div> <div class="col-lg-4 stats p-4" > <img src="<?php echo base_url() ?>assets/images/teacher.svg" width="60px" > <div class="counting" data-count="<?php echo $this->session->userdata("general_settings")->count_teachers; ?>">0</div> <h5>NUMBER OF TEACHERS</h5> </div> <div class="col-lg-4 stats p-4" > <img src="<?php echo base_url() ?>assets/images/staff.svg" width="60px" > <div class="counting" data-count="<?php echo $this->session->userdata("general_settings")->count_staff; ?>">0</div> <h5>NUMBER OF STAFF</h5> </div> </div> <!-- end row --> </div> <!-- end container --> </section> <div class="container-fluid"><div class="row py-1 th-bg-blue th-opacity"></div></div> <!-- end cont stats --> <!-- //Event--> <?php if (!empty($events)) { ?> <div class="container pt-5"> <div class="row"> <div class="col-12 text-center pb-5"> <h3 class="th-28 th-blue">Events</h3> </div> </div> <?php if(count($events)==1){ ?> <div class="row"> <?php foreach ($events as $singleevent) { ?> <div class="col-lg-12 col-12"> <a href="<?php echo base_url() ?>events/view/<?php echo $singleevent->events_id; ?>" style="text-decoration:none;color:inherit;"> <div class="th-event-card th-event-card-frame transition-3d-hover mb-5"> <div class="th-event-card-body p-4"> <div class="row align-items-center "> <div class="col-lg-7 col-12 pb-3"> <h4 class="h5 th-blue"> <?php echo $singleevent->events_title; ?> </h4> <h2> <?php echo date("M d, Y",$singleevent->events_start_datetime_stamp); ?></h2> <p class="th-txt-truncate-2"> <?php echo strip_tags($singleevent->events_content); ?></p> </div> <div class="col-lg-5 col-12"> <div class="hero-image" style="background-image: url(<?php echo base_url(); ?>assets/images/<?= $singleevent->events_image; ?>);"></div> </div> </div> </div> </div> </a> </div> <?php } ?> </div> <?php }else{ ?> <div class="row"> <?php foreach ($events as $singleevent) { ?> <div class="col-lg-6 col-12"> <a href="<?php echo base_url() ?>events/view/<?php echo $singleevent->events_id; ?>" style="text-decoration:none;color:inherit;"> <div class="th-event-card th-event-card-frame transition-3d-hover mb-5"> <div class="th-event-card-body p-4"> <div class="row align-items-center "> <div class="col-lg-7 col-12 pb-3"> <h4 class="h5 th-blue"> <?php echo $singleevent->events_title; ?> </h4> <h2> <?php echo date("M d, Y",$singleevent->events_start_datetime_stamp); ?></h2> <p class="th-txt-truncate-2"> <?php echo strip_tags($singleevent->events_content); ?></p> </div> <div class="col-lg-5 col-12"> <div class="hero-image" style="background-image: url(<?php echo base_url(); ?>assets/images/<?= $singleevent->events_image; ?>);"></div> </div> </div> </div> </div> </a> </div> <?php } ?> </div><?php } ?> <?php if ($events_count > 4) { ?> <div class="row pb-5"> <div class="col-lg-12 text-center "> <button class="th-btn-blue px-5" onclick="location.href='<?php echo base_url() ?>events/'">More Events</button> </div> </div> <?php } ?> </div> <?php } ?> <!-- Mobile App --> <?php if (trim($this->session->userdata("general_settings")->mobileAppLink) != "") { ?> <div class="container-fluid mt-3"><div class="row py-1 th-bg-blue th-opacity"></div></div> <section id="counter-stats" class="wow fadeInRight pt-2" data-wow-duration="1.4s"> <div class="container"> <div class="row"> <div class="col-lg-12 stats p-4" > <h5 class="pb-2">Get <?php echo $this->session->userdata("general_settings")->name; ?> App from play store Now!!!</h5> <a href="<?php echo $this->session->userdata("general_settings")->mobileAppLink; ?>"> <img src="<?php echo base_url() ?>assets/images/playstore.png" width="200px" > </a> </div> <!--<?php if (trim($this->session->userdata("general_settings")->affiliationNumber) != "") { ?>--> <!--<li>Affiliation No: <?php echo $this->session->userdata("general_settings")->affiliationNumber; ?></li>--> <!--<?php } ?>--> </div> <!-- end row --> </div> <!-- end container --> </section> <div class="container-fluid"><div class="row py-1 th-bg-blue th-opacity"></div></div> <?php } ?> <!-- end Mobile App --> <!-- ---------------------- --> <?php $this->load->view("layouts/footer"); ?>