PHP Classes

File: templates/_partials/messages.inc.html.php

Recommend this page to a friend!
  Classes of Pierre-Henry Soria   GetMeALatte   templates/_partials/messages.inc.html.php   Download  
File: templates/_partials/messages.inc.html.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: GetMeALatte
Promote a product to be sold to a crowd
Author: By
Last change:
Date: 1 year ago
Size: 969 bytes
 

Contents

Class file image Download
<div class="center">
    <!-- Error Messages -->
    <?php if (!empty($error_message)): ?>
<?php if (is_array($error_message) && count($error_message)): ?>
<ul>
                <?php foreach ($error_message as $message): ?>
<li class="error"><?= $message ?></li>
                <?php endforeach ?>
</ul>
        <?php else: ?>
<span class="error"><?= $error_message ?></span>
        <?php endif ?>
<?php endif ?>

    <!-- Success Messages -->
    <?php if (!empty($success_message)): ?>
<?php if (is_array($success_message) && count($success_message)): ?>
<ul>
                <?php foreach ($success_message as $message): ?>
<li class="success"><?= $message ?></li>
                <?php endforeach ?>
</ul>
        <?php else: ?>
<span class="success"><?= $success_message ?></span>
        <?php endif ?>
<?php endif ?>
</div>