mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 02:45:16 +02:00
Template Engine and props to Renderer
move methods and props from App to Renderer
This commit is contained in:
parent
3f74ba88c2
commit
70f01d6c00
9 changed files with 108 additions and 103 deletions
|
@ -3,10 +3,11 @@
|
|||
use Friendica\App;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\PConfig;
|
||||
use Friendica\Core\Renderer;
|
||||
|
||||
function duepuntozero_init(App $a) {
|
||||
|
||||
$a->setActiveTemplateEngine('smarty3');
|
||||
Renderer::setActiveTemplateEngine('smarty3');
|
||||
|
||||
$colorset = PConfig::get( local_user(), 'duepuntozero','colorset');
|
||||
if (!$colorset)
|
||||
|
|
|
@ -15,6 +15,7 @@ use Friendica\Core\Config;
|
|||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\PConfig;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Model;
|
||||
|
@ -30,7 +31,7 @@ function frio_init(App $a)
|
|||
$a->theme_events_in_profile = false;
|
||||
$a->videowidth = 622;
|
||||
|
||||
$a->setActiveTemplateEngine('smarty3');
|
||||
Renderer::setActiveTemplateEngine('smarty3');
|
||||
|
||||
$baseurl = System::baseUrl();
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ use Friendica\Core\Renderer;
|
|||
use Friendica\Core\System;
|
||||
|
||||
function smoothly_init(App $a) {
|
||||
$a->setActiveTemplateEngine('smarty3');
|
||||
Renderer::setActiveTemplateEngine('smarty3');
|
||||
|
||||
$cssFile = null;
|
||||
$ssl_state = null;
|
||||
|
|
|
@ -26,7 +26,7 @@ function vier_init(App $a)
|
|||
{
|
||||
$a->theme_events_in_profile = false;
|
||||
|
||||
$a->setActiveTemplateEngine('smarty3');
|
||||
Renderer::setActiveTemplateEngine('smarty3');
|
||||
|
||||
if (!empty($a->argv[0]) && $a->argv[0] . defaults($a->argv, 1, '') === "profile".$a->user['nickname'] || $a->argv[0] === "network" && local_user()) {
|
||||
vier_community_info();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue