function theme_wysiwyg_map_token in WYSIWYG Map 7
Theme function to return map div for tokenised maps.
1 theme call to theme_wysiwyg_map_token()
- wysiwyg_map_filter_process in ./
wysiwyg_map.module - Process callback for hook_filter_info().
File
- ./
wysiwyg_map.module, line 224 - wysiwyg_map.module
Code
function theme_wysiwyg_map_token($variables) {
if ($variables['map_caption'] != '') {
return '
<div class="map-outer-caption ' . $variables['css_class'] . '" style="width: ' . $variables['width'] . 'px; height: ' . $variables['height'] . 'px; padding: 5px 5px 35px; border: 1px solid #ccc; background-color: #eee; margin-bottom: 10px;">
<div id="wysiwyg_map_' . $variables['delta'] . '" class="' . $variables['css_class'] . ' wysiwyg-map" style="width: ' . $variables['width'] . 'px; height: ' . $variables['height'] . 'px;"></div>
<div class="map-inner-caption" style="padding: 5px; clear: both; text-align: center;">' . $variables['map_caption'] . '</div>
</div>
';
}
else {
if ($variables['css_class'] != '') {
return '
<div id="wysiwyg_map_' . $variables['delta'] . '" class="' . $variables['css_class'] . ' wysiwyg-map" style="width: ' . $variables['width'] . 'px; height: ' . $variables['height'] . 'px;"></div>
';
}
else {
return '
<div id="wysiwyg_map_' . $variables['delta'] . '" class="wysiwyg-map" style="width: ' . $variables['width'] . 'px; height: ' . $variables['height'] . 'px;"></div>
';
}
}
}