No need to set $a->theme_info = array() everywhere if you can define it in App
itself. Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
parent
066ddada17
commit
1f2bf81844
5
boot.php
5
boot.php
|
@ -465,11 +465,12 @@ class App {
|
||||||
public $plugins;
|
public $plugins;
|
||||||
public $apps = array();
|
public $apps = array();
|
||||||
public $identities;
|
public $identities;
|
||||||
public $is_mobile;
|
public $is_mobile = false;
|
||||||
public $is_tablet;
|
public $is_tablet = false;
|
||||||
public $is_friendica_app;
|
public $is_friendica_app;
|
||||||
public $performance = array();
|
public $performance = array();
|
||||||
public $callstack = array();
|
public $callstack = array();
|
||||||
|
public $theme_info = array();
|
||||||
|
|
||||||
public $nav_sel;
|
public $nav_sel;
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function decaf_mobile_init(&$a) {
|
function decaf_mobile_init(&$a) {
|
||||||
$a->theme_info = array();
|
|
||||||
$a->sourcename = 'Friendica mobile web';
|
$a->sourcename = 'Friendica mobile web';
|
||||||
$a->videowidth = 250;
|
$a->videowidth = 250;
|
||||||
$a->videoheight = 200;
|
$a->videoheight = 200;
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
function duepuntozero_init(&$a) {
|
function duepuntozero_init(&$a) {
|
||||||
|
|
||||||
$a->theme_info = array();
|
|
||||||
set_template_engine($a, 'smarty3');
|
set_template_engine($a, 'smarty3');
|
||||||
|
|
||||||
$colorset = get_pconfig( local_user(), 'duepuntozero','colorset');
|
$colorset = get_pconfig( local_user(), 'duepuntozero','colorset');
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
function facepark_init(&$a) {
|
function facepark_init(&$a) {
|
||||||
$a->theme_info = array();
|
|
||||||
set_template_engine($a, 'smarty3');
|
set_template_engine($a, 'smarty3');
|
||||||
|
|
||||||
$a->page['htmlhead'] .= <<< EOT
|
$a->page['htmlhead'] .= <<< EOT
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function frost_mobile_init(&$a) {
|
function frost_mobile_init(&$a) {
|
||||||
$a->theme_info = array();
|
|
||||||
$a->sourcename = 'Friendica mobile web';
|
$a->sourcename = 'Friendica mobile web';
|
||||||
$a->videowidth = 250;
|
$a->videowidth = 250;
|
||||||
$a->videoheight = 200;
|
$a->videoheight = 200;
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function frost_init(&$a) {
|
function frost_init(&$a) {
|
||||||
$a->theme_info = array();
|
|
||||||
$a->videowidth = 400;
|
$a->videowidth = 400;
|
||||||
$a->videoheight = 330;
|
$a->videoheight = 330;
|
||||||
$a->theme_thread_allow = false;
|
$a->theme_thread_allow = false;
|
||||||
|
|
|
@ -8,8 +8,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function quattro_init(&$a) {
|
function quattro_init(&$a) {
|
||||||
$a->theme_info = array();
|
|
||||||
|
|
||||||
$a->page['htmlhead'] .= '<script src="'.$a->get_baseurl().'/view/theme/quattro/tinycon.min.js"></script>';
|
$a->page['htmlhead'] .= '<script src="'.$a->get_baseurl().'/view/theme/quattro/tinycon.min.js"></script>';
|
||||||
$a->page['htmlhead'] .= '<script src="'.$a->get_baseurl().'/view/theme/quattro/js/quattro.js"></script>';;
|
$a->page['htmlhead'] .= '<script src="'.$a->get_baseurl().'/view/theme/quattro/js/quattro.js"></script>';;
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function smoothly_init(&$a) {
|
function smoothly_init(&$a) {
|
||||||
$a->theme_info = array();
|
|
||||||
set_template_engine($a, 'smarty3');
|
set_template_engine($a, 'smarty3');
|
||||||
|
|
||||||
$cssFile = null;
|
$cssFile = null;
|
||||||
|
|
|
@ -19,8 +19,6 @@ function vier_init(&$a) {
|
||||||
|
|
||||||
set_template_engine($a, 'smarty3');
|
set_template_engine($a, 'smarty3');
|
||||||
|
|
||||||
$a->theme_info = array();
|
|
||||||
|
|
||||||
if ($a->argv[0].$a->argv[1] === "profile".$a->user['nickname'] or $a->argv[0] === "network" && local_user()) {
|
if ($a->argv[0].$a->argv[1] === "profile".$a->user['nickname'] or $a->argv[0] === "network" && local_user()) {
|
||||||
vier_community_info();
|
vier_community_info();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue