From 4d0065d0775af4a4da9cac36b8140cb1f5e1a501 Mon Sep 17 00:00:00 2001 From: kpaxman <kpaxman@uwaterloo.ca> Date: Mon, 31 May 2021 17:24:39 -0400 Subject: [PATCH] Code standards. --- uw_fdsu_theme_resp.theme | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/uw_fdsu_theme_resp.theme b/uw_fdsu_theme_resp.theme index e92f15a8..117ca59e 100644 --- a/uw_fdsu_theme_resp.theme +++ b/uw_fdsu_theme_resp.theme @@ -46,26 +46,26 @@ function uw_fdsu_theme_resp_preprocess_html(&$variables) { // Based on https://evilmartians.com/chronicles/how-to-favicon-in-2021-six-files-that-fit-most-needs. $favicon = [ 'rel' => 'icon', - 'href' => base_path() . drupal_get_path('theme','uw_fdsu_theme_resp') . '/favicon.ico', + 'href' => base_path() . drupal_get_path('theme', 'uw_fdsu_theme_resp') . '/favicon.ico', ]; $variables['page']['#attached']['html_head_link'][] = [$favicon]; $favicon_svg = [ 'rel' => 'icon', - 'href' => base_path() . drupal_get_path('theme','uw_fdsu_theme_resp') . '/icon.svg', + 'href' => base_path() . drupal_get_path('theme', 'uw_fdsu_theme_resp') . '/icon.svg', 'type' => 'image/svg+xml', ]; $variables['page']['#attached']['html_head_link'][] = [$favicon_svg]; $favicon_apple = [ 'rel' => 'apple-touch-icon', - 'href' => base_path() . drupal_get_path('theme','uw_fdsu_theme_resp') . '/apple-touch-icon.png', + 'href' => base_path() . drupal_get_path('theme', 'uw_fdsu_theme_resp') . '/apple-touch-icon.png', ]; $variables['page']['#attached']['html_head_link'][] = [$favicon_apple]; $favicon_manifest = [ 'rel' => 'manifest', 'href' => 'data:application/manifest+json,{ "icons": [ - { "src": "' . base_path() . drupal_get_path('theme','uw_fdsu_theme_resp') . '/icon-192.png", "type": "image/png", "sizes": "192x192" }, - { "src": "' . base_path() . drupal_get_path('theme','uw_fdsu_theme_resp') . '/icon-512.png", "type": "image/png", "sizes": "512x512" } + { "src": "' . base_path() . drupal_get_path('theme', 'uw_fdsu_theme_resp') . '/icon-192.png", "type": "image/png", "sizes": "192x192" }, + { "src": "' . base_path() . drupal_get_path('theme', 'uw_fdsu_theme_resp') . '/icon-512.png", "type": "image/png", "sizes": "512x512" } ] }', ]; -- GitLab