refactored the layout:
removed fixed head, replaced with flex moved pagetitle and searchform to headerbottom region added Common store to vuejs with pagetitle data added pagetitle vuejs component
This commit is contained in:
@@ -41,6 +41,12 @@ function materiotheme_preprocess_html(&$vars) {
|
||||
// ]);
|
||||
// $vars['head_title'] = $head_title;
|
||||
|
||||
// $title = "The new title";
|
||||
// $request = \Drupal::request();
|
||||
// if ($route = $request->attributes->get(\Symfony\Cmf\Component\Routing\RouteObjectInterface::ROUTE_OBJECT)) {
|
||||
// $route->setDefault('_title', $title);
|
||||
// }
|
||||
|
||||
global $base_url;
|
||||
$theme = \Drupal::theme()->getActiveTheme();
|
||||
$vars['#attached']['drupalSettings']['path']['themePath'] = $base_url .'/'. $theme->getPath();
|
||||
@@ -67,6 +73,7 @@ function materiotheme_preprocess_html(&$vars) {
|
||||
|
||||
function materiotheme_preprocess_page(&$vars){
|
||||
// dsm($vars, 'vars');
|
||||
|
||||
}
|
||||
|
||||
// function materiotheme_preprocess_node(&$vars){
|
||||
@@ -79,10 +86,10 @@ function materiotheme_preprocess_page(&$vars){
|
||||
// ));
|
||||
// }
|
||||
|
||||
function materiotheme_preprocess_node_materiau_teaser(&$vars){
|
||||
// function materiotheme_preprocess_node_materiau_teaser(&$vars){
|
||||
// $vars['attributes']['class'] = 'card';
|
||||
// kint($vars['attributes']);
|
||||
}
|
||||
// }
|
||||
|
||||
/**
|
||||
* Implements hook_form_alter
|
||||
|
Reference in New Issue
Block a user