/** * Implements theme_status_messages() */ function okcdesign_status_messages($variables) { $html = theme_plugins_invoke(__FUNCTION__, $variables); if ($html) { return $html; } return theme_status_messages($variables); }
/** * Image assist module support. * Using styles in IE */ function drupal_theme_80_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"; // 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<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) { // Don't import img_assist.css twice. 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"; // Ensure that img_assist.js is imported last. $path = drupal_get_path('module', 'img_assist') . '/img_assist.css'; $output .= "<style type=\"text/css\" media=\"all\">@import \"" . base_path() . $path . "\";</style>\n"; $output .= '<link rel="stylesheet" href="' . get_full_path_to_theme() . '/style.css" type="text/css" />' . "\n"; $output .= '<!--[if IE 6]><link rel="stylesheet" href="' . get_full_path_to_theme() . '/style.ie6.css" type="text/css" /><![endif]-->' . "\n"; $output .= '<!--[if IE 7]><link rel="stylesheet" href="' . get_full_path_to_theme() . '/style.ie7.css" type="text/css" /><![endif]-->' . "\n"; $output .= "</head>\n"; $output .= '<body' . drupal_attributes($attributes) . ">\n"; $output .= theme_status_messages(); $output .= "\n"; $output .= $content; $output .= "\n"; $output .= '</body>'; $output .= '</html>'; return $output; }
/** * Override of theme_status_message() * Adds a wrapper div around messages */ function lullacog_status_messages($display = NULL) { $output = theme_status_messages($display); if ($output) { $output = '<div id="message-wrapper">' . $output . '</div>'; } drupal_add_js(drupal_get_path('theme', 'lullacog') . '/scripts/messages.js'); return $output; }
function ctsibamboo_status_messages($display = null) { global $user; global $is_admin; $GLOBALS['one-time-login'] = false; if (!empty($_SESSION['messages'])) { foreach (array_keys($_SESSION['messages']) as $type) { $messages = $_SESSION['messages'][$type]; $change = false; foreach (array_keys($messages) as $key) { $message = $messages[$key]; if ($message == 'You have just used your one-time login link. It is no longer necessary to use this link to login. Please change your password.') { $messages[$key] = 'You have used your one-time login. <strong>Please create a password (see below)</strong> for subsequent logins. You can easily be reminded of your password or change it electronically.'; $messages[] = 'Logins are only necessary if you need to request a consultation or other service.'; $messages[] = "Once you've created your password, you can " . l(t('browse the site'), '') . ' or go back to the ' . l(t('consult request page'), 'consult') . ' to submit a request.'; $GLOBALS['one-time-login'] = true; $change = true; } } if ($change) { // renumber status items or it screws up $_SESSION['messages'][$type] = array_values($messages); } } } return theme_status_messages($display); }
function drupal_13584_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 && parent.tinyMCEPopup && parent.tinyMCEPopup.getParam('popups_css')) {\n"; $output .= " document.write('<link href=\"' + parent.tinyMCEPopup.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_popup.css'; $output .= "<style type=\"text/css\" media=\"all\">@import \"" . base_path() . $path . "\";</style>\n"; $output .= '<link rel="stylesheet" href="' . get_full_path_to_theme() . '/style.css" type="text/css" />' . "\n"; $output .= '<!--[if IE 6]><link rel="stylesheet" href="' . get_full_path_to_theme() . '/style.ie6.css" type="text/css" /><![endif]-->' . "\n"; $output .= '<!--[if IE 7]><link rel="stylesheet" href="' . get_full_path_to_theme() . '/style.ie7.css" type="text/css" /><![endif]-->' . "\n"; $output .= "</head>\n"; $output .= '<body' . drupal_attributes($attributes) . ">\n"; $output .= theme_status_messages(); $output .= "\n"; $output .= $content; $output .= "\n"; $output .= '</body>'; $output .= '</html>'; return $output; }
</p> </div> <div class="column"> <p><strong>Contact Us</strong></p> <p>Technical, Billing and Sales Support:</p> <p>Toll Free: 1-877-873-2300<br /> Hours: 8<small>AM</small> CST - 5<small>PM</small> CST<br /> <em><a href="/after_hours">Limited After Hours Support Available</a></em> </p> </div> <div style="clear:both;"></div> <span class="hr"><hr /></span> <?php print_r(theme_status_messages('error')); ?> <p> <span class="pop">Please Note:</span> To better serve you, if you already have an account with us and you are contacting us for support, please enter your My Account login user name, as well as the email address and phone number you used when you signed up for your account. Thank you! </p> <p><a href="#" class="toglecontrol">Click here for important email delivery information</a></p> <p class="togle">To ensure that you receive all communications from FamilyFellowship.com Customer Care, please add support@familyfellowship.com to your email program's address book, contact list or white list.</p> <form action="/customer_care/contact" method="post"> <input type="hidden" name="cid" id="edit-cid" value="1" /> <input type="hidden" name="subject" id="edit-subject" /> <div id="left_fields"> <p> <label for="edit-uname"><span>My Account User Name</span> <input name="uname" id="edit-uname" class="text" type="text" /></label>
if (!$status) { print ' node-unpublished'; } ?> clear-block"> <div class="content"> <?php if ($title == "subscribe_to_news_email_tab") { ?> <?php $tab_messages .= theme_status_messages(); ?> <table class="subscribe_to_news_tab" style="width:840px"> <tr class="subscribe_to_news_tab" height="480px"> <?php if (!empty($tab_content)) { ?> <td style="width:50%"> <?php print $tab_content; ?> </td> <?php } ?>
<h2 class="product-title"><?php print $node->title; ?> </h2> <div class="product-thumbs clearfix"><?php print $thumbs; ?> </div> </div> <div class="column middle-right clearfix"> <div class="product-messages"> <?php print theme_status_messages(); ?> </div> <?php $default_id = $node->attributes[array_shift(array_keys($node->attributes))]->default_option; $color_match = _lotus_match_color_table_to_options($default_id, false); $default_product = $node->product_versions[$node->model . "." . $color_match['product_color_code']]; // this is an object, treat it like one. ?> <?php //print $content; ?> <div class="column product middle">