domain_site_settngs + patch

home_mobile with entries
This commit is contained in:
2018-05-02 17:14:31 +02:00
parent f98eaa3836
commit 9e1c24478b
41 changed files with 8927 additions and 208 deletions
@@ -70,6 +70,21 @@ function edlptheme_form_user_login_form_alter(&$form, FormStateInterface $form_s
unset($form['pass']['#title']);
}
/**
* Implements hook_theme_suggestions_HOOK_alter().
*/
function edlptheme_theme_suggestions_taxonomy_term_alter(&$suggestions, $variables) {
$elements = $variables['elements'];
if (isset($elements['#taxonomy_term']) && isset($elements['#theme']) && isset($elements['#view_mode'])) {
$term = $elements['#taxonomy_term'];
if (is_object($term)) {
$suggestions[] = $elements['#theme'] . '__' . $term->getVocabularyId() . '__' . $elements['#view_mode'];
$suggestions[] = $elements['#theme'] . '__' . $term->id() . '__' . $elements['#view_mode'];
}
}
}
function edlptheme_preprocess_edlp_home(&$vars){
foreach($vars['nodes'] as &$node){
@@ -89,6 +104,11 @@ function edlptheme_preprocess_edlp_home(&$vars){
$node['cols'] = $cols;
}
}
function edlptheme_preprocess_taxonomy_term__entrees__mobile_home(&$vars){
// dpm($vars, 'vars');
}
function edlptheme_preprocess_edlp_productions(&$vars){
foreach($vars['nodes'] as &$node){
switch($node['vm']){