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
|
|
@ -13,6 +13,7 @@
|
||||||
- fixed #10184: Matrix 2.0 - Version Tag Duplicate Type
|
- fixed #10184: Matrix 2.0 - Version Tag Duplicate Type
|
||||||
- fixed #10182: Matrix 2.0 - Comparison view broken in IE 6 & 7
|
- fixed #10182: Matrix 2.0 - Comparison view broken in IE 6 & 7
|
||||||
- Added individual shipping requirements to the Sku.
|
- Added individual shipping requirements to the Sku.
|
||||||
|
- added #10145: Global Head Tags in Settings
|
||||||
|
|
||||||
7.7.4
|
7.7.4
|
||||||
- rfe: Extend DateTime for Week-Nrs (#9151)
|
- rfe: Extend DateTime for Week-Nrs (#9151)
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ sm_updateDailyWorkflow($session);
|
||||||
turnOffAdmin($session);
|
turnOffAdmin($session);
|
||||||
|
|
||||||
correctEventTemplateVariables($session);
|
correctEventTemplateVariables($session);
|
||||||
|
addGlobalHeadTags( $session );
|
||||||
addShipsSeparateToSku($session);
|
addShipsSeparateToSku($session);
|
||||||
|
|
||||||
finish($session); # this line required
|
finish($session); # this line required
|
||||||
|
|
@ -59,6 +59,13 @@ sub turnOffAdmin {
|
||||||
print "OK\n" unless $quiet;
|
print "OK\n" unless $quiet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub addGlobalHeadTags {
|
||||||
|
my ( $session ) = @_;
|
||||||
|
print "\tAdding Global HEAD tags setting... " unless $quiet;
|
||||||
|
$session->setting->add('globalHeadTags','');
|
||||||
|
print "OK\n" unless $quiet;
|
||||||
|
}
|
||||||
|
|
||||||
sub installStoryManagerTables {
|
sub installStoryManagerTables {
|
||||||
my ($session) = @_;
|
my ($session) = @_;
|
||||||
print "\tAdding Story Manager tables... " unless $quiet;
|
print "\tAdding Story Manager tables... " unless $quiet;
|
||||||
|
|
|
||||||
|
|
@ -262,6 +262,14 @@ sub definition {
|
||||||
label => $i18n->get('recaptcha private key'),
|
label => $i18n->get('recaptcha private key'),
|
||||||
defaultValue => $setting->get('recaptchaPrivateKey'),
|
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
|
# messaging settings
|
||||||
push(@fields, {
|
push(@fields, {
|
||||||
tab=>"messaging",
|
tab=>"messaging",
|
||||||
|
|
|
||||||
|
|
@ -181,6 +181,7 @@ props["pageURL"] = "'.$self->session->url->page(undef, undef, 1).'";
|
||||||
return props[propName];
|
return props[propName];
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
' . $self->session->setting->get('globalHeadTags') . '
|
||||||
<!--morehead-->
|
<!--morehead-->
|
||||||
';
|
';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4349,6 +4349,17 @@ Users may override this setting in their profile.
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
context => q|name for the Ad Space control|
|
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