Commit dd1dbd15 by nabin kunwar

image description block

parent 86af3093
<?php if (get_field('enable_ti_section')) : ?>
<section class="container-fluid py-60 HOME HOMEPAGE-TOP-AFTER-CAROUSEL-SECTION">
<div class="container">
<?php if(have_rows('content')):
while(have_rows('content')):
the_row();?>
<div class="row">
<div class="col-lg-5 m-auto left-text-wrapper">
<div class="text-wrapper">
<h2><?php echo get_field('ti_title'); ?></h2>
<p><?php echo get_field('ti_subtitle'); ?>
</p>
<?php if (get_field('ti_button_text')) : ?>
<a href="<?php echo get_field('ti_button_link'); ?>"
class="btn btn-start-project-white"><?php echo get_field('ti_button_text'); ?>
<h2><?php the_sub_field('title') ?></h2>
<?php the_sub_field('subtitle');?>
<?php if ($link = get_sub_field('link')) : $link_target = $link['target'] ? $link['target'] : '_self';?>
<a href="<?php echo $link['url']; ?>"
class="btn btn-start-project-white" target="<?php echo esc_attr( $link_target ); ?>"><?php echo $link['title']; ?>
<svg xmlns="http://www.w3.org/2000/svg" width="25" height="24" viewBox="0 0 25 24" fill="none">
<path fill-rule="evenodd" clip-rule="evenodd"
d="M4.5 13L16.67 13L11.08 18.59L12.5 20L20.5 12L12.5 4L11.09 5.41L16.67 11L4.5 11L4.5 13Z"
......@@ -22,14 +24,15 @@
<div class="col-lg-5 m-auto right-image-wrapper">
<div class="image-wrapper">
<?php
$image = get_field('ti_featured_image');
$size = 'full'; // (thumbnail, medium, large, full or custom size)
$image = get_sub_field('image');
$size = 'full';
if ($image) {
echo wp_get_attachment_image($image, $size);
} ?>
</div>
</div>
</div>
<?php endwhile; endif;?>
</div>
</section>
<?php endif; ?>
\ No newline at end of file
<?php if(get_field('enable_section')):?>
<section class="analysis-section background-dark">
<div class="container">
<div class="row">
<div class="col-lg-7">
<?php if( $image = get_field('image')): echo wp_get_attachment_image($image,'full'); endif;?>
</div>
<div class="col-lg-5">
<div class="right-content-wrapper py-100">
<?php the_field('description');?>
</div>
</div>
</div>
</div>
</section>
<?php endif;?>
\ No newline at end of file
<?php if(get_field('enable_section')):?>
<section class="container-fluid HOME NOT-LISTED-SECTION py-60">
<div class="container">
<div class="row text-center justify-content-center">
<div class="col-lg-2 col-md-2">
<h5><?php the_field('title');?></h5>
</div>
<div class="col-lg-6 col-md-6">
<?php the_field('subtitle');?>
</div>
<?php if ($link = get_field('link')) : $link_target = $link['target'] ? $link['target'] : '_self';?>
<div class="col-lg-3 col-md-3">
<a href="<?php echo $link['url']; ?>" target="<?php echo esc_attr( $link_target ); ?>">
<button class="btn btn-start-project-white contact"><?php echo $link['title']; ?>
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd"
d="M4.5 13L16.67 13L11.08 18.59L12.5 20L20.5 12L12.5 4L11.09 5.41L16.67 11L4.5 11L4.5 13Z"
fill="white" />
</svg>
</button>
</a>
</div>
<?php endif;?>
</div>
</div>
</section>
<?php endif;?>
\ No newline at end of file
<?php if(get_field('enable_section')):?>
<section class="container-fluid py-80 HOME WHAT-WE-DO-SECTION">
<div class="container">
<div class="row">
<div class="col-lg-8 top-title">
<h2><?php the_field('title');?></h2>
<?php the_field('subtitle');?>
</div>
</div>
<div class="row">
<div class="col-lg-4">
<div class="card-wrapper p-40">
<img src="assets/img/c1.png" alt="">
<h4>Branding and Design</h4>
<div class="tags-wrapper">
<div class="tag">Logo</div>
<div class="tag">Brand Guidelines</div>
<div class="tag">Infographics</div>
<div class="tag">Packaging</div>
<div class="tag">Banner</div>
<div class="tag">Mockup</div>
<div class="tag">Icon</div>
<div class="tag">Booklet</div>
<div class="tag">Social Media</div>
<div class="tag">Booklet</div>
<div class="tag">Social Media</div>
</div>
</div>
</div>
<div class="col-lg-4">
<div class="card-wrapper p-40">
<img src="assets/img/c22.png" alt="">
<h4>Web & Mobile App Development</h4>
<div class="tags-wrapper">
<div class="tag">Logo</div>
<div class="tag">Brand Guidelines</div>
<div class="tag">Infographics</div>
<div class="tag">Packaging</div>
<div class="tag">Banner</div>
<div class="tag">Mockup</div>
<div class="tag">Icon</div>
<div class="tag">Booklet</div>
<div class="tag">Social Media</div>
<div class="tag">Booklet</div>
<div class="tag">Social Media</div>
</div>
</div>
</div>
<div class="col-lg-4">
<div class="card-wrapper p-40">
<img src="assets/img/c22.png" alt="">
<h4>Marketing and Promotions</h4>
<div class="tags-wrapper">
<div class="tag">Logo</div>
<div class="tag">Brand Guidelines</div>
<div class="tag">Infographics</div>
<div class="tag">Packaging</div>
<div class="tag">Banner</div>
<div class="tag">Mockup</div>
<div class="tag">Icon</div>
<div class="tag">Booklet</div>
<div class="tag">Social Media</div>
<div class="tag">Booklet</div>
<div class="tag">Social Media</div>
</div>
</div>
</div>
</div>
</div>
</section>
<?php endif; ?>
\ No newline at end of file
<?php
$link = $_SERVER['PHP_SELF'];
$link_array = explode('/', $link);
$page = end($link_array);
?>
<!DOCTYPE html>
<html lang="en">
......@@ -13,11 +7,8 @@ $page = end($link_array);
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="icon" type="image/x-icon"
href="<?php echo get_home_url(); ?>/wp-content/themes/mirai-global/assets/img/favicon.png">
<?php wp_head(); ?>
</head>
<body>
......
......@@ -17,7 +17,7 @@ function conserve_register_styles()
//import scripts
wp_enqueue_script('jquery', 'https://code.jquery.com/jquery-3.5.1.min.js', array(), null, true);
// wp_enqueue_script('jquery', 'https://code.jquery.com/jquery-3.5.1.min.js', array(), null, true);
wp_enqueue_script('bootstrap-scripts', 'https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.bundle.min.js', array(), null, true);
wp_enqueue_script('owl-carousel', 'https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/owl.carousel.min.js', array(), null, true);
wp_enqueue_script('waypoints', 'https://cdnjs.cloudflare.com/ajax/libs/waypoints/4.0.1/jquery.waypoints.min.js', array(), null, true);
......
......@@ -39,13 +39,61 @@ function my_acf_init_block_types()
));
// Text Image Block
acf_register_block_type(array(
'name' => 'Text Image Block',
'title' => __('Text Image Block'),
'description' => __('Text Image Block'),
'render_template' => 'blocks/text-image.php',
'name' => 'Our Information Section',
'title' => __('Our Information Section'),
'description' => __('Our Information Section'),
'render_template' => 'blocks/our-information-section.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Welcome Banner'),
'keywords' => array('Our Information Section'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
],
));
acf_register_block_type(array(
'name' => 'What we do Section',
'title' => __('What we do Section'),
'description' => __('What we do Section'),
'render_template' => 'blocks/what-we-do-section.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('What we do Section'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
],
));
acf_register_block_type(array(
'name' => 'Title CTA',
'title' => __('Title CTA'),
'description' => __('Title CTA'),
'render_template' => 'blocks/title-cta.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Title CTA'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
],
));
acf_register_block_type(array(
'name' => 'Right Image With Description',
'title' => __('Right Image With Description'),
'description' => __('Right Image With Description'),
'render_template' => 'blocks/right-image-description.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Right Image With Description'),
'example' => [
'attributes' => [
'mode' => 'preview',
......
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