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
a937cc93
Commit
a937cc93
authored
Feb 05, 2025
by
rajshah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
background color fixed in challenges section
parent
e43def48
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
portfolio-conclusion-section.php
blocks/portfolio-conclusion-section.php
+0
-1
portfolio-text-image-section.php
blocks/portfolio-text-image-section.php
+4
-2
No files found.
blocks/portfolio-conclusion-section.php
View file @
a937cc93
...
@@ -51,7 +51,6 @@ if (isset($cmws) && is_array($cmws) && !empty($cmws)):
...
@@ -51,7 +51,6 @@ if (isset($cmws) && is_array($cmws) && !empty($cmws)):
<?php
foreach
(
$cmws_gal
as
$i
=>
$gallery_item
)
:
<?php
foreach
(
$cmws_gal
as
$i
=>
$gallery_item
)
:
$img
=
$gallery_item
[
'img'
]
?:
''
;
$img
=
$gallery_item
[
'img'
]
?:
''
;
$layout
=
$gallery_item
[
'layout'
]
?:
''
;
$layout
=
$gallery_item
[
'layout'
]
?:
''
;
$new
=
$layout
[
0
];
$class_name
=
!
empty
(
$layout
)
?
explode
(
':'
,
$layout
[
0
])
:
'none'
;
$class_name
=
!
empty
(
$layout
)
?
explode
(
':'
,
$layout
[
0
])
:
'none'
;
$class_name
=
$class_name
[
0
];
?>
$class_name
=
$class_name
[
0
];
?>
<div
class=
"gallery-item
<?php
echo
$class_name
;
?>
"
>
<div
class=
"gallery-item
<?php
echo
$class_name
;
?>
"
>
...
...
blocks/portfolio-text-image-section.php
View file @
a937cc93
...
@@ -54,13 +54,15 @@ if(have_rows('content')):
...
@@ -54,13 +54,15 @@ if(have_rows('content')):
<?php
$index
=0;?>
<?php
$index
=0;?>
<?php while(have_rows('content')):
<?php while(have_rows('content')):
the_row();
the_row();
$bgClass
= get_sub_field('background_colour');
$class_name
= !empty(
$bgClass
) ? explode(':',
$bgClass
) : 'none';
$class_name
=
$class_name[0]
;
$image_position
= get_sub_field('image_position');
$image_position
= get_sub_field('image_position');
$image
= get_sub_field('image');
$image
= get_sub_field('image');
if(
$index
===0):
if(
$index
===0):
?>
?>
<div class="
ONLY
-
TEXT
-
SECTION
py
-
80
<div class="
ONLY
-
TEXT
-
SECTION
py
-
80
<?
php
echo
$class_name
;
?>
">
<?
php
echo
(
get_sub_field
(
'background_colour'
)
==
'dark'
)
?
'background-dark'
:
'bg-primary'
;
?>
">
<div class="container">
<div class="container">
<div class="row justify-content-between">
<div class="row justify-content-between">
<div class="col-lg-5 col-xl-4 order-lg-2">
<div class="col-lg-5 col-xl-4 order-lg-2">
...
...
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