4 * Render actions localized
6 function localize_item(&$item){
8 if ($item['verb']=="http://activitystrea.ms/schema/1.0/like" ||
9 $item['verb']=="http://activitystrea.ms/schema/1.0/dislike"){
11 $r = q("SELECT * from `item`,`contact` WHERE
12 `item`.`contact-id`=`contact`.`id` AND `item`.`uri`='%s';",
13 dbesc($item['parent-uri']));
14 if(count($r)==0) return;
17 $author = '[url=' . $item['author-link'] . ']' . $item['author-name'] . '[/url]';
18 $objauthor = '[url=' . $obj['author-link'] . ']' . $obj['author-name'] . '[/url]';
20 $post_type = (($obj['resource-id']) ? t('photo') : t('status'));
21 $plink = '[url=' . $obj['plink'] . ']' . $post_type . '[/url]';
23 switch($item['verb']){
24 case "http://activitystrea.ms/schema/1.0/like":
25 $bodyverb = t('%1$s likes %2$s\'s %3$s');
27 case "http://activitystrea.ms/schema/1.0/dislike":
28 $bodyverb = t('%1$s doesn\'t like %2$s\'s %3$s');
31 $item['body'] = sprintf($bodyverb, $author, $objauthor, $plink);
34 if ($item['verb']=='http://activitystrea.ms/schema/1.0/make-friend'){
36 if ($item['object-type']=="" || $item['object-type']!='http://activitystrea.ms/schema/1.0/person') return;
38 $Aname = $item['author-name'];
39 $Alink = $item['author-link'];
41 $xmlhead="<"."?xml version='1.0' encoding='UTF-8' ?".">";
43 $obj = parse_xml_string($xmlhead.$item['object']);
44 $links = parse_xml_string($xmlhead."<links>".unxmlify($obj->link)."</links>");
47 $Blink = ""; $Bphoto = "";
48 foreach ($links->link as $l){
49 $atts = $l->attributes();
51 case "alternate": $Blink = $atts['href'];
52 case "photo": $Bphoto = $atts['href'];
57 $A = '[url=' . $Alink . ']' . $Aname . '[/url]';
58 $B = '[url=' . $Blink . ']' . $Bname . '[/url]';
59 if ($Bphoto!="") $Bphoto = '[url=' . $Blink . '][img]' . $Bphoto . '[/img][/url]';
61 $item['body'] = sprintf( t('%1$s is now friends with %2$s'), $A, $B)."\n\n\n".$Bphoto;
68 * "Render" a conversation or list of items for HTML display.
69 * There are two major forms of display:
70 * - Sequential or unthreaded ("New Item View" or search results)
72 * The $mode parameter decides between the various renderings and also
73 * figures out how to determine page owner and other contextual items
74 * that are based on unique features of the calling module.
77 function conversation(&$a, $items, $mode, $update) {
79 require_once('bbcode.php');
82 $page_writeable = false;
84 if($mode === 'network') {
85 $profile_owner = local_user();
86 $page_writeable = true;
89 if($mode === 'profile') {
90 $profile_owner = $a->profile['profile_uid'];
91 $page_writeable = can_write_wall($a,$profile_owner);
94 if($mode === 'notes') {
95 $profile_owner = $a->profile['profile_uid'];
96 $page_writeable = true;
99 if($mode === 'display') {
100 $profile_owner = $a->profile['uid'];
101 $page_writeable = can_write_wall($a,$profile_owner);
105 $return_url = $_SESSION['return_url'];
107 $return_url = $_SESSION['return_url'] = $a->cmd;
109 load_contact_links(local_user());
112 $cmnt_tpl = get_markup_template('comment_item.tpl');
113 $like_tpl = get_markup_template('like.tpl');
114 $noshare_tpl = get_markup_template('like_noshare.tpl');
115 $tpl = get_markup_template('wall_item.tpl');
116 $wallwall = get_markup_template('wallwall_item.tpl');
117 $droptpl = get_markup_template('wall_item_drop.tpl');
118 $fakedrop = get_markup_template('wall_fake_drop.tpl');
125 if($mode === 'network-new' || $mode === 'search') {
127 // "New Item View" on network page or search page results
128 // - just loop through the items and format them minimally for display
130 $tpl = get_markup_template('search_item.tpl');
132 foreach($items as $item) {
140 if($mode === 'search') {
141 if(((activity_match($item['verb'],ACTIVITY_LIKE)) || (activity_match($item['verb'],ACTIVITY_DISLIKE)))
142 && ($item['id'] != $item['parent']))
144 $nickname = $item['nickname'];
147 $nickname = $a->user['nickname'];
149 $profile_name = ((strlen($item['author-name'])) ? $item['author-name'] : $item['name']);
152 $profile_link = best_link_url($item,$sp);
154 $sparkle = ' sparkle';
155 if($profile_link === 'mailbox')
159 $normalised = normalise_link((strlen($item['author-link'])) ? $item['author-link'] : $item['url']);
160 if(($normalised != 'mailbox') && (x($a->contacts[$normalised])))
161 $profile_avatar = $a->contacts[$normalised]['thumb'];
163 $profile_avatar = ((strlen($item['author-avatar'])) ? $item['author-avatar'] : $item['thumb']);
165 $location = (($item['location']) ? '<a target="map" title="' . $item['location'] . '" href="http://maps.google.com/?q=' . urlencode($item['location']) . '">' . $item['location'] . '</a>' : '');
166 $coord = (($item['coord']) ? '<a target="map" title="' . $item['coord'] . '" href="http://maps.google.com/?q=' . urlencode($item['coord']) . '">' . $item['coord'] . '</a>' : '');
169 $location .= '<br /><span class="smalltext">(' . $coord . ')</span>';
171 $location = '<span class="smalltext">' . $coord . '</span>';
176 localize_item($item);
178 $drop = replace_macros($droptpl,array('$id' => $item['id']));
179 $lock = '<div class="wall-item-lock"></div>';
181 $body = prepare_body($item,true);
183 $o .= replace_macros($tpl,array(
184 '$id' => $item['item_id'],
185 '$linktitle' => sprintf( t('View %s\'s profile'), $profile_name),
186 '$profile_url' => $profile_link,
187 '$item_photo_menu' => item_photo_menu($item),
188 '$name' => $profile_name,
189 '$sparkle' => $sparkle,
191 '$thumb' => $profile_avatar,
192 '$title' => $item['title'],
194 '$ago' => relative_date($item['created']),
195 '$location' => $location,
197 '$owner_url' => $owner_url,
198 '$owner_photo' => $owner_photo,
199 '$owner_name' => $owner_name,
201 '$conv' => '<a href="' . $a->get_baseurl() . '/display/' . $nickname . '/' . $item['id'] . '">' . t('View in context') . '</a>'
215 // Figure out how many comments each parent has
216 // (Comments all have gravity of 6)
217 // Store the result in the $comments array
220 foreach($items as $item) {
221 if((intval($item['gravity']) == 6) && ($item['id'] != $item['parent'])) {
222 if(! x($comments,$item['parent']))
223 $comments[$item['parent']] = 1;
225 $comments[$item['parent']] += 1;
229 // map all the like/dislike activities for each parent item
230 // Store these in the $alike and $dlike arrays
232 foreach($items as $item) {
233 like_puller($a,$item,$alike,'like');
234 like_puller($a,$item,$dlike,'dislike');
237 $comments_collapsed = false;
241 foreach($items as $item) {
247 $owner_url = $owner_photo = $owner_name = '';
249 // We've already parsed out like/dislike for special treatment. We can ignore them now
251 if(((activity_match($item['verb'],ACTIVITY_LIKE))
252 || (activity_match($item['verb'],ACTIVITY_DISLIKE)))
253 && ($item['id'] != $item['parent']))
256 $toplevelpost = (($item['id'] == $item['parent']) ? true : false);
259 // Take care of author collapsing and comment collapsing
260 // If a single author has more than 3 consecutive top-level posts, squash the remaining ones.
261 // If there are more than two comments, squash all but the last 2.
265 $item_writeable = (($item['writable'] || $item['self']) ? true : false);
267 if($blowhard == $item['cid'] && (! $item['self']) && ($mode != 'profile') && ($mode != 'notes')) {
269 if($blowhard_count == 3) {
270 $o .= '<div class="icollapse-wrapper fakelink" id="icollapse-wrapper-' . $item['parent']
271 . '" onclick="openClose(' . '\'icollapse-' . $item['parent'] . '\'); $(\'#icollapse-wrapper-' . $item['parent'] . '\').hide();" >'
272 . t('See more posts like this') . '</div>' . '<div class="icollapse" id="icollapse-'
273 . $item['parent'] . '" style="display: none;" >';
277 $blowhard = $item['cid'];
278 if($blowhard_count >= 3)
284 $comments_collapsed = false;
290 $override_comment_box = ((($page_writeable) && ($item_writeable)) ? true : false);
291 $show_comment_box = ((($page_writeable) && ($item_writeable) && ($comments_seen == $comments[$item['parent']])) ? true : false);
293 if(($comments[$item['parent']] > 2) && ($comments_seen <= ($comments[$item['parent']] - 2)) && ($item['gravity'] == 6)) {
294 if(! $comments_collapsed) {
295 $o .= '<div class="ccollapse-wrapper fakelink" id="ccollapse-wrapper-' . $item['parent']
296 . '" onclick="openClose(' . '\'ccollapse-' . $item['parent'] . '\'); $(\'#ccollapse-wrapper-' . $item['parent'] . '\').hide();" >'
297 . sprintf( t('See all %d comments'), $comments[$item['parent']]) . '</div>'
298 . '<div class="ccollapse" id="ccollapse-' . $item['parent'] . '" style="display: none;" >';
299 $comments_collapsed = true;
302 if(($comments[$item['parent']] > 2) && ($comments_seen == ($comments[$item['parent']] - 1))) {
306 $redirect_url = $a->get_baseurl() . '/redir/' . $item['cid'] ;
308 $lock = ((($item['private']) || (($item['uid'] == local_user()) && (strlen($item['allow_cid']) || strlen($item['allow_gid'])
309 || strlen($item['deny_cid']) || strlen($item['deny_gid']))))
310 ? '<div class="wall-item-lock"><img src="images/lock_icon.gif" class="lockview" alt="' . t('Private Message') . '" onclick="lockview(event,' . $item['id'] . ');" /></div>'
311 : '<div class="wall-item-lock"></div>');
314 // Top-level wall post not written by the wall owner (wall-to-wall)
315 // First figure out who owns it.
319 if(($toplevelpost) && (! $item['self']) && ($mode !== 'profile')) {
321 if($item['type'] === 'wall') {
323 // On the network page, I am the owner. On the display page it will be the profile owner.
324 // This will have been stored in $a->page_contact by our calling page.
325 // Put this person on the left of the wall-to-wall notice.
327 $owner_url = $a->page_contact['url'];
328 $owner_photo = $a->page_contact['thumb'];
329 $owner_name = $a->page_contact['name'];
330 $template = $wallwall;
333 if(($item['type'] === 'remote') && (strlen($item['owner-link'])) && ($item['owner-link'] != $item['author-link'])) {
337 $owner_url = $item['owner-link'];
338 $owner_photo = $item['owner-avatar'];
339 $owner_name = $item['owner-name'];
340 $template = $wallwall;
342 // If it is our contact, use a friendly redirect link
343 if((link_compare($item['owner-link'],$item['url']))
344 && ($item['network'] === 'dfrn')) {
345 $owner_url = $redirect_url;
346 $osparkle = ' sparkle';
354 if($page_writeable) {
356 $likebuttons = replace_macros((($item['private'] || ($profile_owner != local_user())) ? $noshare_tpl : $like_tpl),array(
357 '$id' => $item['id'],
358 '$likethis' => t("I like this \x28toggle\x29"),
359 '$nolike' => t("I don't like this \x28toggle\x29"),
360 '$share' => t('Share'),
361 '$wait' => t('Please wait')
365 if(($show_comment_box) || (($show_comment_box == false) && ($override_comment_box == false) && ($item['last-child']))) {
366 $comment = replace_macros($cmnt_tpl,array(
367 '$return_path' => '',
368 '$jsreload' => (($mode === 'display') ? $_SESSION['return_url'] : ''),
369 '$type' => (($mode === 'profile') ? 'wall-comment' : 'net-comment'),
370 '$id' => $item['item_id'],
371 '$parent' => $item['parent'],
372 '$profile_uid' => $profile_owner,
373 '$mylink' => $a->contact['url'],
374 '$mytitle' => t('This is you'),
375 '$myphoto' => $a->contact['thumb'],
376 '$comment' => t('Comment'),
377 '$submit' => t('Submit'),
378 '$ww' => (($mode === 'network') ? $commentww : '')
383 $edpost = (((($profile_owner == local_user()) && ($toplevelpost) && (intval($item['wall']) == 1)) || ($mode === 'notes'))
384 ? '<a class="editpost" href="' . $a->get_baseurl() . '/editpost/' . $item['id']
385 . '" title="' . t('Edit') . '"><img src="images/pencil.gif" /></a>'
392 if((intval($item['contact-id']) && $item['contact-id'] == remote_user()) || ($item['uid'] == local_user()))
395 $drop = replace_macros((($dropping)? $droptpl : $fakedrop), array('$id' => $item['id'], '$select' => t('Select'), '$delete' => t('Delete')));
398 $photo = $item['photo'];
399 $thumb = $item['thumb'];
401 // Post was remotely authored.
403 $diff_author = ((link_compare($item['url'],$item['author-link'])) ? false : true);
405 $profile_name = (((strlen($item['author-name'])) && $diff_author) ? $item['author-name'] : $item['name']);
408 $profile_link = best_link_url($item,$sp);
410 $sparkle = ' sparkle';
412 if($profile_link === 'mailbox')
415 $normalised = normalise_link((strlen($item['author-link'])) ? $item['author-link'] : $item['url']);
416 if(($normalised != 'mailbox') && (x($a->contacts[$normalised])))
417 $profile_avatar = $a->contacts[$normalised]['thumb'];
419 $profile_avatar = (((strlen($item['author-avatar'])) && $diff_author) ? $item['author-avatar'] : $thumb);
425 $like = ((x($alike,$item['id'])) ? format_like($alike[$item['id']],$alike[$item['id'] . '-l'],'like',$item['id']) : '');
426 $dislike = ((x($dlike,$item['id'])) ? format_like($dlike[$item['id']],$dlike[$item['id'] . '-l'],'dislike',$item['id']) : '');
428 $location = (($item['location']) ? '<a target="map" title="' . $item['location']
429 . '" href="http://maps.google.com/?q=' . urlencode($item['location']) . '">' . $item['location'] . '</a>' : '');
430 $coord = (($item['coord']) ? '<a target="map" title="' . $item['coord']
431 . '" href="http://maps.google.com/?q=' . urlencode($item['coord']) . '">' . $item['coord'] . '</a>' : '');
434 $location .= '<br /><span class="smalltext">(' . $coord . ')</span>';
436 $location = '<span class="smalltext">' . $coord . '</span>';
439 $indent = (($toplevelpost) ? '' : ' comment');
441 if(strcmp(datetime_convert('UTC','UTC',$item['created']),datetime_convert('UTC','UTC','now - 12 hours')) > 0)
445 localize_item($item);
449 $body = prepare_body($item,true);
452 $tmp_item = replace_macros($template,array(
453 '$id' => $item['item_id'],
454 '$linktitle' => sprintf( t('View %s\'s profile'), $profile_name),
455 '$olinktitle' => sprintf( t('View %s\'s profile'), $owner_name),
457 '$wall' => t('Wall-to-Wall'),
458 '$vwall' => t('via Wall-To-Wall:'),
459 '$profile_url' => $profile_link,
460 '$item_photo_menu' => item_photo_menu($item),
461 '$name' => $profile_name,
462 '$thumb' => $profile_avatar,
463 '$osparkle' => $osparkle,
464 '$sparkle' => $sparkle,
465 '$title' => $item['title'],
467 '$ago' => relative_date($item['created']),
469 '$location' => $location,
470 '$indent' => $indent,
471 '$owner_url' => $owner_url,
472 '$owner_photo' => $owner_photo,
473 '$owner_name' => $owner_name,
474 '$plink' => get_plink($item),
475 '$edpost' => $edpost,
477 '$vote' => $likebuttons,
479 '$dislike' => $dislike,
480 '$comment' => $comment
484 $arr = array('item' => $item, 'output' => $tmp_item);
485 call_hooks('display_item', $arr);
487 $o .= $arr['output'];
493 // if author collapsing is in force but didn't get closed, close it off now.
495 if($blowhard_count >= 3)
499 $o .= '<div id="item-delete-selected" class="fakelink" onclick="deleteCheckedItems();"><div id="item-delete-selected-icon" class="icon drophide" title="' . t('Delete Selected Items') . '" onmouseover="imgbright(this);" onmouseout="imgdull(this);" ></div><div id="item-delete-selected-desc" >' . t('Delete Selected Items') . '</div></div><div id="item-delete-selected-end"></div>';
505 if(! function_exists('load_contact_links')) {
506 function load_contact_links($uid) {
512 if(! $uid || x($a->contacts,'empty'))
515 $r = q("SELECT `id`,`network`,`url`,`thumb` FROM `contact` WHERE `uid` = %d AND `self` = 0 AND `blocked` = 0 ",
520 $url = normalise_link($rr['url']);
525 $ret['empty'] = true;
531 function best_link_url($item,&$sparkle) {
538 $clean_url = normalise_link($item['author-link']);
540 if((local_user()) && (local_user() == $item['uid'])) {
541 if(isset($a->contacts) && x($a->contacts,$clean_url)) {
542 if($a->contacts[$clean_url]['network'] === NETWORK_DFRN) {
543 $best_url = $a->get_baseurl() . '/redir/' . $a->contacts[$clean_url]['id'];
547 $best_url = $a->contacts[$clean_url]['url'];
551 if(strlen($item['author-link']))
552 $best_url = $item['author-link'];
554 $best_url = $item['url'];
561 if(! function_exists('item_photo_menu')){
562 function item_photo_menu($item){
565 if (local_user() && (! count($a->contacts)))
566 load_contact_links(local_user());
575 $profile_link = best_link_url($item,$sparkle);
576 if($profile_link === 'mailbox')
580 $cid = intval(basename($profile_link));
581 $status_link = $profile_link . "?url=status";
582 $photos_link = $profile_link . "?url=photos";
583 $profile_link = $profile_link . "?url=profile";
584 $pm_url = $a->get_baseurl() . '/message/new/' . $cid;
587 if(local_user() && local_user() == $item['uid'] && link_compare($item['url'],$item['author-link'])) {
588 $cid = $item['contact-id'];
594 if(($cid) && (! $item['self'])) {
595 $contact_url = $a->get_baseurl() . '/contacts/' . $cid;
596 $posts_link = $a->get_baseurl() . '/network/?cid=' . $cid;
600 t("View status") => $status_link,
601 t("View profile") => $profile_link,
602 t("View photos") => $photos_link,
603 t("View recent") => $posts_link,
604 t("Edit contact") => $contact_url,
605 t("Send PM") => $pm_url,
609 $args = array($item, &$menu);
611 call_hooks('item_photo_menu', $args);
614 foreach($menu as $k=>$v){
615 if ($v!="") $o .= "<li><a href='$v'>$k</a></li>\n";
620 if(! function_exists('like_puller')) {
621 function like_puller($a,$item,&$arr,$mode) {
625 $verb = (($mode === 'like') ? ACTIVITY_LIKE : ACTIVITY_DISLIKE);
627 if((activity_match($item['verb'],$verb)) && ($item['id'] != $item['parent'])) {
628 $url = $item['author-link'];
629 if((local_user()) && (local_user() == $item['uid']) && ($item['network'] === 'dfrn') && (! $item['self']) && (link_compare($item['author-link'],$item['url']))) {
630 $url = $a->get_baseurl() . '/redir/' . $item['contact-id'];
631 $sparkle = ' class="sparkle" ';
633 if(! ((isset($arr[$item['parent'] . '-l'])) && (is_array($arr[$item['parent'] . '-l']))))
634 $arr[$item['parent'] . '-l'] = array();
635 if(! isset($arr[$item['parent']]))
636 $arr[$item['parent']] = 1;
638 $arr[$item['parent']] ++;
639 $arr[$item['parent'] . '-l'][] = '<a href="'. $url . '"'. $sparkle .'>' . $item['author-name'] . '</a>';
644 // Format the like/dislike text for a profile item
645 // $cnt = number of people who like/dislike the item
646 // $arr = array of pre-linked names of likers/dislikers
647 // $type = one of 'like, 'dislike'
649 // returns formatted text
651 if(! function_exists('format_like')) {
652 function format_like($cnt,$arr,$type,$id) {
655 $o .= (($type === 'like') ? sprintf( t('%s likes this.'), $arr[0]) : sprintf( t('%s doesn\'t like this.'), $arr[0])) . EOL ;
657 $spanatts = 'class="fakelink" onclick="openClose(\'' . $type . 'list-' . $id . '\');"';
658 $o .= (($type === 'like') ?
659 sprintf( t('<span %1$s>%2$d people</span> like this.'), $spanatts, $cnt)
661 sprintf( t('<span %1$s>%2$d people</span> don\'t like this.'), $spanatts, $cnt) );
663 $total = count($arr);
664 if($total >= MAX_LIKERS)
665 $arr = array_slice($arr, 0, MAX_LIKERS - 1);
666 if($total < MAX_LIKERS)
667 $arr[count($arr)-1] = t('and') . ' ' . $arr[count($arr)-1];
668 $str = implode(', ', $arr);
669 if($total >= MAX_LIKERS)
670 $str .= sprintf( t(', and %d other people'), $total - MAX_LIKERS );
671 $str = (($type === 'like') ? sprintf( t('%s like this.'), $str) : sprintf( t('%s don\'t like this.'), $str));
672 $o .= "\t" . '<div id="' . $type . 'list-' . $id . '" style="display: none;" >' . $str . '</div>';
678 function status_editor($a,$x, $notes_cid = 0) {
682 $geotag = (($x['allow_location']) ? get_markup_template('jot_geotag.tpl') : '');
684 $tpl = get_markup_template('jot-header.tpl');
686 $a->page['htmlhead'] .= replace_macros($tpl, array(
687 '$baseurl' => $a->get_baseurl(),
688 '$geotag' => $geotag,
689 '$nickname' => $x['nickname'],
690 '$ispublic' => t('Visible to <strong>everybody</strong>'),
691 '$linkurl' => t('Please enter a link URL:'),
692 '$utubeurl' => t('Please enter a YouTube link:'),
693 '$vidurl' => t("Please enter a video\x28.ogg\x29 link/URL:"),
694 '$audurl' => t("Please enter an audio\x28.ogg\x29 link/URL:"),
695 '$whereareu' => t('Where are you right now?'),
696 '$title' => t('Enter a title for this item')
700 $tpl = get_markup_template("jot.tpl");
705 $mail_disabled = ((function_exists('imap_open') && (! get_config('system','imap_disabled'))) ? 0 : 1);
707 $mail_enabled = false;
708 $pubmail_enabled = false;
710 if(($x['is_owner']) && (! $mail_disabled)) {
711 $r = q("SELECT * FROM `mailacct` WHERE `uid` = %d AND `server` != '' LIMIT 1",
715 $mail_enabled = true;
716 if(intval($r[0]['pubmail']))
717 $pubmail_enabled = true;
722 $selected = (($pubmail_enabled) ? ' checked="checked" ' : '');
723 $jotnets .= '<div class="profile-jot-net"><input type="checkbox" name="pubmail_enable"' . $selected . 'value="1" /> '
724 . t("Post to Email") . '</div>';
727 call_hooks('jot_tool', $jotplugins);
728 call_hooks('jot_networks', $jotnets);
731 $jotnets .= '<input type="hidden" name="contact_allow[]" value="' . $notes_cid .'" />';
733 $tpl = replace_macros($tpl,array('$jotplugins' => $jotplugins));
735 $o .= replace_macros($tpl,array(
736 '$return_path' => $a->cmd,
738 '$share' => (($x['button']) ? $x['button'] : t('Share')),
739 '$upload' => t('Upload photo'),
740 '$attach' => t('Attach file'),
741 '$weblink' => t('Insert web link'),
742 '$youtube' => t('Insert YouTube video'),
743 '$video' => t('Insert Vorbis [.ogg] video'),
744 '$audio' => t('Insert Vorbis [.ogg] audio'),
745 '$setloc' => t('Set your location'),
746 '$noloc' => t('Clear browser location'),
747 '$title' => t('Set title'),
748 '$wait' => t('Please wait'),
749 '$permset' => t('Permission settings'),
750 '$ptyp' => (($notes_cid) ? 'note' : 'wall'),
753 '$baseurl' => $a->get_baseurl(),
754 '$defloc' => $x['default_location'],
755 '$visitor' => $x['visitor'],
756 '$pvisit' => (($notes_cid) ? 'none' : $x['visitor']),
757 '$emailcc' => t('CC: email addresses'),
758 '$public' => t('Public post'),
759 '$jotnets' => $jotnets,
760 '$emtitle' => t('Example: bob@example.com, mary@example.com'),
761 '$lockstate' => $x['lockstate'],
763 '$bang' => $x['bang'],
764 '$profile_uid' => $x['profile_uid'],