Full ELMS Learning Network documentation
function theme_system_themes_page
×
Error message
User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).cis7 system.admin.inc | theme_system_themes_page($variables) |
cle7 system.admin.inc | theme_system_themes_page($variables) |
elmsmedia7 system.admin.inc | theme_system_themes_page($variables) |
icor7 system.admin.inc | theme_system_themes_page($variables) |
meedjum_blog7 system.admin.inc | theme_system_themes_page($variables) |
mooc7 system.admin.inc | theme_system_themes_page($variables) |
Returns HTML for the Appearance page.
Parameters
$variables: An associative array containing:
- theme_groups: An associative array containing groups of themes.
Related topics
1 theme call to theme_system_themes_page()
- system_themes_page in modules/
system/ system.admin.inc - Menu callback; displays a listing of all themes.
3 string references to the theme hook from theme_system_themes_page()
Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.
- og-7.x-1.x.database.php in sites/
all/ modules/ ulmus/ og/ tests/ og-7.x-1.x.database.php - Filled installation of Drupal 7.0, for test purposes.
- system_menu in modules/
system/ system.module - Implements hook_menu().
- system_theme in modules/
system/ system.module - Implements hook_theme().
File
- modules/
system/ system.admin.inc, line 2715 - Admin page callbacks for the system module.
Code
function theme_system_themes_page($variables) {
$theme_groups = $variables['theme_groups'];
$output = '<div id="system-themes-page">';
foreach ($variables['theme_group_titles'] as $state => $title) {
if (!count($theme_groups[$state])) {
// Skip this group of themes if no theme is there.
continue;
}
// Start new theme group.
$output .= '<div class="system-themes-list system-themes-list-' . $state . ' clearfix"><h2>' . $title . '</h2>';
foreach ($theme_groups[$state] as $theme) {
// Theme the screenshot.
$screenshot = $theme->screenshot ? theme('image', $theme->screenshot) : '<div class="no-screenshot">' . t('no screenshot') . '</div>';
// Localize the theme description.
$description = t($theme->info['description']);
// Style theme info
$notes = count($theme->notes) ? ' (' . join(', ', $theme->notes) . ')' : '';
$theme->classes[] = 'theme-selector';
$theme->classes[] = 'clearfix';
$output .= '<div class="' . join(' ', $theme->classes) . '">' . $screenshot . '<div class="theme-info"><h3>' . $theme->info['name'] . ' ' . (isset($theme->info['version']) ? $theme->info['version'] : '') . $notes . '</h3><div class="theme-description">' . $description . '</div>';
// Make sure to provide feedback on compatibility.
if (!empty($theme->incompatible_core)) {
$output .= '<div class="incompatible">' . t('This version is not compatible with Drupal !core_version and should be replaced.', array('!core_version' => DRUPAL_CORE_COMPATIBILITY)) . '</div>';
}
elseif (!empty($theme->incompatible_php)) {
if (substr_count($theme->info['php'], '.') < 2) {
$theme->info['php'] .= '.*';
}
$output .= '<div class="incompatible">' . t('This theme requires PHP version @php_required and is incompatible with PHP version !php_version.', array('@php_required' => $theme->info['php'], '!php_version' => phpversion())) . '</div>';
}
else {
$output .= theme('links', array('links' => $theme->operations, 'attributes' => array('class' => array('operations', 'clearfix'))));
}
$output .= '</div></div>';
}
$output .= '</div>';
}
$output .= '</div>';
return $output;
}