Plugin Directory

Changeset 762945


Ignore:
Timestamp:
08/27/2013 11:13:06 AM (13 years ago)
Author:
33themes
Message:

Fix readme

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ttt-devices/trunk/readme.txt

    r762937 r762945  
    11=== TTT Device ===
    2 Contributors: gabrielperezs, lonchbox
     2Contributors: 33themes, gabrielperezs, lonchbox
    33Tags: devices, mobile
    44Requires at least: 3.4
     
    2222
    2323* For a desktop in linux
    24 ``
     24`
    2525<html>
    2626<body class="linux chrome desktop">
    2727</body>
    2828</html>
    29 ``
     29`
    3030
    3131* For a desktop in Mac
    32 ``
     32`
    3333<html>
    3434<body class="mac firefox desktop">
    3535</body>
    3636</html>
    37 ``
     37`
    3838
    3939* For a iphone mobile
    40 ``
     40`
    4141<html>
    4242<body class="mac safari mobile">
    4343</body>
    4444</html>
    45 ``
     45`
    4646
    4747* For a android mobile
    48 ``
     48`
    4949<html>
    5050<body class="chrome linux mobile">
    5151</body>
    5252</html>
    53 ``
     53`
    5454
    5555And also some for IE, nobody worried about it... ;)
     
    5858= How to indentify the device =
    5959
    60 ``
     60`
    6161<?php
    6262if ( is_tttdevice('desktop') ) {
     
    7373}
    7474?>
    75 ``
     75`
    7676
    7777= How to remove the sidebar for mobile only =
    78 ``
     78`
    7979<?php
    8080if ( ! is_tttdevice('mobile') ) {
     
    8282}
    8383?>
    84 ``
     84`
    8585
    8686This means, the sidebar will not -print- for mobile divices. This is not the same has "hidden" in CSS.
    8787
    8888= Other keyword to dettect devices =
    89 ``
     89`
    9090<?php
    9191if ( is_tttdevice('iphone') ) {
     
    102102}
    103103?>
    104 ``
     104`
    105105
    106106
Note: See TracChangeset for help on using the changeset viewer.