public static function noframes($location = 'top.location.href')
	{
		// Only load once
		if (isset(self::$loaded[__METHOD__]))
		{
			return;
		}

		// Include MooTools framework
		self::framework();

		//$js = "window.addEvent('domready', function () {if (top == self) {document.documentElement.style.display = 'block'; }" .
		//	" else {top.location = self.location; }});";
		$js = "jQuery(document).ready(function($){
			if (top == self) {
				document.documentElement.style.display = 'block';
			} else {
				top.location = self.location;
			}
		});";
		$document = App::get('document');
		$document->addStyleDeclaration('html { display:none }');
		$document->addScriptDeclaration($js);

		App::get('response')->headers->set('X-Frame-Options', 'SAMEORIGIN');

		self::$loaded[__METHOD__] = true;
	}
public static function noframes($location = 'top.location.href')
	{
		// Only load once
		if (isset(self::$loaded[__METHOD__]))
		{
			return;
		}

		// Include MooTools framework
		self::framework();

		//$js = "window.addEvent('domready', function () {if (top == self) {document.documentElement.style.display = 'block'; }" .
		//	" else {top.location = self.location; }});";
		$js = "jQuery(document).ready(function($){
			if (top == self) {
				document.documentElement.style.display = 'block';
			} else {
				top.location = self.location;
			}
		});";
		$document = App::get('document');
		$document->addStyleDeclaration('html { display:none }');
		$document->addScriptDeclaration($js);

		App::get('response')->headers->set('X-Frame-Options', 'SAMEORIGIN');

		self::$loaded[__METHOD__] = true;
	}
public static function noframes ( $ location = 'top.location.href' ) { // Only load once if ( isset ( self :: $ loaded [ __METHOD__ ] ) ) { return ; } // Include MooTools framework self :: framework ( ) ; //$js = "window.addEvent('domready', function () {if (top == self) {document.documentElement.style.display = 'block'; }" . //	" else {top.location = self.location; }});"; $ js = "jQuery(document).ready(function($){
			if (top == self) {
				document.documentElement.style.display = 'block';
			} else {
				top.location = self.location;
			}
		});" ; $ document = App :: get ( 'document' ) ; $ document -> addStyleDeclaration ( 'html { display:none }' ) ; $ document -> addScriptDeclaration ( $ js ) ; App :: get ( 'response' ) -> headers -> set ( 'X-Frame-Options' , 'SAMEORIGIN' ) ; self :: $ loaded [ __METHOD__ ] = true ; }
Break us out of any containing iframes

@param   string  $location  Location to display in
@return  void
Break us out of any containing iframes