';
}
/**
* Theme a form button.
*
* @ingroup themeable
*/
function nuvemwidget_button($element) {
// Make sure not to overwrite classes.
if (isset($element['#attributes']['class'])) {
$element['#attributes']['class'] = 'form-'.$element['#button_type'].' '.$element['#attributes']['class'].' b2-button';
}
else {
$element['#attributes']['class'] = 'form-'.$element['#button_type'].' b2-button';
}
return ''.
''.
''.
''.
'';
}
/**
* Image assist module support.
* Added Artisteer styles in IE
*/
function nuvemwidget_img_assist_page($content, $attributes = NULL) {
$title = drupal_get_title();
$output = ''."\n";
$output .= ''."\n";
$output .= "\n";
$output .= ''. $title ."\n";
// Note on CSS files from Benjamin Shell:
// Stylesheets are a problem with image assist. Image assist works great as a
// TinyMCE plugin, so I want it to LOOK like a TinyMCE plugin. However, it's
// not always a TinyMCE plugin, so then it should like a themed Drupal page.
// Advanced users will be able to customize everything, even TinyMCE, so I'm
// more concerned about everyone else. TinyMCE looks great out-of-the-box so I
// want image assist to look great as well. My solution to this problem is as
// follows:
// If this image assist window was loaded from TinyMCE, then include the
// TinyMCE popups_css file (configurable with the initialization string on the
// page that loaded TinyMCE). Otherwise, load drupal.css and the theme's
// styles. This still leaves out sites that allow users to use the TinyMCE
// plugin AND the Add Image link (visibility of this link is now a setting).
// However, on my site I turned off the text link since I use TinyMCE. I think
// it would confuse users to have an Add Images link AND a button on the
// TinyMCE toolbar.
//
// Note that in both cases the img_assist.css file is loaded last. This
// provides a way to make style changes to img_assist independently of how it
// was loaded.
$output .= drupal_get_html_head();
$output .= drupal_get_js();
$output .= "\n\n";
// Ensure that img_assist.js is imported last.
$path = drupal_get_path('module', 'img_assist') .'/img_assist_popup.css';
$output .= "\n";
$output .= ''."\n";
$output .= ''."\n";
$output .= ''."\n";
$output .= "\n";
$output .= '\n";
$output .= theme_status_messages();
$output .= "\n";
$output .= $content;
$output .= "\n";
$output .= '';
$output .= '';
return $output;
}