| [ Index ] |
PHP Cross Reference of MyBB 1.8.39 |
[Source view] [Print] [Project Stats]
MyBB 1.8 Copyright 2014 MyBB Group, All Rights Reserved Website: http://www.mybb.com License: http://www.mybb.com/about/license
| File Size: | 1614 lines (45 kb) |
| Included or required: | 7 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| import_theme_xml($xml, $options=array() X-Ref |
| Import an entire theme (stylesheets, properties & templates) from an XML file. param: string $xml The contents of the XML file param: array $options 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 $string The string to parse variables for param: array $variables 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 $tid The theme ID this stylesheet belongs to. param: string $filename The name of the stylesheet. param: string $stylesheet The contents of the stylesheet. return: string The cache file path. |
| minify_stylesheet($stylesheet) X-Ref |
| Minify a stylesheet to remove comments, linebreaks, whitespace, unnecessary semicolons, and prefers #rgb over #rrggbb. param: $stylesheet string The stylesheet in it's untouched form. return: string The minified stylesheet |
| resync_stylesheet($stylesheet) X-Ref |
param: array $stylesheet return: bool |
| fix_css_urls($url) X-Ref |
param: string $url return: string |
| fix_css_urls_callback($matches) X-Ref |
param: array $matches Matches. return: string |
| unfix_css_urls($url) X-Ref |
param: string $url return: string |
| build_new_theme($name, $properties=null, $parent=1) X-Ref |
| Build a theme based on the specified parameters. param: string $name The name of the theme param: array $properties Array of theme properties (if blank, inherits from parent) param: int $parent 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 $css The incoming CSS return: array Parsed CSS file as array, false on failure |
| get_selectors_as_options($css, $selected_item=null) X-Ref |
param: array|string $css param: int $selected_item return: string |
| css_selectors_sort_cmp($a, $b) X-Ref |
param: array $a param: array $b return: int |
| get_css_properties($css, $id) X-Ref |
param: array|string $css param: string $id return: array|bool |
| parse_css_properties($values) X-Ref |
| Parses CSS supported properties and returns them as an array. param: string $values 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 $new_css CSS we wish to insert at this location. param: string $selector The selector for this piece of CSS. param: string $css The existing CSS if we have any. param: string $class_id (Optional) The optional friendly class id value just incase the CSS is not found in the file. return: string The altered CSS. |
| copy_stylesheet_to_theme($stylesheet, $tid) X-Ref |
param: array $stylesheet param: int $tid return: bool|int |
| update_theme_stylesheet_list($tid, $theme = false, $update_disporders = true) X-Ref |
param: int $tid param: bool|array $theme param: bool $update_disporders return: bool |
| make_parent_theme_list($tid) X-Ref |
param: int $tid return: array|bool |
| make_child_theme_list($tid) X-Ref |
param: int $tid return: array|null |
| cache_themes() X-Ref |
return: array |
| build_theme_list($parent=0, $depth=0) X-Ref |
param: int $parent param: int $depth |
| build_theme_array($ignoretid = null, $parent=0, $depth=0) X-Ref |
| returns an array which can be sent to generate_select_box() param: int $ignoretid param: int $parent param: int $depth return: null|string |
| fetch_theme_stylesheets($theme) X-Ref |
param: array $theme return: array|bool |
| upgrade_css_120_to_140($css) X-Ref |
param: string $css return: string |
| 2005 - 2021 © MyBB.de | Alle Rechte vorbehalten! | Sponsor: netcup | Cross-referenced by PHPXref |