Esempio n. 1
0
 * NOTICE:  All information contained herein is, and remains the property of SocialApparatus 
 * and its suppliers, if any.  The intellectual  and technical concepts contained herein 
 * are proprietary to SocialApparatus and its suppliers and may be covered by U.S. and Foreign 
 * Patents, patents in process, and are protected by trade secret or copyright law. 
 * 
 * Dissemination of this information or reproduction of this material is strictly forbidden 
 * unless prior written permission is obtained from SocialApparatus.
 * 
 * Contact Shane Barron admin@socia.us for more information.
 */
namespace SocialApparatus;

denyDirect();
echo display("page_elements/site_js_variables");
echo display("page_elements/foot");
echo FooterJS::draw();
echo display("page_elements/js_init");
echo display("page_elements/site_js");
$system_messages = Cache::get("system_messages", "session");
if ($system_messages) {
    foreach ($system_messages as $system_message) {
        $type = $system_message['message_type'];
        $message = $system_message['message'];
        echo <<<HTML
       <script>
\$.notify('{$message}',{
    className:'info'
});
        </script>
HTML;
    }
function removeFooterJS($name)
{
    FooterJS::removeFooterJS($name);
    return;
}
 *  [2002] - [2017] SocialApparatus (http://SocialApparatus.co) 
 *  All Rights Reserved.
 * 
 * NOTICE:  All information contained herein is, and remains the property of SocialApparatus 
 * and its suppliers, if any.  The intellectual  and technical concepts contained herein 
 * are proprietary to SocialApparatus and its suppliers and may be covered by U.S. and Foreign 
 * Patents, patents in process, and are protected by trade secret or copyright law. 
 * 
 * Dissemination of this information or reproduction of this material is strictly forbidden 
 * unless prior written permission is obtained from SocialApparatus.
 * 
 * Contact Shane Barron admin@socia.us for more information.
 */
namespace SocialApparatus;

denyDirect();
$scripts = NULL;
$footer_js_names = FooterJS::getFooterJSNameArray();
foreach ($footer_js_names as $name) {
    $scripts .= <<<HTML
    {$name}.init();
HTML;
}
echo <<<HTML
<script>
    \$(document).ready(function(){
        {$scripts}
    });
</script>
HTML
;