function theme_getdirections_show_locations in Get Directions 6
Same name and namespace in other branches
- 6.2 getdirections.theme.inc \theme_getdirections_show_locations()
- 7.3 getdirections.module \theme_getdirections_show_locations()
- 7.2 getdirections.module \theme_getdirections_show_locations()
Theme to use for when both locations are supplied.
1 theme call to theme_getdirections_show_locations()
- getdirections_locations in ./
getdirections.module - Function to setup the map
File
- ./
getdirections.theme.inc, line 75 - getdirections module theming
Code
function theme_getdirections_show_locations($width, $height, $fromlocs, $tolocs) {
$output = "";
$output .= "<div class='getdirections_display'><label>" . t('From') . ":</label> " . $fromlocs . "</div>";
$output .= "<div class='getdirections_display'><label>" . t('To') . ":</label> " . $tolocs . "</div>";
$header = array();
$rows[] = array(
array(
'data' => '<div id="getdirections_map_canvas" style="width: ' . $width . '; height: ' . $height . '" ></div>',
'valign' => 'top',
'align' => 'center',
'class' => 'getdirections-map',
),
array(
'data' => '<div id="getdirections_directions"></div>',
'valign' => 'top',
'align' => 'left',
'class' => 'getdirections-list',
),
);
$output .= '<div class="getdirections">' . theme('table', $header, $rows) . '</div>';
return $output;
}