%[if edit]%
%[if %("%id=config%" == "mobile_config")% ]%
This Webpage
On Mobile Devices
Redirects To
This Webpage (No Redirect)
On Tablet Devices
Redirects To
%[if %("%id=mobile_config_redirect_tablets%" == "true")% ]%
%id=mobile_config_tablet_href%
%[endif]%
%[if %("%id=mobile_config_redirect_tablets%" == "false")% ]%
This Webpage (No Redirect)
%[endif]%
On Laptop & Desktop Devices
Redirects To
%[if %("%id=mobile_config_redirect_desktops%" == "true")% ]%
%id=mobile_config_desktop_href%
%[endif]%
%[if %("%id=mobile_config_redirect_desktops%" == "false")% ]%
This Webpage (No Redirect)
%[endif]%
%[endif]%
%[if %("%id=config%" == "tablet_config")% ]%
This Webpage
On Mobile Devices
Redirects To
%[if %("%id=tablet_config_redirect_mobiles%" == "true")% ]%
%id=tablet_config_mobile_href%
%[endif]%
%[if %("%id=tablet_config_redirect_mobiles%" == "false")% ]%
This Webpage (No Redirect)
%[endif]%
On Tablet Devices
Redirects To
This Webpage (No Redirect)
On Laptop & Desktop Devices
Redirects To
%[if %("%id=tablet_config_redirect_desktops%" == "true")% ]%
%id=tablet_config_desktop_href%
%[endif]%
%[if %("%id=tablet_config_redirect_desktops%" == "false")% ]%
This Webpage (No Redirect)
%[endif]%
%[endif]%
%[if %("%id=config%" == "desktop_config")% ]%
This Webpage
On Mobile Devices
Redirects To
%[if %("%id=desktop_config_redirect_mobiles%" == "true")% ]%
%id=desktop_config_mobile_href%
%[endif]%
%[if %("%id=desktop_config_redirect_mobiles%" == "false")% ]%
This Webpage (No Redirect)
%[endif]%
On Tablet Devices
Redirects To
%[if %("%id=desktop_config_redirect_tablets%" == "true")% ]%
%id=desktop_config_tablet_href%
%[endif]%
%[if %("%id=desktop_config_redirect_tablets%" == "false")% ]%
This Webpage (No Redirect)
%[endif]%
On Laptop & Desktop Devices
Redirects To
This Webpage (No Redirect)
%[endif]%
%[endif]%
%[if preview]%
%[if %("%id=generate_code%" == "true")% ]%
Generated Mobilize Code
This code can be copied for use in non-Stack pages in your website.
Paste this code into Settings > Code > Prefix, within RapidWeaver.
You need to ensure that a file named Mobile_Detect.php
is present on your web server. This does the mobile, tablet and desktop detection. You can download this file from http://mobiledetect.net/ and upload it to your web server using your preferred FTP software. Then update the second line in the code to change above to change
require_once 'http://example.com/resources/Mobile_Detect.php';
to the address where your Mobile_Detect.php
is located.
%[endif]%
%[endif]%