Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_ct_embedded_facts_and_figures
Manage
Activity
Members
Labels
Code
Merge requests
0
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_ct_embedded_facts_and_figures
Commits
933e9570
Commit
933e9570
authored
6 years ago
by
l26yan
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-2607 Use drupal_attributes instead
parent
2c68b76e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
templates/node--uw-embedded-facts-and-figures.tpl.php
+4
-3
4 additions, 3 deletions
templates/node--uw-embedded-facts-and-figures.tpl.php
uw_ct_embedded_facts_and_figures.module
+4
-4
4 additions, 4 deletions
uw_ct_embedded_facts_and_figures.module
with
8 additions
and
7 deletions
templates/node--uw-embedded-facts-and-figures.tpl.php
+
4
−
3
View file @
933e9570
...
...
@@ -196,12 +196,13 @@
if
(
!
empty
(
$data_item
[
'icon'
]))
:
$html
.
=
'<div class="highlighted-fact text-'
.
strtolower
(
$text_align
)
.
' '
.
$default_colour_class
.
'">'
;
$attr
[
'src'
]
=
$data_item
[
'icon'
];
if
(
!
empty
(
$data_item
[
'alt'
]))
:
$html
.
=
'<img src="'
.
$data_item
[
'icon'
]
.
'" alt="'
.
$data_item
[
'alt'
]
.
'">'
;
else
:
$html
.
=
'<img src="'
.
$data_item
[
'icon'
]
.
'">'
;
$attr
[
'alt'
]
=
$data_item
[
'alt'
];
endif
;
$html
.
=
'<img '
.
drupal_attributes
(
$attr
)
.
'>'
;
else
:
$html
.
=
'<div class="highlighted-fact text-'
.
strtolower
(
$text_align
)
.
' '
.
$default_colour_class
.
' no-icon">'
;
endif
;
...
...
This diff is collapsed.
Click to expand it.
uw_ct_embedded_facts_and_figures.module
+
4
−
4
View file @
933e9570
...
...
@@ -257,12 +257,12 @@ function cke_ff_process($text) {
foreach
(
$data
as
$data_item
)
{
if
(
!
empty
(
$data_item
[
'icon'
]))
{
$html
.
=
'<div class="highlighted-fact text-'
.
strtolower
(
$text_align
)
.
' '
.
$default_colour_class
.
'">'
;
$attr
[
'src'
]
=
$data_item
[
'icon'
];
if
(
$data_item
[
'alt'
]
!==
NULL
)
{
$html
.
=
'<img src="'
.
$data_item
[
'icon'
]
.
'" alt="'
.
$data_item
[
'alt'
]
.
'">'
;
}
else
{
$html
.
=
'<img src="'
.
$data_item
[
'icon'
]
.
'">'
;
$attr
[
'alt'
]
=
$data_item
[
'alt'
];
}
$html
.
=
'<img '
.
drupal_attributes
(
$attr
)
.
'">'
;
}
else
{
$html
.
=
'<div class="highlighted-fact text-'
.
strtolower
(
$text_align
)
.
' '
.
$default_colour_class
.
' no-icon">'
;
...
...
This diff is collapsed.
Click to expand it.
Liam Morland
@lkmorlan
mentioned in commit
738952bb
·
4 years ago
mentioned in commit
738952bb
mentioned in commit 738952bbab5d120f51dd792ad6fb69d520680cb9
Toggle commit list
Liam Morland
@lkmorlan
mentioned in merge request
!2 (merged)
·
4 years ago
mentioned in merge request
!2 (merged)
mentioned in merge request !2
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment