Back to PhocacartRenderAdminjs class

Method renderAjaxTopHtml

public static
renderAjaxTopHtml
(mixed $text = '')

Method renderAjaxTopHtml - Source code

/* For example creating thumbnail message - administration */
public static function renderAjaxTopHtml($text = '')
{
    $o = '<div id="ph-ajaxtop">';
    if ($text != '') {
        $o .= '<div id="ph-ajaxtop-message"><div class="ph-loader-top"></div> ' . strip_tags(addslashes($text)) . '</div>';
    }
    $o .= '</div>';
    return $o;
}