-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat(component): r-engineering vol.21, add socials in mobile menu
- Loading branch information
Showing
3 changed files
with
87 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Preprocess region. | ||
*/ | ||
|
||
use Drupal\bootstrap_italia\Helper\Helper; | ||
|
||
/** | ||
* Implements hook_preprocess_region(). | ||
*/ | ||
function skenografia_preprocess_region(array &$variables): void { | ||
|
||
if ($variables['region'] == 'header_nav') { | ||
// Social. | ||
$variables['social_new_window'] = (bool) theme_get_setting('social_new_window'); | ||
$variables['socials'] = Helper::getActiveSocials(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters