Commit e43def48 by rajshah

single portfolio: captured moments worth sharing done

parent c2494c4c
...@@ -2,88 +2,63 @@ ...@@ -2,88 +2,63 @@
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-lg-5 col-xl-4 order-lg-2"> <div class="col-lg-5 col-xl-4 order-lg-2">
<?php if($image = get_field('image')): echo wp_get_attachment_image($image,'full'); endif;?> <?php if ($image = get_field('image')):
echo wp_get_attachment_image($image, 'full');
endif; ?>
</div> </div>
<div class="col-lg-7 col-xl-8 order-lg-1"> <div class="col-lg-7 col-xl-8 order-lg-1">
<div class="pc-content-box"> <div class="pc-content-box">
<?php echo get_field('description');?> <?php echo get_field('description'); ?>
<?php if(have_rows('stats')): ?> <?php if (have_rows('stats')): ?>
<div class="percentage-box"> <div class="percentage-box">
<div class="row"> <div class="row">
<?php while(have_rows('stats')): the_row();?> <?php while (have_rows('stats')):
the_row(); ?>
<div class="col-sm-6 col-lg-5 col-xl-4"> <div class="col-sm-6 col-lg-5 col-xl-4">
<div class="inner-wrapper"> <div class="inner-wrapper">
<span><?php the_sub_field('number');?></span> <span><?php the_sub_field('number'); ?></span>
<p><?php the_sub_field('title');?></p> <p><?php the_sub_field('title'); ?></p>
</div> </div>
</div> </div>
<?php endwhile;?> <?php endwhile; ?>
</div> </div>
</div> </div>
<?php endif;?> <?php endif; ?>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</section> </section>
<?php $cmws = get_field('cmws') ?: [];
<section class="moment-worth-sharing makura-new mb-100"> if (isset($cmws) && is_array($cmws) && !empty($cmws)):
$enable_cmws = $cmws['enable_cmws'];
if ($enable_cmws && isset($enable_cmws)):
$cmws_title = $cmws['cmws_title'] ?: '';
$cmws_desc = $cmws['cmws_desc'] ?: '';
$cmws_gal = $cmws['cmws_gal'] ?: [];
?>
<section class="moment-worth-sharing makura-new mb-100">
<div class="container"> <div class="container">
<?php if (!empty($cmws_title) || !empty($cmws_desc)): ?>
<div class="section-title slide-up"> <div class="section-title slide-up">
<h2>Captured Moments Worth Sharing</h2> <?php if (!empty($cmws_title)): ?>
<p>Showcasing visually striking designs that tell stories worth sharing.</p> <h2><?php echo $cmws_title; ?></h2><?php endif; ?>
<?php echo $cmws_desc ?: ''; ?>
</div> </div>
<?php endif; ?>
<?php if (!empty($cmws_gal) && is_array($cmws_gal)): ?>
<div class="gallery-grid slide-up"> <div class="gallery-grid slide-up">
<div class="gallery-item horizontal"> <?php foreach ($cmws_gal as $i => $gallery_item):
<a data-src="<?php echo get_parent_theme_file_uri()?>/assets/img/placeholder-10.png"> $img = $gallery_item['img'] ?: '';
<img src="<?php echo get_parent_theme_file_uri()?>/assets/img/placeholder-10.png" alt="" class="img-fluid"> $layout = $gallery_item['layout'] ?: '';
</a> $new = $layout[0];
</div> $class_name = !empty($layout) ? explode(':', $layout[0]) : 'none';
<div class="gallery-item"> $class_name = $class_name[0];?>
<a data-src="<?php echo get_parent_theme_file_uri()?>/assets/img/placeholder-11.png"> <div class="gallery-item <?php echo $class_name; ?>">
<img src="<?php echo get_parent_theme_file_uri()?>/assets/img/placeholder-11.png" alt="" class="img-fluid"> <a data-src="<?php echo esc_url($img); ?>">
</a> <img src="<?php echo esc_url($img); ?>" alt="" class="img-fluid">
</div> <?php if ($i === (count($cmws_gal) - 1)): ?><span><svg width="16" height="16" viewBox="0 0 16 16" fill="none"
<div class="gallery-item vertical"> xmlns="http://www.w3.org/2000/svg">
<a data-src="<?php echo get_parent_theme_file_uri()?>/assets/img/placeholder-16.png">
<img src="<?php echo get_parent_theme_file_uri()?>/assets/img/placeholder-16.png" alt="" class="img-fluid">
<span><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M4.78477 6.63253C5.80499 6.63253 6.63205 5.80548 6.63205 4.78526C6.63205 3.76504 5.80499 2.93799 4.78477 2.93799C3.76455 2.93799 2.9375 3.76504 2.9375 4.78526C2.9375 5.80548 3.76455 6.63253 4.78477 6.63253Z"
fill="white" />
<path
d="M4.78477 13.0617C5.80499 13.0617 6.63205 12.2347 6.63205 11.2145C6.63205 10.1942 5.80499 9.36719 4.78477 9.36719C3.76455 9.36719 2.9375 10.1942 2.9375 11.2145C2.9375 12.2347 3.76455 13.0617 4.78477 13.0617Z"
fill="white" />
<path
d="M11.2145 6.63253C12.2347 6.63253 13.0617 5.80548 13.0617 4.78526C13.0617 3.76504 12.2347 2.93799 11.2145 2.93799C10.1942 2.93799 9.36719 3.76504 9.36719 4.78526C9.36719 5.80548 10.1942 6.63253 11.2145 6.63253Z"
fill="white" />
<path
d="M11.2145 13.0617C12.2347 13.0617 13.0617 12.2347 13.0617 11.2145C13.0617 10.1942 12.2347 9.36719 11.2145 9.36719C10.1942 9.36719 9.36719 10.1942 9.36719 11.2145C9.36719 12.2347 10.1942 13.0617 11.2145 13.0617Z"
fill="white" />
</svg> View All
</span>
</a>
</div>
<div class="gallery-item">
<a data-src="<?php echo get_parent_theme_file_uri()?>/assets/img/placeholder-17.png">
<img src="<?php echo get_parent_theme_file_uri()?>/assets/img/placeholder-17.png" alt="" class="img-fluid">
</a>
</div>
<div class="gallery-item">
<a data-src="<?php echo get_parent_theme_file_uri()?>/assets/img/placeholder-14.png">
<img src="<?php echo get_parent_theme_file_uri()?>/assets/img/placeholder-14.png" alt="" class="img-fluid">
</a>
</div>
<div class="gallery-item horizontal">
<a data-src="<?php echo get_parent_theme_file_uri()?>/assets/img/placeholder-15.png">
<img src="<?php echo get_parent_theme_file_uri()?>/assets/img/placeholder-15.png" alt="" class="img-fluid">
</a>
</div>
<div class="gallery-item">
<a data-src="<?php echo get_parent_theme_file_uri()?>/assets/img/placeholder-11.png">
<img src="<?php echo get_parent_theme_file_uri()?>/assets/img/placeholder-11.png" alt="" class="img-fluid">
<span><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path <path
d="M4.78477 6.63253C5.80499 6.63253 6.63205 5.80548 6.63205 4.78526C6.63205 3.76504 5.80499 2.93799 4.78477 2.93799C3.76455 2.93799 2.9375 3.76504 2.9375 4.78526C2.9375 5.80548 3.76455 6.63253 4.78477 6.63253Z" d="M4.78477 6.63253C5.80499 6.63253 6.63205 5.80548 6.63205 4.78526C6.63205 3.76504 5.80499 2.93799 4.78477 2.93799C3.76455 2.93799 2.9375 3.76504 2.9375 4.78526C2.9375 5.80548 3.76455 6.63253 4.78477 6.63253Z"
fill="white" /> fill="white" />
...@@ -97,16 +72,18 @@ ...@@ -97,16 +72,18 @@
d="M11.2145 13.0617C12.2347 13.0617 13.0617 12.2347 13.0617 11.2145C13.0617 10.1942 12.2347 9.36719 11.2145 9.36719C10.1942 9.36719 9.36719 10.1942 9.36719 11.2145C9.36719 12.2347 10.1942 13.0617 11.2145 13.0617Z" d="M11.2145 13.0617C12.2347 13.0617 13.0617 12.2347 13.0617 11.2145C13.0617 10.1942 12.2347 9.36719 11.2145 9.36719C10.1942 9.36719 9.36719 10.1942 9.36719 11.2145C9.36719 12.2347 10.1942 13.0617 11.2145 13.0617Z"
fill="white" /> fill="white" />
</svg> View All </svg> View All
</span> </span><?php endif; ?>
</a> </a>
</div> </div>
<?php endforeach; ?>
</div> </div>
<?php endif; ?>
</div> </div>
</section> </section>
<?php endif; endif; ?>
<section class="quote PROJECT-CONCLUSION"> <section class="quote PROJECT-CONCLUSION">
<div class="container"> <div class="container">
<?php if($quote_text=get_field('quote_text')):?> <?php if ($quote_text = get_field('quote_text')): ?>
<div class="row justify-content-center"> <div class="row justify-content-center">
<div class="col-lg-10 col-xl-8 mx-auto"> <div class="col-lg-10 col-xl-8 mx-auto">
<div class="position-relative pt-40 pb-100 quote-text"> <div class="position-relative pt-40 pb-100 quote-text">
...@@ -117,10 +94,10 @@ ...@@ -117,10 +94,10 @@
fill="#005AFF" /> fill="#005AFF" />
</svg> </svg>
</div> </div>
<?php echo $quote_text;?> <?php echo $quote_text; ?>
</div> </div>
</div> </div>
</div> </div>
<?php endif;?> <?php endif; ?>
</div> </div>
</section> </section>
\ No newline at end of file
<section class="sticky-tab makura-new">
<div class="container">
<div class="st-content d-flex justify-content-between align-items-center">
<ul class="d-flex">
<li class="active">
<a href="#" data-target="graphics-design">Graphics Design</a>
</li>
<li>
<a href="#" data-target="ui-ux-design">UI/UX Design</a>
</li>
<li>
<a href="#" data-target="web-development">Web Development</a>
</li>
<li>
<a href="#" data-target="seo">SEO</a>
</li>
</ul>
<a href="#project-conclusion" class="mc-btn-underlined font-18 font-600 d-none d-md-inline-block">Scroll to
Conclusion <svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd"
d="M5.25 -9.26804e-07L5.25 9.1275L1.0575 4.935L1.12062e-06 6L6 12L12 6L10.9425 4.9425L6.75 9.1275L6.75 -6.46648e-07L5.25 -9.26804e-07Z"
fill="#121526" />
</svg>
</a>
</div>
</div>
</section>
<?php <?php
if(have_rows('content')): if(have_rows('content')):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment