Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
uw_fdsu_theme_resp
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_fdsu_theme_resp
Commits
02ff3516
Commit
02ff3516
authored
2 years ago
by
Tyler Stryuk
Committed by
Igor Biki
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-6047: Doing min amount for D10
parent
ade175ff
No related branches found
No related tags found
1 merge request
!97
ISTWCMS-6047: Doing min amount for D10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
uw_fdsu_theme_resp.info.yml
+1
-1
1 addition, 1 deletion
uw_fdsu_theme_resp.info.yml
uw_fdsu_theme_resp.theme
+2
-2
2 additions, 2 deletions
uw_fdsu_theme_resp.theme
with
3 additions
and
3 deletions
uw_fdsu_theme_resp.info.yml
+
1
−
1
View file @
02ff3516
...
@@ -2,7 +2,7 @@ name: UW FDSU responsive theme
...
@@ -2,7 +2,7 @@ name: UW FDSU responsive theme
type
:
theme
type
:
theme
description
:
Theme based on <a href="https://github.com/chazchumley/ohana">Ohana</a>.
description
:
Theme based on <a href="https://github.com/chazchumley/ohana">Ohana</a>.
base theme
:
seven
base theme
:
seven
core_version_requirement
:
^8 || ^9
core_version_requirement
:
^8 || ^9
|| ^10
dependencies
:
dependencies
:
-
content_moderation:content_moderation
-
content_moderation:content_moderation
-
uw_wcms_ohana:uw_wcms_ohana
-
uw_wcms_ohana:uw_wcms_ohana
...
...
This diff is collapsed.
Click to expand it.
uw_fdsu_theme_resp.theme
+
2
−
2
View file @
02ff3516
...
@@ -304,7 +304,7 @@ function _uw_fdsu_theme_resp_add_favicons(array &$variables) {
...
@@ -304,7 +304,7 @@ function _uw_fdsu_theme_resp_add_favicons(array &$variables) {
// Specify new favicon locations.
// Specify new favicon locations.
// Based on https://evilmartians.com/chronicles/how-to-favicon-in-2021-six-files-that-fit-most-needs.
// Based on https://evilmartians.com/chronicles/how-to-favicon-in-2021-six-files-that-fit-most-needs.
$favicon_base_path
=
base_path
()
.
d
rupal
_get_path
(
'theme'
,
'uw_fdsu_theme_resp'
);
$favicon_base_path
=
base_path
()
.
\D
rupal
::
service
(
'extension.list.theme'
)
->
getPath
(
'uw_fdsu_theme_resp'
);
$favicon
=
[
$favicon
=
[
'rel'
=>
'icon'
,
'rel'
=>
'icon'
,
'href'
=>
$favicon_base_path
.
'/favicon.ico'
,
'href'
=>
$favicon_base_path
.
'/favicon.ico'
,
...
@@ -432,7 +432,7 @@ function _uw_fdsu_theme_resp_get_image_info(FileFieldItemList $field) {
...
@@ -432,7 +432,7 @@ function _uw_fdsu_theme_resp_get_image_info(FileFieldItemList $field) {
if
(
$file_entity
=
$img_entity
->
get
(
'entity'
)
->
getTarget
())
{
if
(
$file_entity
=
$img_entity
->
get
(
'entity'
)
->
getTarget
())
{
return
[
return
[
'src'
=>
file_create_url
(
$file_entity
->
get
(
'uri'
)
->
getString
()),
'src'
=>
\Drupal
::
service
(
'file_url_generator'
)
->
generateAbsoluteString
(
$file_entity
->
get
(
'uri'
)
->
getString
()),
'alt'
=>
$img_entity
->
get
(
'alt'
)
->
getString
(),
'alt'
=>
$img_entity
->
get
(
'alt'
)
->
getString
(),
];
];
}
}
...
...
This diff is collapsed.
Click to expand it.
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