Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
makura-2025
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Raj Shah
makura-2025
Commits
dd1dbd15
Commit
dd1dbd15
authored
Sep 07, 2023
by
nabin kunwar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
image description block
parent
86af3093
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
183 additions
and
23 deletions
+183
-23
our-information-section.php
blocks/our-information-section.php
+12
-8
right-image-description.php
blocks/right-image-description.php
+17
-0
title-cta.php
blocks/title-cta.php
+28
-0
what-we-do-section.php
blocks/what-we-do-section.php
+72
-0
header.php
header.php
+0
-9
enqueuer.php
includes/enqueuer.php
+1
-1
blocks.php
includes/gutenberg/blocks.php
+53
-5
No files found.
blocks/
text-image
.php
→
blocks/
our-information-section
.php
View file @
dd1dbd15
<?php
if
(
get_field
(
'enable_ti_section'
))
:
?>
<?php
if
(
get_field
(
'enable_ti_section'
))
:
?>
<section
class=
"container-fluid py-60 HOME HOMEPAGE-TOP-AFTER-CAROUSEL-SECTION"
>
<section
class=
"container-fluid py-60 HOME HOMEPAGE-TOP-AFTER-CAROUSEL-SECTION"
>
<div
class=
"container"
>
<div
class=
"container"
>
<?php
if
(
have_rows
(
'content'
))
:
while
(
have_rows
(
'content'
))
:
the_row
();
?>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-lg-5 m-auto left-text-wrapper"
>
<div
class=
"col-lg-5 m-auto left-text-wrapper"
>
<div
class=
"text-wrapper"
>
<div
class=
"text-wrapper"
>
<h2>
<?php
echo
get_field
(
'ti_title'
);
?>
</h2>
<h2>
<?php
the_sub_field
(
'title'
)
?>
</h2>
<p>
<?php
echo
get_field
(
'ti_subtitle'
);
?>
<?php
the_sub_field
(
'subtitle'
);
?>
</p>
<?php
if
(
$link
=
get_sub_field
(
'link'
))
:
$link_target
=
$link
[
'target'
]
?
$link
[
'target'
]
:
'_self'
;
?>
<?php
if
(
get_field
(
'ti_button_text'
))
:
?>
<a
href=
"
<?php
echo
$link
[
'url'
];
?>
"
<a
href=
"
<?php
echo
get_field
(
'ti_button_link'
);
?>
"
class=
"btn btn-start-project-white"
target=
"
<?php
echo
esc_attr
(
$link_target
);
?>
"
>
<?php
echo
$link
[
'title'
];
?>
class=
"btn btn-start-project-white"
>
<?php
echo
get_field
(
'ti_button_text'
);
?>
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"25"
height=
"24"
viewBox=
"0 0 25 24"
fill=
"none"
>
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"25"
height=
"24"
viewBox=
"0 0 25 24"
fill=
"none"
>
<path
fill-rule=
"evenodd"
clip-rule=
"evenodd"
<path
fill-rule=
"evenodd"
clip-rule=
"evenodd"
d=
"M4.5 13L16.67 13L11.08 18.59L12.5 20L20.5 12L12.5 4L11.09 5.41L16.67 11L4.5 11L4.5 13Z"
d=
"M4.5 13L16.67 13L11.08 18.59L12.5 20L20.5 12L12.5 4L11.09 5.41L16.67 11L4.5 11L4.5 13Z"
...
@@ -22,14 +24,15 @@
...
@@ -22,14 +24,15 @@
<div
class=
"col-lg-5 m-auto right-image-wrapper"
>
<div
class=
"col-lg-5 m-auto right-image-wrapper"
>
<div
class=
"image-wrapper"
>
<div
class=
"image-wrapper"
>
<?php
<?php
$image
=
get_
field
(
'ti_featured_
image'
);
$image
=
get_
sub_field
(
'
image'
);
$size
=
'full'
;
// (thumbnail, medium, large, full or custom size)
$size
=
'full'
;
if
(
$image
)
{
if
(
$image
)
{
echo
wp_get_attachment_image
(
$image
,
$size
);
echo
wp_get_attachment_image
(
$image
,
$size
);
}
?>
}
?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
endwhile
;
endif
;
?>
</div>
</div>
</section>
</section>
<?php
endif
;
?>
<?php
endif
;
?>
\ No newline at end of file
blocks/right-image-description.php
0 → 100644
View file @
dd1dbd15
<?php
if
(
get_field
(
'enable_section'
))
:?>
<
section
class
="
analysis
-
section
background
-
dark
">
<div class="
container
">
<div class="
row
">
<div class="
col
-
lg
-
7
">
<?php if(
$image
= get_field('image')): echo wp_get_attachment_image(
$image
,'full'); endif;?>
</div>
<div class="
col
-
lg
-
5
">
<div class="
right
-
content
-
wrapper
py
-
100
">
<?php the_field('description');?>
</div>
</div>
</div>
</div>
</section>
<?php endif;?>
\ No newline at end of file
blocks/title-cta.php
0 → 100644
View file @
dd1dbd15
<?php
if
(
get_field
(
'enable_section'
))
:?>
<
section
class
="
container
-
fluid
HOME
NOT
-
LISTED
-
SECTION
py
-
60
">
<div class="
container
">
<div class="
row
text
-
center
justify
-
content
-
center
">
<div class="
col
-
lg
-
2
col
-
md
-
2
">
<h5><?php the_field('title');?></h5>
</div>
<div class="
col
-
lg
-
6
col
-
md
-
6
">
<?php the_field('subtitle');?>
</div>
<?php if (
$link
= get_field('link')) :
$link_target
=
$link['target']
?
$link['target']
: '_self';?>
<div class="
col
-
lg
-
3
col
-
md
-
3
">
<a href="
<?
php
echo
$link
[
'url'
];
?>
" target="
<?php
echo
esc_attr
(
$link_target
);
?>
">
<button
class=
"btn btn-start-project-white contact"
>
<?php
echo
$link
[
'title'
];
?>
<svg
width=
"25"
height=
"24"
viewBox=
"0 0 25 24"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<path
fill-rule=
"evenodd"
clip-rule=
"evenodd"
d=
"M4.5 13L16.67 13L11.08 18.59L12.5 20L20.5 12L12.5 4L11.09 5.41L16.67 11L4.5 11L4.5 13Z"
fill=
"white"
/>
</svg>
</button>
</a>
</div>
<?php
endif
;
?>
</div>
</div>
</section>
<?php
endif
;
?>
\ No newline at end of file
blocks/what-we-do-section.php
0 → 100644
View file @
dd1dbd15
<?php
if
(
get_field
(
'enable_section'
))
:?>
<
section
class
="
container
-
fluid
py
-
80
HOME
WHAT
-
WE
-
DO
-
SECTION
">
<div class="
container
">
<div class="
row
">
<div class="
col
-
lg
-
8
top
-
title
">
<h2><?php the_field('title');?></h2>
<?php the_field('subtitle');?>
</div>
</div>
<div class="
row
">
<div class="
col
-
lg
-
4
">
<div class="
card
-
wrapper
p
-
40
">
<img src="
assets
/
img
/
c1
.
png
" alt="">
<h4>Branding and Design</h4>
<div class="
tags
-
wrapper
">
<div class="
tag
">Logo</div>
<div class="
tag
">Brand Guidelines</div>
<div class="
tag
">Infographics</div>
<div class="
tag
">Packaging</div>
<div class="
tag
">Banner</div>
<div class="
tag
">Mockup</div>
<div class="
tag
">Icon</div>
<div class="
tag
">Booklet</div>
<div class="
tag
">Social Media</div>
<div class="
tag
">Booklet</div>
<div class="
tag
">Social Media</div>
</div>
</div>
</div>
<div class="
col
-
lg
-
4
">
<div class="
card
-
wrapper
p
-
40
">
<img src="
assets
/
img
/
c22
.
png
" alt="">
<h4>Web & Mobile App Development</h4>
<div class="
tags
-
wrapper
">
<div class="
tag
">Logo</div>
<div class="
tag
">Brand Guidelines</div>
<div class="
tag
">Infographics</div>
<div class="
tag
">Packaging</div>
<div class="
tag
">Banner</div>
<div class="
tag
">Mockup</div>
<div class="
tag
">Icon</div>
<div class="
tag
">Booklet</div>
<div class="
tag
">Social Media</div>
<div class="
tag
">Booklet</div>
<div class="
tag
">Social Media</div>
</div>
</div>
</div>
<div class="
col
-
lg
-
4
">
<div class="
card
-
wrapper
p
-
40
">
<img src="
assets
/
img
/
c22
.
png
" alt="">
<h4>Marketing and Promotions</h4>
<div class="
tags
-
wrapper
">
<div class="
tag
">Logo</div>
<div class="
tag
">Brand Guidelines</div>
<div class="
tag
">Infographics</div>
<div class="
tag
">Packaging</div>
<div class="
tag
">Banner</div>
<div class="
tag
">Mockup</div>
<div class="
tag
">Icon</div>
<div class="
tag
">Booklet</div>
<div class="
tag
">Social Media</div>
<div class="
tag
">Booklet</div>
<div class="
tag
">Social Media</div>
</div>
</div>
</div>
</div>
</div>
</section>
<?php endif; ?>
\ No newline at end of file
header.php
View file @
dd1dbd15
<?php
$link
=
$_SERVER
[
'PHP_SELF'
];
$link_array
=
explode
(
'/'
,
$link
);
$page
=
end
(
$link_array
);
?>
<!DOCTYPE html>
<!DOCTYPE html>
<html
lang=
"en"
>
<html
lang=
"en"
>
...
@@ -13,11 +7,8 @@ $page = end($link_array);
...
@@ -13,11 +7,8 @@ $page = end($link_array);
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<link
rel=
"preconnect"
href=
"https://fonts.googleapis.com"
>
<link
rel=
"preconnect"
href=
"https://fonts.googleapis.com"
>
<link
rel=
"preconnect"
href=
"https://fonts.gstatic.com"
crossorigin
>
<link
rel=
"preconnect"
href=
"https://fonts.gstatic.com"
crossorigin
>
<link
rel=
"icon"
type=
"image/x-icon"
href=
"
<?php
echo
get_home_url
();
?>
/wp-content/themes/mirai-global/assets/img/favicon.png"
>
<?php
wp_head
();
?>
<?php
wp_head
();
?>
</head>
</head>
<body>
<body>
...
...
includes/enqueuer.php
View file @
dd1dbd15
...
@@ -17,7 +17,7 @@ function conserve_register_styles()
...
@@ -17,7 +17,7 @@ function conserve_register_styles()
//import scripts
//import scripts
wp_enqueue_script
(
'jquery'
,
'https://code.jquery.com/jquery-3.5.1.min.js'
,
array
(),
null
,
true
);
//
wp_enqueue_script('jquery', 'https://code.jquery.com/jquery-3.5.1.min.js', array(), null, true);
wp_enqueue_script
(
'bootstrap-scripts'
,
'https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.bundle.min.js'
,
array
(),
null
,
true
);
wp_enqueue_script
(
'bootstrap-scripts'
,
'https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.bundle.min.js'
,
array
(),
null
,
true
);
wp_enqueue_script
(
'owl-carousel'
,
'https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/owl.carousel.min.js'
,
array
(),
null
,
true
);
wp_enqueue_script
(
'owl-carousel'
,
'https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/owl.carousel.min.js'
,
array
(),
null
,
true
);
wp_enqueue_script
(
'waypoints'
,
'https://cdnjs.cloudflare.com/ajax/libs/waypoints/4.0.1/jquery.waypoints.min.js'
,
array
(),
null
,
true
);
wp_enqueue_script
(
'waypoints'
,
'https://cdnjs.cloudflare.com/ajax/libs/waypoints/4.0.1/jquery.waypoints.min.js'
,
array
(),
null
,
true
);
...
...
includes/gutenberg/blocks.php
View file @
dd1dbd15
...
@@ -39,13 +39,61 @@ function my_acf_init_block_types()
...
@@ -39,13 +39,61 @@ function my_acf_init_block_types()
));
));
// Text Image Block
// Text Image Block
acf_register_block_type
(
array
(
acf_register_block_type
(
array
(
'name'
=>
'
Text Image Block
'
,
'name'
=>
'
Our Information Section
'
,
'title'
=>
__
(
'
Text Image Block
'
),
'title'
=>
__
(
'
Our Information Section
'
),
'description'
=>
__
(
'
Text Image Block
'
),
'description'
=>
__
(
'
Our Information Section
'
),
'render_template'
=>
'blocks/
text-image
.php'
,
'render_template'
=>
'blocks/
our-information-section
.php'
,
'category'
=>
'formatting'
,
'category'
=>
'formatting'
,
'icon'
=>
'admin-comments'
,
'icon'
=>
'admin-comments'
,
'keywords'
=>
array
(
'Welcome Banner'
),
'keywords'
=>
array
(
'Our Information Section'
),
'example'
=>
[
'attributes'
=>
[
'mode'
=>
'preview'
,
'data'
=>
[]
]
],
));
acf_register_block_type
(
array
(
'name'
=>
'What we do Section'
,
'title'
=>
__
(
'What we do Section'
),
'description'
=>
__
(
'What we do Section'
),
'render_template'
=>
'blocks/what-we-do-section.php'
,
'category'
=>
'formatting'
,
'icon'
=>
'admin-comments'
,
'keywords'
=>
array
(
'What we do Section'
),
'example'
=>
[
'attributes'
=>
[
'mode'
=>
'preview'
,
'data'
=>
[]
]
],
));
acf_register_block_type
(
array
(
'name'
=>
'Title CTA'
,
'title'
=>
__
(
'Title CTA'
),
'description'
=>
__
(
'Title CTA'
),
'render_template'
=>
'blocks/title-cta.php'
,
'category'
=>
'formatting'
,
'icon'
=>
'admin-comments'
,
'keywords'
=>
array
(
'Title CTA'
),
'example'
=>
[
'attributes'
=>
[
'mode'
=>
'preview'
,
'data'
=>
[]
]
],
));
acf_register_block_type
(
array
(
'name'
=>
'Right Image With Description'
,
'title'
=>
__
(
'Right Image With Description'
),
'description'
=>
__
(
'Right Image With Description'
),
'render_template'
=>
'blocks/right-image-description.php'
,
'category'
=>
'formatting'
,
'icon'
=>
'admin-comments'
,
'keywords'
=>
array
(
'Right Image With Description'
),
'example'
=>
[
'example'
=>
[
'attributes'
=>
[
'attributes'
=>
[
'mode'
=>
'preview'
,
'mode'
=>
'preview'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment