1
0
Fork 0

Move App to src

- Add `use Friendica\App;` wherever needed
This commit is contained in:
Hypolite Petovan 2017-04-30 00:07:00 -04:00
commit 20043914e6
197 changed files with 1321 additions and 996 deletions

View file

@ -4,6 +4,8 @@
* Theme settings
*/
use Friendica\App;
function theme_content(App $a) {
if (!local_user()) {
return;

View file

@ -1,5 +1,7 @@
<?php
use Friendica\App;
function duepuntozero_init(App $a) {
set_template_engine($a, 'smarty3');

View file

@ -1,4 +1,7 @@
<?php
use Friendica\App;
require_once('view/theme/frio/php/Image.php');
function theme_content(App $a) {

View file

@ -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

View file

@ -7,6 +7,7 @@
*
*/
use Friendica\App;
/**
* @brief Load page template in dependence of the template mode

View file

@ -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>

View file

@ -7,6 +7,8 @@
*
*/
use Friendica\App;
$frio = "view/theme/frio";
global $frio;

View file

@ -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)"'?>>

View file

@ -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;

View file

@ -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)"'?>>

View file

@ -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;

View file

@ -4,6 +4,8 @@
* Theme settings
*/
use Friendica\App;
function theme_content(App $a) {
if (!local_user()) {
return;

View file

@ -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>';;

View file

@ -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);

View file

@ -10,6 +10,8 @@
* Screenshot: <a href="screenshot.png">Screenshot</a>
*/
use Friendica\App;
function smoothly_init(App $a) {
set_template_engine($a, 'smarty3');

View file

@ -1,9 +1,10 @@
<?php
/**
* Theme settings
*/
use Friendica\App;
function theme_content(App $a) {
if (!local_user()) {

View file

@ -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";