The mobileOKPythiaForWordpress class contains the logic of the mobileOK Pythia plugin for Wordpress for regular non-admin pages.
The class wraps the common AskPythia and TransPythia libraries for use in Wordpress, and registers the hooks handled by the plugin to generate mobileOK content.
The mobileOK Pythia plugin is designed to help generate a mobileOK version of a blog.
Located in /plugins/wordpress/mobileOKPythia/includes/mobileOKPythiaForWordpress.php (line 54)
Creates an empty instance of the mobileOKPythia class
Adds the pagination parameter to the URI when browsing through comments on a mobile device.
Serves the page with an HTTP Link header to a POWDER file that asserts that the blog is mobileOK.
Deletes scripts that registered in Wordpress when the requesting device does not support scripting.
This method is a wrapper around the TranscodingActionDeleteWordpressScripts transcoding action.
Determines the Content-Type that should be used based on the Accept HTTP header sent by the requesting device.
Make sure that content can be cached a bit.
TODO: adds the possibility to define the max-age setting.
Forces a low number of comments per page when browsing the site on a mobile device.
Forces a low number of posts per page when browsing the site on a mobile device.
Retrieves a transcoder that applies to HTML content.
The transcoding actions are selected based on the options of the plugin.
Initializes this instance, i.e. registers the hooks and prepares the identification of the requesting device.
Switches template based on the requesting device.
A mobile template is used when the requesting device is identified as mobile, the regular desktop template is used otherwise.
This method is a wrapper around the TranscodingActionSwitchTemplate transcoding action.
Transcodes content before delivery.
Documentation generated on Tue, 17 Nov 2009 19:00:39 +0100 by phpDocumentor 1.4.2