function theme_img_assist_page in Image Assist 5        
                          
                  
                        Same name and namespace in other branches
- 5.3 img_assist.module \theme_img_assist_page()
 - 5.2 img_assist.module \theme_img_assist_page()
 - 6.2 img_assist.module \theme_img_assist_page()
 - 6 img_assist.module \theme_img_assist_page()
 
 
Related topics
File
 
   - ./img_assist.module, line 1708
 
  - Image Assist module
 
Code
function theme_img_assist_page($content, $attributes = NULL) {
  $title = drupal_get_title();
  $output = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' . "\n";
  $output .= '<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">' . "\n";
  $output .= "<head>\n";
  $output .= '<title>' . $title . "</title>\n";
  
  $output .= drupal_get_html_head();
  $output .= drupal_get_js();
  $output .= "\n<script type=\"text/javascript\"><!-- \n";
  $output .= "  if (parent.tinyMCE) {\n";
  $output .= "    document.write('<link href=\"' + parent.tinyMCE.getParam(\"popups_css\") + '\" rel=\"stylesheet\" type=\"text/css\">');\n";
  $output .= "  } else {\n";
  foreach (drupal_add_css() as $media => $type) {
    $paths = array_merge($type['module'], $type['theme']);
    foreach (array_keys($paths) as $path) {
      
      if (!strstr($path, 'img_assist.css')) {
        $output .= "  document.write('<style type=\"text/css\" media=\"{$media}\">@import \"" . base_path() . $path . "\";<\\/style>');\n";
      }
    }
  }
  $output .= "  }\n";
  $output .= "--></script>\n";
  
  $path = drupal_get_path('module', 'img_assist') . '/img_assist.css';
  $output .= "<style type=\"text/css\" media=\"all\">@import \"" . base_path() . $path . "\";</style>\n";
  $output .= "</head>\n";
  $output .= '<body' . drupal_attributes($attributes) . ">\n";
  $output .= theme_status_messages();
  $output .= "<!-- begin content -->\n";
  $output .= $content;
  $output .= "<!-- end content -->\n";
  $output .= '</body>';
  $output .= '</html>';
  return $output;
}