#8374: Using l10n
This commit is contained in:
parent
b46a23eab3
commit
0ea84cfb66
|
@ -45,7 +45,7 @@ function addHeightToggleHandler($item) {
|
||||||
var toggleId = "wall-item-body-toggle-" + itemId;
|
var toggleId = "wall-item-body-toggle-" + itemId;
|
||||||
|
|
||||||
$item.wrap('<div id="' + wrapperId + '" class="wall-item-body-wrapper"></div>');
|
$item.wrap('<div id="' + wrapperId + '" class="wall-item-body-wrapper"></div>');
|
||||||
$("#" + wrapperId).append('<div class="wall-item-body-toggle" data-item-id="' + itemId + '" id="' + toggleId + '" ><a href="javascript:void(0)" class="wall-item-body-toggle-text">Show more ...</a></div>');
|
$("#" + wrapperId).append('<div class="wall-item-body-toggle" data-item-id="' + itemId + '" id="' + toggleId + '" ><a href="javascript:void(0)" class="wall-item-body-toggle-text">' + showmore_dyn_showmore_linktext + '</a></div>');
|
||||||
$item.addClass("limitable limit-height");
|
$item.addClass("limitable limit-height");
|
||||||
|
|
||||||
var $toggle = $("#" + toggleId);
|
var $toggle = $("#" + toggleId);
|
||||||
|
|
|
@ -71,5 +71,6 @@ function showmore_dyn_settings(&$a,&$o) {
|
||||||
|
|
||||||
function showmore_dyn_script() {
|
function showmore_dyn_script() {
|
||||||
$limitHeight = DI::pConfig()->get(local_user(), 'showmore_dyn', 'limitHeight' );
|
$limitHeight = DI::pConfig()->get(local_user(), 'showmore_dyn', 'limitHeight' );
|
||||||
DI::page()['htmlhead'] .= '<script>var postLimitHeight = ' . intval($limitHeight) . ';</script>';
|
$showmore_dyn_showmore_linktext = DI::l10n()->t('Show more ...');
|
||||||
|
DI::page()['htmlhead'] .= '<script>var postLimitHeight = ' . intval($limitHeight) . '; var showmore_dyn_showmore_linktext = "' . $showmore_dyn_showmore_linktext . '"</script>';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user