The plgSystemMobileOKPythia class contains the logic of the mobileOK Pythia plugin for Joomla!
The class wraps the common AskPythia and TransPythia libraries for use in Joomla!, and registers the events handled by the plugin to generate mobileOK content.
The mobileOK Pythia plugin is designed to help generate a mobileOK version of a Web site.
Located in /plugins/joomla/mobileOKPythia/mobileOKPythia.php (line 58)
JPlugin | --plgSystemMobileOKPythia
Constructor for the class.
Serves the page with an HTTP Link header to a POWDER file that asserts that the blog is mobileOK.
Determines the Content-Type that should be used based on the Accept HTTP header sent by the requesting device.
Retrieves a transcoder that applies to HTML content.
The transcoding actions are selected based on the options of the plugin.
Switches template based on the requesting device and forces number of search results to 5 on mobile devices.
Applies content transcoding at the page level after the framework has rendered the application and sets a few HTTP headers as required.
Pagination is not performed at the page level, because this would result in a very poor user experience where navigation menus and sidebards may either be displayed on first page while content is rendered on second page, or be moved to subsequent pages. Sidebards and menus should rather be handled in the design through the administrative page or in the mobile template being used.
Applies content transcoding at the article level.
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.
Documentation generated on Tue, 17 Nov 2009 19:00:39 +0100 by phpDocumentor 1.4.2