Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_cfg_common
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
uw_cfg_common
Merge requests
!188
ISTWCMS-5214: adding theming for opportunity nodes and fixing dates
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
ISTWCMS-5214: adding theming for opportunity nodes and fixing dates
feature/ISTWCMS-5214-ebremner-theme-opportunity-node
into
1.0.x
Overview
0
Commits
8
Pipelines
0
Changes
1
Merged
Eric Bremner
requested to merge
feature/ISTWCMS-5214-ebremner-theme-opportunity-node
into
1.0.x
3 years ago
Overview
0
Commits
8
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
7f6f17fc
Prev
Next
Show latest version
1 file
+
12
−
11
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
7f6f17fc
ISTWCMS-5214: updating opportunities to send some data to the footer when on a teaser
· 7f6f17fc
Eric Bremner
authored
3 years ago
src/Service/UwNodeContent.php
+
12
−
11
Options
@@ -645,17 +645,18 @@ class UwNodeContent {
// Setup the header content.
if
(
$node_flags
[
'get_header'
])
{
if
(
$view_mode
==
'teaser'
)
{
$content_data
[
'header'
][
'posted'
]
=
$this
->
addToContentData
(
'date'
,
'field_uw_opportunity_date'
);
$content_data
[
'header'
][
'opportunity_type'
]
=
$this
->
addToContentData
(
'terms'
,
[
'field_uw_opportunity_type'
]);
}
else
{
$content_data
[
'header'
][
'opportunity_type'
]
=
$this
->
addToContentData
(
'terms'
,
[
'field_uw_opportunity_type'
]);
$content_data
[
'header'
][
'employment_type'
]
=
$this
->
addToContentData
(
'terms'
,
[
'field_uw_opportunity_employment'
]);
$content_data
[
'header'
][
'rate_of_pay'
]
=
$this
->
addToContentData
(
'plain_text'
,
'field_uw_opportunity_pay_rate'
);
$content_data
[
'header'
][
'rate_of_pay_type'
]
=
$this
->
addToContentData
(
'terms'
,
[
'field_uw_opportunity_pay_type'
]);
$content_data
[
'header'
][
'job_id'
]
=
$this
->
addToContentData
(
'plain_text'
,
'field_uw_opportunity_job_id'
);
}
$content_data
[
'header'
][
'opportunity_type'
]
=
$this
->
addToContentData
(
'terms'
,
[
'field_uw_opportunity_type'
]);
$content_data
[
'header'
][
'employment_type'
]
=
$this
->
addToContentData
(
'terms'
,
[
'field_uw_opportunity_employment'
]);
$content_data
[
'header'
][
'rate_of_pay'
]
=
$this
->
addToContentData
(
'plain_text'
,
'field_uw_opportunity_pay_rate'
);
$content_data
[
'header'
][
'rate_of_pay_type'
]
=
$this
->
addToContentData
(
'terms'
,
[
'field_uw_opportunity_pay_type'
]);
$content_data
[
'header'
][
'job_id'
]
=
$this
->
addToContentData
(
'plain_text'
,
'field_uw_opportunity_job_id'
);
}
// If we are on a teaser, send some fields to the footer,
// so that the display after the content.
if
(
$view_mode
==
'teaser'
)
{
$content_data
[
'footer'
][
'posted'
]
=
$this
->
addToContentData
(
'date'
,
'field_uw_opportunity_date'
);
$content_data
[
'footer'
][
'opportunity_type'
]
=
$this
->
addToContentData
(
'terms'
,
[
'field_uw_opportunity_type'
]);
}
if
(
$node_flags
[
'get_footer'
])
{
Loading