title: Magento Notification Message Issues In Admin & Front-End
body: <p>I have customized the new style for meagento notification messages in below path <code>/app/code/core/Mage/Core/Block/Messages.php</code> </p>
  
  <p>Below Code is i have customized </p>
  
  <pre><code>public function getGroupedHtml()
      { 
  
          $types = array(
              Mage_Core_Model_Message::ERROR,
              Mage_Core_Model_Message::WARNING,
              Mage_Core_Model_Message::NOTICE,
              Mage_Core_Model_Message::SUCCESS
          );
         $html = '';
          foreach ($types as $type) {
              if ( $messages = $this-&gt;getMessages($type) ) 
              {               
  
                  foreach ( $messages as $message ) 
                  {
                      $html.= '&lt;div class="ml-alert-2-'.$type.'"&gt;';
                      $html.= '&lt;div class="style-2-icon '.$type.'"&gt;&lt;/div&gt;';
                      $html.= ($this-&gt;_escapeMessageFlag) ? $this-&gt;htmlEscape($message-&gt;getText()) : $message-&gt;getText();
                      $html.= '&lt;div class="style-2-close '.$type.'" onclick="this.parentNode.parentNode.removeChild(this.parentNode);"&gt;&lt;/div&gt;';
                      $html.= '&lt;/div&gt;';
                  }
  
              }
          }
  
  
          return $html;
      }
  </code></pre>
  
  <p>I have replaced the Default Magento theme in above function, The Notification Theme Works fine in Fron-end, But The Admin panel Notification Themes not applied..</p>
  
  <p>So How to find the message type like (Admin message,Front-end message) in above function?</p>
  
  <p>Please suggest me ?</p>
  
  <p>Thanks All.</p>