[geeklog-hg] [Geeklog-Core/geeklog] a82a91: Added device_mobile template variable

GitHub noreply at github.com
Fri Nov 4 15:41:36 EDT 2016


  Branch: refs/heads/master
  Home:   https://github.com/Geeklog-Core/geeklog
  Commit: a82a911104ee3eb6da2eeb72b47bae01abadfa74
      https://github.com/Geeklog-Core/geeklog/commit/a82a911104ee3eb6da2eeb72b47bae01abadfa74
  Author: Tom Homer <tomhomer at gmail.com>
  Date:   2016-11-04 (Fri, 04 Nov 2016)

  Changed paths:
    M public_html/lib-common.php
    M system/classes/template.class.php

  Log Message:
  -----------
  Added device_mobile template variable

Added device_mobile template variable that is set to true if visitors
device is considered mobile (phone or tablet). This is set for all
templates and allows you to do things like this below:

{!if device_mobile}
<p>Is mobile device</p>
{!else}
<p>Is not a mobile device</p>
{!endif}




More information about the geeklog-cvs mailing list