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
12611fef
Commit
12611fef
authored
Jul 08, 2025
by
rajshah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix the xls document type in resource listing block
parent
912412bf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
resource-listing.php
blocks/resources/resource-listing.php
+14
-10
No files found.
blocks/resources/resource-listing.php
View file @
12611fef
...
...
@@ -6,8 +6,8 @@ if (isset($resources_listing) && is_array($resources_listing) && !empty($resourc
if
(
$enable_resources_listing
)
:
$resources_items
=
$resources_listing
[
'resources_items'
]
?:
[];
if
(
isset
(
$resources_items
)
&&
is_array
(
$resources_items
)
&&
!
empty
(
$resources_items
))
:
?>
<section
class=
"resource-listing py-80 makura-new"
>
?>
<section
class=
"resource-listing py-80 makura-new"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-lg-4 col-xl-3"
>
...
...
@@ -85,25 +85,25 @@ if (isset($resources_listing) && is_array($resources_listing) && !empty($resourc
$subtype
=
$upload_downloadable_resource
[
'subtype'
];
switch
(
strtolower
(
$subtype
))
{
case
'pdf'
:
$icon
_url
=
get_field
(
'pdf_image'
,
'option'
)
;
$icon
=
'PDF'
;
break
;
case
'doc'
:
case
'docx'
:
$icon
_url
=
get_field
(
'doc_image'
,
'option'
)
;
$icon
=
'DOC'
;
break
;
case
'xls'
:
case
'xlsx'
:
case
'vnd.ms-excel'
:
case
'vnd.openxmlformats-officedocument.spreadsheetml.sheet'
:
$icon
_url
=
get_field
(
'xls_image'
,
'option'
)
;
$icon
=
'XLS'
;
break
;
case
'ppt'
:
case
'pptx'
:
case
'vnd.openxmlformats-officedocument.presentationml.presentation'
:
$icon
_url
=
get_field
(
'ppt_image'
,
'option'
)
;
$icon
=
'PPT'
;
break
;
default
:
$icon
_url
=
get_field
(
'default_image'
,
'option'
)
;
$icon
=
'PDF'
;
}
endif
;
endif
;
...
...
@@ -116,7 +116,8 @@ if (isset($resources_listing) && is_array($resources_listing) && !empty($resourc
</div>
</div>
</div>
<?php
}
endforeach
;
?>
<?php
}
endforeach
;
?>
</div>
</div>
<?php
endif
;
?>
...
...
@@ -126,6 +127,8 @@ if (isset($resources_listing) && is_array($resources_listing) && !empty($resourc
</div>
</div>
</div>
</section>
<?php
endif
;
endif
;
endif
;
?>
</section>
<?php
endif
;
endif
;
endif
;
?>
<!-- !Resources - Resources Listing -->
\ No newline at end of file
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