-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #3476600: Adding a layout setting for controlling space around …
…the layout. (#1305) Co-authored-by: Richard Gaunt <[email protected]> Co-authored-by: richardgaunt <[email protected]>
- Loading branch information
1 parent
202a155
commit 3060e31
Showing
4 changed files
with
32 additions
and
2 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
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,16 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Layout related functions. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* Implements hook_preprocess_HOOK(). | ||
*/ | ||
function civictheme_preprocess_layout__three_columns(array &$variables): void { | ||
$variables['is_contained'] = $variables['settings']['is_contained'] ?? FALSE; | ||
$variables['vertical_spacing'] = $variables['settings']['vertical_spacing'] ?? 'auto'; | ||
} |
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