<?php $base_path = base_path(); $children = taxonomy_get_children($tid); if ($cols == '2-columnas') { $cols_class = 'col-md-6'; } if ($cols == '3-columnas') { $cols_class = 'col-md-4'; } //get data $data = get_home_data(); $data = $data[0]; //get language global $language; $langcode = $language->language; if ($langcode == 'es') { $langcode = ''; } if ($langcode == 'en') { $langcode = '_en'; } if ($cols == '0-columnas') { ?> <li class="mainMenu"> <?php //print l($name,'./taxonomy/term/'. $tid); ?> </li> <?php } else {
function medtravel_preprocess_region(&$variables) { if ($variables['region'] == 'page_top' || $variables['region'] == 'page_bottom') { // get home data $data = get_home_data(); $data = $data[0]; if ($variables['region'] == 'page_top') { $variables['home_logo'] = $data['logo']; $variables['main_menu_block'] = module_invoke('home_menu', 'block_view', 'home_menu_block'); $variables['lang_block'] = module_invoke('locale', 'block_view', 'language_content'); } if ($variables['region'] == 'page_bottom') { $variables['home_link_logo_1'] = $data['home_link_logo_1']; $variables['home_link_logo_2'] = $data['home_link_logo_2']; $variables['home_link_logo_3'] = $data['home_link_logo_3']; $variables['home_facebook'] = $data['home_facebook']; $variables['home_facebook_link'] = $data['home_facebook_link']; $variables['home_twitter'] = $data['home_twitter']; $variables['home_twitter_link'] = $data['home_twitter_link']; $variables['home_youtube'] = $data['home_youtube']; $variables['home_youtube_link'] = $data['home_youtube_link']; $variables['home_flickr'] = $data['home_flickr']; $variables['home_flickr_link'] = $data['home_flickr_link']; $variables['home_linkedin'] = $data['home_linkedin']; $variables['home_linkedin_link'] = $data['home_linkedin_link']; $variables['home_instagram'] = $data['home_instagram']; $variables['home_instagram_link'] = $data['home_instagram_link']; $variables['footer_block'] = module_invoke('home_footer', 'block_view', 'home_footer_block'); } } }