Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

31 lines
491 B

<?php
namespace Friendica\Module;
use Friendica\BaseModule;
use Friendica\DI;
/**
* Toggles the mobile view (on/off)
*/
class ToggleMobile extends BaseModule
{
public static function content(array $parameters = [])
{
$a = DI::app();
if (isset($_GET['off'])) {
$_SESSION['show-mobile'] = false;
} else {
$_SESSION['show-mobile'] = true;
}
if (isset($_GET['address'])) {
$address = $_GET['address'];
} else {
$address = '';
}
$a->redirect($address);
}
}