aboutsummaryrefslogtreecommitdiffstats
path: root/mod/editblock.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-10-06 17:47:17 -0700
committerfriendica <info@friendica.com>2014-10-06 17:47:17 -0700
commit03bbbdaf102eeb80731b062c0c269649c938f23d (patch)
treef3c8fd8a4335c93928247a8af81fb0d978d07011 /mod/editblock.php
parent6e4f7383f154b906a6880d13d7c233b8ea7a5e6a (diff)
downloadvolse-hubzilla-03bbbdaf102eeb80731b062c0c269649c938f23d.tar.gz
volse-hubzilla-03bbbdaf102eeb80731b062c0c269649c938f23d.tar.bz2
volse-hubzilla-03bbbdaf102eeb80731b062c0c269649c938f23d.zip
shareable design elements
Diffstat (limited to 'mod/editblock.php')
-rw-r--r--mod/editblock.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/mod/editblock.php b/mod/editblock.php
index 536ddd7d2..3b6ce4bbf 100644
--- a/mod/editblock.php
+++ b/mod/editblock.php
@@ -152,6 +152,23 @@ function editblock_content(&$a) {
if(($itm[0]['author_xchan'] === $ob) || ($itm[0]['owner_xchan'] === $ob))
$o .= '<br /><br /><a class="block-delete-link" href="item/drop/' . $itm[0]['id'] . '" >' . t('Delete Block') . '</a><br />';
+
+ $x = array(
+ 'type' => 'block',
+ 'title' => $itm[0]['title'],
+ 'body' => $itm[0]['body'],
+ 'term' => $itm[0]['term'],
+ 'created' => $itm[0]['created'],
+ 'edited' => $itm[0]['edited'],
+ 'mimetype' => $itm[0]['mimetype'],
+ 'pagetitle' => $page_title,
+ 'mid' => $itm[0]['mid']
+ );
+
+ $o .= EOL . EOL . t('Share') . EOL . '<textarea onclick="this.select();" class="shareable_element_text" >[element]' . base64url_encode(json_encode($x)) . '[/element]</textarea>' . EOL . EOL;
+
+
+
return $o;
}