Commit 399c0e07 by rajshah

Merge branch 'dev' of gitlab.makuracreations.xyz:rajshah/makura-2025 into dev

parents 60464319 5169d410
This source diff could not be displayed because it is too large. You can view the blob instead.
(function ($) {
$(".FAQS-SECTION .accordion-collapse").each(function (index) {
if ($(this).hasClass("show"))
$(this).parent(".accordion-item").addClass("classColor");
});
var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {
return new bootstrap.Tooltip(tooltipTriggerEl)
})
$(".accordion-header").click(function (index) {
if ($(this).siblings(".accordion-collapse").hasClass("show"));
$(this).parent(".accordion-item").toggleClass("classColor");
});
$('.counter').countUp();
// trip planner step fieldset
var current_fs, next_fs, previous_fs;
// $(".modal-steps-wrapper-box .next").click(function (event) {
// event.preventDefault();
// $('body,html').animate({ scrollTop: 0 }, 0);
// current_fs = $(this).closest('fieldset');
// next_fs = $(this).closest('fieldset').next();
// $("#progressbar li").eq($("fieldset").index(next_fs)).addClass("active").prev().addClass('complete');
// next_fs.show();
// current_fs.hide();
// })
// $(".modal-steps-wrapper-box .previous").click(function (event) {
// event.preventDefault();
// $('body,html').animate({ scrollTop: 0 }, 0);
// current_fs = $(this).closest('fieldset');
// previous_fs = $(this).closest('fieldset').prev();
// $("#progressbar li").eq($("fieldset").index(current_fs)).removeClass("active").prev().removeClass('complete');
// previous_fs.show();
// current_fs.hide();
// })
console.log($(".experience").length);
if ($(".experience").length == 1) {
document.addEventListener("DOMContentLoaded", () => {
function counter(id, start, end, duration) {
let obj = document.getElementById(id),
current = start,
range = end - start,
increment = end > start ? 1 : -1,
step = Math.abs(Math.floor(duration / range)),
timer = setInterval(() => {
current += increment;
obj.textContent = current;
if (current == end) {
clearInterval(timer);
}
}, step);
}
counter("experience", 0, 10, 3000);
counter("client", 100, 432, 2500);
counter("experts", 0, 27, 3000);
});
}
//gsap mobile motion
gsap.registerPlugin(ScrollTrigger);
gsap.to(".mob2", {
y: 600,
ease: "none",
duration: 2,
scrollTrigger: {
trigger: ".mob2",
start: "80px 30%",
end: "900px 50%",
scrub: 2,
},
});
gsap.to(".mob1", {
y: 130,
ease: "none",
duration: 2,
scrollTrigger: {
trigger: ".mob2",
start: "80px 30%",
end: "300px 50%",
scrub: 1,
},
});
gsap.to(".mob3", {
y: 130,
ease: "none",
duration: 2,
scrollTrigger: {
trigger: ".mob2",
start: "80px 30%",
end: "300px 50%",
scrub: 1,
},
});
gsap.to(".mob4", {
y: 100,
ease: "none",
duration: 2,
scrollTrigger: {
trigger: ".mob2",
start: "60% 30%",
end: "60% 30%",
scrub: 1,
},
});
gsap.to(".mob5", {
y: 100,
ease: "none",
duration: 2,
scrollTrigger: {
trigger: ".mob2",
start: "60% 30%",
end: "60% 30%",
scrub: 1,
},
});
$(".see-more-btn").click(function () {
$(".expandable-text").toggleClass("expanded");
if ($(".expandable-text").hasClass("expanded")) {
$(".see-more-btn").text("Show less");
} else {
$(".see-more-btn").text("See more");
}
$("html, body").animate(
{
scrollTop: $(".expandable-text").offset().top - 200,
},
1000
);
});
$(".get-quote-button").click(function () {
$(".request-hide-success-modal").hide();
$(".request-success-modal").show();
});
// accordion-loadmore
$(".see-more-btn-accordion").click(function () {
$(".expandable-text-accordion").toggleClass("expanded");
if ($(".expandable-text-accordion").hasClass("expanded")) {
$(".see-more-btn-accordion").text("Load less");
} else {
$(".see-more-btn-accordion").text("Load more");
}
$("html, body").animate(
{
scrollTop: $(".expandable-text-accordion").offset().top - 200,
},
1000
);
});
$(document).ready(function (jQuery) {
if ($(".accordion-collapse").hasClass("show")) {
$(this).find(".accordion-item").addClass("bg");
} else {
$(".accordion-item").removeClass("bg");
}
});
//meet-team-wrapper
$(".meet-team-wrapper").owlCarousel({
loop: false,
autoplay: true,
margin: 40,
nav: false,
dots: false,
responsive: {
0: {
items: 1,
},
600: {
items: 2,
},
1000: {
items: 4,
},
},
});
//technology-carousel-wrapper
$(".technology-carousel-wrapper").owlCarousel({
loop: false,
autoplay: true,
margin: 40,
nav: false,
dots: false,
responsive: {
0: {
items: 6,
},
600: {
items: 6,
},
1000: {
items: 9,
},
},
});
//portfolio-carousel
$(".portfolio-carousel").owlCarousel({
loop: false,
autoplay: true,
margin: 40,
nav: false,
dots: false,
responsive: {
0: {
items: 1,
},
600: {
items: 2,
},
1000: {
items: 3,
},
},
});
//customer-feedback
$(".customer-feedback").owlCarousel({
loop: false,
autoplay: true,
margin: 20,
nav: false,
dots: true,
responsive: {
0: {
items: 1,
},
576: {
items: 1,
},
768: {
items: 2,
},
1000: {
items: 3,
},
},
});
//customer-feedback-course-detail
$(".customer-feedback-course-detail").owlCarousel({
loop: false,
autoplay: true,
margin: 40,
nav: false,
dots: true,
responsive: {
0: {
items: 1,
},
600: {
items: 2,
},
1000: {
items: 2,
},
},
});
//customer-feedback-course-detail
$(".client-carouselwrapper").owlCarousel({
loop: false,
autoplay: true,
margin: 20,
nav: false,
dots: false,
responsive: {
0: {
items: 3,
},
600: {
items: 4,
},
1000: {
items: 5,
},
},
});
//more-course-section
$(".more-course-section").owlCarousel({
loop: false,
autoplay: true,
margin: 20,
nav: false,
dots: true,
responsive: {
0: {
items: 1,
},
600: {
items: 2,
},
1000: {
items: 2,
},
},
});
//customer-feedback-portfolio
$(".customer-feedback-portfolio").owlCarousel({
loop: false,
autoplay: true,
margin: 10,
nav: false,
dots: false,
responsive: {
0: {
items: 1,
},
600: {
items: 1,
},
1000: {
items: 1,
},
},
});
//blog-carousel
$(".blog-carousel").owlCarousel({
loop: true,
autoplay: true,
margin: 20,
nav: false,
dots: false,
responsive: {
0: {
items: 1,
},
600: {
items: 3,
},
1000: {
items: 3,
},
},
});
//time-pickr
$("#timePicker").flatpickr({
enableTime: true,
noCalendar: true,
dateFormat: "H:i",
});
//for date picker and disable the date
$(".date").flatpickr();
var date1 = $(".start-date").flatpickr({
minDate: "today",
onChange: function (selectedDates, dateStr, instance) {
date2.set("minDate", dateStr);
},
});
var date2 = $(".end-date").flatpickr({});
$(function () {
$("body").tooltip({
selector: "[data-toggle=tooltip]",
placement: "bottom",
});
});
$(".toggler-icon").click(function () {
$(".navbar-nav").addClass("show");
});
$(".navbar-nav li").click(function () {
$(".navbar-nav").removeClass("show");
});
$(".side-menu-close").click(function () {
$(".navbar-nav").removeClass("show");
});
// jQuery(".btn-start-project").click(function(event) {
// event.preventDefault();
// jQuery('body').addClass('no-scroll');
// });
$(window)
.scroll(function () {
var scrollDistance = $(window).scrollTop() + 201;
// Assign active class to nav links while scolling
$(".nav-content").each(function (i) {
if ($(this).position().top <= scrollDistance) {
$(".top-nav ul li a").removeClass("active");
$(".top-nav ul li a").eq(i).addClass("active");
}
});
if (scrollDistance == 201) {
$(".top-nav ul li a").removeClass("active");
}
})
.scroll();
// sticky nav
// $(function () {
// var header = $(".navbar");
// $(window).scroll(function () {
// var scroll = $(window).scrollTop();
// if (scroll >= 200) {
// header.addClass("sticky-top");
// } else {
// header.removeClass("sticky-top");
// }
// });
// });
var lastScrollTop = 0;
$(window).scroll(function(event) {
var thisValue = $(this).scrollTop();
if (thisValue == 0) {
$(".navbar").removeClass("sticky-top");
} else if (thisValue > lastScrollTop) {
$(".navbar").removeClass("sticky-top");
} else {
$(".navbar").addClass("sticky-top");
}
lastScrollTop = thisValue;
});
$(".button-close").click(function () {
$(".modal-dialog").addClass("addCss");
});
//side-nav
$("#side-nav").click(function () {
$(".nav-side-menu").addClass("active");
$("#side-nav").css("visibility", "hidden");
});
$(".close-icon").click(function () {
$(".nav-side-menu").removeClass("active");
$("#side-nav").css("visibility", "visible");
});
//read more blogs
$(".readmoreblogs").owlCarousel({
loop: false,
margin: 10,
nav: true,
responsive: {
0: {
items: 1,
},
600: {
items: 2,
},
1000: {
items: 3,
},
},
});
// returntotop
$(window).scroll(function () {
if ($(this).scrollTop() >= 200) {
$("#return-to-top").show(200);
} else {
$("#return-to-top").hide(200);
}
});
$("#return-to-top").click(function () {
$("body,html").animate({ scrollTop: 0 }, 1000);
});
//thankyou message for comment in blog-detail
$("#submitBtn").click(function () {
$(".alert-success").slideToggle("slow").delay(2000).slideToggle("slow");
});
//thankyou message for book
$("#submit").click(function () {
$(".alert-success").slideToggle("slow").delay(2000).slideToggle("slow");
});
jQuery(document).ready(function ($) {
jQuery('img').removeAttr('width').removeAttr('height');
});
$('.fpData').click(function () {
var button = $(this);
var dataCatValue = $(this).data('cat');
button.addClass('loading')
console.log(dataCatValue);
$.ajax({
url: frontend_ajax_object.ajaxurl,
method: 'POST',
dataType: 'json',
data: {
action: 'get_fetch_more_portfolios',
data_cat: dataCatValue
},
success: function (response) {
button.remove();
// Handle the response here
console.log(response.html);
$('#append_' + dataCatValue).append(response.html);
},
error: function (xhr, status, error) {
// Handle errors
console.log(error);
}
});
});
})(jQuery);
\ No newline at end of file
if ($(this).hasClass("show"))
$(this).parent(".accordion-item").addClass("classColor");
});
var tooltipTriggerList = [].slice.call(
document.querySelectorAll('[data-bs-toggle="tooltip"]'),
);
var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {
return new bootstrap.Tooltip(tooltipTriggerEl);
});
$(".accordion-header").click(function (index) {
if ($(this).siblings(".accordion-collapse").hasClass("show"));
$(this).parent(".accordion-item").toggleClass("classColor");
});
$(".counter").countUp();
// trip planner step fieldset
var current_fs, next_fs, previous_fs;
// $(".modal-steps-wrapper-box .next").click(function (event) {
// event.preventDefault();
// $('body,html').animate({ scrollTop: 0 }, 0);
// current_fs = $(this).closest('fieldset');
// next_fs = $(this).closest('fieldset').next();
// $("#progressbar li").eq($("fieldset").index(next_fs)).addClass("active").prev().addClass('complete');
// next_fs.show();
// current_fs.hide();
// })
// $(".modal-steps-wrapper-box .previous").click(function (event) {
// event.preventDefault();
// $('body,html').animate({ scrollTop: 0 }, 0);
// current_fs = $(this).closest('fieldset');
// previous_fs = $(this).closest('fieldset').prev();
// $("#progressbar li").eq($("fieldset").index(current_fs)).removeClass("active").prev().removeClass('complete');
// previous_fs.show();
// current_fs.hide();
// })
console.log($(".experience").length);
if ($(".experience").length == 1) {
document.addEventListener("DOMContentLoaded", () => {
function counter(id, start, end, duration) {
let obj = document.getElementById(id),
current = start,
range = end - start,
increment = end > start ? 1 : -1,
step = Math.abs(Math.floor(duration / range)),
timer = setInterval(() => {
current += increment;
obj.textContent = current;
if (current == end) {
clearInterval(timer);
}
}, step);
}
counter("experience", 0, 10, 3000);
counter("client", 100, 432, 2500);
counter("experts", 0, 27, 3000);
});
}
//gsap mobile motion
gsap.registerPlugin(ScrollTrigger);
gsap.to(".mob2", {
y: 600,
ease: "none",
duration: 2,
scrollTrigger: {
trigger: ".mob2",
start: "80px 30%",
end: "900px 50%",
scrub: 2,
},
});
gsap.to(".mob1", {
y: 130,
ease: "none",
duration: 2,
scrollTrigger: {
trigger: ".mob2",
start: "80px 30%",
end: "300px 50%",
scrub: 1,
},
});
gsap.to(".mob3", {
y: 130,
ease: "none",
duration: 2,
scrollTrigger: {
trigger: ".mob2",
start: "80px 30%",
end: "300px 50%",
scrub: 1,
},
});
gsap.to(".mob4", {
y: 100,
ease: "none",
duration: 2,
scrollTrigger: {
trigger: ".mob2",
start: "60% 30%",
end: "60% 30%",
scrub: 1,
},
});
gsap.to(".mob5", {
y: 100,
ease: "none",
duration: 2,
scrollTrigger: {
trigger: ".mob2",
start: "60% 30%",
end: "60% 30%",
scrub: 1,
},
});
$(".see-more-btn").click(function () {
$(".expandable-text").toggleClass("expanded");
if ($(".expandable-text").hasClass("expanded")) {
$(".see-more-btn").text("Show less");
} else {
$(".see-more-btn").text("See more");
}
$("html, body").animate(
{
scrollTop: $(".expandable-text").offset().top - 200,
},
1000,
);
});
$(".get-quote-button").click(function () {
$(".request-hide-success-modal").hide();
$(".request-success-modal").show();
});
// accordion-loadmore
$(".see-more-btn-accordion").click(function () {
$(".expandable-text-accordion").toggleClass("expanded");
if ($(".expandable-text-accordion").hasClass("expanded")) {
$(".see-more-btn-accordion").text("Load less");
} else {
$(".see-more-btn-accordion").text("Load more");
}
$("html, body").animate(
{
scrollTop: $(".expandable-text-accordion").offset().top - 200,
},
1000,
);
});
$(document).ready(function (jQuery) {
if ($(".accordion-collapse").hasClass("show")) {
$(this).find(".accordion-item").addClass("bg");
} else {
$(".accordion-item").removeClass("bg");
}
});
//meet-team-wrapper
$(".meet-team-wrapper").owlCarousel({
loop: false,
autoplay: true,
margin: 40,
nav: false,
dots: false,
responsive: {
0: {
items: 1,
},
600: {
items: 2,
},
1000: {
items: 4,
},
},
});
//technology-carousel-wrapper
$(".technology-carousel-wrapper").owlCarousel({
loop: false,
autoplay: true,
margin: 40,
nav: false,
dots: false,
responsive: {
0: {
items: 6,
},
600: {
items: 6,
},
1000: {
items: 9,
},
},
});
//portfolio-carousel
$(".portfolio-carousel").owlCarousel({
loop: false,
autoplay: true,
margin: 40,
nav: false,
dots: false,
responsive: {
0: {
items: 1,
},
600: {
items: 2,
},
1000: {
items: 3,
},
},
});
//customer-feedback
$(".customer-feedback").owlCarousel({
loop: false,
autoplay: true,
margin: 20,
nav: false,
dots: true,
responsive: {
0: {
items: 1,
},
576: {
items: 1,
},
768: {
items: 2,
},
1000: {
items: 3,
},
},
});
//customer-feedback-course-detail
$(".customer-feedback-course-detail").owlCarousel({
loop: false,
autoplay: true,
margin: 40,
nav: false,
dots: true,
responsive: {
0: {
items: 1,
},
600: {
items: 2,
},
1000: {
items: 2,
},
},
});
//customer-feedback-course-detail
$(".client-carouselwrapper").owlCarousel({
loop: false,
autoplay: true,
margin: 20,
nav: false,
dots: false,
responsive: {
0: {
items: 3,
},
600: {
items: 4,
},
1000: {
items: 5,
},
},
});
//more-course-section
$(".more-course-section").owlCarousel({
loop: false,
autoplay: true,
margin: 20,
nav: false,
dots: true,
responsive: {
0: {
items: 1,
},
600: {
items: 2,
},
1000: {
items: 2,
},
},
});
//customer-feedback-portfolio
$(".customer-feedback-portfolio").owlCarousel({
loop: false,
autoplay: true,
margin: 10,
nav: false,
dots: false,
responsive: {
0: {
items: 1,
},
600: {
items: 1,
},
1000: {
items: 1,
},
},
});
//blog-carousel
$(".blog-carousel").owlCarousel({
loop: true,
autoplay: true,
margin: 20,
nav: false,
dots: false,
responsive: {
0: {
items: 1,
},
600: {
items: 3,
},
1000: {
items: 3,
},
},
});
//time-pickr
$("#timePicker").flatpickr({
enableTime: true,
noCalendar: true,
dateFormat: "H:i",
});
//for date picker and disable the date
$(".date").flatpickr();
var date1 = $(".start-date").flatpickr({
minDate: "today",
onChange: function (selectedDates, dateStr, instance) {
date2.set("minDate", dateStr);
},
});
var date2 = $(".end-date").flatpickr({});
$(function () {
$("body").tooltip({
selector: "[data-toggle=tooltip]",
placement: "bottom",
});
});
$(".toggler-icon").click(function () {
$(".navbar-nav").addClass("show");
});
$(".navbar-nav li").click(function () {
$(".navbar-nav").removeClass("show");
});
$(".side-menu-close").click(function () {
$(".navbar-nav").removeClass("show");
});
// jQuery(".btn-start-project").click(function(event) {
// event.preventDefault();
// jQuery('body').addClass('no-scroll');
// });
$(window)
.scroll(function () {
var scrollDistance = $(window).scrollTop() + 201;
// Assign active class to nav links while scolling
$(".nav-content").each(function (i) {
if ($(this).position().top <= scrollDistance) {
$(".top-nav ul li a").removeClass("active");
$(".top-nav ul li a").eq(i).addClass("active");
}
});
if (scrollDistance == 201) {
$(".top-nav ul li a").removeClass("active");
}
})
.scroll();
// sticky nav
// $(function () {
// var header = $(".navbar");
// $(window).scroll(function () {
// var scroll = $(window).scrollTop();
// if (scroll >= 200) {
// header.addClass("sticky-top");
// } else {
// header.removeClass("sticky-top");
// }
// });
// });
var lastScrollTop = 0;
$(window).scroll(function (event) {
var thisValue = $(this).scrollTop();
if (thisValue == 0) {
$(".navbar").removeClass("sticky-top");
} else if (thisValue > lastScrollTop) {
$(".navbar").removeClass("sticky-top");
} else {
$(".navbar").addClass("sticky-top");
}
lastScrollTop = thisValue;
});
$(".button-close").click(function () {
$(".modal-dialog").addClass("addCss");
});
//side-nav
$("#side-nav").click(function () {
$(".nav-side-menu").addClass("active");
$("#side-nav").css("visibility", "hidden");
});
$(".close-icon").click(function () {
$(".nav-side-menu").removeClass("active");
$("#side-nav").css("visibility", "visible");
});
//read more blogs
$(".readmoreblogs").owlCarousel({
loop: false,
margin: 10,
nav: true,
responsive: {
0: {
items: 1,
},
600: {
items: 2,
},
1000: {
items: 3,
},
},
});
// returntotop
$(window).scroll(function () {
if ($(this).scrollTop() >= 200) {
$("#return-to-top").show(200);
} else {
$("#return-to-top").hide(200);
}
});
$("#return-to-top").click(function () {
$("body,html").animate({ scrollTop: 0 }, 1000);
});
//thankyou message for comment in blog-detail
$("#submitBtn").click(function () {
$(".alert-success").slideToggle("slow").delay(2000).slideToggle("slow");
});
//thankyou message for book
$("#submit").click(function () {
$(".alert-success").slideToggle("slow").delay(2000).slideToggle("slow");
});
jQuery(document).ready(function ($) {
jQuery("img").removeAttr("width").removeAttr("height");
});
$(".fpData").click(function () {
var button = $(this);
var dataCatValue = $(this).data("cat");
button.addClass("loading");
console.log(dataCatValue);
$.ajax({
url: frontend_ajax_object.ajaxurl,
method: "POST",
dataType: "json",
data: {
action: "get_fetch_more_portfolios",
data_cat: dataCatValue,
},
success: function (response) {
button.remove();
// Handle the response here
console.log(response.html);
$("#append_" + dataCatValue).append(response.html);
},
error: function (xhr, status, error) {
// Handle errors
console.log(error);
},
});
});
$(function () {
$(".custom-overlay").on("click", function (e) {
e.preventDefault();
$("body").removeClass("overflow-hidden");
$(".download-popup").removeClass("active");
$(this).removeClass("active");
});
$(".download-seo-audit").on("click", function (e) {
e.preventDefault();
$("body").addClass("overflow-hidden");
$(".download-popup").addClass("active");
$(".custom-overlay").addClass("active");
$(".close-download-popup").on("click", function (e) {
e.preventDefault();
$("body").removeClass("overflow-hidden");
$(".download-popup").removeClass("active");
$(".custom-overlay").removeClass("active");
});
});
});
/* Table of Content */
function sanitizeTitle(text) {
return text
.toString()
.trim() // Remove leading and trailing whitespace
.toLowerCase() // Convert to lowercase
.replace(/[^a-z0-9\s-]/g, "") // Remove special characters
.replace(/\s+/g, "-") // Replace spaces with hyphens
.replace(/-+/g, "-"); // Remove multiple consecutive hyphens
}
$(function () {
$(".blog-detail-content h2, .blog-detail-content h3").each(function () {
var text = $(this).text();
var sanitizedText = sanitizeTitle(text);
$(this).attr("id", sanitizedText);
});
});
})(jQuery);
<?php if(get_field('enable_section')):?>
<section class="background-dark pb-60 ABOUT TOP-BANNER-SECTION">
<div class="container">
<div class="row align-items-center justify-content-between">
<div class="col-lg-6 col-12">
<div class="position-relative left-text-wrapper">
<?php the_field('description');?>
</div>
</div>
<div class="col-lg-5 col-md-5 mx-auto col-12 text-center right-image">
<!--<?php if($image = get_field('image')): echo wp_get_attachment_image($image); endif;?>-->
<section class="background-dark pb-60 ABOUT TOP-BANNER-SECTION">
<div class="container">
<div class="row align-items-center justify-content-between">
<div class="col-lg-6 col-12">
<div class="position-relative left-text-wrapper">
<?php the_field('description');?>
</div>
</div>
<div class="col-lg-5 col-md-5 mx-auto col-12 text-center right-image">
<!--<?php if($image = get_field('image')): echo wp_get_attachment_image($image); endif;?>-->
<?php
<?php
$image = get_field('image');
$size = 'full';
if ($image) {
echo wp_get_attachment_image($image, $size);
} ?>
</div>
</div>
</div>
</div>
</div>
</section>
<?php endif;?>
\ No newline at end of file
<?php endif;?>
\ No newline at end of file
......@@ -11,47 +11,54 @@ if (isset($hero) && is_array($hero) && !empty($hero)):
$hero_v = $hero['hero_v'];
if ($hero_v):
?>
<section class="AUDIT-INTRO pb-40">
<div class="container">
<div class="ai-content">
<div class="section-title top-title">
<?php if (!empty($hero_title)): ?>
<h1><?php echo $hero_title; ?></h1><?php endif;
<section class="AUDIT-INTRO pb-40">
<div class="container">
<div class="ai-content">
<div class="section-title top-title">
<?php if (!empty($hero_title)): ?>
<h1><?php echo $hero_title; ?></h1><?php endif;
echo $hero_desc ?: '';
if (!empty($hero_url)):
?>
<div class="search-field">
<form class="turboform" method="POST" action="<?php echo esc_url($hero_url); ?>" onsubmit="return fixURL();">
<div class="input-field">
<input type="text" autocomplete="off" spellcheck="false" class="form-control"
placeholder="Type Your Website Address" name="url">
<?php if (!empty($hero_btn)): ?><span class="input-group-btn"> <button class="audit-search" type="submit"
id="review-btn"><span class="glyphicon glyphicon-search"></span>
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M19 11C19 15.4184 15.4184 19 11 19C6.5816 19 3 15.4184 3 11C3 6.5816 6.5816 3 11 3C15.4184 3 19 6.5816 19 11Z"
stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" />
<path d="M20.9984 20.9999L16.6484 16.6499" stroke="white" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" />
</svg> <?php echo $hero_btn; ?></button></span>
<div class="search-field">
<form class="turboform" method="POST" action="<?php echo esc_url($hero_url); ?>" onsubmit="return fixURL();">
<div class="input-field">
<input type="text" autocomplete="off" spellcheck="false" class="form-control"
placeholder="Type Your Website Address" name="url">
<?php if (!empty($hero_btn)): ?><span class="input-group-btn"> <button class="audit-search" type="submit"
id="review-btn"><span class="glyphicon glyphicon-search"></span>
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M19 11C19 15.4184 15.4184 19 11 19C6.5816 19 3 15.4184 3 11C3 6.5816 6.5816 3 11 3C15.4184 3 19 6.5816 19 11Z"
stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" />
<path d="M20.9984 20.9999L16.6484 16.6499" stroke="white" stroke-width="3" stroke-linecap="round"
stroke-linejoin="round" />
</svg> <?php echo $hero_btn; ?></button></span>
<?php endif; ?>
</div>
</form>
</div>
<?php endif; ?>
</div>
</form>
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
</section>
<?php else: ?>
<section class="AUDIT-INNER-BANNER pb-40">
<div class="container">
<!-- <a href="#" class="btn-outlined back-btn d-inline-block" onclick="history.back()">Go Back</a> -->
<div class="top-title">
<?php if (!empty($hero_title)): ?>
<h1><?php echo $hero_title; ?></h1><?php endif; ?>
</div>
</div>
</section>
<?php endif; endif; endif; ?>
</section>
<?php else: ?>
<section class="AUDIT-INNER-BANNER pb-40">
<div class="container">
<!-- <a href="#" class="btn-outlined back-btn d-inline-block" onclick="history.back()">
<svg width="20" height="14" viewBox="0 0 20 14" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M0.987632 6.32235L0.987618 6.32236C0.807959 6.50208 0.707031 6.74579 0.707031 6.9999C0.707031 7.25402 0.807959 7.49773 0.987618 7.67745L0.987632 7.67746L6.82096 13.5108L6.82095 13.5108L6.82251 13.5123C7.00326 13.6869 7.24534 13.7835 7.49661 13.7813C7.74788 13.7791 7.98824 13.6783 8.16592 13.5006C8.34361 13.323 8.44439 13.0826 8.44658 12.8313C8.44876 12.5801 8.35217 12.338 8.1776 12.1572L8.17761 12.1572L8.17607 12.1557L3.97863 7.95824H18.3319C18.586 7.95824 18.8298 7.85727 19.0095 7.67755C19.1892 7.49783 19.2902 7.25407 19.2902 6.9999C19.2902 6.74574 19.1892 6.50198 19.0095 6.32226C18.8298 6.14254 18.586 6.04157 18.3319 6.04157H3.97863L8.17533 1.84487C8.26648 1.75663 8.33921 1.65116 8.38929 1.53458C8.43951 1.41766 8.46595 1.29191 8.46706 1.16466C8.46816 1.03741 8.44392 0.911218 8.39573 0.793443C8.34754 0.675668 8.27638 0.568668 8.1864 0.478687C8.09642 0.388707 7.98942 0.317547 7.87165 0.269362C7.75387 0.221176 7.62768 0.196928 7.50043 0.198034C7.37319 0.19914 7.24743 0.225577 7.13051 0.275802C7.01394 0.325879 6.90847 0.398603 6.82023 0.489753L0.987632 6.32235Z"
fill="white" stroke="white" stroke-width="0.25" />
</svg>
Go Back</a> -->
<div class="top-title">
<?php if (!empty($hero_title)): ?>
<h1><?php echo $hero_title; ?></h1><?php endif; ?>
</div>
</div>
</section>
<?php endif; endif; endif; ?>
<!-- !Seo - Hero Section -->
\ No newline at end of file
.BLOGLISTING-TOP-TITLE-SECTION {
&.background-dark {
background: #005aff !important;
}
&.background-dark {
background: #005aff !important;
}
}
.left-filter {
border-right: 2px solid rgba(0, 0, 0, 0.2);
@media (max-width: 1023.98px) {
border-right: 0;
}
.blog-side-bar {
position: sticky;
top: 18%;
.back-to-blog {
margin-bottom: 3.4375rem;
}
.blog-category {
h6 {
margin-bottom: 1.25rem;
font-size: 1.25rem;
font-weight: 600;
color: #005aff;
}
.category-list {
ul {
list-style-type: none;
li {
margin-bottom: 1.25rem;
font-weight: 400;
font-size: 16px;
&::marker {
display: none;
}
&:last-child {
margin: 0;
}
a {
color: #1215269b;
}
&:hover {
a {
color: #005aff;
}
}
}
}
}
}
}
border-right: 2px solid rgba(0, 0, 0, 0.2);
@media (max-width: 1023.98px) {
border-right: 0;
}
.blog-side-bar {
position: sticky;
top: 18%;
.back-to-blog {
margin-bottom: 3.4375rem;
}
.blog-category {
h6 {
margin-bottom: 1.25rem;
font-size: 1.25rem;
font-weight: 600;
color: #005aff;
}
.category-list {
ul {
list-style-type: none;
li {
margin-bottom: 1.25rem;
font-weight: 400;
font-size: 16px;
&::marker {
display: none;
}
&:last-child {
margin: 0;
}
a {
color: #1215269b;
}
&:hover,
&.current-cat {
a {
color: #005aff;
}
}
}
}
}
}
}
}
.blog-list {
button {
border: 1px solid rgba(0, 0, 0, 0.1);
}
.quote {
svg {
margin-bottom: 1rem;
}
}
.launch-container {
.left-text-wrapper {
.text-wrapper {
h2 {
font-size: 2rem;
}
}
}
}
.blog-detail-content {
span {
color: #58595a;
}
ul,
ol {
margin-left: 1.25rem;
list-style-type: none;
li {
font-size: 1.125rem;
display: flex;
position: relative;
flex-direction: column;
padding-left: 18px;
margin-bottom: 1.25rem;
color: #58595a;
&::before {
content: "";
background-image: url(../../assets/img/dot2.svg);
height: 11px;
width: 34px;
background-repeat: no-repeat;
background-size: contain;
margin-right: 8px;
display: block;
position: absolute;
left: 0;
top: 7px;
}
}
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: 1.5rem;
margin-bottom: 1.25rem;
}
.image-wrapper {
img {
width: 25rem;
height: 25rem;
object-fit: contain;
}
}
}
button {
border: 1px solid rgba(0, 0, 0, 0.1);
}
.quote {
svg {
margin-bottom: 1rem;
}
}
.launch-container {
.left-text-wrapper {
.text-wrapper {
h2 {
font-size: 2rem;
}
}
}
}
.blog-detail-content {
span {
color: #58595a;
}
ul,
ol {
margin-left: 1.25rem;
list-style-type: none;
li {
font-size: 1.125rem;
display: flex;
position: relative;
flex-direction: column;
padding-left: 18px;
margin-bottom: 1.25rem;
color: #58595a;
&::before {
content: "";
background-image: url(../../assets/img/dot2.svg);
height: 11px;
width: 34px;
background-repeat: no-repeat;
background-size: contain;
margin-right: 8px;
display: block;
position: absolute;
left: 0;
top: 7px;
}
}
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: 1.5rem;
margin-bottom: 1.25rem;
scroll-margin-top: 150px;
&:target::before {
content: unset;
}
}
.image-wrapper {
img {
width: 25rem;
height: 25rem;
object-fit: contain;
}
}
}
}
.BLOGDETAIL-TOP-TITLE-SECTION {
&.background-dark {
background: #005aff !important;
}
.title-wrapper {
.views {
.post-views {
margin-right: 6px;
}
}
.post-date {
.svg-wrapper {
@media (max-width: 767.98px) {
display: block !important;
}
}
span {
margin-right: 2rem;
margin-bottom: 0;
svg {
margin-right: 0.625rem;
}
}
div {
margin-right: 2rem;
}
}
h1 {
margin: 1.25rem 0;
}
}
&.background-dark {
background: #005aff !important;
}
.title-wrapper {
.views {
.post-views {
margin-right: 6px;
}
}
.post-date {
.svg-wrapper {
@media (max-width: 767.98px) {
display: block !important;
}
}
span {
margin-right: 2rem;
margin-bottom: 0;
svg {
margin-right: 0.625rem;
}
}
div {
margin-right: 2rem;
}
}
h1 {
margin: 1.25rem 0;
}
}
}
.share-article {
@media (max-width: 767.98px) {
margin-bottom: 0;
}
margin-bottom: 3.5rem;
h5 {
margin-bottom: 1rem;
color: $primary;
}
.social-icon {
margin-bottom: 1rem;
.icon {
min-height: 3rem;
min-width: 3rem;
margin-right: 1rem;
border-radius: 50%;
border: 1px solid #8f8f8f;
transition: 0.5s ease;
transition: 0.3s ease-in-out;
svg {
path {
transition: 0.3s ease-in-out;
fill: #8f8f8f;
}
}
&:hover {
border: 1px solid $white;
svg {
path {
fill: $white;
}
}
}
}
}
@media (max-width: 767.98px) {
margin-bottom: 0;
}
margin-bottom: 3.5rem;
h5 {
margin-bottom: 1rem;
color: $primary;
}
.social-icon {
margin-bottom: 1rem;
.icon {
min-height: 3rem;
min-width: 3rem;
margin-right: 1rem;
border-radius: 50%;
border: 1px solid #8f8f8f;
transition: 0.5s ease;
transition: 0.3s ease-in-out;
svg {
path {
transition: 0.3s ease-in-out;
fill: #8f8f8f;
}
}
&:hover {
border: 1px solid $white;
svg {
path {
fill: $white;
}
}
}
}
}
}
.share-article2 {
@media (max-width: 767.98px) {
margin-bottom: 0;
}
margin-bottom: 3.5rem;
h5 {
margin-bottom: 1rem;
color: $primary;
}
.social-icon {
margin-bottom: 1rem;
.icon {
min-height: 3rem;
min-width: 3rem;
margin-right: 1rem;
border-radius: 50%;
border: 1px solid #878787;
transition: 0.5s ease;
background-color: $white;
transition: 0.3s ease-in-out;
svg {
path {
transition: 0.3s ease-in-out;
fill: #878787;
}
}
&:hover {
border: 1px solid #000;
svg {
path {
fill: #000;
}
}
}
}
}
@media (max-width: 767.98px) {
margin-bottom: 0;
}
margin-bottom: 3.5rem;
h5 {
margin-bottom: 1rem;
color: $primary;
}
.social-icon {
margin-bottom: 1rem;
.icon {
min-height: 3rem;
min-width: 3rem;
margin-right: 1rem;
border-radius: 50%;
border: 1px solid #878787;
transition: 0.5s ease;
background-color: $white;
transition: 0.3s ease-in-out;
svg {
path {
transition: 0.3s ease-in-out;
fill: #878787;
}
}
&:hover {
border: 1px solid #000;
svg {
path {
fill: #000;
}
}
}
}
}
}
.left-filter {
.blog-side-bar {
.tags-wrapper {
display: unset;
ul {
list-style-type: none;
display: flex;
flex-wrap: wrap;
li {
border: 1px solid rgba(0, 0, 0, 0.1);
padding: 0.375rem 1.25rem;
margin-right: 0.75rem;
margin-bottom: 0.75rem;
border: 1px solid rgba(0, 0, 0, 0.1);
padding: 0.375rem 1.25rem;
margin-right: 0.75rem;
margin-bottom: 0.75rem;
font-family: $body-font;
font-size: 0.875rem;
font-weight: 600;
a {
color: #121526;
}
}
}
h5 {
margin-bottom: 1rem;
color: $primary;
}
.tags {
display: flex;
flex-wrap: wrap;
align-items: center;
margin-right: 0.75rem;
font-size: 0.8125rem;
font-weight: 500;
height: auto;
white-space: nowrap;
.tag {
border: 1px solid rgba(0, 0, 0, 0.1);
padding: 0.375rem 1.25rem;
margin-right: 0.75rem;
margin-bottom: 0.75rem;
}
}
}
}
.blog-side-bar {
.tags-wrapper {
display: unset;
ul {
list-style-type: none;
display: flex;
flex-wrap: wrap;
li {
border: 1px solid rgba(0, 0, 0, 0.1);
padding: 0.375rem 1.25rem;
margin-right: 0.75rem;
margin-bottom: 0.75rem;
border: 1px solid rgba(0, 0, 0, 0.1);
padding: 0.375rem 1.25rem;
margin-right: 0.75rem;
margin-bottom: 0.75rem;
font-family: $body-font;
font-size: 0.875rem;
font-weight: 600;
a {
color: #121526;
}
}
}
h5 {
margin-bottom: 1rem;
color: $primary;
}
.tags {
display: flex;
flex-wrap: wrap;
align-items: center;
margin-right: 0.75rem;
font-size: 0.8125rem;
font-weight: 500;
height: auto;
white-space: nowrap;
.tag {
border: 1px solid rgba(0, 0, 0, 0.1);
padding: 0.375rem 1.25rem;
margin-right: 0.75rem;
margin-bottom: 0.75rem;
}
}
}
}
}
.RELATED-BLOGS {
.after-title {
@media (max-width: 767.98px) {
display: block !important;
.right-button {
justify-content: start !important;
}
}
}
.right-button {
button {
border: 1px solid rgba(0, 0, 0, 0.1);
}
@media (max-width: 767.98px) {
.btn-start-project,
.btn-start-project {
padding: 1rem !important;
}
}
}
span {
color: #b1b1b1;
}
.after-title {
@media (max-width: 767.98px) {
display: block !important;
.right-button {
justify-content: start !important;
}
}
}
.right-button {
button {
border: 1px solid rgba(0, 0, 0, 0.1);
}
@media (max-width: 767.98px) {
.btn-start-project,
.btn-start-project {
padding: 1rem !important;
}
}
}
span {
color: #b1b1b1;
}
}
.BLOGDETAIL-LIST-ITEM-SECTION {
.blog-detail-side-bar {
p {
margin-bottom: 3.4375rem;
}
}
.blog-detail-side-bar {
p {
margin-bottom: 3.4375rem;
}
}
}
......@@ -9,12 +9,29 @@
margin-bottom: 52px;
min-width: unset;
&::before {
content: "";
width: 18px;
height: 13px;
display: inline-block;
background: url(../img/arrow-back.svg) no-repeat center/contain;
&:hover {
background-color: $white !important;
color: $primary !important;
svg {
path {
stroke: $primary;
fill: $primary !important;
}
}
}
.COMPARISON-FORM .section-title {
margin-bottom: 24px;
}
// &::before {
// content: "";
// width: 18px;
// height: 13px;
// display: inline-block;
// background: url(../img/arrow-back.svg) no-repeat center/contain;
// margin-right: 12px;
// }
svg {
margin-right: 12px;
}
}
......
......@@ -4,7 +4,8 @@ $theme-colors: (
"secondary": #f9f8f4,
"dark": #000000,
"light": #f6f8f9,
"grey": #58595a
"grey": #58595a,
"red": #f71d24
);
//colors
......@@ -14,6 +15,7 @@ $secondary: #f9f8f4;
$background-dark: #121526;
$primary-second: #005aff;
$grey: #58595a;
$red: #f71d24;
//fonts
$body-font: "Sora", sans-serif;
......@@ -34,3 +36,22 @@ $body-font: "Sora", sans-serif;
@import "pages/service";
@import "pages/course-detail";
@import "pages/responsive";
@import "base/global";
@import "pages/service-detail/service-lisiting";
@import "pages/service-detail/service-plans";
@import "pages/service-detail/service-detail-form";
@import "pages/portfolio-detail/portfolio-gallery";
@import "pages/portfolio-detail/portfolio-icon-and-typo";
@import "pages/portfolio-detail/portfolio-icon-list";
@import "pages/portfolio-detail/portfolio-intro";
@import "pages/portfolio-detail/portfolio-mockup";
@import "pages/portfolio-detail/portfolio-single-image";
@import "pages/portfolio-detail/portfolio-single-image";
@import "pages/portfolio-detail/portfolio-testimonial";
@import "pages/portfolio-detail/portfolio-title-desc";
@import "pages/portfolio-detail/related-portfolio";
@import "pages/seo-audit/audit-intro";
@import "pages/seo-audit/audit-toolbox";
@import "pages/seo-audit/audit-quote";
@import "pages/site-comparision/inner-banner";
@import "pages/site-comparision/comparison-form";
......@@ -231,7 +231,7 @@
</a>
<div class="whats-app-icon-wrapper">
<a href="https://wa.me/<?php echo $whatsapp ?>" target="_blank">
<a href="https://wa.me/<?php echo get_field('whats_app_number', 'option'); ?>" target="_blank">
<svg width="60" height="60" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M48 24C48 37.2548 37.2548 48 24 48C10.7452 48 0 37.2548 0 24C0 10.7452 10.7452 0 24 0C37.2548 0 48 10.7452 48 24Z"
......@@ -246,6 +246,66 @@
</div>
</div>
<div class="download-popup">
<div class="dp-content-box">
<div class="top-title section-title d-flex justify-content-between align-items-start">
<div class="title">
<h2>Get Your Free SEO Audit Delivered to Your Inbox</h2>
<p class="d-none d-md-block">Fill out the form, and we'll send you a detailed SEO audit directly to your email,
helping you improve your
website's performance.
</p>
</div>
<button type="button" class="close-download-popup">
<img src="<?php echo get_parent_theme_file_uri()?>/assets/img/x-mark.svg" alt="">
</button>
</div>
<div class="form-content-box">
<div class="row">
<div class="col-sm-6">
<div class="input-field">
<label>Full Name</label>
<input type="text" placeholder="Enter your Full Name ">
</div>
</div>
<div class="col-sm-6">
<div class="input-field">
<label>Phone Number (Optional)</label>
<input type="text" placeholder="Enter your Phone Number">
</div>
</div>
<div class="col-sm-6">
<div class="input-field">
<label>Enter your Email Address</label>
<input type="text" placeholder="Enter your Email Address ">
</div>
</div>
<div class="col-sm-6">
<div class="input-field">
<label>Company Name</label>
<input type="text" placeholder="Enter the Name of your Company">
</div>
</div>
<div class="col">
<div class="input-field">
<label>Message (optional)</label>
<textarea rows="3" placeholder="Enter the message you want us to send"></textarea>
</div>
</div>
</div>
<div class="submit-field ">
<input type="submit" value="Submit">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd"
d="M-6.11959e-07 9L12.17 9L6.58 14.59L8 16L16 8L8 6.99382e-07L6.59 1.41L12.17 7L-7.86805e-07 7L-6.11959e-07 9Z"
fill="white" />
</svg>
</div>
</div>
</div>
</div>
<a href="#" class="custom-overlay"></a>
<?php wp_footer() ?>
</body>
......
......@@ -7,688 +7,752 @@ function my_acf_init_block_types()
if (function_exists('acf_register_block_type')) {
// Welcome Banner Block
acf_register_block_type(array(
'name' => 'Welcome Banner Block',
'title' => __('Welcome Banner Block'),
'description' => __('Welcome Banner Block'),
'render_template' => 'blocks/welcome-banner.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Welcome Banner'),
'example' => [
'name' => 'Welcome Banner Block',
'title' => __('Welcome Banner Block'),
'description' => __('Welcome Banner Block'),
'render_template' => 'blocks/welcome-banner.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Welcome Banner'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
// Welcome Banner Spider Block
acf_register_block_type(array(
'name' => 'Welcome Banner Spider Block',
'title' => __('Welcome Banner Spider Block'),
'description' => __('Welcome Banner Spider Block'),
'render_template' => 'blocks/welcome-banner-spider.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Welcome Banner Spider'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
],
'name' => 'Welcome Banner Spider Block',
'title' => __('Welcome Banner Spider Block'),
'description' => __('Welcome Banner Spider Block'),
'render_template' => 'blocks/welcome-banner-spider.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Welcome Banner Spider'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => [],
],
],
));
// Partners Carousel Block
acf_register_block_type(array(
'name' => 'Partners Carousel Block',
'title' => __('Partners Carousel Block'),
'description' => __('Partners Carousel Block'),
'render_template' => 'blocks/partners-carousel.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Welcome Banner'),
'example' => [
'name' => 'Partners Carousel Block',
'title' => __('Partners Carousel Block'),
'description' => __('Partners Carousel Block'),
'render_template' => 'blocks/partners-carousel.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Welcome Banner'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
// Text Image Block
acf_register_block_type(array(
'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('Our Information Section'),
'example' => [
'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('Our Information Section'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'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' => [
'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' => []
]
'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' => [
'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' => []
]
'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' => [
'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',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'Portfolio Block',
'title' => __('Portfolio Block'),
'description' => __('Portfolio Block'),
'render_template' => 'blocks/portfolio-block.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Portfolio Block'),
'example' => [
'name' => 'Portfolio Block',
'title' => __('Portfolio Block'),
'description' => __('Portfolio Block'),
'render_template' => 'blocks/portfolio-block.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Portfolio Block'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'Testimonials Block',
'title' => __('Testimonials Block'),
'description' => __('Testimonials Block'),
'render_template' => 'blocks/testimonial-block.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Testimonials Block'),
'example' => [
'name' => 'Testimonials Block',
'title' => __('Testimonials Block'),
'description' => __('Testimonials Block'),
'render_template' => 'blocks/testimonial-block.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Testimonials Block'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'Blogs Block',
'title' => __('Blogs Block'),
'description' => __('Blogs Block'),
'render_template' => 'blocks/blogs-block.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Blogs Block'),
'example' => [
'name' => 'Blogs Block',
'title' => __('Blogs Block'),
'description' => __('Blogs Block'),
'render_template' => 'blocks/blogs-block.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Blogs Block'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'FAQs Block',
'title' => __('FAQs Block'),
'description' => __('FAQs Block'),
'render_template' => 'blocks/faqs-block.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('FAQs Block'),
'example' => [
'name' => 'FAQs Block',
'title' => __('FAQs Block'),
'description' => __('FAQs Block'),
'render_template' => 'blocks/faqs-block.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('FAQs Block'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'Start Project CTA',
'title' => __('Start Project CTA'),
'description' => __('Start Project CTA'),
'render_template' => 'blocks/start-project-cta.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Start Project CTA'),
'example' => [
'name' => 'Start Project CTA',
'title' => __('Start Project CTA'),
'description' => __('Start Project CTA'),
'render_template' => 'blocks/start-project-cta.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Start Project CTA'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'Banner Block',
'title' => __('Banner Block'),
'description' => __('Banner Block'),
'render_template' => 'blocks/banner-block.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Banner Block'),
'example' => [
'name' => 'Banner Block',
'title' => __('Banner Block'),
'description' => __('Banner Block'),
'render_template' => 'blocks/banner-block.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Banner Block'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'Two Column Image Block',
'title' => __('Two Column Image Block'),
'description' => __('Two Column Image Block'),
'render_template' => 'blocks/two-coloumns-block.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Two Column Image Block'),
'example' => [
'name' => 'Two Column Image Block',
'title' => __('Two Column Image Block'),
'description' => __('Two Column Image Block'),
'render_template' => 'blocks/two-coloumns-block.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Two Column Image Block'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'Custom Quote Block',
'title' => __('Custom Quote Block'),
'description' => __('Custom Quote Block'),
'render_template' => 'blocks/custom-quote-block.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Custom Quote Block'),
'example' => [
'name' => 'Custom Quote Block',
'title' => __('Custom Quote Block'),
'description' => __('Custom Quote Block'),
'render_template' => 'blocks/custom-quote-block.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Custom Quote Block'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'Portfolio Banner',
'title' => __('Portfolio Banner'),
'description' => __('Portfolio Banner'),
'render_template' => 'blocks/portfolio-banner.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Portfolio Banner'),
'example' => [
'name' => 'Portfolio Banner',
'title' => __('Portfolio Banner'),
'description' => __('Portfolio Banner'),
'render_template' => 'blocks/portfolio-banner.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Portfolio Banner'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'Custom Page Banner',
'title' => __('Custom Page Banner'),
'description' => __('Custom Page Banner'),
'render_template' => 'blocks/custom-page-banner.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Custom Page Banner'),
'example' => [
'name' => 'Custom Page Banner',
'title' => __('Custom Page Banner'),
'description' => __('Custom Page Banner'),
'render_template' => 'blocks/custom-page-banner.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Custom Page Banner'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'About Client Section',
'title' => __('About Client Section'),
'description' => __('About Client Section'),
'render_template' => 'blocks/about-client-section.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('About Client Section'),
'example' => [
'name' => 'About Client Section',
'title' => __('About Client Section'),
'description' => __('About Client Section'),
'render_template' => 'blocks/about-client-section.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('About Client Section'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'Portfolio Text Image Section',
'title' => __('Portfolio Text Image Section'),
'description' => __('Portfolio Text Image Section'),
'render_template' => 'blocks/portfolio-text-image-section.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Portfolio Text Image Section'),
'example' => [
'name' => 'Portfolio Text Image Section',
'title' => __('Portfolio Text Image Section'),
'description' => __('Portfolio Text Image Section'),
'render_template' => 'blocks/portfolio-text-image-section.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Portfolio Text Image Section'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'Technology Used Section',
'title' => __('Technology Used Section'),
'description' => __('Technology Used Section'),
'render_template' => 'blocks/technology-used-section.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Technology Used Section'),
'example' => [
'name' => 'Technology Used Section',
'title' => __('Technology Used Section'),
'description' => __('Technology Used Section'),
'render_template' => 'blocks/technology-used-section.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Technology Used Section'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'Portfolio Conclusion Section',
'title' => __('Portfolio Conclusion Section'),
'description' => __('Portfolio Conclusion Section'),
'render_template' => 'blocks/portfolio-conclusion-section.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Portfolio Conclusion Section'),
'example' => [
'name' => 'Portfolio Conclusion Section',
'title' => __('Portfolio Conclusion Section'),
'description' => __('Portfolio Conclusion Section'),
'render_template' => 'blocks/portfolio-conclusion-section.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Portfolio Conclusion Section'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'Share Buttons Section',
'title' => __('Share Buttons Section'),
'description' => __('Share Buttons Section'),
'render_template' => 'blocks/share-buttons-section.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Share Buttons Section'),
'example' => [
'name' => 'Share Buttons Section',
'title' => __('Share Buttons Section'),
'description' => __('Share Buttons Section'),
'render_template' => 'blocks/share-buttons-section.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Share Buttons Section'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'Related Portfolio Section',
'title' => __('Related Portfolio Section'),
'description' => __('Related Portfolio Section'),
'render_template' => 'blocks/related-portfolio-section.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Related Portfolio Section'),
'example' => [
'name' => 'Related Portfolio Section',
'title' => __('Related Portfolio Section'),
'description' => __('Related Portfolio Section'),
'render_template' => 'blocks/related-portfolio-section.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Related Portfolio Section'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'Custom banner with right image',
'title' => __('Custom banner with right image'),
'description' => __('Custom banner with right image'),
'render_template' => 'blocks/custom-banner-with-right-image.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Custom banner with right image'),
'example' => [
'name' => 'Custom banner with right image',
'title' => __('Custom banner with right image'),
'description' => __('Custom banner with right image'),
'render_template' => 'blocks/custom-banner-with-right-image.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Custom banner with right image'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'Breadcrumb Section',
'title' => __('Breadcrumb'),
'description' => __('Breadcrumb'),
'render_template' => 'blocks/custom-breadcrumb.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Breadcrumb'),
'example' => [
'name' => 'Breadcrumb Section',
'title' => __('Breadcrumb'),
'description' => __('Breadcrumb'),
'render_template' => 'blocks/custom-breadcrumb.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Breadcrumb'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'Our Story Section',
'title' => __('Our Story Section'),
'description' => __('Our Story Section'),
'render_template' => 'blocks/about-us/our-story.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Our Story Section'),
'example' => [
'name' => 'Our Story Section',
'title' => __('Our Story Section'),
'description' => __('Our Story Section'),
'render_template' => 'blocks/about-us/our-story.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Our Story Section'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'Mission/Vision Section',
'title' => __('Mission/Vision Section'),
'description' => __('Mission/Vision Section'),
'render_template' => 'blocks/about-us/mission-vision.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Mission/Vision Section'),
'example' => [
'name' => 'Mission/Vision Section',
'title' => __('Mission/Vision Section'),
'description' => __('Mission/Vision Section'),
'render_template' => 'blocks/about-us/mission-vision.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Mission/Vision Section'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'Our Team Section',
'title' => __('Our Team Section'),
'description' => __('Our Team Section'),
'render_template' => 'blocks/about-us/our-team.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Our Team Section'),
'example' => [
'name' => 'Our Team Section',
'title' => __('Our Team Section'),
'description' => __('Our Team Section'),
'render_template' => 'blocks/about-us/our-team.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Our Team Section'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'Our Team with Departments Section',
'title' => __('Our Team with Departments Section'),
'description' => __('Our Team with Departments Section'),
'render_template' => 'blocks/about-us/our-team-with-departments.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Our Team with Departments Section'),
'example' => [
'name' => 'Our Team with Departments Section',
'title' => __('Our Team with Departments Section'),
'description' => __('Our Team with Departments Section'),
'render_template' => 'blocks/about-us/our-team-with-departments.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Our Team with Departments Section'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'How It Feels Section',
'title' => __('How It Feels Section'),
'description' => __('How It Feels Section'),
'render_template' => 'blocks/about-us/how-it-feels.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('How It Feels Section'),
'example' => [
'name' => 'How It Feels Section',
'title' => __('How It Feels Section'),
'description' => __('How It Feels Section'),
'render_template' => 'blocks/about-us/how-it-feels.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('How It Feels Section'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'Employe Feel Section',
'title' => __('Employe Feel Section'),
'description' => __('Employe Feel Section'),
'render_template' => 'blocks/about-us/employe-feel.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Employe Feel Section'),
'example' => [
'name' => 'Employe Feel Section',
'title' => __('Employe Feel Section'),
'description' => __('Employe Feel Section'),
'render_template' => 'blocks/about-us/employe-feel.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Employe Feel Section'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'Vacancy Listing',
'title' => __('Vacancy Listing'),
'description' => __('Vacancy Listing'),
'render_template' => 'blocks/vacancy-listing.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Vacancy Listing'),
'example' => [
'name' => 'Vacancy Listing',
'title' => __('Vacancy Listing'),
'description' => __('Vacancy Listing'),
'render_template' => 'blocks/vacancy-listing.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Vacancy Listing'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'Contact Details Section',
'title' => __('Contact Details Section'),
'description' => __('Contact Details Section'),
'render_template' => 'blocks/contact-us/contact-details.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Contact Details Section'),
'example' => [
'name' => 'Contact Details Section',
'title' => __('Contact Details Section'),
'description' => __('Contact Details Section'),
'render_template' => 'blocks/contact-us/contact-details.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Contact Details Section'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'Contact Form Section',
'title' => __('Contact Form Section'),
'description' => __('Contact Form Section'),
'render_template' => 'blocks/contact-us/contact-form.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Contact Form Section'),
'example' => [
'name' => 'Contact Form Section',
'title' => __('Contact Form Section'),
'description' => __('Contact Form Section'),
'render_template' => 'blocks/contact-us/contact-form.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Contact Form Section'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'Map Section',
'title' => __('Map Section'),
'description' => __('Map Section'),
'render_template' => 'blocks/contact-us/map-section.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Map Section'),
'example' => [
'name' => 'Map Section',
'title' => __('Map Section'),
'description' => __('Map Section'),
'render_template' => 'blocks/contact-us/map-section.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Map Section'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'Portfolio Listing Section',
'title' => __('Portfolio Listing Section'),
'description' => __('Portfolio Listing Section'),
'render_template' => 'blocks/portfolio-listing-section.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Portfolio Listing Section'),
'example' => [
'name' => 'Portfolio Listing Section',
'title' => __('Portfolio Listing Section'),
'description' => __('Portfolio Listing Section'),
'render_template' => 'blocks/portfolio-listing-section.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Portfolio Listing Section'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'About Us Stat Section',
'title' => __('About Us Stat Section'),
'description' => __('About Us Stat Section'),
'render_template' => 'blocks/about-us/stat-section.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('About Us Stat Section'),
'example' => [
'name' => 'About Us Stat Section',
'title' => __('About Us Stat Section'),
'description' => __('About Us Stat Section'),
'render_template' => 'blocks/about-us/stat-section.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('About Us Stat Section'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'Service List Section',
'title' => __('Service List Section'),
'description' => __('Service List Section'),
'render_template' => 'blocks/service-list-section.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Service List Section'),
'example' => [
'name' => 'Service List Section',
'title' => __('Service List Section'),
'description' => __('Service List Section'),
'render_template' => 'blocks/service-list-section.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Service List Section'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'Service Content List Section',
'title' => __('Service Content List Section'),
'description' => __('Service Content List Section'),
'render_template' => 'blocks/service-content-list-section.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Service Content List Section'),
'example' => [
'name' => 'Service Content List Section',
'title' => __('Service Content List Section'),
'description' => __('Service Content List Section'),
'render_template' => 'blocks/service-content-list-section.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Service Content List Section'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'New Service Content List Section',
'title' => __('New Service Content List Section'),
'description' => __('New Service Content List Section'),
'render_template' => 'blocks/new-service-content-list-section.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('New Service Content List Section'),
'example' => [
'name' => 'New Service Content List Section',
'title' => __('New Service Content List Section'),
'description' => __('New Service Content List Section'),
'render_template' => 'blocks/new-service-content-list-section.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('New Service Content List Section'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'Service Work Process Section',
'title' => __('Service Work Process Section'),
'description' => __('Service Work Process Section'),
'render_template' => 'blocks/service-work-process-section.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Service Work Process Section'),
'example' => [
'name' => 'Service Work Process Section',
'title' => __('Service Work Process Section'),
'description' => __('Service Work Process Section'),
'render_template' => 'blocks/service-work-process-section.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Service Work Process Section'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'Service Portfolio List Section',
'title' => __('Service Portfolio List Section'),
'description' => __('Service Portfolio List Section'),
'render_template' => 'blocks/service-portfolio-list-section.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Service Portfolio List Section'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => [],
],
],
));
acf_register_block_type(array(
'name' => 'Contact Us Breadcrumb',
'title' => __('Contact Us Breadcrumb'),
'description' => __('Contact Us Breadcrumb'),
'render_template' => 'blocks/contact-us/contact-breadcrumb.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Contact Us Breadcrumb'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => [],
],
],
));
// SEO - Hero Section
acf_register_block_type(array(
'name' => 'Hero Section',
'title' => __('Hero Section'),
'description' => __('Hero Section for SEO Pages'),
'render_template' => 'blocks/seo/hero.php',
'category' => 'formatting',
'icon' => file_get_contents(get_template_directory() . '/assets/img/makura.svg'),
'keywords' => array('Hero Section'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => [],
],
],
));
// SEO - Icon Box Section
acf_register_block_type(array(
'name' => 'SEO - Icon Box Section',
'title' => __('SEO - Icon Box Section'),
'description' => __('SEO - Icon Box Section for SEO Pages'),
'render_template' => 'blocks/seo/icon-box.php',
'category' => 'formatting',
'icon' => file_get_contents(get_template_directory() . '/assets/img/makura.svg'),
'keywords' => array('SEO - Icon Box Section'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
// SEO - Quote Section
acf_register_block_type(array(
'name' => 'Service Portfolio List Section',
'title' => __('Service Portfolio List Section'),
'description' => __('Service Portfolio List Section'),
'render_template' => 'blocks/service-portfolio-list-section.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Service Portfolio List Section'),
'example' => [
'name' => 'SEO - Quote Section',
'title' => __('Quote Block'),
'description' => __('SEO - Quote Section for SEO Pages'),
'render_template' => 'blocks/seo/quote.php',
'category' => 'formatting',
'icon' => file_get_contents(get_template_directory() . '/assets/img/makura.svg'),
'keywords' => array('SEO - Quote Section'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
// SEO - Competitive Analysis Form Block
acf_register_block_type(array(
'name' => 'Contact Us Breadcrumb',
'title' => __('Contact Us Breadcrumb'),
'description' => __('Contact Us Breadcrumb'),
'render_template' => 'blocks/contact-us/contact-breadcrumb.php',
'category' => 'formatting',
'icon' => 'admin-comments',
'keywords' => array('Contact Us Breadcrumb'),
'example' => [
'name' => 'SEO - Competitive Analysis Form Block',
'title' => __('Competitive Analysis Form Block'),
'description' => __('SEO - Competitive Analysis Form Block for SEO Pages'),
'render_template' => 'blocks/seo/compare.php',
'category' => 'formatting',
'icon' => file_get_contents(get_template_directory() . '/assets/img/makura.svg'),
'keywords' => array('SEO - Competitive Analysis Form Block'),
'example' => [
'attributes' => [
'mode' => 'preview',
'data' => []
]
'data' => [],
],
],
));
}
......
......@@ -6,226 +6,249 @@ get_header();
?>
<div class="container-fluid py-40 background-dark blog-breadcrumb-background-dark breadcrumb-background-dark py-40">
<div class="container">
<div class="row">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href=<?php echo site_url('/'); ?>>Home</a></li>
<li class="breadcrumb-item"><a href="<?php echo get_home_url() . '/blogs/'; ?>">Blog</a></li>
<li class="breadcrumb-item active" aria-current="page"><?php the_title(); ?></li>
</ol>
</nav>
</div>
<div class="container">
<div class="row">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href=<?php echo site_url('/'); ?>>Home</a></li>
<li class="breadcrumb-item"><a href="<?php echo get_home_url() . '/blogs/'; ?>">Blog</a></li>
<li class="breadcrumb-item active" aria-current="page"><?php the_title(); ?></li>
</ol>
</nav>
</div>
</div>
</div>
<section class="background-dark pb-60 BLOGDETAIL-TOP-TITLE-SECTION">
<div class="container">
<div class="row justify-content-between">
<div class="col-lg-10 pb-60 title-wrapper">
<span>Published <?php echo get_the_date('d, M Y'); ?></span>
<h1><?php the_title(); ?></h1>
<div class="post-date d-flex align-items-center">
<div class="d-flex align-items-center svg-wrapper">
<svg height="24" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" width="24" height="24"
stroke-width="2">
<path d="M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"></path>
<path d="M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"></path>
</svg>
<?php echo get_the_author(); ?>
</div>
<div class="d-flex align-items-center svg-wrapper">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_1250_4547)">
<path
d="M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z"
stroke="#F9F8F4" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
<path d="M12 7V12L15 15" stroke="#F9F8F4" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" />
</g>
<defs>
<clipPath id="clip0_1250_4547">
<rect width="24" height="24" fill="white" />
</clipPath>
</defs>
</svg>
<?php
$post_content = get_the_content();
$reading_time = calculate_reading_time($post_content);
echo $reading_time; ?> mins read
</div>
<div class="d-flex views">
<svg class="me-2" width="24" height="24" viewBox="0 0 24 24" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path
d="M12 5.25C4.5 5.25 1.5 12 1.5 12C1.5 12 4.5 18.75 12 18.75C19.5 18.75 22.5 12 22.5 12C22.5 12 19.5 5.25 12 5.25Z"
stroke="#F9F8F4" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
<path
d="M12 15.75C14.0711 15.75 15.75 14.0711 15.75 12C15.75 9.92893 14.0711 8.25 12 8.25C9.92893 8.25 8.25 9.92893 8.25 12C8.25 14.0711 9.92893 15.75 12 15.75Z"
stroke="#F9F8F4" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
</svg>
<?php echo do_shortcode('[post-views]'); ?> Views
</div>
<div class="container">
<div class="row justify-content-between">
<div class="col-lg-10 pb-60 title-wrapper">
<span>Published <?php echo get_the_date('d, M Y'); ?></span>
<h1><?php the_title(); ?></h1>
<div class="post-date d-flex align-items-center">
<div class="d-flex align-items-center svg-wrapper">
<svg height="24" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" width="24" height="24"
stroke-width="2">
<path d="M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"></path>
<path d="M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"></path>
</svg>
<?php echo get_the_author(); ?>
</div>
<div class="d-flex align-items-center svg-wrapper">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_1250_4547)">
<path
d="M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z"
stroke="#F9F8F4" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
<path d="M12 7V12L15 15" stroke="#F9F8F4" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" />
</g>
<defs>
<clipPath id="clip0_1250_4547">
<rect width="24" height="24" fill="white" />
</clipPath>
</defs>
</svg>
<?php
$post_content = get_the_content();
$reading_time = calculate_reading_time($post_content);
echo $reading_time; ?> mins read
</div>
<div class="d-flex views">
<svg class="me-2" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M12 5.25C4.5 5.25 1.5 12 1.5 12C1.5 12 4.5 18.75 12 18.75C19.5 18.75 22.5 12 22.5 12C22.5 12 19.5 5.25 12 5.25Z"
stroke="#F9F8F4" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
<path
d="M12 15.75C14.0711 15.75 15.75 14.0711 15.75 12C15.75 9.92893 14.0711 8.25 12 8.25C9.92893 8.25 8.25 9.92893 8.25 12C8.25 14.0711 9.92893 15.75 12 15.75Z"
stroke="#F9F8F4" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
</svg>
<?php echo do_shortcode('[post-views]'); ?> Views
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="container-fluid px-0 BLOGDETAIL-PAGE-BANNER">
<div class="row">
<?php get_banner_image(get_the_ID()); ?>
</div>
<div class="row">
<?php get_banner_image(get_the_ID()); ?>
</div>
</section>
<section class="py-60 mb-60 BLOGDETAIL-LIST-ITEM-SECTION">
<div class="container">
<div class="row justify-content-between">
<div class="col-lg-3 col-12 left-filter">
<div class="blog-side-bar blog-detail-side-bar">
<div class="back-to-blog font-16 fw-600">
<a href="<?php echo get_home_url() . '/blogs/'; ?>">
<svg width="12" height="16" viewBox="0 0 12 16" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path
d="M2 4H8.66667C9.02029 4 9.35943 4.14048 9.60948 4.39052C9.85952 4.64057 10 4.97971 10 5.33333V14"
stroke="#005AFF" stroke-width="2.5" stroke-linecap="round"
stroke-linejoin="round" />
<path
d="M3.33344 6L1.42677 4.06C1.41384 4.04813 1.40352 4.03371 1.39645 4.01764C1.38939 4.00158 1.38574 3.98422 1.38574 3.96667C1.38574 3.94912 1.38939 3.93176 1.39645 3.91569C1.40352 3.89962 1.41384 3.8852 1.42677 3.87333L3.33344 2"
stroke="#005AFF" stroke-width="2.5" stroke-linecap="round"
stroke-linejoin="round" />
</svg>
Back to Blog
</a>
</div>
<p><?php echo the_field('read_time'); ?></p>
<div class="share-article2">
<h5>Share this article</h5>
<div class="d-flex social-icon">
<a href="https://www.addtoany.com/add_to/facebook?linkurl=<?php echo urlencode(get_the_permalink()); ?>&linkname=<?php echo urlencode(get_the_title()); ?>&linknote="
rel="nofollow noopener" target="_blank"
class="a2a_button_facebook share-option-icon icon d-flex align-items-center justify-content-center facebook">
<svg width="12" height="21" viewBox="0 0 12 21" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path
d="M10.6484 11.75L11.1953 8.15625H7.71875V5.8125C7.71875 4.79688 8.1875 3.85938 9.75 3.85938H11.3516V0.773438C11.3516 0.773438 9.90625 0.5 8.53906 0.5C5.6875 0.5 3.8125 2.25781 3.8125 5.38281V8.15625H0.609375V11.75H3.8125V20.5H7.71875V11.75H10.6484Z"
fill="#878787" />
</svg>
</a>
<a href="https://www.addtoany.com/add_to/twitter?linkurl=<?php echo urlencode(get_the_permalink()); ?>&linkname=<?php echo urlencode(get_the_title()); ?>&linknote="
class="share-option-icon a2a_button_twitter icon d-flex align-items-center justify-content-center twitter">
<svg width="20" height="17" viewBox="0 0 20 17" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path
d="M17.9297 4.4375C18.7109 3.85156 19.4141 3.14844 19.9609 2.32812C19.2578 2.64062 18.4375 2.875 17.6172 2.95312C18.4766 2.44531 19.1016 1.66406 19.4141 0.6875C18.6328 1.15625 17.7344 1.50781 16.8359 1.70312C16.0547 0.882812 15 0.414062 13.8281 0.414062C11.5625 0.414062 9.72656 2.25 9.72656 4.51562C9.72656 4.82812 9.76562 5.14062 9.84375 5.45312C6.44531 5.25781 3.39844 3.61719 1.36719 1.15625C1.01562 1.74219 0.820312 2.44531 0.820312 3.22656C0.820312 4.63281 1.52344 5.88281 2.65625 6.625C1.99219 6.58594 1.32812 6.42969 0.78125 6.11719V6.15625C0.78125 8.14844 2.1875 9.78906 4.0625 10.1797C3.75 10.2578 3.35938 10.3359 3.00781 10.3359C2.73438 10.3359 2.5 10.2969 2.22656 10.2578C2.73438 11.8984 4.25781 13.0703 6.05469 13.1094C4.64844 14.2031 2.89062 14.8672 0.976562 14.8672C0.625 14.8672 0.3125 14.8281 0 14.7891C1.79688 15.9609 3.94531 16.625 6.28906 16.625C13.8281 16.625 17.9297 10.4141 17.9297 4.98438C17.9297 4.78906 17.9297 4.63281 17.9297 4.4375Z"
fill="#878787" />
</svg>
</a>
<a href="https://www.addtoany.com/add_to/linkedin?linkurl=<?php echo urlencode(get_the_permalink()); ?>&linkname=<?php echo urlencode(get_the_title()); ?>&linknote="
class="share-option-icon a2a_button_linkedin icon d-flex align-items-center justify-content-center linkedin">
<svg width="18" height="18" viewBox="0 0 18 18" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path
d="M4.15625 18V6.32031H0.523438V18H4.15625ZM2.32031 4.75781C3.49219 4.75781 4.42969 3.78125 4.42969 2.60938C4.42969 1.47656 3.49219 0.539062 2.32031 0.539062C1.1875 0.539062 0.25 1.47656 0.25 2.60938C0.25 3.78125 1.1875 4.75781 2.32031 4.75781ZM17.7109 18H17.75V11.5938C17.75 8.46875 17.0469 6.04688 13.375 6.04688C11.6172 6.04688 10.4453 7.02344 9.9375 7.92188H9.89844V6.32031H6.42188V18H10.0547V12.2188C10.0547 10.6953 10.3281 9.25 12.2031 9.25C14.0781 9.25 14.1172 10.9688 14.1172 12.3359V18H17.7109Z"
fill="#878787" />
</svg>
</a>
</div>
</div>
<div class="tags-wrapper">
<h5>Tags</h5>
<?php
$tags = get_tags();
if ($tags): ?>
<ul>
<?php foreach ($tags as $tag): ?>
<li><a href="<?php echo esc_url(get_tag_link($tag->term_id)); ?>"
title="<?php echo esc_attr($tag->name); ?>"><?php echo esc_html($tag->name); ?></a>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</div>
</div>
<div class="container">
<div class="row justify-content-between">
<div class="col-lg-3 col-12 left-filter">
<div class="blog-side-bar blog-detail-side-bar">
<div class="back-to-blog font-16 fw-600">
<a href="<?php echo get_home_url() . '/blogs/'; ?>">
<svg width="12" height="16" viewBox="0 0 12 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M2 4H8.66667C9.02029 4 9.35943 4.14048 9.60948 4.39052C9.85952 4.64057 10 4.97971 10 5.33333V14"
stroke="#005AFF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" />
<path
d="M3.33344 6L1.42677 4.06C1.41384 4.04813 1.40352 4.03371 1.39645 4.01764C1.38939 4.00158 1.38574 3.98422 1.38574 3.96667C1.38574 3.94912 1.38939 3.93176 1.39645 3.91569C1.40352 3.89962 1.41384 3.8852 1.42677 3.87333L3.33344 2"
stroke="#005AFF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" />
</svg>
Back to Blog
</a>
</div>
<?php
$content = apply_filters('the_content', get_the_content());
if (!empty($content)) {
libxml_use_internal_errors(true);
$dom = new DOMDocument();
$dom->loadHTML(mb_convert_encoding($content, 'HTML-ENTITIES', 'UTF-8'));
$table_of_contents = '<div class="blog-category toc">
<div class="toc-title">
<h6>Table of Content</h6>
</div>
<div class="col-lg-9 col-12 blog-list">
<div class="row">
<div class="col-11 blog-detail-content mx-auto">
<?php the_content(); ?>
</div>
</div>
<div class="category-list">
<ul class="wp-block-categories-list wp-block-categories">';
$xpath = new DOMXPath($dom);
$headings = $xpath->query('//h2 | //h3');
foreach ($headings as $heading) {
$id = sanitize_title($heading->nodeValue);
$heading->setAttribute('id', $id);
$table_of_contents .= '<li><a class="cat-item" href="#' . $id . '">' . $heading->nodeValue . '</a></li>';
}
$table_of_contents .= '</ul>
</div>
</div>';
echo $table_of_contents;
} else {
echo '<div class="table-of-content"><h4>No Content Available</h4></div>';
}
?>
<p><?php echo the_field('read_time'); ?></p>
<div class="share-article2">
<h5>Share this article</h5>
<div class="d-flex social-icon">
<a href="https://www.addtoany.com/add_to/facebook?linkurl=<?php echo urlencode(get_the_permalink()); ?>&linkname=<?php echo urlencode(get_the_title()); ?>&linknote="
rel="nofollow noopener" target="_blank"
class="a2a_button_facebook share-option-icon icon d-flex align-items-center justify-content-center facebook">
<svg width="12" height="21" viewBox="0 0 12 21" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M10.6484 11.75L11.1953 8.15625H7.71875V5.8125C7.71875 4.79688 8.1875 3.85938 9.75 3.85938H11.3516V0.773438C11.3516 0.773438 9.90625 0.5 8.53906 0.5C5.6875 0.5 3.8125 2.25781 3.8125 5.38281V8.15625H0.609375V11.75H3.8125V20.5H7.71875V11.75H10.6484Z"
fill="#878787" />
</svg>
</a>
<a href="https://www.addtoany.com/add_to/twitter?linkurl=<?php echo urlencode(get_the_permalink()); ?>&linkname=<?php echo urlencode(get_the_title()); ?>&linknote="
class="share-option-icon a2a_button_twitter icon d-flex align-items-center justify-content-center twitter">
<svg width="20" height="17" viewBox="0 0 20 17" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M17.9297 4.4375C18.7109 3.85156 19.4141 3.14844 19.9609 2.32812C19.2578 2.64062 18.4375 2.875 17.6172 2.95312C18.4766 2.44531 19.1016 1.66406 19.4141 0.6875C18.6328 1.15625 17.7344 1.50781 16.8359 1.70312C16.0547 0.882812 15 0.414062 13.8281 0.414062C11.5625 0.414062 9.72656 2.25 9.72656 4.51562C9.72656 4.82812 9.76562 5.14062 9.84375 5.45312C6.44531 5.25781 3.39844 3.61719 1.36719 1.15625C1.01562 1.74219 0.820312 2.44531 0.820312 3.22656C0.820312 4.63281 1.52344 5.88281 2.65625 6.625C1.99219 6.58594 1.32812 6.42969 0.78125 6.11719V6.15625C0.78125 8.14844 2.1875 9.78906 4.0625 10.1797C3.75 10.2578 3.35938 10.3359 3.00781 10.3359C2.73438 10.3359 2.5 10.2969 2.22656 10.2578C2.73438 11.8984 4.25781 13.0703 6.05469 13.1094C4.64844 14.2031 2.89062 14.8672 0.976562 14.8672C0.625 14.8672 0.3125 14.8281 0 14.7891C1.79688 15.9609 3.94531 16.625 6.28906 16.625C13.8281 16.625 17.9297 10.4141 17.9297 4.98438C17.9297 4.78906 17.9297 4.63281 17.9297 4.4375Z"
fill="#878787" />
</svg>
</a>
<a href="https://www.addtoany.com/add_to/linkedin?linkurl=<?php echo urlencode(get_the_permalink()); ?>&linkname=<?php echo urlencode(get_the_title()); ?>&linknote="
class="share-option-icon a2a_button_linkedin icon d-flex align-items-center justify-content-center linkedin">
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M4.15625 18V6.32031H0.523438V18H4.15625ZM2.32031 4.75781C3.49219 4.75781 4.42969 3.78125 4.42969 2.60938C4.42969 1.47656 3.49219 0.539062 2.32031 0.539062C1.1875 0.539062 0.25 1.47656 0.25 2.60938C0.25 3.78125 1.1875 4.75781 2.32031 4.75781ZM17.7109 18H17.75V11.5938C17.75 8.46875 17.0469 6.04688 13.375 6.04688C11.6172 6.04688 10.4453 7.02344 9.9375 7.92188H9.89844V6.32031H6.42188V18H10.0547V12.2188C10.0547 10.6953 10.3281 9.25 12.2031 9.25C14.0781 9.25 14.1172 10.9688 14.1172 12.3359V18H17.7109Z"
fill="#878787" />
</svg>
</a>
</div>
</div>
<div class="tags-wrapper">
<h5>Tags</h5>
<?php
$tags = get_tags();
if ($tags): ?>
<ul>
<?php foreach ($tags as $tag): ?>
<li><a href="<?php echo esc_url(get_tag_link($tag->term_id)); ?>"
title="<?php echo esc_attr($tag->name); ?>"><?php echo esc_html($tag->name); ?></a>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</div>
</div>
</div>
<div class="col-lg-9 col-12 blog-list">
<div class="row">
<div class="col-11 blog-detail-content mx-auto">
<?php the_content(); ?>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="container-fluid pb-80 RELATED-BLOGS">
<div class="container">
<div class="row">
<?php $related_posts_section = get_field('related_post_section', 'option');
if (!empty($related_posts_section)):
?>
<h2><?php echo $related_posts_section['title']; ?></h2>
<div class="d-flex align-items after-title pb-60 justify-content-between">
<div class="col-lg-8 col-md-8 col-sm-8 paragraph">
<?php echo $related_posts_section['description']; ?>
</div>
<?php if ($link = $related_posts_section['link']):
$link_target = $link['target'] ? $link['target'] : '_self'; ?>
<div class="col-lg-3 col-md-3 col-sm-3 right-button d-flex align-items-center justify-content-end">
<a href="<?php echo $link['url']; ?>" target="<?php echo esc_attr($link_target); ?>"
class="btn btn-primary btn-start-project"><?php echo $link['title']; ?></a>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<div class="container">
<div class="row">
<?php $related_posts_section = get_field('related_post_section', 'option');
if (!empty($related_posts_section)):
?>
<h2><?php echo $related_posts_section['title']; ?></h2>
<div class="d-flex align-items after-title pb-60 justify-content-between">
<div class="col-lg-8 col-md-8 col-sm-8 paragraph">
<?php echo $related_posts_section['description']; ?>
</div>
<?php if ($link = $related_posts_section['link']):
$link_target = $link['target'] ? $link['target'] : '_self'; ?>
<div class="col-lg-3 col-md-3 col-sm-3 right-button d-flex align-items-center justify-content-end">
<a href="<?php echo $link['url']; ?>" target="<?php echo esc_attr($link_target); ?>"
class="btn btn-primary btn-start-project"><?php echo $link['title']; ?></a>
</div>
<?php endif; ?>
</div>
<?php
$related = get_posts(array('category__in' => wp_get_post_categories(get_the_ID()), 'numberposts' => 5, 'post__not_in' => array(get_the_ID())));
if ($related):
?>
<div class="row">
<div class="blog-carousel owl-carousel owl-theme owl-loaded owl-drag">
<?php foreach ($related as $post):
setup_postdata($post); ?>
<div class="item blog-card">
<a href="<?php the_permalink(); ?>">
<div class="blog-image-wrapper">
<?php the_post_thumbnail(); ?>
</div>
<div class="text-wrapper">
<!--<p><?php echo get_simple_tag_list(get_the_ID()); ?></p>-->
<h6><?php the_title(); ?></h6>
<?php the_excerpt(); ?>
<span><svg width="20" height="21" viewBox="0 0 20 21" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path
d="M16.25 3.625H3.75C3.40482 3.625 3.125 3.90482 3.125 4.25V16.75C3.125 17.0952 3.40482 17.375 3.75 17.375H16.25C16.5952 17.375 16.875 17.0952 16.875 16.75V4.25C16.875 3.90482 16.5952 3.625 16.25 3.625Z"
stroke="#005AFF" stroke-width="1.5" stroke-linecap="round"
stroke-linejoin="round"></path>
<path d="M13.75 2.375V4.875" stroke="#005AFF" stroke-width="1.5"
stroke-linecap="round" stroke-linejoin="round"></path>
<path d="M6.25 2.375V4.875" stroke="#005AFF" stroke-width="1.5"
stroke-linecap="round" stroke-linejoin="round"></path>
<path d="M3.125 7.375H16.875" stroke="#005AFF" stroke-width="1.5"
stroke-linecap="round" stroke-linejoin="round"></path>
</svg> <?php echo get_the_date('d, M Y', get_the_ID()); ?></span>
</div>
</a>
</div>
<?php endforeach;
wp_reset_postdata(); ?>
<?php endif; ?>
</div>
<?php
</div>
$related = get_posts(array('category__in' => wp_get_post_categories(get_the_ID()), 'numberposts' => 5, 'post__not_in' => array(get_the_ID())));
if ($related):
?>
<div class="row">
<div class="blog-carousel owl-carousel owl-theme owl-loaded owl-drag">
<?php foreach ($related as $post):
setup_postdata($post); ?>
<div class="item blog-card">
<a href="<?php the_permalink(); ?>">
<div class="blog-image-wrapper">
<?php the_post_thumbnail(); ?>
</div>
<div class="text-wrapper">
<!--<p><?php echo get_simple_tag_list(get_the_ID()); ?></p>-->
<h6><?php the_title(); ?></h6>
<?php the_excerpt(); ?>
<span><svg width="20" height="21" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M16.25 3.625H3.75C3.40482 3.625 3.125 3.90482 3.125 4.25V16.75C3.125 17.0952 3.40482 17.375 3.75 17.375H16.25C16.5952 17.375 16.875 17.0952 16.875 16.75V4.25C16.875 3.90482 16.5952 3.625 16.25 3.625Z"
stroke="#005AFF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
<path d="M13.75 2.375V4.875" stroke="#005AFF" stroke-width="1.5" stroke-linecap="round"
stroke-linejoin="round"></path>
<path d="M6.25 2.375V4.875" stroke="#005AFF" stroke-width="1.5" stroke-linecap="round"
stroke-linejoin="round"></path>
<path d="M3.125 7.375H16.875" stroke="#005AFF" stroke-width="1.5" stroke-linecap="round"
stroke-linejoin="round"></path>
</svg> <?php echo get_the_date('d, M Y', get_the_ID()); ?></span>
</div>
</a>
</div>
<?php endif;
?>
</div>
<?php endforeach;
wp_reset_postdata(); ?>
</div>
</div>
<?php endif;
?>
</div>
</section>
<?php get_template_part('template-parts/footer-project-banner'); ?>
......
/*
Theme Name: Makura Theme
Text Domain: makura-theme
Version: 1.0
Version: 1.02
Description: Custom theme for Makura
Tags: blog, one-column, custom-background, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks, accessibility-ready
......
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