Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
MSF
/
msf-climate-hub
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
f1e2bd93
authored
2023-11-16 09:40:02 -0500
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
qa
Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent
650e364e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
12 deletions
wp-content/themes/msf-child/page-templates/fullwidthpage.php → wp-content/themes/msf-child/page-templates/page_no_prefooter.php
wp-content/themes/msf-child/page-templates/
fullwidthpage
.php
→
wp-content/themes/msf-child/page-templates/
page_no_prefooter
.php
View file @
f1e2bd9
<?php
/**
* Template Name:
Full Width
* Template Name:
Page with no Prefooter
*
* Template for displaying a page without sidebar even if a sidebar widget is published.
*
* @package understrap
* Template for displaying a page without Prefooter.
* @package Understrap
*/
// Exit if accessed directly.
defined
(
'ABSPATH'
)
||
exit
;
...
...
@@ -17,6 +17,7 @@ $post_thumbnail_id = get_post_thumbnail_id($post->ID);
$thumbnail_image
=
get_posts
(
array
(
'p'
=>
$post_thumbnail_id
,
'post_type'
=>
'attachment'
));
$url
=
wp_get_attachment_url
(
get_post_thumbnail_id
(
$post
->
ID
),
'full'
);
$subhead
=
get_field
(
'subhead'
);
//$badge = get_field('badge');
if
(
$thumbnail_image
&&
isset
(
$thumbnail_image
[
0
]))
{
$img_description
=
$thumbnail_image
[
0
]
->
post_content
;
...
...
@@ -24,17 +25,37 @@ if ($thumbnail_image && isset($thumbnail_image[0])) {
$img_alt
=
get_post_meta
(
$post_thumbnail_id
,
'_wp_attachment_image_alt'
,
true
);
$img_title
=
$thumbnail_image
[
0
]
->
post_title
;
$copy
=
get_field
(
'copy'
,
$post_thumbnail_id
);
if
(
!
$copy
){
$en_post_thumbnail_id
=
apply_filters
(
'wpml_object_id'
,
$post_thumbnail_id
,
'attachment'
,
FALSE
,
'en'
);
$copy
=
get_field
(
'copy'
,
$en_post_thumbnail_id
);
}
}
?>
<?php
if
(
has_post_thumbnail
()
)
{
?>
<header
class=
"entry-header page"
style=
" background-image: url('
<?php
echo
$url
;
?>
')"
>
<header
class=
"entry-header header page"
style=
" background-image: url('
<?php
echo
$url
;
?>
')"
>
<div
class=
"content-container"
>
<div
class=
"container"
style=
"height: 100%;"
>
<div
class=
"col-md-12 fx-style"
>
<div
class=
"search-box"
><div
id=
"search-box-content"
>
<?php
the_field
(
'page_search_block'
,
'option'
);
?>
</div>
<div
class=
"search-button"
>
Search
</div></div>
<div
class=
"header_text"
>
<div
class=
"breadcrumb"
>
<?php
get_breadcrumb
();
?>
</div>
<?php
the_field
(
'header_text'
);
?>
</div>
<?php
if
(
$badge
){
$badge_content
=
get_field
(
'badge_content'
);
echo
"<div class='badge'><span>"
.
$badge_content
[
'badge_label'
]
.
"</span><div class='badge_content'><p>"
.
$badge_content
[
'badge_text'
]
.
"</p></div></div>"
;
}
?>
</div>
</div>
</div>
<div
class=
'side-caption header-caption
<?=
(
empty
(
$copy
)
&&
empty
(
$cap
))
?
"hide"
:
""
?>
'
>
<a
class=
'copy-link'
aria-label=
"Header Slide Caption"
href=
'#'
></a>
<span
class=
'image-side-caption'
>
<span
class=
'cap'
>
<?=
$photo_caption
?>
</span>
...
...
@@ -43,13 +64,16 @@ if ($thumbnail_image && isset($thumbnail_image[0])) {
</div>
</header>
<!-- .entry-header -->
<?php
}
?>
<div
class=
"wrapper
full-width"
id=
"
page-wrapper"
>
<div
class=
"wrapper
"
id=
"full-width-
page-wrapper"
>
<div
class=
"
<?php
echo
esc_attr
(
$container
);
?>
"
id=
"content"
tabindex=
"-1"
>
<div
class=
"
<?php
echo
esc_attr
(
$container
);
?>
"
id=
"content"
>
<main
class=
"col-sm-12 col-md-12 content-area site-main"
id=
"main"
>
<div
class=
"col-md-12 content-area"
id=
"primary"
>
<main
class=
"site-main"
id=
"main"
role=
"main"
>
<div
class=
"header_text mobile"
><div
class=
"breadcrumb"
>
<?php
get_breadcrumb
();
?>
</div>
<?php
the_field
(
'header_text'
);
?>
</div>
<div
class=
"breadcrumb"
>
<?php
get_breadcrumb
();
?>
</div>
<?php
while
(
have_posts
()
)
{
the_post
();
...
...
@@ -60,9 +84,11 @@ if ($thumbnail_image && isset($thumbnail_image[0])) {
</main>
<!-- #main -->
</div>
<!-- #content
-->
</div>
<!-- #primary
-->
</div>
<!-- #page-wrapper
-->
</div>
<!-- #content
-->
</div>
<!-- #full-width-page-wrapper -->
<?php
//the_field('pre_footer', 'option'); ?>
<?
php
get_footer
();
...
...
Please
register
or
sign in
to post a comment