[ Index ]

PHP Cross Reference of MyBB

title

Body

[close]

/admin/inc/ -> functions_themes.php (summary)

(no description)

File Size: 1260 lines (38 kb)
Included or required: 5 times
Referenced: 5 times
Includes or requires: 1 file
 inc/class_xml.php

Defines 21 functions

  import_theme_xml()
  parse_theme_variables()
  cache_stylesheet()
  resync_stylesheet()
  fix_css_urls()
  unfix_css_urls()
  build_new_theme()
  css_to_array()
  get_selectors_as_options()
  css_selectors_sort_cmp()
  get_css_properties()
  parse_css_properties()
  insert_into_css()
  copy_stylesheet_to_theme()
  update_theme_stylesheet_list()
  make_parent_theme_list()
  make_child_theme_list()
  cache_themes()
  build_theme_list()
  build_theme_array()
  upgrade_css_120_to_140()

Functions
Functions that are not part of a class:

import_theme_xml($xml, $options=array()   X-Ref
Import an entire theme (stylesheets, properties & templates) from an XML file.

param: string The contents of the XML file
param: array Optional array of options or overrides
return: boolean True on success, false on failure

parse_theme_variables($string, $variables=array()   X-Ref
Parse theme variables in a specific string.

param: string The string to parse variables for
param: array Array of variables
return: string Parsed string with variables replaced

cache_stylesheet($tid, $filename, $stylesheet)   X-Ref
Caches a stylesheet to the file system.

param: string The theme ID this stylesheet belongs to
param: string The name of the stylesheet
param: string The contents of the stylesheet

resync_stylesheet($stylesheet)   X-Ref
No description

fix_css_urls($url)   X-Ref
No description

unfix_css_urls($url)   X-Ref
No description

build_new_theme($name, $properties=null, $parent=1)   X-Ref
Build a theme based on the specified parameters.

param: string The name of the theme
param: array Array of theme properties (if blank, inherits from parent)
param: int The parent ID for this theme (defaults to Master)
return: int The new theme ID

css_to_array($css)   X-Ref
Generates an array from an incoming CSS file.

param: string The incoming CSS
return: array Parsed CSS file as array, false on failure

get_selectors_as_options($css, $selected_item="")   X-Ref
No description

css_selectors_sort_cmp($a, $b)   X-Ref
No description

get_css_properties($css, $id)   X-Ref
No description

parse_css_properties($values)   X-Ref
Parses CSS supported properties and returns them as an array.

param: string Value of CSS properties from within class or selector
return: array Array of CSS properties

insert_into_css($new_css, $selector="", $css="", $class_id="")   X-Ref
Inserts an incoming string of CSS in to an already defined document. If the class ID is not found, the CSS is appended to the file.

param: string CSS we wish to insert at this location
param: string The selector for this piece of CSS
param: string The existing CSS if we have any
param: string (Optional) The optional friendly class id value just incase the CSS is not found in the file

copy_stylesheet_to_theme($stylesheet, $tid)   X-Ref
No description

update_theme_stylesheet_list($tid)   X-Ref
No description

make_parent_theme_list($tid)   X-Ref
No description

make_child_theme_list($tid)   X-Ref
No description

cache_themes()   X-Ref
No description

build_theme_list($parent=0, $depth=0)   X-Ref
No description

build_theme_array($ignoretid = null, $parent=0, $depth=0)   X-Ref
No description

upgrade_css_120_to_140($css)   X-Ref
No description



Generated: Tue Oct 8 19:19:50 2013 Cross-referenced by PHPXref 0.7.1