* 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();
adminGateKeeper();
$extended_by = NULL;
$body = NULL;
$view_extensions = ViewExtension::getAll();
foreach ($view_extensions as $extension => $variables) {
    $extended_by = NULL;
    foreach ($variables as $variable) {
        $extended_by .= <<<HTML
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Extended by:  <strong>{$variable['src']} : {$variable['placement']}</strong> <br/>
HTML;
    }
    $body .= <<<HTML
            <div class="well">
                View:  <strong>{$extension}</strong><br/>
                {$extended_by}
            </div>
HTML;
}
echo display("page_elements/page_header", array("text" => "View Extensions"));