Commit 944e317f by rajshah

registered banner block

parent 1ba9cc0c
<section class="bg-primary pb-60 PD-TOP-SECTION makura-new case-study-banner">
<div class="container">
<div class="row justify-content-between align-items-center">
<div class="col-lg-7 title-wrapper">
<div class="client-logo-wrapper d-none d-lg-block">
<?php if ($image = get_field('client_logo')):
echo wp_get_attachment_image($image, 'full');
endif; ?>
</div>
<div class="portfolio-detail-content-box pb-40">
<?php the_field('description'); ?>
</div>
<?php if ($link = get_field('link')):
$link_target = $link['target'] ? $link['target'] : '_self'; ?>
<a href="<?php echo $link['url']; ?>" target="_blank" class="open-in-new-tab d-none d-lg-inline-block">
<?php echo $link['title']; ?>
<svg width="17" height="17" viewBox="0 0 17 17" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M14.3379 4.552L2.8619 16.028L0.976562 14.1427L12.4512 2.66667H2.3379V0H17.0046V14.6667H14.3379V4.552Z"
fill="#005AFF" />
</svg>
</a>
<?php endif; ?>
</div>
<div class="col-lg-4 col-xl-3">
<div class="banner-counter">
<div class="counter-item">
<h2><span class="counter" data-reach="78">78</span>%</h2>
<p>increased in organic traffic</p>
</div>
<div class="counter-item">
<h2><span class="counter" data-reach="80">80</span>+</h2>
<p>keywords ranked under top 20 globally</p>
</div>
<div class="counter-item">
<h2><span class="counter" data-reach="96">96</span>%</h2>
<p>reduction on bounce rate</p>
</div>
</div>
</div>
</div>
<?php if ($link = get_field('link')):
$link_target = $link['target'] ? $link['target'] : '_self'; ?>
<a href="<?php echo $link['url']; ?>" target="_blank" class="open-in-new-tab d-lg-none">
<?php echo $link['title']; ?>
<svg width="17" height="17" viewBox="0 0 17 17" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M14.3379 4.552L2.8619 16.028L0.976562 14.1427L12.4512 2.66667H2.3379V0H17.0046V14.6667H14.3379V4.552Z"
fill="#005AFF" />
</svg>
</a>
<?php endif; ?>
</div>
</section>
\ No newline at end of file
<?php if(is_page("case-study-single")):?>
<section class="bg-primary pb-60 PD-TOP-SECTION makura-new case-study-banner">
<div class="container">
<div class="row justify-content-between align-items-center">
<div class="col-lg-7 title-wrapper">
<div class="client-logo-wrapper d-none d-lg-block">
<?php if ($image = get_field('client_logo')):
echo wp_get_attachment_image($image, 'full');
endif; ?>
</div>
<div class="portfolio-detail-content-box pb-40">
<?php the_field('description'); ?>
</div>
<?php if ($link = get_field('link')):
$link_target = $link['target'] ? $link['target'] : '_self'; ?>
<a href="<?php echo $link['url']; ?>" target="_blank" class="open-in-new-tab d-none d-lg-inline-block">
<?php echo $link['title']; ?>
<svg width="17" height="17" viewBox="0 0 17 17" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M14.3379 4.552L2.8619 16.028L0.976562 14.1427L12.4512 2.66667H2.3379V0H17.0046V14.6667H14.3379V4.552Z"
fill="#005AFF" />
</svg>
</a>
<?php endif; ?>
</div>
<div class="col-lg-4 col-xl-3">
<div class="banner-counter">
<div class="counter-item">
<h2><span class="counter" data-reach="78">78</span>%</h2>
<p>increased in organic traffic</p>
</div>
<div class="counter-item">
<h2><span class="counter" data-reach="80">80</span>+</h2>
<p>keywords ranked under top 20 globally</p>
</div>
<div class="counter-item">
<h2><span class="counter" data-reach="96">96</span>%</h2>
<p>reduction on bounce rate</p>
</div>
</div>
</div>
</div>
<?php if ($link = get_field('link')):
$link_target = $link['target'] ? $link['target'] : '_self'; ?>
<a href="<?php echo $link['url']; ?>" target="_blank" class="open-in-new-tab d-lg-none">
<?php echo $link['title']; ?>
<svg width="17" height="17" viewBox="0 0 17 17" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M14.3379 4.552L2.8619 16.028L0.976562 14.1427L12.4512 2.66667H2.3379V0H17.0046V14.6667H14.3379V4.552Z"
fill="#005AFF" />
</svg>
</a>
<?php endif; ?>
</div>
</section>
<?php else:?>
<section class="bg-primary pb-60 PD-TOP-SECTION makura-new"> <section class="bg-primary pb-60 PD-TOP-SECTION makura-new">
<div class="container"> <div class="container">
<div class="row justify-content-between"> <div class="row justify-content-between">
...@@ -62,48 +6,46 @@ ...@@ -62,48 +6,46 @@
<?php the_field('description'); ?> <?php the_field('description'); ?>
</div> </div>
<?php if ($link = get_field('link')): <?php if ($link = get_field('link')):
$link_target = $link['target'] ? $link['target'] : '_self'; ?> $link_target = $link['target'] ? $link['target'] : '_self'; ?>
<a href="<?php echo $link['url']; ?>" target="_blank" class="open-in-new-tab d-none d-lg-inline-block"> <a href="<?php echo $link['url']; ?>" target="_blank" class="open-in-new-tab d-none d-lg-inline-block">
<?php echo $link['title']; ?> <?php echo $link['title']; ?>
<svg width="17" height="17" viewBox="0 0 17 17" fill="none" xmlns="http://www.w3.org/2000/svg"> <svg width="17" height="17" viewBox="0 0 17 17" fill="none" xmlns="http://www.w3.org/2000/svg">
<path <path
d="M14.3379 4.552L2.8619 16.028L0.976562 14.1427L12.4512 2.66667H2.3379V0H17.0046V14.6667H14.3379V4.552Z" d="M14.3379 4.552L2.8619 16.028L0.976562 14.1427L12.4512 2.66667H2.3379V0H17.0046V14.6667H14.3379V4.552Z"
fill="#005AFF" /> fill="#005AFF" />
</svg> </svg>
</a> </a>
<?php endif; ?> <?php endif; ?>
</div> </div>
<div class="col-lg-4 col-xl-3"> <div class="col-lg-4 col-xl-3">
<div class="client-logo-wrapper d-none d-lg-block"> <div class="client-logo-wrapper d-none d-lg-block">
<?php if ($image = get_field('client_logo')): <?php if ($image = get_field('client_logo')):
echo wp_get_attachment_image($image, 'full'); echo wp_get_attachment_image($image, 'full');
endif; ?> endif; ?>
</div> </div>
<?php <?php
$sof_title = get_field('sof_title')?:'Scope of Work'; $sof_title = get_field('sof_title') ?: 'Scope of Work';
if ($scope = get_field('scope_of_work')): ?> if ($scope = get_field('scope_of_work')): ?>
<div class="scope-work-wrapper"> <div class="scope-work-wrapper">
<?php if (!empty($sof_title)): ?><span <?php if (!empty($sof_title)): ?><span
class="sm-text"><?php echo $sof_title; ?></span><?php endif; ?> class="sm-text"><?php echo $sof_title; ?></span><?php endif; ?>
<ul class="list-unstyled"> <ul class="list-unstyled">
<?php echo $scope; ?> <?php echo $scope; ?>
</ul> </ul>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>
</div> </div>
<?php if ($link = get_field('link')): <?php if ($link = get_field('link')):
$link_target = $link['target'] ? $link['target'] : '_self'; ?> $link_target = $link['target'] ? $link['target'] : '_self'; ?>
<a href="<?php echo $link['url']; ?>" target="_blank" class="open-in-new-tab d-lg-none"> <a href="<?php echo $link['url']; ?>" target="_blank" class="open-in-new-tab d-lg-none">
<?php echo $link['title']; ?> <?php echo $link['title']; ?>
<svg width="17" height="17" viewBox="0 0 17 17" fill="none" xmlns="http://www.w3.org/2000/svg"> <svg width="17" height="17" viewBox="0 0 17 17" fill="none" xmlns="http://www.w3.org/2000/svg">
<path <path
d="M14.3379 4.552L2.8619 16.028L0.976562 14.1427L12.4512 2.66667H2.3379V0H17.0046V14.6667H14.3379V4.552Z" d="M14.3379 4.552L2.8619 16.028L0.976562 14.1427L12.4512 2.66667H2.3379V0H17.0046V14.6667H14.3379V4.552Z"
fill="#005AFF" /> fill="#005AFF" />
</svg> </svg>
</a> </a>
<?php endif; ?> <?php endif; ?>
</div> </div>
</section> </section>
\ No newline at end of file
<?php endif;?>
\ No newline at end of file
...@@ -494,7 +494,7 @@ function my_acf_init_block_types() ...@@ -494,7 +494,7 @@ function my_acf_init_block_types()
'render_template' => 'blocks/about-us/employe-feel.php', 'render_template' => 'blocks/about-us/employe-feel.php',
'category' => 'formatting', 'category' => 'formatting',
'icon' => 'admin-comments', 'icon' => 'admin-comments',
'keywords' => array('Employe Feel Section'), 'keywords' => array('Employe Feel Section', 'makura'),
'example' => [ 'example' => [
'attributes' => [ 'attributes' => [
'mode' => 'preview', 'mode' => 'preview',
...@@ -510,7 +510,7 @@ function my_acf_init_block_types() ...@@ -510,7 +510,7 @@ function my_acf_init_block_types()
'render_template' => 'blocks/vacancy-listing.php', 'render_template' => 'blocks/vacancy-listing.php',
'category' => 'formatting', 'category' => 'formatting',
'icon' => 'admin-comments', 'icon' => 'admin-comments',
'keywords' => array('Vacancy Listing'), 'keywords' => array('Vacancy Listing', 'makura'),
'example' => [ 'example' => [
'attributes' => [ 'attributes' => [
'mode' => 'preview', 'mode' => 'preview',
...@@ -526,7 +526,7 @@ function my_acf_init_block_types() ...@@ -526,7 +526,7 @@ function my_acf_init_block_types()
'render_template' => 'blocks/contact-us/contact-details.php', 'render_template' => 'blocks/contact-us/contact-details.php',
'category' => 'formatting', 'category' => 'formatting',
'icon' => 'admin-comments', 'icon' => 'admin-comments',
'keywords' => array('Contact Details Section'), 'keywords' => array('Contact Details Section', 'makura'),
'example' => [ 'example' => [
'attributes' => [ 'attributes' => [
'mode' => 'preview', 'mode' => 'preview',
...@@ -541,7 +541,7 @@ function my_acf_init_block_types() ...@@ -541,7 +541,7 @@ function my_acf_init_block_types()
'render_template' => 'blocks/contact-us/contact-form.php', 'render_template' => 'blocks/contact-us/contact-form.php',
'category' => 'formatting', 'category' => 'formatting',
'icon' => 'admin-comments', 'icon' => 'admin-comments',
'keywords' => array('Contact Form Section'), 'keywords' => array('Contact Form Section', 'form', 'makura'),
'example' => [ 'example' => [
'attributes' => [ 'attributes' => [
'mode' => 'preview', 'mode' => 'preview',
...@@ -557,7 +557,7 @@ function my_acf_init_block_types() ...@@ -557,7 +557,7 @@ function my_acf_init_block_types()
'render_template' => 'blocks/contact-us/map-section.php', 'render_template' => 'blocks/contact-us/map-section.php',
'category' => 'formatting', 'category' => 'formatting',
'icon' => 'admin-comments', 'icon' => 'admin-comments',
'keywords' => array('Map Section'), 'keywords' => array('Map Section', 'map', 'contact', 'makura'),
'example' => [ 'example' => [
'attributes' => [ 'attributes' => [
'mode' => 'preview', 'mode' => 'preview',
...@@ -573,7 +573,7 @@ function my_acf_init_block_types() ...@@ -573,7 +573,7 @@ function my_acf_init_block_types()
'render_template' => 'blocks/portfolio-listing-section.php', 'render_template' => 'blocks/portfolio-listing-section.php',
'category' => 'formatting', 'category' => 'formatting',
'icon' => 'admin-comments', 'icon' => 'admin-comments',
'keywords' => array('Portfolio Listing Section'), 'keywords' => array('Portfolio Listing Section', 'makura'),
'example' => [ 'example' => [
'attributes' => [ 'attributes' => [
'mode' => 'preview', 'mode' => 'preview',
...@@ -589,7 +589,7 @@ function my_acf_init_block_types() ...@@ -589,7 +589,7 @@ function my_acf_init_block_types()
'render_template' => 'blocks/about-us/stat-section.php', 'render_template' => 'blocks/about-us/stat-section.php',
'category' => 'formatting', 'category' => 'formatting',
'icon' => 'admin-comments', 'icon' => 'admin-comments',
'keywords' => array('About Us Stat Section'), 'keywords' => array('About Us Stat Section', 'makura'),
'example' => [ 'example' => [
'attributes' => [ 'attributes' => [
'mode' => 'preview', 'mode' => 'preview',
...@@ -605,7 +605,7 @@ function my_acf_init_block_types() ...@@ -605,7 +605,7 @@ function my_acf_init_block_types()
'render_template' => 'blocks/service-list-section.php', 'render_template' => 'blocks/service-list-section.php',
'category' => 'formatting', 'category' => 'formatting',
'icon' => 'admin-comments', 'icon' => 'admin-comments',
'keywords' => array('Service List Section'), 'keywords' => array('Service List Section', 'makura'),
'example' => [ 'example' => [
'attributes' => [ 'attributes' => [
'mode' => 'preview', 'mode' => 'preview',
...@@ -621,7 +621,7 @@ function my_acf_init_block_types() ...@@ -621,7 +621,7 @@ function my_acf_init_block_types()
'render_template' => 'blocks/service-content-list-section.php', 'render_template' => 'blocks/service-content-list-section.php',
'category' => 'formatting', 'category' => 'formatting',
'icon' => 'admin-comments', 'icon' => 'admin-comments',
'keywords' => array('Service Content List Section'), 'keywords' => array('Service Content List Section', 'makura'),
'example' => [ 'example' => [
'attributes' => [ 'attributes' => [
'mode' => 'preview', 'mode' => 'preview',
...@@ -637,7 +637,7 @@ function my_acf_init_block_types() ...@@ -637,7 +637,7 @@ function my_acf_init_block_types()
'render_template' => 'blocks/new-service-content-list-section.php', 'render_template' => 'blocks/new-service-content-list-section.php',
'category' => 'formatting', 'category' => 'formatting',
'icon' => 'admin-comments', 'icon' => 'admin-comments',
'keywords' => array('New Service Content List Section'), 'keywords' => array('New Service Content List Section', 'makura'),
'example' => [ 'example' => [
'attributes' => [ 'attributes' => [
'mode' => 'preview', 'mode' => 'preview',
...@@ -653,7 +653,7 @@ function my_acf_init_block_types() ...@@ -653,7 +653,7 @@ function my_acf_init_block_types()
'render_template' => 'blocks/service-work-process-section.php', 'render_template' => 'blocks/service-work-process-section.php',
'category' => 'formatting', 'category' => 'formatting',
'icon' => 'admin-comments', 'icon' => 'admin-comments',
'keywords' => array('Service Work Process Section'), 'keywords' => array('Service Work Process Section', 'makura'),
'example' => [ 'example' => [
'attributes' => [ 'attributes' => [
'mode' => 'preview', 'mode' => 'preview',
...@@ -668,7 +668,7 @@ function my_acf_init_block_types() ...@@ -668,7 +668,7 @@ function my_acf_init_block_types()
'render_template' => 'blocks/service-portfolio-list-section.php', 'render_template' => 'blocks/service-portfolio-list-section.php',
'category' => 'formatting', 'category' => 'formatting',
'icon' => 'admin-comments', 'icon' => 'admin-comments',
'keywords' => array('Service Portfolio List Section'), 'keywords' => array('Service Portfolio List Section', 'makura'),
'example' => [ 'example' => [
'attributes' => [ 'attributes' => [
'mode' => 'preview', 'mode' => 'preview',
...@@ -683,7 +683,7 @@ function my_acf_init_block_types() ...@@ -683,7 +683,7 @@ function my_acf_init_block_types()
'render_template' => 'blocks/contact-us/contact-breadcrumb.php', 'render_template' => 'blocks/contact-us/contact-breadcrumb.php',
'category' => 'formatting', 'category' => 'formatting',
'icon' => 'admin-comments', 'icon' => 'admin-comments',
'keywords' => array('Contact Us Breadcrumb'), 'keywords' => array('Contact Us Breadcrumb', 'makura'),
'example' => [ 'example' => [
'attributes' => [ 'attributes' => [
'mode' => 'preview', 'mode' => 'preview',
...@@ -699,7 +699,7 @@ function my_acf_init_block_types() ...@@ -699,7 +699,7 @@ function my_acf_init_block_types()
'render_template' => 'blocks/seo/hero.php', 'render_template' => 'blocks/seo/hero.php',
'category' => 'formatting', 'category' => 'formatting',
'icon' => file_get_contents(get_template_directory() . '/assets/img/makura.svg'), 'icon' => file_get_contents(get_template_directory() . '/assets/img/makura.svg'),
'keywords' => array('Hero Section'), 'keywords' => array('Hero Section', 'makura'),
'example' => [ 'example' => [
'attributes' => [ 'attributes' => [
'mode' => 'preview', 'mode' => 'preview',
...@@ -715,7 +715,7 @@ function my_acf_init_block_types() ...@@ -715,7 +715,7 @@ function my_acf_init_block_types()
'render_template' => 'blocks/seo/icon-box.php', 'render_template' => 'blocks/seo/icon-box.php',
'category' => 'formatting', 'category' => 'formatting',
'icon' => file_get_contents(get_template_directory() . '/assets/img/makura.svg'), 'icon' => file_get_contents(get_template_directory() . '/assets/img/makura.svg'),
'keywords' => array('SEO - Icon Box Section'), 'keywords' => array('SEO - Icon Box Section', 'icon', 'box', 'makura'),
'example' => [ 'example' => [
'attributes' => [ 'attributes' => [
'mode' => 'preview', 'mode' => 'preview',
...@@ -731,7 +731,7 @@ function my_acf_init_block_types() ...@@ -731,7 +731,7 @@ function my_acf_init_block_types()
'render_template' => 'blocks/seo/quote.php', 'render_template' => 'blocks/seo/quote.php',
'category' => 'formatting', 'category' => 'formatting',
'icon' => file_get_contents(get_template_directory() . '/assets/img/makura.svg'), 'icon' => file_get_contents(get_template_directory() . '/assets/img/makura.svg'),
'keywords' => array('SEO - Quote Section'), 'keywords' => array('SEO - Quote Section', 'quote', 'makura'),
'example' => [ 'example' => [
'attributes' => [ 'attributes' => [
'mode' => 'preview', 'mode' => 'preview',
...@@ -747,7 +747,7 @@ function my_acf_init_block_types() ...@@ -747,7 +747,7 @@ function my_acf_init_block_types()
'render_template' => 'blocks/seo/compare.php', 'render_template' => 'blocks/seo/compare.php',
'category' => 'formatting', 'category' => 'formatting',
'icon' => file_get_contents(get_template_directory() . '/assets/img/makura.svg'), 'icon' => file_get_contents(get_template_directory() . '/assets/img/makura.svg'),
'keywords' => array('SEO - Competitive Analysis Form Block'), 'keywords' => array('SEO - Competitive Analysis Form Block', 'competitive analysis', 'form', 'makura'),
'example' => [ 'example' => [
'attributes' => [ 'attributes' => [
'mode' => 'preview', 'mode' => 'preview',
...@@ -763,7 +763,23 @@ function my_acf_init_block_types() ...@@ -763,7 +763,23 @@ function my_acf_init_block_types()
'render_template' => 'blocks/resources/resource-listing.php', 'render_template' => 'blocks/resources/resource-listing.php',
'category' => 'formatting', 'category' => 'formatting',
'icon' => file_get_contents(get_template_directory() . '/assets/img/makura.svg'), 'icon' => file_get_contents(get_template_directory() . '/assets/img/makura.svg'),
'keywords' => array('Resources - Resources Listing Block'), 'keywords' => array('Resources - Resources Listing Block', 'resources', 'listing', 'makura'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => [],
],
],
));
// Case Study - Banner Block
acf_register_block_type(array(
'name' => 'Case Study Banner Block',
'title' => __('Case Study Banner Block'),
'description' => __('Case Study - Banner Block for SEO Pages'),
'render_template' => 'blocks/case-study/case-study-banner.php',
'category' => 'formatting',
'icon' => file_get_contents(get_template_directory() . '/assets/img/makura.svg'),
'keywords' => array('Case Study - Banner Block', 'case study', 'banner', 'hero', 'makura'),
'example' => [ 'example' => [
'attributes' => [ 'attributes' => [
'mode' => 'preview', '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