aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Wiki.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-03-30 16:09:25 -0700
committerzotlabs <mike@macgirvin.com>2018-03-30 16:09:25 -0700
commitaf125fbe4f72b1f170ef6722d1bf9ca4beb3c7c5 (patch)
treea1c54e7cdab83bbb6e704bbf0dc043be3c072ea1 /Zotlabs/Module/Wiki.php
parent43249bd4be8495dadaae859bf42f14a90af7b574 (diff)
downloadvolse-hubzilla-af125fbe4f72b1f170ef6722d1bf9ca4beb3c7c5.tar.gz
volse-hubzilla-af125fbe4f72b1f170ef6722d1bf9ca4beb3c7c5.tar.bz2
volse-hubzilla-af125fbe4f72b1f170ef6722d1bf9ca4beb3c7c5.zip
Hubzilla issue #1022 - provide a way to share wiki pages. Currently this is only implemented in the 'edit' pane and could use some improvement/enhancement
Diffstat (limited to 'Zotlabs/Module/Wiki.php')
-rw-r--r--Zotlabs/Module/Wiki.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/Zotlabs/Module/Wiki.php b/Zotlabs/Module/Wiki.php
index ae543eb98..a2cc87f13 100644
--- a/Zotlabs/Module/Wiki.php
+++ b/Zotlabs/Module/Wiki.php
@@ -284,6 +284,8 @@ class Wiki extends \Zotlabs\Web\Controller {
$wikiheaderPage = urldecode($pageUrlName);
$renamePage = (($wikiheaderPage === 'Home') ? '' : t('Rename page'));
+ $sharePage = t('Share page');
+
$p = [];
if(! $ignore_language) {
@@ -354,6 +356,8 @@ class Wiki extends \Zotlabs\Web\Controller {
'$wikiheaderName' => $wikiheaderName,
'$wikiheaderPage' => $wikiheaderPage,
'$renamePage' => $renamePage,
+ '$sharePage' => $sharePage,
+ '$shareLink' => urlencode('#^[zrl=' . z_root() . '/wiki/' . argv(1) . '/' . $wikiUrlName . '/' . $pageUrlName . ']' . $wikiheaderName . ' - ' . $wikiheaderPage . '[/zrl]'),
'$showPageControls' => $showPageControls,
'$editOrSourceLabel' => (($showPageControls) ? t('Edit') : t('Source')),
'$tools_label' => 'Page Tools',