aboutsummaryrefslogtreecommitdiffstats
path: root/mod/profiles.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-10 07:09:57 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-10 07:09:57 -0700
commit44b19841360099cc3e78d1a3612f7aa23e2e6524 (patch)
treec6a9c69e6271862a4a8710ebddc6d8a0d6e76baa /mod/profiles.php
parent970a2d4f1ef03f696a5b321bf0d7034d9e8cfe3f (diff)
downloadvolse-hubzilla-44b19841360099cc3e78d1a3612f7aa23e2e6524.tar.gz
volse-hubzilla-44b19841360099cc3e78d1a3612f7aa23e2e6524.tar.bz2
volse-hubzilla-44b19841360099cc3e78d1a3612f7aa23e2e6524.zip
profile additions
Diffstat (limited to 'mod/profiles.php')
-rw-r--r--mod/profiles.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/mod/profiles.php b/mod/profiles.php
index 8b44e2d59..34678a237 100644
--- a/mod/profiles.php
+++ b/mod/profiles.php
@@ -189,7 +189,7 @@ function profiles_content(&$a) {
require_once('view/profile_selectors.php');
- $tpl = file_get_contents('view/jot-header.tpl');
+ $tpl = file_get_contents('view/profed_head.tpl');
$opt_tpl = file_get_contents("view/profile-in-directory.tpl");
$profile_in_dir = replace_macros($opt_tpl,array(
'$yes_selected' => (($r[0]['publish']) ? " checked=\"checked\" " : ""),
@@ -199,8 +199,11 @@ function profiles_content(&$a) {
$a->page['htmlhead'] .= replace_macros($tpl, array('$baseurl' => $a->get_baseurl()));
$a->page['htmlhead'] .= "<script type=\"text/javascript\" src=\"include/country.js\" ></script>";
+
+
+
-// $a->page['aside'] = file_get_contents('view/sidenote.tpl');
+
$is_default = (($r[0]['is-default']) ? 1 : 0);
$tpl = file_get_contents("view/profile_edit.tpl");
$o .= replace_macros($tpl,array(
@@ -209,7 +212,8 @@ function profiles_content(&$a) {
'$profile_name' => $r[0]['profile-name'],
'$default' => (($is_default) ? "<p id=\"profile-edit-default-desc\">This is your <strong>public</strong> profile.</p>" : ""),
'$name' => $r[0]['name'],
- '$dob' => $r[0]['dob'],
+ '$dob' => dob($r[0]['dob']),
+ '$hide_birth' => (($r[0]['dob_hide']) ? " checked=\"checked\" " : ""),
'$address' => $r[0]['address'],
'$locality' => $r[0]['locality'],
'$region' => $r[0]['region'],
@@ -218,6 +222,7 @@ function profiles_content(&$a) {
'$age' => $r[0]['age'],
'$gender' => gender_selector($r[0]['gender']),
'$marital' => marital_selector($r[0]['marital']),
+ '$sexual' => sexpref_selector($r[0]['sexual']),
'$about' => $r[0]['about'],
'$homepage' => $r[0]['homepage'],
'$profile_in_dir' => (($is_default) ? $profile_in_dir : '')