Commit a5cd8cb8 authored by Gaurav's avatar Gaurav Committed by Gaurav-Srijan
Browse files

Issue #3290768 by Project Update Bot, atul ghate, Gauravmahlawat: Automated...

Issue #3290768 by Project Update Bot, atul ghate, Gauravmahlawat: Automated Drupal 10 compatibility fixes
parent 068ee717
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line

<?php

use Drupal\Core\Language\Language;
@@ -447,7 +446,7 @@ function skmn_preprocess_page(&$variables){
        theme_get_setting("default_logo") && 
        theme_get_setting("toggle_logo")) {

        $variables['logo'] = file_create_url(drupal_get_path('theme', $theme_key)) . "/css/colors/" . $current_skin . "/images/logo.png";
        $variables['logo'] = \Drupal::service('file_url_generator')->generateAbsoluteString(\Drupal::service('extension.list.theme')->getPath($theme_key)) . "/css/colors/" . $current_skin . "/images/logo.png";
    }
    if (!empty($current_skin)) {

+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ base theme: classy
description: 'A flexible, recolorable theme with many regions and a responsive, mobile-first layout with Drupal 9 support.'
package: Core
core: 8.x
core_version_requirement: ^8 || ^9
core_version_requirement: ^8 || ^9 || ^10

libraries:
  - zircon/global-styling
+2 −2
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ global-styling:
    - core/drupal.ajax
    - core/drupal
    - core/drupalSettings
    - core/jquery.once
    - core/once

skins-menu:
  version: 1.x
+2 −2
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ use Drupal\Component\Utility\Xss;
use Drupal\Core\Template\Attribute;

$active_theme = \Drupal::theme()->getActiveTheme()->getName();
include_once(drupal_get_path('theme', $active_theme) . '/assets/includes/skins-menu/skins_menu.inc');
include_once(\Drupal::service('extension.list.theme')->getPath($active_theme) . '/assets/includes/skins-menu/skins_menu.inc');
function zircon_preprocess_html(&$variables) {
    $is_front_page =  \Drupal::service('path.matcher')->isFrontPage();
  if ($is_front_page) {