summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extensions/OpenGraph/Config.pm16
-rw-r--r--extensions/OpenGraph/Extension.pm16
-rw-r--r--extensions/OpenGraph/template/en/default/hook/global/header-start.html.tmpl13
-rw-r--r--extensions/OpenGraph/web/bugzilla.pngbin0 -> 17036 bytes
4 files changed, 45 insertions, 0 deletions
diff --git a/extensions/OpenGraph/Config.pm b/extensions/OpenGraph/Config.pm
new file mode 100644
index 000000000..9204db234
--- /dev/null
+++ b/extensions/OpenGraph/Config.pm
@@ -0,0 +1,16 @@
+# 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;
+
+use strict;
+
+use constant NAME => 'OpenGraph';
+use constant REQUIRED_MODULES => [ ];
+use constant OPTIONAL_MODULES => [ ];
+
+__PACKAGE__->NAME;
diff --git a/extensions/OpenGraph/Extension.pm b/extensions/OpenGraph/Extension.pm
new file mode 100644
index 000000000..f278a8958
--- /dev/null
+++ b/extensions/OpenGraph/Extension.pm
@@ -0,0 +1,16 @@
+# 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;
+
+use strict;
+
+use base qw(Bugzilla::Extension);
+
+our $VERSION = '1';
+
+__PACKAGE__->NAME;
diff --git a/extensions/OpenGraph/template/en/default/hook/global/header-start.html.tmpl b/extensions/OpenGraph/template/en/default/hook/global/header-start.html.tmpl
new file mode 100644
index 000000000..8503343df
--- /dev/null
+++ b/extensions/OpenGraph/template/en/default/hook/global/header-start.html.tmpl
@@ -0,0 +1,13 @@
+[%# 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.
+ #%]
+
+[% USE Bugzilla %]
+<meta property="og:type" content="website">
+<meta property="og:image" content="[% urlbase FILTER none %]extensions/OpenGraph/web/bugzilla.png">
+<meta property="og:title" content="[% title FILTER html %]">
+<meta property="og:url" content="[% Bugzilla.cgi.self_url FILTER none %]">
diff --git a/extensions/OpenGraph/web/bugzilla.png b/extensions/OpenGraph/web/bugzilla.png
new file mode 100644
index 000000000..55ee01210
--- /dev/null
+++ b/extensions/OpenGraph/web/bugzilla.png
Binary files differ