| 1 |
<?php
|
| 2 |
// $Id: accessibility_help.inc,v 2.1 2007/06/21 15:15:00 jaburns Exp $
|
| 3 |
/**
|
| 4 |
* @file: accessibility_help.inc
|
| 5 |
* @author: Jamie Burns
|
| 6 |
* For drupal version >= 5.1x
|
| 7 |
*
|
| 8 |
* Admin help file. So large, thought I would seperate it
|
| 9 |
*
|
| 10 |
*/
|
| 11 |
$output = '<p>'. t('The '. l('accessibility','admin/settings/accessibility') .' module allows limited access to your site from
|
| 12 |
any handheld device. It allows content to be rendered and limited according to
|
| 13 |
accept language of the browser. Please note that this will break your site in XHTML if
|
| 14 |
your syntax is incorrect. ');
|
| 15 |
$output .= '<span class="error">'. t('*') .'</span></p>';
|
| 16 |
$output .= '<p class="messages error">'. t('Please ensure that you enable the themes before activating this module.') .'</p>';
|
| 17 |
$output .= '<h3>'. t('Features') .'</h3>
|
| 18 |
<dl>';
|
| 19 |
$output .= '<dt>'. t('Enable Module') .'</dt>';
|
| 20 |
$output .= '<dd>'. t('Check the box and your site will serve up to 5 different versions of your site
|
| 21 |
based on the accept language of the browser.
|
| 22 |
3 basic templates are used: ');
|
| 23 |
$output .= '<ul>
|
| 24 |
<li>'. t('wap : for wap browsers') .'</li>
|
| 25 |
<li>'. t('mobi: for handhelds') .'</li>
|
| 26 |
<li>'. t('web : for web browsers') .'</li>
|
| 27 |
</ul>
|
| 28 |
'. t('See theme settings for more') .'
|
| 29 |
</dd>';
|
| 30 |
$output .= '<dt>'. t('Page Override') .'</dt>';
|
| 31 |
$output .= '<dd>'. t('This allows you to block certain pages or sections from primarily mobile devices.
|
| 32 |
As the script only limits content, and doesn\'t change forms etc. you have the ability
|
| 33 |
to deny access.
|
| 34 |
It also sends the content type as text/html.') .'</dd>';
|
| 35 |
$output .= '<dt>'. t('Media Type Override') .'</dt>';
|
| 36 |
$output .= '<dd>'. t('This allows the main administrator to view different versions of the site.
|
| 37 |
Any pages that are forbidden to a mobile device will render in text/html to the admin -
|
| 38 |
meaning they can still administer site.') .'</dd>';
|
| 39 |
$output .= '<dt>'. t('Override xHTML mime type') .'</dt>';
|
| 40 |
$output .= '<dd><span class="error">'. t(' *') .'</span> '. t('If you are serving incorrect XHTML, you can enable this override.
|
| 41 |
It will serve XHTML as text/html.') .'</dd>';
|
| 42 |
|
| 43 |
$output .= '<dt>'. t('Page break character') .'</dt>';
|
| 44 |
$output .= '<dd>'. t('This module can break up content into smaller pieces for handheld devices.
|
| 45 |
Select some tags to be searched for. Examples: <hr /> or <!--MOBI-->') .'.
|
| 46 |
Currently: <strong>'. htmlentities(variable_get('accessibility_paging', '<br class="breaker" />')) .'</strong>.
|
| 47 |
You can also switch this feature off if you are using another paging module.</dd>';
|
| 48 |
|
| 49 |
$output .= '<dt>'. t('Theme Settings') .'</dt>';
|
| 50 |
$output .= '<dd>'. t('If you select the default "web" theme users cannot select what them they want.') .'</dd>';
|
| 51 |
|
| 52 |
$output .= '</dl>
|
| 53 |
<p>You can now create a "<strong>mobi</strong>" role that can have restricted access to content.
|
| 54 |
Ensure that the role is named "<strong>mobi</strong>" without the quotes.</p>
|
| 55 |
<h3>'. t('Languages supported') .'</h3>';
|
| 56 |
$output .= '<ul>';
|
| 57 |
foreach (accessibility_override() as $key => $val) {
|
| 58 |
global $mime;
|
| 59 |
$output .= '<li>'. t( trim($val) .': '. $mime['content'][$key] ) .'</li>';
|
| 60 |
}
|
| 61 |
$output .= '</ul>';
|
| 62 |
$output .= '<h3>'. t('Built in modules') .'</h3>';
|
| 63 |
$output .= '<p>'. t('Due to the volatile nature of');
|
| 64 |
$output .= '<br />'. t('a) serving content as "application/..." and');
|
| 65 |
$output .= '<br />'. t('b) maximum file size of wap pages');
|
| 66 |
$output .= '<br />'. t('a couple of additional modules have been included in this release.') .'</p>
|
| 67 |
<dl>';
|
| 68 |
$output .= '<dt>'. t('htmlcorrector') .'</dt>';
|
| 69 |
$output .= '<dd>'. t('This module was made by Steven Wittens <unconed@drop.org>. It is called in the fix() function.
|
| 70 |
The filter scans the input and makes sure all HTML tags are properly nested and closed.') .'<br /><br /><small>';
|
| 71 |
$output .= t('Note: The filter only checks against basic syntax, not against the HTML
|
| 72 |
specification. Non-existant tags or entities will pass as correct.') .'</small></dd>';
|
| 73 |
$output .= '<dt>'. t('paging') .'</dt>';
|
| 74 |
$output .= '<dd>'. t('$Id: paging.module,v 1.15.2.1 2006/12/12 02:35:42 Gurpartap Exp $') .'<br />';
|
| 75 |
$output .= t('Original module written by Marco Scutari.') .'<br />';
|
| 76 |
$output .= t('Rewritten and considerably shortened and made more Drupal-friendly by Earl Miles.') .'</dd>';
|
| 77 |
$output .= '</dl>';
|
| 78 |
$output .= '<h3>'. t('Multi Sites') .'</h3>';
|
| 79 |
$output .= '<p>'. t('You can enable multiple sites and versions by simply overriding the detection script.
|
| 80 |
Create a new directory in your sites folder to match your domain, for example: ');
|
| 81 |
$output .= '<em>'. t('wap.site.mobi') .'</em>';
|
| 82 |
$output .= t('. Create a new settings.php file with the same information as default. Then add 2 definitions.');
|
| 83 |
$output .= '<pre>define ("IS_MOBI", TRUE);
|
| 84 |
define ("CONTENT_TYPE", 4); // match $mime["content"] of your choice (Wap in this instance)</pre>';
|
| 85 |
$output .= '<p>'. t('Note that all override settings are ignored currently.') .'</p>';
|
| 86 |
$output .= '<p class="messages">See <a href="http://www.skiffie.com/mobile" title="Accessibility Module Home">www.skiffie.com</a>
|
| 87 |
for more details.</p>';
|