Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
<?php
use Drupal\Core\Language\Language;
......@@ -447,12 +446,12 @@ 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)) {
/*$pathfile = drupal_get_path('theme', $theme_key) . "/css/colors/" . $current_skin . "/style.css";
if (file_exists($pathfile)) {
drupal_add_css($pathfile, array(
......
......@@ -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
......
......@@ -31,7 +31,7 @@ global-styling:
- core/drupal.ajax
- core/drupal
- core/drupalSettings
- core/jquery.once
- core/once
skins-menu:
version: 1.x
......@@ -42,4 +42,4 @@ skins-menu:
dependencies:
- core/jquery
- core/drupal
- core/drupalSettings
\ No newline at end of file
- core/drupalSettings
......@@ -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) {
......@@ -50,4 +50,4 @@ function zircon_form_system_theme_settings_alter(&$form, $form_state) {
function zircon_form_system_theme_settings_submit($form, &$form_state) {
skmn_form_system_theme_settings_submit($form, $form_state);
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment