function theme_mostpopular_page in Drupal Most Popular 6
The main theme function for the most popular page. This theme loads the basic stylesheet but no javascript.
Calls theme('mostpopular_block_services', $service) to render the links to other services.
Calls theme('mostpopular_block_intervals', $interval) to render the links to other intervals.
Calls mostpopular_get_items($sid, $iid) to get the initial list of most popular items. This list can subsequently change via AJAX calls from the service or interval links.
Parameters
integer $sid: The service ID of the currently-selected service.
integer $iid: The interval ID of the currently-selected interval.
1 theme call to theme_mostpopular_page()
- mostpopular_items_page in ./
mostpopular.block.inc - Renders a full page with a most popular selector and list of items.
File
- ./
mostpopular.block.inc, line 119 - Defines all the pages, blocks and themes for rendering the most popular data to general users.
Code
function theme_mostpopular_page($sid, $iid) {
_mostpopular_load_stylesheets();
// Print the tabs for services and intervals
$tpl = '<div id="mostpopular-page" class="mostpopular">';
$tpl .= theme('mostpopular_services', $sid, $iid);
$tpl .= theme('mostpopular_intervals', $sid, $iid);
$tpl .= '<div class="mostpopular--content">';
$tpl .= mostpopular_get_items($sid, $iid);
$tpl .= '</div>';
$tpl .= '</div>';
return $tpl;
}