A lot CSS classes rewritten, please update all your themes.
[mailer.git] / inc / template-functions.php
index 1c2fac4d400b81209db643c3a5114be1dcc515b2..931d18d2c440c9053ae950ccdd7d4725c2d3800f 100644 (file)
@@ -326,7 +326,7 @@ function loadTemplate ($template, $return = false, $content = array()) {
                } elseif ((isAdmin()) || ((isInstalling()) && (!isInstalled()))) {
                        // Only admins shall see this warning or when installation mode is active
                        $ret = '<div class="para">
-       <span class="guest_failed">{--TEMPLATE_404--}</span>
+       <span class="notice">{--TEMPLATE_404--}</span>
 </div>
 <div class="para">
        (' . $template . ')
@@ -654,7 +654,7 @@ function compileRawCode ($code, $simple = false, $constants = true, $full = true
 }
 
 //
-function addSelectionBox ($type, $default, $prefix = '', $id = '0', $class = 'guest_select') {
+function addSelectionBox ($type, $default, $prefix = '', $id = '0', $class = 'form_select') {
        $OUT = '';
 
        if ($type == 'yn') {
@@ -1524,21 +1524,21 @@ function sendModeMails ($mod, $modes) {
                                        $sub_mem = '{--MEMBER_CHANGED_DATA--}';
 
                                        // Output success message
-                                       $content = '<span class="member_done">{--MEMBER_MYDATA_MAIL_SENT--}</span>';
+                                       $content = '<span class="message">{--MEMBER_MYDATA_MAIL_SENT--}</span>';
                                        break;
 
                                default: // Unsupported module!
                                        logDebugMessage(__FUNCTION__, __LINE__, sprintf("Unsupported module %s detected.", $mod));
-                                       $content = '<span class="member_failed">{--UNKNOWN_MODULE--}</span>';
+                                       $content = '<span class="notice">{--UNKNOWN_MODULE--}</span>';
                                        break;
                        } // END - switch
                } else {
                        // Passwords mismatch
-                       $content = '<span class="member_failed">{--MEMBER_PASSWORD_ERROR--}</span>';
+                       $content = '<span class="notice">{--MEMBER_PASSWORD_ERROR--}</span>';
                }
        } else {
                // Could not load profile
-               $content = '<span class="member_failed">{--MEMBER_CANNOT_LOAD_PROFILE--}</span>';
+               $content = '<span class="notice">{--MEMBER_CANNOT_LOAD_PROFILE--}</span>';
        }
 
        // Send email to user if required
@@ -1557,7 +1557,7 @@ function sendModeMails ($mod, $modes) {
                        $content = '{--CANNOT_SEND_ADMIN_MAILS--}';
                } else {
                        // No mail to admin
-                       $content = '<span class="member_done">{--MEMBER_MYDATA_MAIL_SENT--}</span>';
+                       $content = '<span class="message">{--MEMBER_MYDATA_MAIL_SENT--}</span>';
                }
        } // END - if
 
@@ -1568,7 +1568,7 @@ function sendModeMails ($mod, $modes) {
 // Generates a 'selection box' from given array
 function generateSelectionBoxFromArray ($options, $name, $optionValue, $optionContent = '', $extraName = '') {
        // Start the output
-       $OUT = '<select name="' . $name . '" size="1" class="admin_select">
+       $OUT = '<select name="' . $name . '" size="1" class="form_select">
 <option value="X" disabled="disabled">{--PLEASE_SELECT--}</option>';
 
        // Walk through all options
@@ -1704,7 +1704,7 @@ function doTemplateExtensionRegistrationLink ($template, $dummy, $ext_name) {
        // Is the given extension non-productive?
        if (!isExtensionProductive($ext_name)) {
                // Non-productive code
-               $OUT = '<em style="cursor:help" class="admin_note" title="{%message,ADMIN_EXTENSION_IS_NON_PRODUCTIVE_LINK_TITLE=' . $ext_name . '%}">{--ADMIN_EXTENSION_IS_NON_PRODUCTIVE_LINK--}</em>';
+               $OUT = '<em style="cursor:help" class="notice" title="{%message,ADMIN_EXTENSION_IS_NON_PRODUCTIVE_LINK_TITLE=' . $ext_name . '%}">{--ADMIN_EXTENSION_IS_NON_PRODUCTIVE_LINK--}</em>';
        } // END - if
 
        // Return code