Added #10145: Global Head Tags in Settings
This commit is contained in:
parent
003f54fd40
commit
026f7ff47e
5 changed files with 29 additions and 1 deletions
|
|
@ -262,6 +262,14 @@ sub definition {
|
|||
label => $i18n->get('recaptcha private key'),
|
||||
defaultValue => $setting->get('recaptchaPrivateKey'),
|
||||
});
|
||||
push @fields, {
|
||||
tab => "ui",
|
||||
fieldType => "codearea",
|
||||
name => "globalHeadTags",
|
||||
label => $i18n->get('global head tags label'),
|
||||
hoverHelp => $i18n->get('global head tags description'),
|
||||
defaultValue => $setting->get('globalHeadTags'),
|
||||
};
|
||||
# messaging settings
|
||||
push(@fields, {
|
||||
tab=>"messaging",
|
||||
|
|
|
|||
|
|
@ -181,6 +181,7 @@ props["pageURL"] = "'.$self->session->url->page(undef, undef, 1).'";
|
|||
return props[propName];
|
||||
}
|
||||
</script>
|
||||
' . $self->session->setting->get('globalHeadTags') . '
|
||||
<!--morehead-->
|
||||
';
|
||||
|
||||
|
|
|
|||
|
|
@ -4349,6 +4349,17 @@ Users may override this setting in their profile.
|
|||
lastUpdated => 0,
|
||||
context => q|name for the Ad Space control|
|
||||
},
|
||||
|
||||
'global head tags label' => {
|
||||
message => 'Global Head Tags',
|
||||
lastUpdated => 0,
|
||||
context => "Label for setting",
|
||||
},
|
||||
'global head tags description' => {
|
||||
message => '<head> tags for every page on the site (including admin pages)',
|
||||
lastUpdated => 0,
|
||||
context => 'Description of setting',
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue