[ Index ]
 

Code source de Drupal 5.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/includes/ -> theme.inc (sommaire)

(pas de description)

Poids: 1116 lignes (33 kb)
Inclus ou requis: 3 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 35 fonctions

  init_theme()
  list_themes()
  list_theme_engines()
  theme()
  theme_get_function()
  path_to_theme()
  path_to_engine()
  theme_get_settings()
  theme_get_setting()
  theme_placeholder()
  theme_page()
  theme_maintenance_page()
  theme_install_page()
  theme_status_messages()
  theme_links()
  theme_image()
  theme_breadcrumb()
  theme_help()
  theme_node()
  theme_submenu()
  theme_table()
  theme_table_select_header_cell()
  theme_tablesort_indicator()
  theme_box()
  theme_block()
  theme_mark()
  theme_item_list()
  theme_more_help_link()
  theme_xml_icon()
  theme_feed_icon()
  theme_closure()
  theme_blocks()
  theme_username()
  theme_progress_bar()
  _theme_table_cell()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

init_theme()   X-Ref
Initialize the theme system by loading the theme.


list_themes($refresh = FALSE)   X-Ref
Provides a list of currently available themes.

param: $refresh
return:

list_theme_engines($refresh = FALSE)   X-Ref
Provides a list of currently available theme engines

param: $refresh
return:

theme()   X-Ref
Generate the themed representation of a Drupal object.

All requests for themed functions must go through this function. It examines
the request and routes it to the appropriate theme function. If the current
theme does not implement the requested function, then the current theme
engine is checked. If neither the engine nor theme implement the requested
function, then the base theme function is called.

For example, to retrieve the HTML that is output by theme_page($output), a
module should call theme('page', $output).

param: $function
param: ...
return:

theme_get_function($function)   X-Ref
Determine if a theme function exists, and if so return which one was found.

param: $function
return:

path_to_theme()   X-Ref
Return the path to the currently selected theme.


path_to_engine()   X-Ref
Return the path to the currently selected engine.


theme_get_settings($key = NULL)   X-Ref
Retrieve an associative array containing the settings for a theme.

The final settings are arrived at by merging the default settings,
the site-wide settings, and the settings defined for the specific theme.
If no $key was specified, only the site-wide theme defaults are retrieved.

The default values for each of settings are also defined in this function.
To add new settings, add their default values here, and then add form elements
to system_theme_settings() in system.module.

param: $key
return:

theme_get_setting($setting_name, $refresh = FALSE)   X-Ref
Retrieve a setting for the current theme.
This function is designed for use from within themes & engines
to determine theme settings made in the admin interface.

Caches values for speed (use $refresh = TRUE to refresh cache)

param: $setting_name
param: $refresh
return:

theme_placeholder($text)   X-Ref
Formats text for emphasized display in a placeholder inside a sentence.
Used automatically by t().

param: $text
return:

theme_page($content)   X-Ref
Return an entire Drupal page displaying the supplied content.

param: $content
return:

theme_maintenance_page($content, $messages = TRUE, $partial = FALSE)   X-Ref
Pas de description

theme_install_page($content)   X-Ref
Pas de description

theme_status_messages($display = NULL)   X-Ref
Return a themed set of status and/or error messages. The messages are grouped
by type.

param: $display
return:

theme_links($links, $attributes = array('class' => 'links')   X-Ref
Return a themed set of links.

param: $links
param: $attributes
return:

theme_image($path, $alt = '', $title = '', $attributes = NULL, $getsize = TRUE)   X-Ref
Return a themed image.

param: $path
param: $alt
param: $title
param: $attributes
param: $getsize
return:

theme_breadcrumb($breadcrumb)   X-Ref
Return a themed breadcrumb trail.

param: $breadcrumb
return: a string containing the breadcrumb output.

theme_help()   X-Ref
Return a themed help message.

return: a string containing the helptext for the current page.

theme_node($node, $teaser = FALSE, $page = FALSE)   X-Ref
Return a themed node.

param: $node
param: $teaser
param: $page
return:

theme_submenu($links)   X-Ref
Return a themed submenu, typically displayed under the tabs.

param: $links

theme_table($header, $rows, $attributes = array()   X-Ref
Return a themed table.

param: $header
param: $rows
param: $attributes
param: $caption
return:

theme_table_select_header_cell()   X-Ref
Returns a header cell for tables that have a select all functionality.


theme_tablesort_indicator($style)   X-Ref
Return a themed sort icon.

param: $style
return:

theme_box($title, $content, $region = 'main')   X-Ref
Return a themed box.

param: $title
param: $content
param: $region
return:

theme_block($block)   X-Ref
Return a themed block.

You can style your blocks by defining .block (all blocks),
.block-<i>module</i> (all blocks of module <i>module</i>), and
\#block-<i>module</i>-<i>delta</i> (specific block of module <i>module</i>
with delta <i>delta</i>) in your theme's CSS.

param: $block
return:

theme_mark($type = MARK_NEW)   X-Ref
Return a themed marker, useful for marking new or updated
content.

param: $type
return:

theme_item_list($items = array()   X-Ref
Return a themed list of items.

param: $items
param: $title
param: $attributes
param: $type
return:

theme_more_help_link($url)   X-Ref
Returns code that emits the 'more help'-link.


theme_xml_icon($url)   X-Ref
Return code that emits an XML icon.


theme_feed_icon($url)   X-Ref
Return code that emits an feed icon.


theme_closure($main = 0)   X-Ref
Execute hook_footer() which is run at the end of the page right before the
close of the body tag.

param: $main (optional)
return:

theme_blocks($region)   X-Ref
Return a set of blocks available for the current user.

param: $region
return:

theme_username($object)   X-Ref
Format a username.

param: $object
return:

theme_progress_bar($percent, $message)   X-Ref
Pas de description

_theme_table_cell($cell, $header = FALSE)   X-Ref
@} End of "defgroup themeable".




Généré le : Fri Nov 30 16:20:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics