X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fdispy%2Ftheme.php;h=a3b6b7f6eabd0c68370fffff65a6e75501b2a2e2;hb=5068563cf5bc67ab6d6dcc406998fa8ffa651b82;hp=eb70732684770145654ad614fe595fb7185222cb;hpb=a9f825ec3fc8b44115b1fae3b1aeb2c07f23e3de;p=friendica.git diff --git a/view/theme/dispy/theme.php b/view/theme/dispy/theme.php index eb70732684..a3b6b7f6ea 100644 --- a/view/theme/dispy/theme.php +++ b/view/theme/dispy/theme.php @@ -2,25 +2,32 @@ /* * Name: Dispy - * Description:

Dispy: Light, Spartan, Sleek, and Functional
Dispy Dark: Dark, Spartan, Sleek, and Functional

- * Version: 1.2 + * Description: Dispy family (light, dark): Sleek and Functional Themes + * Version: 1.2.1 * Author: Simon * Maintainer: Simon * Screenshot: Screenshot */ -$a = get_app(); -$a->theme_info = array( - 'family' => 'dispy', - 'version' => '1.2' -); +/* If you borrow any of these functions, make sure to + * RENAME your functions, otherwise both themes get conflicts, + * and the friendica instance will get HTTP 500 errors. + * To paraphrase Mike: "Might wish to wrap + * function_name with "if(! function_exists('function_name')) ... " + * or rename to prefix1_function_name (prefix2_function_name), etc. + */ function dispy_init(&$a) { + $a->theme_info = array( + 'family' => 'dispy', + 'version' => '1.2.2' + ); + set_template_engine($a, 'smarty3'); + /** @purpose set some theme defaults */ $cssFile = null; - $colour = false; $colour = get_pconfig(local_user(), "dispy", "colour"); $baseurl = $a->get_baseurl($ssl_state); @@ -44,7 +51,10 @@ function dispy_init(&$a) {