if ($k) {
                                    $xtpl->parse('main.icq.item.comma');
                                }
                                $xtpl->parse('main.icq.item');
                            }
                            $xtpl->parse('main.icq');
                        } elseif (strtolower($key) == "whatsapp") {
                            $ss = array_map("trim", explode(",", $value));
                            foreach ($ss as $k => $s) {
                                $xtpl->assign('WHATSAPP', array('name' => $key, 'value' => $s));
                                if ($k) {
                                    $xtpl->parse('main.whatsapp.item.comma');
                                }
                                $xtpl->parse('main.whatsapp.item');
                            }
                            $xtpl->parse('main.whatsapp');
                        } else {
                            $xtpl->assign('OTHER', array('name' => $key, 'value' => $value));
                            $xtpl->parse('main.other');
                        }
                    }
                }
            }
        }
        $xtpl->parse('main');
        return $xtpl->text('main');
    }
}
if (defined('NV_SYSTEM')) {
    $content = nv_contact_default_info();
}
Example #2
0
                                if ($k) {
                                    $xtpl->parse('main.icq.item.comma');
                                }
                                $xtpl->parse('main.icq.item');
                            }
                            $xtpl->parse('main.icq');
                        } elseif (strtolower($key) == 'whatsapp') {
                            $ss = array_map('trim', explode(',', $value));
                            foreach ($ss as $k => $s) {
                                $xtpl->assign('WHATSAPP', array('name' => $key, 'value' => $s));
                                if ($k) {
                                    $xtpl->parse('main.whatsapp.item.comma');
                                }
                                $xtpl->parse('main.whatsapp.item');
                            }
                            $xtpl->parse('main.whatsapp');
                        } else {
                            $xtpl->assign('OTHER', array('name' => $key, 'value' => $value));
                            $xtpl->parse('main.other');
                        }
                    }
                }
            }
        }
        $xtpl->parse('main');
        return $xtpl->text('main');
    }
}
if (defined('NV_SYSTEM')) {
    $content = nv_contact_default_info($block_config['module']);
}