$o = "";
# $t = file_get_contents( dirname(__file__). "/widget_like.tpl" );
$t = Renderer::getMarkupTemplate("widget_like.tpl", "addon/widgets/");
$o .= Renderer::replaceMacros($t, [
'$like' => $likes,
$o = "";
# $t = file_get_contents( dirname(__file__). "/widget_like.tpl" );
$t = Renderer::getMarkupTemplate("widget_like.tpl", "addon/widgets/");
$o .= Renderer::replaceMacros($t, [
'$like' => $likes,
- '$strlike' => L10n::tt("%d person likes this", "%d people like this", $likes),
+ '$strlike' => DI::l10n()->tt("%d person likes this", "%d people like this", $likes),
- '$strdislike'=> L10n::tt("%d person doesn't like this", "%d people don't like this", $dislikes),
-
- '$baseurl' => $a->getBaseURL(),
+ '$strdislike'=> DI::l10n()->tt("%d person doesn't like this", "%d people don't like this", $dislikes),