Skip to content
Snippets Groups Projects
Commit e781ae85 authored by Sotirios Boutas's avatar Sotirios Boutas
Browse files

Merge branch 'dev' into 'master'

Dev

See merge request web-team/drupal/public/d8/modules/cern-toolbar!14
parents 22afda81 73d56be1
No related branches found
No related tags found
No related merge requests found
...@@ -4,12 +4,11 @@ All notable changes to this project will be documented in this file. ...@@ -4,12 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [2.1.1] - 22-02-2019 ## [2.1.2] - 10-05-2019
- Fixed issue with deprecated link l() function
### Fixed ## [2.1.1] - 22-02-2019
- Issue of toolbar admin menu crashing - Fixed issue of toolbar admin menu crashing
## [2.1.0] - 07-12-2018 ## [2.1.0] - 07-12-2018
- Changed file structure
### Changed
- File structure
\ No newline at end of file
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
font-size: 14px; font-size: 14px;
line-height: 1; line-height: 1;
padding: 0 5%; padding: 0 5%;
height: 40px; height: 43px;
/**/ /**/
position: fixed; position: fixed;
top: 0; top: 0;
......
...@@ -3,6 +3,6 @@ type: module ...@@ -3,6 +3,6 @@ type: module
description: "Provides CERN Toolbar. The CERN Toolbar is obligatory for all CERN Drupal websites so make sure that the checkbox on the left is ticked." description: "Provides CERN Toolbar. The CERN Toolbar is obligatory for all CERN Drupal websites so make sure that the checkbox on the left is ticked."
core: 8.x core: 8.x
package: CERN Basic Elements package: CERN Basic Elements
version: 2.1.1 version: 2.1.2
dependencies: dependencies:
- locale - locale
\ No newline at end of file
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
*/ */
use Drupal\Core\Routing\RouteMatchInterface; use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Link;
use Drupal\Core\Url;
/** /**
* Implements hook_help(). * Implements hook_help().
...@@ -17,7 +19,7 @@ function cern_toolbar_help($route_name, RouteMatchInterface $route_match) { ...@@ -17,7 +19,7 @@ function cern_toolbar_help($route_name, RouteMatchInterface $route_match) {
$output = ''; $output = '';
$output .= '<h3>' . t('About') . '</h3>'; $output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('This module enables the CERN toolbar on the top of the site.') . '</p>'; $output .= '<p>' . t('This module enables the CERN toolbar on the top of the site.') . '</p>';
$output .= '<p>' . t('This module is not configurable: find more information about the CERN Toolbar at') . ' ' . l('http://ux.web.cern.ch/assets/cern-toolbar', 'http://ux.web.cern.ch/assets/cern-toolbar') . '</p>'; //$output .= '<p>' . t('This module is not configurable: find more information about the CERN Toolbar at') . ' ' . Link::fromTextAndUrl('http://ux.web.cern.ch/assets/cern-toolbar', Url::fromUri('http://ux.web.cern.ch/assets/cern-toolbar'))->toString() . '</p>';
return $output; return $output;
default: default:
...@@ -33,8 +35,8 @@ function cern_toolbar_theme() { ...@@ -33,8 +35,8 @@ function cern_toolbar_theme() {
'render element' => 'element', 'render element' => 'element',
'variables' => [ 'variables' => [
'toolbar_links' => NULL, 'toolbar_links' => NULL,
'directory_link' => NULL, 'directory_link' => NULL,
'logged_in' => NULL, 'logged_in' => NULL,
'attributes' => [] 'attributes' => []
], ],
], ],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment