X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=piwik%2Fpiwik.php;fp=piwik%2Fpiwik.php;h=a0dd1c257c7f15d663c3ba9a796517289d302ba2;hb=3da6f1471cc8482e626fa3ad4530ee7cd858f813;hp=9ba15db63f9e7dd35445f8cae10d3ef2daad8038;hpb=66334ec5cb0fa5d114470b5ebf14435c928b9140;p=friendica-addons.git diff --git a/piwik/piwik.php b/piwik/piwik.php index 9ba15db6..a0dd1c25 100755 --- a/piwik/piwik.php +++ b/piwik/piwik.php @@ -84,8 +84,16 @@ function piwik_analytics($a,&$b) { } } function piwik_plugin_admin (&$a, &$o) { - $t = file_get_contents( dirname(__file__)."/admin.tpl"); - $o = replace_macros( $t, array( +# $t = file_get_contents( dirname(__file__)."/admin.tpl"); + $t = get_markup_template( "admin.tpl", "addon/piwik/" ); + + $includes = array( + '$field_input' => 'field_input.tpl', + '$field_checkbox' => 'field_select.tpl', + ); + $includes = set_template_includes($a->theme['template_engine'], $includes); + + $o = replace_macros( $t, $includes + array( '$submit' => t('Submit'), '$baseurl' => array('baseurl', t('Piwik Base URL'), get_config('piwik','baseurl' ), t('Absolute path to your Piwik installation. (without protocol (http/s), with trailing slash)')), '$siteid' => array('siteid', t('Site ID'), get_config('piwik','siteid' ), ''),