This plugin is for the developers, you can use directives in your blade templates.
This is a plugin for Botble CMS so you have to purchase Botble CMS first to use this plugin. Purchase it here: Botble CMS
- Botble core 7.0.0 or higher.
Go to the Admin Panel and click on the Plugins tab. Click on the "Add new" button, find the Mobile Detect plugin and click on the "Install" button.
- Download the plugin from the Botble Marketplace.
- Extract the downloaded file and upload the extracted folder to the
platform/plugins
directory. - Go to Admin > Plugins and click on the Activate button.
Use the new Blade directives in your template files:
@desktop
<section>this is for the desktop only</section>
@elsedesktop
<section>this is for the mobile only</section>
@enddesktop
NOTE You might have to run
php artisan view:clear
to have the new Blade directives take effect!
@desktop
, @elsedesktop
, @enddesktop
- for desktop devices
@handheld
, @elsehandheld
, @endhandheld
- for non-desktop (mobile and tablet) devices
@tablet
, @elsetablet
, @endtablet
- for tablet devices
@nottablet
, @elsenottablet
, @endnottablet
- for non-tablet (desktop or mobile) devices
@mobile
, @elsemobile
, @endmobile
- for mobile devices
@notmobile
, @elsenotmobile
, @endnotmobile
- for non-mobile (desktop or tablet) devices
@ios<
4955
/code>,
@elseios
, @endios
- for iOS platforms
@android
, @elseandroid
, @endandroid
- for Android platforms
The usage of @else...
directives are optional.