$this->set_template('wall');
$this->toplevel = ($this->get_id() == $this->get_data_value('parent'));
- if(is_array($_SESSION['remote'])) {
- foreach($_SESSION['remote'] as $visitor) {
- if($visitor['cid'] == $this->get_data_value('contact-id')) {
+ if (is_array($_SESSION['remote'])) {
+ foreach ($_SESSION['remote'] as $visitor) {
+ if ($visitor['cid'] == $this->get_data_value('contact-id')) {
$this->visiting = true;
break;
}
localize_item($item);
- if ($item["postopts"] and !get_config("system", "suppress_language")) {
- //$langdata = explode(";", $item["postopts"]);
- //$langstr = substr($langdata[0], 5)." (".round($langdata[1]*100, 1)."%)";
- $langstr = "";
- if (substr($item["postopts"], 0, 5) == "lang=") {
- $postopts = substr($item["postopts"], 5);
-
- $languages = explode(":", $postopts);
-
- if (sizeof($languages) == 1) {
- $languages = array();
- $languages[] = $postopts;
- }
-
- foreach ($languages as $language) {
- $langdata = explode(";", $language);
- if ($langstr != "") {
- $langstr .= ", ";
- }
-
- //$langstr .= $langdata[0]." (".round($langdata[1]*100, 1)."%)";
- $langstr .= round($langdata[1]*100, 1)."% ".$langdata[0];
- }
- }
- }
-
$body = prepare_body($item,true);
list($categories, $folders) = get_cats_and_terms($item);
'previewing' => ($conv->is_preview() ? ' preview ' : ''),
'wait' => t('Please wait'),
'thread_level' => $thread_level,
- 'postopts' => $langstr,
'edited' => $edited,
'network' => $item["item_network"],
'network_name' => network_to_name($item['item_network'], $profile_link),