diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-09-22 13:32:58 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-09-22 13:32:58 +0200 |
commit | 0a5ac62b59bf80b9942b2b6805aeea3796379d06 (patch) | |
tree | 7f8d9d5c3df3490cffef36580dbf6baeb7c056b9 /doc | |
parent | 1e5405ccaf3ddff88653cc34a04cfce9b7102891 (diff) | |
parent | 12d22709353151925797707e0a1c02e3703809bf (diff) | |
download | volse-hubzilla-0a5ac62b59bf80b9942b2b6805aeea3796379d06.tar.gz volse-hubzilla-0a5ac62b59bf80b9942b2b6805aeea3796379d06.tar.bz2 volse-hubzilla-0a5ac62b59bf80b9942b2b6805aeea3796379d06.zip |
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'doc')
-rw-r--r-- | doc/hook/page_meta.bb | 13 | ||||
-rw-r--r-- | doc/hooklist.bb | 3 |
2 files changed, 16 insertions, 0 deletions
diff --git a/doc/hook/page_meta.bb b/doc/hook/page_meta.bb new file mode 100644 index 000000000..30a8f9440 --- /dev/null +++ b/doc/hook/page_meta.bb @@ -0,0 +1,13 @@ +[h2]page_meta[/h2] + +Called before generating the page header. + +[code] + $pagemeta = [ 'og:title' => self::$page['title'] ]; + + call_hooks('page_meta',$pagemeta); + foreach ($pagemeta as $metaproperty => $metavalue) { + self::$meta->set($metaproperty,$metavalue); + } + +[/code] diff --git a/doc/hooklist.bb b/doc/hooklist.bb index 1b48df6e6..d7fe633ba 100644 --- a/doc/hooklist.bb +++ b/doc/hooklist.bb @@ -451,6 +451,9 @@ Hooks allow plugins/addons to "hook into" the code at many points and alter the [zrl=[baseurl]/help/hook/page_header]page_header[/zrl] Called when generating the navigation bar +[zrl=[baseurl]/help/hook/page_header]page_meta[/zrl] + Called when generating the meta data in the page header. + [zrl=[baseurl]/help/hook/parse_atom]parse_atom[/zrl] Called when parsing an atom/RSS feed item |