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
40133119
Commit
40133119
authored
Feb 19, 2025
by
rajshah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qa fixes
parent
36ddaa18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
single-resource.php
single-resource.php
+2
-2
No files found.
single-resource.php
View file @
40133119
...
@@ -5,7 +5,7 @@ $post_thumbnail_url = get_the_post_thumbnail_url(get_the_ID(), 'full');
...
@@ -5,7 +5,7 @@ $post_thumbnail_url = get_the_post_thumbnail_url(get_the_ID(), 'full');
if
(
!
$post_thumbnail_url
)
{
if
(
!
$post_thumbnail_url
)
{
$post_thumbnail_url
=
get_field
(
'resources_fallback_featured_image'
,
'option'
);
$post_thumbnail_url
=
get_field
(
'resources_fallback_featured_image'
,
'option'
);
}
}
$downloadable_resource
=
get_field
(
'downloadable_resource'
,
$post_id
)
?:
[];
$downloadable_resource
=
get_field
(
'downloadable_resource'
)
?:
[];
if
(
isset
(
$downloadable_resource
)
&&
is_array
(
$downloadable_resource
)
&&
!
empty
(
$downloadable_resource
))
:
if
(
isset
(
$downloadable_resource
)
&&
is_array
(
$downloadable_resource
)
&&
!
empty
(
$downloadable_resource
))
:
$enable_downloadable_resources
=
$downloadable_resource
[
'enable_downloadable_resources'
];
$enable_downloadable_resources
=
$downloadable_resource
[
'enable_downloadable_resources'
];
if
(
$enable_downloadable_resources
&&
isset
(
$enable_downloadable_resources
))
:
if
(
$enable_downloadable_resources
&&
isset
(
$enable_downloadable_resources
))
:
...
@@ -59,7 +59,7 @@ endif;
...
@@ -59,7 +59,7 @@ endif;
<div
class=
"col-lg-6 col-12"
>
<div
class=
"col-lg-6 col-12"
>
<div
class=
"position-relative left-text-wrapper"
>
<div
class=
"position-relative left-text-wrapper"
>
<h1>
<?php
echo
get_the_title
();
?>
</h1>
<h1>
<?php
echo
get_the_title
();
?>
</h1>
<p>
<?php
echo
wp_trim_words
(
get_the_excerpt
(),
8
,
' [...]'
)
?:
wp_trim_words
(
get_the_content
(),
8
,
' [...]'
);
?>
<p>
<?php
echo
get_the_excerpt
(
)
?:
wp_trim_words
(
get_the_content
(),
8
,
' [...]'
);
?>
</p>
</p>
<a
href=
"
<?php
echo
esc_url
(
$url
);
?>
"
target=
"_blank"
<a
href=
"
<?php
echo
esc_url
(
$url
);
?>
"
target=
"_blank"
class=
"btn btn-primary btn-padding hover-up btn-start-project font-14 fw-500 btn-padding btn-submit"
class=
"btn btn-primary btn-padding hover-up btn-start-project font-14 fw-500 btn-padding btn-submit"
...
...
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