our $VERSION = '1';
+sub config_add_panels {
+ my ($self, $args) = @_;
+ my $modules = $args->{panel_modules};
+ $modules->{OpenGraph} = "Bugzilla::Extension::OpenGraph::Config";
+}
+
__PACKAGE__->NAME;
--- /dev/null
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is "Incompatible With Secondary Licenses", as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::Extension::OpenGraph::Config;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+use Bugzilla::Config::Common;
+
+use constant get_param_list => (
+ {
+ name => 'opengraph_image',
+ type => 't',
+ default => ''
+ },
+);
+
+1;
--- /dev/null
+[%# This Source Code Form is subject to the terms of the Mozilla Public
+ # License, v. 2.0. If a copy of the MPL was not distributed with this
+ # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ #
+ # This Source Code Form is "Incompatible With Secondary Licenses", as
+ # defined by the Mozilla Public License, v. 2.0.
+ #%]
+
+[%
+ title = "OpenGraph"
+ desc = "Configure OpenGraph support"
+%]
+
+[%
+ param_descs = {
+ opengraph_image => 'URL to the social image for OpenGraph data',
+ }
+%]
[% ELSIF error_message %]
<meta property="og:description" content="[% error_message FILTER txt FILTER html %]">
[% END %]
-[% IF og_image %]
-<meta property="og:image" content="[% urlbase FILTER none %][% og_image FILTER html %]">
+[% IF Bugzilla.params.opengraph_image %]
+<meta property="og:image" content="[% Bugzilla.params.opengraph_image FILTER html %]">
[% END %]
header = "Main Page"
style_urls = [ 'skins/standard/index.css' ]
no_yui = 1
- og_image = "extensions/OpenGraph/web/moz-social-bw-rgb-1200x1200.png"
%]
<div id="page-index">