google-appliance-onebox-module.tpl.php in Google Search Appliance 7
Default theme implementation for displaying a single onebox module, consisting of several onebox results.
This template collects each invocation of theme_google_appliance_onebox_result(). This and the child template are dependent on one another sharing the markup for the onebox results listing.
Available variables:
- $module_name: The name of the onebox module, from the search appliance.
- $provider: The name of the onebox, provided by the search appliance.
- $url_text: The URL for the onebox, provided by the search appliance.
- $url_link: Onebox link, provided by the search appliance.
- $image: Image provided by the search appliance.
- $description: Description of the onebox, provided by the search appliance.
- $results: An array of rendered onebox results. Note that the unrendered results are also available at $onebox['results'].
See also
https://developers.google.com/search-appliance/documentation/614/oneboxg...
template_preprocess_google_appliance_onebox()
1 theme call to google-appliance-onebox-module.tpl.php
- google_appliance_block_view in ./
google_appliance.module - Implements hook_block_view().
File
theme/google-appliance-onebox-module.tpl.phpView source
<?php
/**
* @file
* Default theme implementation for displaying a single onebox module,
* consisting of several onebox results.
*
* This template collects each invocation of theme_google_appliance_onebox_result().
* This and the child template are dependent on one another sharing the markup for the
* onebox results listing.
*
* Available variables:
* - $module_name: The name of the onebox module, from the search appliance.
* - $provider: The name of the onebox, provided by the search appliance.
* - $url_text: The URL for the onebox, provided by the search appliance.
* - $url_link: Onebox link, provided by the search appliance.
* - $image: Image provided by the search appliance.
* - $description: Description of the onebox, provided by the search appliance.
* - $results: An array of rendered onebox results. Note that the unrendered
* results are also available at $onebox['results'].
*
* @see https://developers.google.com/search-appliance/documentation/614/oneboxguide#providerresultsschema
* @see template_preprocess_google_appliance_onebox()
* @see google-appliance-results.tpl.php
*/
//dsm($variables);
foreach ($results as $result) {
?>
<?php
print $result['rendered'];
}