changed to this:
--------------------- function bla (App &$a) { $a->bla = 'stuff'; } --------------------- Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
4dce3d8224
commit
fb817b18ad
12 changed files with 24 additions and 24 deletions
|
@ -5,7 +5,7 @@
|
|||
|
||||
|
||||
|
||||
function theme_content(&$a){
|
||||
function theme_content(App &$a){
|
||||
if(!local_user())
|
||||
return;
|
||||
|
||||
|
@ -17,7 +17,7 @@ function theme_content(&$a){
|
|||
return quattro_form($a,$align, $color, $tfs, $pfs);
|
||||
}
|
||||
|
||||
function theme_post(&$a){
|
||||
function theme_post(App &$a){
|
||||
if(! local_user())
|
||||
return;
|
||||
|
||||
|
@ -30,7 +30,7 @@ function theme_post(&$a){
|
|||
}
|
||||
|
||||
|
||||
function theme_admin(&$a){
|
||||
function theme_admin(App &$a){
|
||||
$align = get_config('quattro', 'align' );
|
||||
$color = get_config('quattro', 'color' );
|
||||
$tfs = get_config("quattro","tfs");
|
||||
|
@ -39,7 +39,7 @@ function theme_admin(&$a){
|
|||
return quattro_form($a,$align, $color, $tfs, $pfs);
|
||||
}
|
||||
|
||||
function theme_admin_post(&$a){
|
||||
function theme_admin_post(App &$a){
|
||||
if (isset($_POST['quattro-settings-submit'])){
|
||||
set_config('quattro', 'align', $_POST['quattro_align']);
|
||||
set_config('quattro', 'color', $_POST['quattro_color']);
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* Maintainer: Tobias <https://diekershoff.homeunix.net/friendica/profile/tobias>
|
||||
*/
|
||||
|
||||
function quattro_init(&$a) {
|
||||
function quattro_init(App &$a) {
|
||||
$a->page['htmlhead'] .= '<script src="'.App::get_baseurl().'/view/theme/quattro/tinycon.min.js"></script>';
|
||||
$a->page['htmlhead'] .= '<script src="'.App::get_baseurl().'/view/theme/quattro/js/quattro.js"></script>';;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue