Initial Commit
This commit is contained in:
76
home-parts/hero-section.php
Normal file
76
home-parts/hero-section.php
Normal file
@@ -0,0 +1,76 @@
|
||||
|
||||
<div class="banner v__2">
|
||||
<div class="banner__wrapper">
|
||||
<div class="hp-hero__video-container position-relative">
|
||||
<?php
|
||||
$intro_query = new WP_Query([
|
||||
'post_type' => 'introduction',
|
||||
'posts_per_page' => 1,
|
||||
'post_status' => 'publish'
|
||||
]);
|
||||
|
||||
if ($intro_query->have_posts()) :
|
||||
while ($intro_query->have_posts()) : $intro_query->the_post();
|
||||
|
||||
$intro_video = get_field('introduction_video');
|
||||
|
||||
if ($intro_video) :
|
||||
?>
|
||||
<video
|
||||
class="hp-hero__video"
|
||||
muted
|
||||
loop
|
||||
playsinline
|
||||
preload="metadata"
|
||||
autoplay
|
||||
>
|
||||
<source
|
||||
src="<?php echo esc_url($intro_video['url']); ?>"
|
||||
type="<?php echo esc_attr($intro_video['mime_type']); ?>"
|
||||
>
|
||||
</video>
|
||||
<?php
|
||||
endif;
|
||||
|
||||
endwhile;
|
||||
wp_reset_postdata();
|
||||
endif;
|
||||
?>
|
||||
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="banner__slides--container banner__height">
|
||||
<div class="banner__slides--content ">
|
||||
<div class="banner__slides--content--sub">
|
||||
|
||||
Welcome to
|
||||
</div>
|
||||
|
||||
<h1 class="banner__slides--content--title">
|
||||
<img
|
||||
src="https://www.eemc.edu.np/uploads/sliders/1729053855.svg"
|
||||
alt="cap"
|
||||
>
|
||||
South City College of Science And Technology
|
||||
</h1>
|
||||
|
||||
<a
|
||||
href="./aboutpage.html"
|
||||
class="rts-theme-btn btn-arrow"
|
||||
>
|
||||
Learn More
|
||||
<span>
|
||||
<i class="bi bi-arrow-up-right"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user