Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WCMS
uw_ct_event
Commits
4cd58f92
Commit
4cd58f92
authored
Dec 12, 2018
by
Eric Bremner
Browse files
ISTWCMS-2796: adding translation ability to event archive title
parent
3edfe5ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
uw_ct_event.module
View file @
4cd58f92
...
@@ -273,10 +273,10 @@ function uw_ct_event_views_pre_render(&$view) {
...
@@ -273,10 +273,10 @@ function uw_ct_event_views_pre_render(&$view) {
// If we dont have that format it is just YYYY.
// If we dont have that format it is just YYYY.
if
(
preg_match
(
'/[0-9]{4}-[0-9]{1,2}/'
,
$date
))
{
if
(
preg_match
(
'/[0-9]{4}-[0-9]{1,2}/'
,
$date
))
{
$display_date
=
date
(
"F Y"
,
strtotime
(
$date
));
$display_date
=
date
(
"F Y"
,
strtotime
(
$date
));
$view
->
build_info
[
'title'
]
=
'Events - '
.
$display_date
;
$view
->
build_info
[
'title'
]
=
t
(
'Events - '
.
$display_date
)
;
}
}
else
{
else
{
$view
->
build_info
[
'title'
]
=
'Events - '
.
$date
;
$view
->
build_info
[
'title'
]
=
t
(
'Events - '
.
$date
)
;
}
}
}
}
}
}
...
...
Write
Preview
Supports
Markdown
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