Changeset 762945
- Timestamp:
- 08/27/2013 11:13:06 AM (13 years ago)
- File:
-
- 1 edited
-
ttt-devices/trunk/readme.txt (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ttt-devices/trunk/readme.txt
r762937 r762945 1 1 === TTT Device === 2 Contributors: gabrielperezs, lonchbox2 Contributors: 33themes, gabrielperezs, lonchbox 3 3 Tags: devices, mobile 4 4 Requires at least: 3.4 … … 22 22 23 23 * For a desktop in linux 24 ` `24 ` 25 25 <html> 26 26 <body class="linux chrome desktop"> 27 27 </body> 28 28 </html> 29 ` `29 ` 30 30 31 31 * For a desktop in Mac 32 ` `32 ` 33 33 <html> 34 34 <body class="mac firefox desktop"> 35 35 </body> 36 36 </html> 37 ` `37 ` 38 38 39 39 * For a iphone mobile 40 ` `40 ` 41 41 <html> 42 42 <body class="mac safari mobile"> 43 43 </body> 44 44 </html> 45 ` `45 ` 46 46 47 47 * For a android mobile 48 ` `48 ` 49 49 <html> 50 50 <body class="chrome linux mobile"> 51 51 </body> 52 52 </html> 53 ` `53 ` 54 54 55 55 And also some for IE, nobody worried about it... ;) … … 58 58 = How to indentify the device = 59 59 60 ` `60 ` 61 61 <?php 62 62 if ( is_tttdevice('desktop') ) { … … 73 73 } 74 74 ?> 75 ` `75 ` 76 76 77 77 = How to remove the sidebar for mobile only = 78 ` `78 ` 79 79 <?php 80 80 if ( ! is_tttdevice('mobile') ) { … … 82 82 } 83 83 ?> 84 ` `84 ` 85 85 86 86 This means, the sidebar will not -print- for mobile divices. This is not the same has "hidden" in CSS. 87 87 88 88 = Other keyword to dettect devices = 89 ` `89 ` 90 90 <?php 91 91 if ( is_tttdevice('iphone') ) { … … 102 102 } 103 103 ?> 104 ` `104 ` 105 105 106 106
Note: See TracChangeset
for help on using the changeset viewer.