mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-12 19:38:49 +00:00
move to Renderer class
update functions calls for new Renderer class.
This commit is contained in:
parent
43f7ea1e16
commit
9079480d4a
30 changed files with 108 additions and 78 deletions
|
@ -34,6 +34,7 @@ use Friendica\Core\Addon;
|
|||
use Friendica\Core\Config;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Renderer;
|
||||
|
||||
function piwik_install() {
|
||||
Addon::registerHook('load_config', 'addon/piwik/piwik.php', 'piwik_load_config');
|
||||
|
@ -96,8 +97,8 @@ function piwik_analytics($a,&$b) {
|
|||
}
|
||||
}
|
||||
function piwik_addon_admin (&$a, &$o) {
|
||||
$t = get_markup_template( "admin.tpl", "addon/piwik/" );
|
||||
$o = replace_macros( $t, [
|
||||
$t = Renderer::getMarkupTemplate( "admin.tpl", "addon/piwik/" );
|
||||
$o = Renderer::replaceMacros( $t, [
|
||||
'$submit' => L10n::t('Save Settings'),
|
||||
'$piwikbaseurl' => ['baseurl', L10n::t('Piwik Base URL'), Config::get('piwik','baseurl' ), L10n::t('Absolute path to your Piwik installation. (without protocol (http/s), with trailing slash)')],
|
||||
'$siteid' => ['siteid', L10n::t('Site ID'), Config::get('piwik','siteid' ), ''],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue