-function theme_content(&$a){
+function theme_content(App &$a){
if(!local_user())
return;
return clean_form($a, $colorset, $user);
}
-function theme_post(&$a){
+function theme_post(App &$a){
if(! local_user())
return;
}
-function theme_admin(&$a){
+function theme_admin(App &$a){
$colorset = get_config( 'duepuntozero', 'colorset');
$user = false;
return clean_form($a, $colorset, $user);
}
-function theme_admin_post(&$a){
+function theme_admin_post(App &$a){
if (isset($_POST['duepuntozero-settings-submit'])){
set_config('duepuntozero', 'colorset', $_POST['duepuntozero_colorset']);
}
<?php
-function duepuntozero_init(&$a) {
+function duepuntozero_init(App &$a) {
set_template_engine($a, 'smarty3');
<?php
require_once('view/theme/frio/php/Image.php');
-function theme_content(&$a) {
+function theme_content(App &$a) {
if(!local_user()) { return;}
$arr = array();
return frio_form($a, $arr);
}
-function theme_post(&$a) {
+function theme_post(App &$a) {
if(!local_user()) { return;}
if (isset($_POST['frio-settings-submit'])) {
set_pconfig(local_user(), 'frio', 'schema', $_POST["frio_schema"]);
*
* @todo Check if this is really needed.
*/
-function load_page(&$a) {
+function load_page(App &$a) {
if(isset($_GET["mode"]) AND ($_GET["mode"] == "minimal")) {
require "view/theme/frio/minimal.php";
} elseif((isset($_GET["mode"]) AND ($_GET["mode"] == "none"))) {
global $frio;
-function frio_init(&$a) {
+function frio_init(App &$a) {
// disable the events module link in the profile tab
$a->theme_events_in_profile = false;
* Maintainer: Zach P <techcity@f.shmuz.in>
*/
-function frost_mobile_init(&$a) {
+function frost_mobile_init(App &$a) {
$a->sourcename = 'Friendica mobile web';
$a->videowidth = 250;
$a->videoheight = 200;
set_template_engine($a, 'smarty3');
}
-function frost_mobile_content_loaded(&$a) {
+function frost_mobile_content_loaded(App &$a) {
// I could do this in style.php, but by having the CSS in a file the browser will cache it,
// making pages load faster
* Maintainer: Zach P <techcity@f.shmuz.in>
*/
-function frost_init(&$a) {
+function frost_init(App &$a) {
$a->videowidth = 400;
$a->videoheight = 330;
$a->theme_thread_allow = false;
set_template_engine($a, 'smarty3');
}
-function frost_content_loaded(&$a) {
+function frost_content_loaded(App &$a) {
// I could do this in style.php, but by having the CSS in a file the browser will cache it,
// making pages load faster
-function theme_content(&$a){
+function theme_content(App &$a){
if(!local_user())
return;
return quattro_form($a,$align, $color, $tfs, $pfs);
}
-function theme_post(&$a){
+function theme_post(App &$a){
if(! local_user())
return;
}
-function theme_admin(&$a){
+function theme_admin(App &$a){
$align = get_config('quattro', 'align' );
$color = get_config('quattro', 'color' );
$tfs = get_config("quattro","tfs");
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']);
* 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>';;
}
* Screenshot: <a href="screenshot.png">Screenshot</a>
*/
-function smoothly_init(&$a) {
+function smoothly_init(App &$a) {
set_template_engine($a, 'smarty3');
$cssFile = null;
-function theme_content(&$a){
+function theme_content(App &$a){
if(!local_user())
return;
$show_services, $show_friends, $show_lastusers);
}
-function theme_post(&$a){
+function theme_post(App &$a){
if(! local_user())
return;
}
-function theme_admin(&$a){
+function theme_admin(App &$a){
if (!function_exists('get_vier_config'))
return;
return $o;
}
-function theme_admin_post(&$a){
+function theme_admin_post(App &$a){
if (isset($_POST['vier-settings-submit'])){
set_config('vier', 'style', $_POST['vier_style']);
set_config('vier', 'show_pages', $_POST['vier_show_pages']);
require_once("include/socgraph.php");
require_once("mod/proxy.php");
-function vier_init(&$a) {
+function vier_init(App &$a) {
$a->theme_events_in_profile = false;