Move App to src
- Add `use Friendica\App;` wherever needed
This commit is contained in:
parent
56ee734b00
commit
20043914e6
197 changed files with 1321 additions and 996 deletions
|
@ -4,6 +4,8 @@
|
|||
* Theme settings
|
||||
*/
|
||||
|
||||
use Friendica\App;
|
||||
|
||||
function theme_content(App $a) {
|
||||
if (!local_user()) {
|
||||
return;
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
use Friendica\App;
|
||||
|
||||
function duepuntozero_init(App $a) {
|
||||
|
||||
set_template_engine($a, 'smarty3');
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
<?php
|
||||
|
||||
use Friendica\App;
|
||||
|
||||
require_once('view/theme/frio/php/Image.php');
|
||||
|
||||
function theme_content(App $a) {
|
||||
|
|
|
@ -15,9 +15,9 @@
|
|||
<head>
|
||||
<title><?php if(x($page,'title')) echo $page['title'] ?></title>
|
||||
<meta request="<?php echo htmlspecialchars($_REQUEST['pagename']) ?>">
|
||||
<script>var baseurl="<?php echo App::get_baseurl() ?>";</script>
|
||||
<script>var baseurl="<?php echo Friendica\App::get_baseurl() ?>";</script>
|
||||
<script>var frio="<?php echo "view/theme/frio"; ?>";</script>
|
||||
<?php $baseurl = App::get_baseurl(); ?>
|
||||
<?php $baseurl = Friendica\App::get_baseurl(); ?>
|
||||
<?php $frio = "view/theme/frio"; ?>
|
||||
<?php
|
||||
// Because we use minimal for modals the header and the included js stuff should be only loaded
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
use Friendica\App;
|
||||
|
||||
/**
|
||||
* @brief Load page template in dependence of the template mode
|
||||
|
|
|
@ -10,9 +10,9 @@
|
|||
<title><?php if(x($page,'title')) echo $page['title'] ?></title>
|
||||
<meta name="viewport" content="initial-scale=1.0">
|
||||
<meta request="<?php echo htmlspecialchars($_REQUEST['pagename']) ?>">
|
||||
<script>var baseurl="<?php echo App::get_baseurl() ?>";</script>
|
||||
<script>var baseurl="<?php echo Friendica\App::get_baseurl() ?>";</script>
|
||||
<script>var frio="<?php echo "view/theme/frio"; ?>";</script>
|
||||
<?php $baseurl = App::get_baseurl(); ?>
|
||||
<?php $baseurl = Friendica\App::get_baseurl(); ?>
|
||||
<?php $frio = "view/theme/frio"; ?>
|
||||
<?php if(x($page,'htmlhead')) echo $page['htmlhead']; ?>
|
||||
</head>
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
use Friendica\App;
|
||||
|
||||
$frio = "view/theme/frio";
|
||||
|
||||
global $frio;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<html lang="<?php echo $lang; ?>">
|
||||
<head>
|
||||
<title><?php if(x($page,'title')) echo $page['title'] ?></title>
|
||||
<script>var baseurl="<?php echo App::get_baseurl() ?>";</script>
|
||||
<script>var baseurl="<?php echo Friendica\App::get_baseurl() ?>";</script>
|
||||
<?php if(x($page,'htmlhead')) echo $page['htmlhead'] ?>
|
||||
</head>
|
||||
<body <?php if($a->module === 'home') echo 'onLoad="setTimeout(\'homeRedirect()\', 1500)"'?>>
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
* Maintainer: Zach P <techcity@f.shmuz.in>
|
||||
*/
|
||||
|
||||
use Friendica\App;
|
||||
|
||||
function frost_mobile_init(App $a) {
|
||||
$a->sourcename = 'Friendica mobile web';
|
||||
$a->videowidth = 250;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<html lang="<?php echo $lang; ?>">
|
||||
<head>
|
||||
<title><?php if(x($page,'title')) echo $page['title'] ?></title>
|
||||
<script>var baseurl="<?php echo App::get_baseurl() ?>";</script>
|
||||
<script>var baseurl="<?php echo Friendica\App::get_baseurl() ?>";</script>
|
||||
<?php if(x($page,'htmlhead')) echo $page['htmlhead'] ?>
|
||||
</head>
|
||||
<body <?php if($a->module === 'home') echo 'onLoad="setTimeout(\'homeRedirect()\', 1500)"'?>>
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
* Maintainer: Zach P <techcity@f.shmuz.in>
|
||||
*/
|
||||
|
||||
use Friendica\App;
|
||||
|
||||
function frost_init(App $a) {
|
||||
$a->videowidth = 400;
|
||||
$a->videoheight = 330;
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
* Theme settings
|
||||
*/
|
||||
|
||||
use Friendica\App;
|
||||
|
||||
function theme_content(App $a) {
|
||||
if (!local_user()) {
|
||||
return;
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
* Maintainer: Tobias <https://diekershoff.homeunix.net/friendica/profile/tobias>
|
||||
*/
|
||||
|
||||
use Friendica\App;
|
||||
|
||||
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>';;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<title><?php if(x($page,'title')) echo $page['title'] ?></title>
|
||||
<script>var baseurl="<?php echo App::get_baseurl() ?>";</script>
|
||||
<script>var baseurl="<?php echo Friendica\App::get_baseurl() ?>";</script>
|
||||
<script type="text/javascript">
|
||||
function ScrollToBottom(){
|
||||
window.scrollTo(0,document.body.scrollHeight);
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
* Screenshot: <a href="screenshot.png">Screenshot</a>
|
||||
*/
|
||||
|
||||
use Friendica\App;
|
||||
|
||||
function smoothly_init(App $a) {
|
||||
set_template_engine($a, 'smarty3');
|
||||
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Theme settings
|
||||
*/
|
||||
|
||||
|
||||
use Friendica\App;
|
||||
|
||||
function theme_content(App $a) {
|
||||
if (!local_user()) {
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
* Description: "Vier" is a very compact and modern theme. It uses the font awesome font library: http://fortawesome.github.com/Font-Awesome/
|
||||
*/
|
||||
|
||||
use Friendica\App;
|
||||
|
||||
require_once "include/plugin.php";
|
||||
require_once "include/socgraph.php";
|
||||
require_once "mod/proxy.php";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue