aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.htaccess4
-rw-r--r--boot.php50
-rw-r--r--include/auth.php13
-rw-r--r--include/profile_advanced.php275
-rw-r--r--mod/notifications.php18
-rw-r--r--view/login.tpl43
-rw-r--r--view/notifications.tpl7
-rw-r--r--view/profile_advanced.tpl143
-rw-r--r--view/register-link.tpl1
-rw-r--r--view/theme/duepuntozero/style.css28
-rw-r--r--view/theme/loozah/style.css39
-rw-r--r--view/theme/quattro/colors.less5
-rw-r--r--view/theme/quattro/quattro.less18
-rw-r--r--view/theme/quattro/style.css18
-rw-r--r--view/theme/testbubble/login.tpl25
-rw-r--r--view/theme/testbubble/style.css39
16 files changed, 307 insertions, 419 deletions
diff --git a/.htaccess b/.htaccess
index 73031b962..3ababd770 100644
--- a/.htaccess
+++ b/.htaccess
@@ -1,4 +1,4 @@
-Options -Indexes
+#Options -Indexes
AddType application/x-java-archive .jar
AddType audio/ogg .oga
@@ -8,7 +8,7 @@ Deny from all
<IfModule mod_rewrite.c>
RewriteEngine on
-
+ RewriteBase /~fabio/friendika/
# Protect repository directory from browsing
RewriteRule "(^|/)\.git" - [F]
diff --git a/boot.php b/boot.php
index 9f382b302..e7cd06504 100644
--- a/boot.php
+++ b/boot.php
@@ -636,29 +636,16 @@ function get_guid($size=16) {
if(! function_exists('login')) {
function login($register = false) {
$o = "";
- $register_tpl = (($register) ? get_markup_template("register-link.tpl") : "");
-
- $register_html = replace_macros($register_tpl,array(
- '$title' => t('Create a New Account'),
- '$desc' => t('Register')
- ));
-
- $noid = get_config('system','no_openid');
- if($noid) {
- $classname = 'no-openid';
- $namelabel = t('Nickname or Email address: ');
- $passlabel = t('Password: ');
- $login = t('Login');
- }
- else {
- $classname = 'openid';
- $namelabel = t('Nickname/Email/OpenID: ');
- $passlabel = t("Password \x28if not OpenID\x29: ");
- $login = t('Login');
+ $reg = false;
+ if ($register) {
+ $reg = array(
+ 'title' => t('Create a New Account'),
+ 'desc' => t('Register')
+ );
}
- $lostpass = t('Forgot your password?');
- $lostlink = t('Password Reset');
+ $noid = get_config('system','no_openid');
+
if(local_user()) {
$tpl = get_markup_template("logout.tpl");
}
@@ -667,17 +654,22 @@ function login($register = false) {
}
- $o = '<script type="text/javascript"> $(document).ready(function() { $("#login-name").focus();} );</script>';
$o .= replace_macros($tpl,array(
'$logout' => t('Logout'),
- '$register_html' => $register_html,
- '$classname' => $classname,
- '$namelabel' => $namelabel,
- '$passlabel' => $passlabel,
- '$login' => $login,
- '$lostpass' => $lostpass,
- '$lostlink' => $lostlink
+ '$login' => t('Login'),
+
+ '$lname' => array('username', t('Nickname or Email address: ') , '', ''),
+ '$lpassword' => array('password', t('Password: '), '', ''),
+
+ '$openid' => !$noid,
+ '$lopenid' => array('openid_url', t('OpenID: '),'',''),
+
+
+ '$register' => $reg,
+
+ '$lostpass' => t('Forgot your password?'),
+ '$lostlink' => t('Password Reset'),
));
call_hooks('login_hook',$o);
diff --git a/include/auth.php b/include/auth.php
index 1f16b3504..45c71c66b 100644
--- a/include/auth.php
+++ b/include/auth.php
@@ -104,11 +104,12 @@ else {
if((x($_POST,'password')) && strlen($_POST['password']))
$encrypted = hash('whirlpool',trim($_POST['password']));
else {
- if((x($_POST,'openid_url')) && strlen($_POST['openid_url'])) {
+ if((x($_POST,'openid_url')) && strlen($_POST['openid_url']) ||
+ (x($_POST,'username')) && strlen($_POST['username'])) {
$noid = get_config('system','no_openid');
- $openid_url = trim($_POST['openid_url']);
+ $openid_url = trim( (strlen($_POST['openid_url'])?$_POST['openid_url']:$_POST['username']) );
// validate_url alters the calling parameter
@@ -161,7 +162,7 @@ else {
$record = null;
$addon_auth = array(
- 'username' => trim($_POST['openid_url']),
+ 'username' => trim($_POST['username']),
'password' => trim($_POST['password']),
'authenticated' => 0,
'user_record' => null
@@ -187,8 +188,8 @@ else {
$r = q("SELECT `user`.*, `user`.`pubkey` as `upubkey`, `user`.`prvkey` as `uprvkey`
FROM `user` WHERE ( `email` = '%s' OR `nickname` = '%s' )
AND `password` = '%s' AND `blocked` = 0 AND `account_expired` = 0 AND `verified` = 1 LIMIT 1",
- dbesc(trim($_POST['openid_url'])),
- dbesc(trim($_POST['openid_url'])),
+ dbesc(trim($_POST['username'])),
+ dbesc(trim($_POST['username'])),
dbesc($encrypted)
);
if(count($r))
@@ -196,7 +197,7 @@ else {
}
if((! $record) || (! count($record))) {
- logger('authenticate: failed login attempt: ' . trim($_POST['openid_url']));
+ logger('authenticate: failed login attempt: ' . trim($_POST['username']));
notice( t('Login failed.') . EOL );
goaway(z_root());
}
diff --git a/include/profile_advanced.php b/include/profile_advanced.php
index 41ad322b2..ccecb95de 100644
--- a/include/profile_advanced.php
+++ b/include/profile_advanced.php
@@ -2,257 +2,78 @@
function advanced_profile(&$a) {
-$o .= '';
+ $o .= '';
-$o .= '<h2>' . t('Profile') . '</h2>';
+ $o .= '<h2>' . t('Profile') . '</h2>';
-if($a->profile['name']) {
- $lbl_fullname = t('Full Name:');
- $fullname = $a->profile['name'];
+ if($a->profile['name']) {
-$o .= <<< EOT
-<div id="advanced-profile-name-wrapper" >
-<div id="advanced-profile-name-text" class="advanced-profile-label">$lbl_fullname</div>
-<div id="advanced-profile-name" class="advanced-profile-content">$fullname</div>
-</div>
-<div id="advanced-profile-name-end"></div>
-EOT;
-}
+ $tpl = get_markup_template('profile_advanced.tpl');
+
+ $profile = array();
+
+ $profile['fullname'] = array( t('Full Name:'), $a->profile['name'] ) ;
+
+ if($a->profile['gender']) $profile['gender'] = array( t('Gender:'), $a->profile['gender'] );
+
-if($a->profile['gender']) {
- $lbl_gender = t('Gender:');
- $gender = $a->profile['gender'];
+ if(($a->profile['dob']) && ($a->profile['dob'] != '0000-00-00')) {
+
+ $year_bd_format = t('j F, Y');
+ $short_bd_format = t('j F');
-$o .= <<< EOT
-<div id="advanced-profile-gender-wrapper" >
-<div id="advanced-profile-gender-text" class="advanced-profile-label">$lbl_gender</div>
-<div id="advanced-profile-gender" class="advanced-profile-content">$gender</div>
-</div>
-<div id="advanced-profile-gender-end"></div>
-EOT;
-}
+
+ $val = ((intval($a->profile['dob']))
+ ? day_translate(datetime_convert('UTC','UTC',$a->profile['dob'] . ' 00:00 +00:00',$year_bd_format))
+ : day_translate(datetime_convert('UTC','UTC','2001-' . substr($a->profile['dob'],6) . ' 00:00 +00:00',$short_bd_format)));
+
+ $profile['birthday'] = array( t('Birthday:'), $val);
-if(($a->profile['dob']) && ($a->profile['dob'] != '0000-00-00')) {
- $lbl_birthday = t('Birthday:');
+ }
-$o .= <<< EOT
-<div id="advanced-profile-dob-wrapper" >
-<div id="advanced-profile-dob-text" class="advanced-profile-label">$lbl_birthday</div>
-EOT;
+ if($age = age($a->profile['dob'],$a->profile['timezone'],'')) $profile['age'] = array( t('Age:'), $age );
+
-// If no year, add an arbitrary one so just we can parse the month and day.
+ if($a->profile['marital']) $profile['marital'] = array( t('Status:'), $a->profile['marital']);
-$year_bd_format = t('j F, Y');
-$short_bd_format = t('j F');
-$o .= '<div id="advanced-profile-dob" class="advanced-profile-content">'
- . ((intval($a->profile['dob']))
- ? day_translate(datetime_convert('UTC','UTC',$a->profile['dob'] . ' 00:00 +00:00',$year_bd_format))
- : day_translate(datetime_convert('UTC','UTC','2001-' . substr($a->profile['dob'],5) . ' 00:00 +00:00',$short_bd_format)))
- . "</div>\r\n</div>";
+ if($a->profile['with']) $profile['marital']['with'] = $a->profile['with'];
-$o .= '<div id="advanced-profile-dob-end"></div>';
-}
+ if($a->profile['sexual']) $profile['sexual'] = array( t('Sexual Preference:'), $a->profile['sexual'] );
-if($age = age($a->profile['dob'],$a->profile['timezone'],'')) {
- $lbl_age = t('Age:');
-$o .= <<< EOT
-<div id="advanced-profile-age-wrapper" >
-<div id="advanced-profile-age-text" class="advanced-profile-label">$lbl_age</div>
-<div id="advanced-profile-age" class="advanced-profile-content">$age</div>
-</div>
-<div id="advanced-profile-age-end"></div>
-EOT;
-}
+ if($a->profile['homepage']) $profile['homepage'] = array( t('Homepage:'), linkify($a->profile['homepage']) );
-if($a->profile['marital']) {
- $lbl_marital = t('<span class="heart">&hearts;</span> Status:');
- $marital = $a->profile['marital'];
+ if($a->profile['politic']) $profile['politic'] = array( t('Political Views:'), $a->profile['politic']);
-$o .= <<< EOT
-<div id="advanced-profile-marital-wrapper" >
-<div id="advanced-profile-marital-text" class="advanced-profile-label">$lbl_marital</div>
-<div id="advanced-profile-marital" class="advanced-profile-content">$marital</div>
-EOT;
+ if($a->profile['religion']) $profile['religion'] = array( t('Religion:'), $a->profile['religion']);
-if($a->profile['with']) {
- $with = $a->profile['with'];
- $o .= "<div id=\"advanced-profile-with\">($with)</div>";
-}
-$o .= <<< EOT
-</div>
-<div id="advanced-profile-marital-end"></div>
-EOT;
-}
+ if($txt = prepare_text($a->profile['about'])) $profile['about'] = array( t('About:'), $txt );
-if($a->profile['sexual']) {
- $lbl_sexual = t('Sexual Preference:');
- $sexual = $a->profile['sexual'];
+ if($txt = prepare_text($a->profile['interest'])) $profile['interest'] = array( t('Hobbies/Interests:'), $txt);
-$o .= <<< EOT
-<div id="advanced-profile-sexual-wrapper" >
-<div id="advanced-profile-sexual-text" class="advanced-profile-label">$lbl_sexual</div>
-<div id="advanced-profile-sexual" class="advanced-profile-content">$sexual</div>
-</div>
-<div id="advanced-profile-sexual-end"></div>
-EOT;
-}
+ if($txt = prepare_text($a->profile['contact'])) $profile['contact'] = array( t('Contact information and Social Networks:'), $txt);
-if($a->profile['homepage']) {
- $lbl_homepage = t('Homepage:');
- $homepage = linkify($a->profile['homepage']);
-$o .= <<< EOT
-<div id="advanced-profile-homepage-wrapper" >
-<div id="advanced-profile-homepage-text" class="advanced-profile-label">$lbl_homepage</div>
-<div id="advanced-profile-homepage" class="advanced-profile-content">$homepage</div>
-</div>
-<div id="advanced-profile-homepage-end"></div>
-EOT;
-}
+ if($txt = prepare_text($a->profile['music'])) $profile['music'] = array( t('Musical interests:'), $txt);
+
+ if($txt = prepare_text($a->profile['book'])) $profile['book'] = array( t('Books, literature:'), $txt);
-if($a->profile['politic']) {
- $lbl_politic = t('Political Views:');
- $politic = $a->profile['politic'];
-$o .= <<< EOT
-<div id="advanced-profile-politic-wrapper" >
-<div id="advanced-profile-politic-text" class="advanced-profile-label">$lbl_politic</div>
-<div id="advanced-profile-politic" class="advanced-profile-content">$politic</div>
-</div>
-<div id="advanced-profile-politic-end"></div>
-EOT;
-}
+ if($txt = prepare_text($a->profile['tv'])) $profile['tv'] = array( t('Television:'), $txt);
-if($a->profile['religion']) {
- $lbl_religion = t('Religion:');
- $religion = $a->profile['religion'];
-$o .= <<< EOT
-<div id="advanced-profile-religion-wrapper" >
-<div id="advanced-profile-religion-text" class="advanced-profile-label">$lbl_religion</div>
-<div id="advanced-profile-religion" class="advanced-profile-content">$religion</div>
-</div>
-<div id="advanced-profile-religion-end"></div>
-EOT;
-}
-if($txt = prepare_text($a->profile['about'])) {
- $lbl_about = t('About:');
-$o .= <<< EOT
-<div id="advanced-profile-about-wrapper" >
-<div id="advanced-profile-about-text" class="advanced-profile-label">$lbl_about</div>
-<br />
-<div id="advanced-profile-about" class="advanced-profile-content">$txt</div>
-</div>
-<div id="advanced-profile-about-end"></div>
-EOT;
-}
+ if($txt = prepare_text($a->profile['film'])) $profile['film'] = array( t('Film/dance/culture/entertainment:'), $txt);
-if($txt = prepare_text($a->profile['interest'])) {
- $lbl_interests = t('Hobbies/Interests:');
-$o .= <<< EOT
-<div id="advanced-profile-interest-wrapper" >
-<div id="advanced-profile-interest-text" class="advanced-profile-label">$lbl_interests</div>
-<br />
-<div id="advanced-profile-interest" class="advanced-profile-content">$txt</div>
-</div>
-<div id="advanced-profile-interest-end"></div>
-EOT;
-}
+ if($txt = prepare_text($a->profile['romance'])) $profile['romance'] = array( t('Love/Romance:'), $txt);
+
+ if($txt = prepare_text($a->profile['work'])) $profile['work'] = array( t('Work/employment:'), $txt);
-if($txt = prepare_text($a->profile['contact'])) {
- $lbl_contact = t('Contact information and Social Networks:');
-$o .= <<< EOT
-<div id="advanced-profile-contact-wrapper" >
-<div id="advanced-profile-contact-text" class="advanced-profile-label">$lbl_contact</div>
-<br />
-<div id="advanced-profile-contact" class="advanced-profile-content">$txt</div>
-</div>
-<div id="advanced-profile-contact-end"></div>
-EOT;
-}
+ if($txt = prepare_text($a->profile['education'])) $profile['education'] = array( t('School/education:'), $txt );
+ }
-if($txt = prepare_text($a->profile['music'])) {
- $lbl_music = t('Musical interests:');
-$o .= <<< EOT
-<div id="advanced-profile-music-wrapper" >
-<div id="advanced-profile-music-text" class="advanced-profile-label">$lbl_music</div>
-<br />
-<div id="advanced-profile-music" class="advanced-profile-content">$txt</div>
-</div>
-<div id="advanced-profile-music-end"></div>
-EOT;
-}
-
-if($txt = prepare_text($a->profile['book'])) {
- $lbl_book = t('Books, literature:');
-$o .= <<< EOT
-<div id="advanced-profile-book-wrapper" >
-<div id="advanced-profile-book-text" class="advanced-profile-label">$lbl_book</div>
-<br />
-<div id="advanced-profile-book" class="advanced-profile-content">$txt</div>
-</div>
-<div id="advanced-profile-book-end"></div>
-EOT;
-}
-
-if($txt = prepare_text($a->profile['tv'])) {
- $lbl_tv = t('Television:');
-$o .= <<< EOT
-<div id="advanced-profile-tv-wrapper" >
-<div id="advanced-profile-tv-text" class="advanced-profile-label">$lbl_tv</div>
-<br />
-<div id="advanced-profile-tv" class="advanced-profile-content">$txt</div>
-</div>
-<div id="advanced-profile-tv-end"></div>
-EOT;
-}
-
-if($txt = prepare_text($a->profile['film'])) {
- $lbl_film = t('Film/dance/culture/entertainment:');
-$o .= <<< EOT
-<div id="advanced-profile-film-wrapper" >
-<div id="advanced-profile-film-text" class="advanced-profile-label">$lbl_film</div>
-<br />
-<div id="advanced-profile-film" class="advanced-profile-content">$txt</div>
-</div>
-<div id="advanced-profile-film-end"></div>
-EOT;
-}
-
-if($txt = prepare_text($a->profile['romance'])) {
- $lbl_romance = t('Love/Romance:');
-$o .= <<< EOT
-<div id="advanced-profile-romance-wrapper" >
-<div id="advanced-profile-romance-text" class="advanced-profile-label">$lbl_romance</div>
-<br />
-<div id="advanced-profile-romance" class="advanced-profile-content">$txt</div>
-</div>
-<div id="advanced-profile-romance-end"></div>
-EOT;
-}
+
+ return replace_macros($tpl, array(
+ '$title' => t('Profile'),
+ '$profile' => $profile,
+ ));
-if($txt = prepare_text($a->profile['work'])) {
- $lbl_work = t('Work/employment:');
-$o .= <<< EOT
-<div id="advanced-profile-work-wrapper" >
-<div id="advanced-profile-work-text" class="advanced-profile-label">$lbl_work</div>
-<br />
-<div id="advanced-profile-work" class="advanced-profile-content">$txt</div>
-</div>
-<div id="advanced-profile-work-end"></div>
-EOT;
-}
-
-if($txt = prepare_text($a->profile['education'])) {
- $lbl_education = t('School/education:');
-$o .= <<< EOT
-<div id="advanced-profile-education-wrapper" >
-<div id="advanced-profile-education-text" class="advanced-profile-label">$lbl_education</div>
-<br />
-<div id="advanced-profile-education" class="advanced-profile-content">$txt</div>
-</div>
-<div id="advanced-profile-education-end"></div>
-EOT;
-}
-return $o;
}
diff --git a/mod/notifications.php b/mod/notifications.php
index 6c3e67cb4..3fee2b140 100644
--- a/mod/notifications.php
+++ b/mod/notifications.php
@@ -88,12 +88,10 @@ function notifications_content(&$a) {
'sel'=> '',
),
);
- $tpl = get_markup_template('common_tabs.tpl');
- $tab_content = replace_macros($tpl, array('$tabs'=>$tabs));
-
-
-
+
+ $o = "";
+
if( (($a->argc > 1) && ($a->argv[1] == 'intros')) || (($a->argc == 1))) {
nav_set_selected('introductions');
if(($a->argc > 2) && ($a->argv[2] == 'all'))
@@ -197,15 +195,15 @@ function notifications_content(&$a) {
$o .= replace_macros($notif_tpl,array(
'$notif_header' => t('Notifications'),
- '$tabs' => $tab_content,
+ '$tabs' => $tabs,
'$notif_content' => $notif_content,
- '$activetab' => 'intros'
));
$o .= paginate($a);
return $o;
} else if (($a->argc > 1) && ($a->argv[1] == 'network')) {
+
$notif_tpl = get_markup_template('notifications.tpl');
$r = q("SELECT `item`.`id`,`item`.`parent`, `item`.`verb`, `item`.`author-name`,
@@ -283,9 +281,8 @@ function notifications_content(&$a) {
$o .= replace_macros($notif_tpl,array(
'$notif_header' => t('Notifications'),
- '$tabs' => $tab_content,
+ '$tabs' => $tabs,
'$notif_content' => $notif_content,
- '$activetab' => 'network'
));
} else if (($a->argc > 1) && ($a->argv[1] == 'home')) {
@@ -360,9 +357,8 @@ function notifications_content(&$a) {
$o .= replace_macros($notif_tpl,array(
'$notif_header' => t('Notifications'),
- '$tabs' => $tab_content,
+ '$tabs' => $tabs,
'$notif_content' => $notif_content,
- '$activetab' => 'home'
));
}
diff --git a/view/login.tpl b/view/login.tpl
index 27598cd50..5240bb9ad 100644
--- a/view/login.tpl
+++ b/view/login.tpl
@@ -1,25 +1,28 @@
<form action="" method="post" >
-<input type="hidden" name="auth-params" value="login" />
-<div id="login-name-wrapper">
- <label for="login-name" id="label-login-name">$namelabel</label>
- <input type="text" maxlength="60" name="openid_url" class="$classname" id="login-name" value="" />
-</div>
-<div id="login-name-end" ></div>
-<div id="login-password-wrapper">
- <label for="login-password" id="label-login-password">$passlabel</label>
- <input type="password" maxlength="60" name="password" id="login-password" value="" />
-</div>
-<div id="login-password-end"></div>
-<div id="login-extra-links" class=".button">
- <div id="login-extra-filler">&nbsp;</div>
- $register_html
+ <input type="hidden" name="auth-params" value="login" />
+
+ <div id="login_standard">
+ {{ inc field_input.tpl with $field=$lname }}{{ endinc }}
+ {{ inc field_password.tpl with $field=$lpassword }}{{ endinc }}
+ </div>
+
+ {{ if $openid }}
+ <div id="login_openid">
+ {{ inc field_openid.tpl with $field=$lopenid }}{{ endinc }}
+ </div>
+ {{ endif }}
+
+ <div id="login-extra-links">
+ {{ if $register }}<a href="register" title="$register.title" id="register-link">$register.desc</a>{{ endif }}
<a href="lostpass" title="$lostpass" id="lost-password-link" >$lostlink</a>
-</div>
-<div id="login-extra-end"></div>
-<div id="login-submit-wrapper" >
- <input type="submit" name="submit" id="login-submit-button" value="$login" />
-</div>
-<div id="login-submit-end"></div>
+ </div>
+
+ <div id="login-submit-wrapper" >
+ <input type="submit" name="submit" id="login-submit-button" value="$login" />
+ </div>
+
</form>
+
+<script type="text/javascript"> $(document).ready(function() { $("#id_$lname.0").focus();} );</script>
diff --git a/view/notifications.tpl b/view/notifications.tpl
index d737a7507..487f8b480 100644
--- a/view/notifications.tpl
+++ b/view/notifications.tpl
@@ -1,5 +1,8 @@
-<h1>$notif_header</h1>
-$tabs
+
+<h1>Notifications</h1>
+
+{{ inc common_tabs.tpl }}{{ endinc }}
+
<div class="notif-network-wrapper">
$notif_content
</div>
diff --git a/view/profile_advanced.tpl b/view/profile_advanced.tpl
new file mode 100644
index 000000000..136edf8d7
--- /dev/null
+++ b/view/profile_advanced.tpl
@@ -0,0 +1,143 @@
+<h2>$title</h2>
+
+<dl>
+ <dt>$profile.fullname.0</dt>
+ <dd>$profile.fullname.1</dd>
+</dl>
+
+{{ if $profile.gender }}
+<dl>
+ <dt>$profile.gender.0</dt>
+ <dd>$profile.gender.1</dd>
+</dl>
+{{ endif }}
+
+{{ if $profile.birthday }}
+<dl>
+ <dt>$profile.birthday.0</dt>
+ <dd>$profile.birthday.1</dd>
+</dl>
+{{ endif }}
+
+{{ if $profile.age }}
+<dl>
+ <dt>$profile.age.0</dt>
+ <dd>$profile.age.1</dd>
+</dl>
+{{ endif }}
+
+{{ if $profile.marital }}
+<dl>
+ <dt><span class="heart">&hearts;</span> $profile.marital.0</dt>
+ <dd>$profile.marital.1 {{ if $profile.marital.with }}($profile.marital.with){{ endif }}</dd>
+</dl>
+{{ endif }}
+
+{{ if $profile.sexual }}
+<dl>
+ <dt>$profile.sexual.0</dt>
+ <dd>$profile.sexual.1</dd>
+</dl>
+{{ endif }}
+
+{{ if $profile.homepage }}
+<dl>
+ <dt>$profile.homepage.0</dt>
+ <dd>$profile.homepage.1</dd>
+</dl>
+{{ endif }}
+
+{{ if $profile.politic }}
+<dl>
+ <dt>$profile.politic.0</dt>
+ <dd>$profile.politic.1</dd>
+</dl>
+{{ endif }}
+
+{{ if $profile.religion }}
+<dl>
+ <dt>$profile.religion.0</dt>
+ <dd>$profile.religion.1</dd>
+</dl>
+{{ endif }}
+
+{{ if $profile.about }}
+<dl>
+ <dt>$profile.about.0</dt>
+ <dd>$profile.about.1</dd>
+</dl>
+{{ endif }}
+
+{{ if $profile.interest }}
+<dl>
+ <dt>$profile.interest.0</dt>
+ <dd>$profile.interest.1</dd>
+</dl>
+{{ endif }}
+
+
+{{ if $profile.contact }}
+<dl>
+ <dt>$profile.contact.0</dt>
+ <dd>$profile.contact.1</dd>
+</dl>
+{{ endif }}
+
+
+{{ if $profile.music }}
+<dl>
+ <dt>$profile.music.0</dt>
+ <dd>$profile.music.1</dd>
+</dl>
+{{ endif }}
+
+
+{{ if $profile.book }}
+<dl>
+ <dt>$profile.book.0</dt>
+ <dd>$profile.book.1</dd>
+</dl>
+{{ endif }}
+
+
+{{ if $profile.tv }}
+<dl>
+ <dt>$profile.tv.0</dt>
+ <dd>$profile.tv.1</dd>
+</dl>
+{{ endif }}
+
+
+{{ if $profile.film }}
+<dl>
+ <dt>$profile.film.0</dt>
+ <dd>$profile.film.1</dd>
+</dl>
+{{ endif }}
+
+
+{{ if $profile.romance }}
+<dl>
+ <dt>$profile.romance.0</dt>
+ <dd>$profile.romance.1</dd>
+</dl>
+{{ endif }}
+
+
+{{ if $profile.work }}
+<dl>
+ <dt>$profile.work.0</dt>
+ <dd>$profile.work.1</dd>
+</dl>
+{{ endif }}
+
+{{ if $profile.education }}
+<dl>
+ <dt>$profile.education.0</dt>
+ <dd>$profile.education.1</dd>
+</dl>
+{{ endif }}
+
+
+
+
diff --git a/view/register-link.tpl b/view/register-link.tpl
deleted file mode 100644
index 802c5f99f..000000000
--- a/view/register-link.tpl
+++ /dev/null
@@ -1 +0,0 @@
- <a href="register" title = "$title" id="register-link" >$desc</a>
diff --git a/view/theme/duepuntozero/style.css b/view/theme/duepuntozero/style.css
index 9bb866e76..6f452cebc 100644
--- a/view/theme/duepuntozero/style.css
+++ b/view/theme/duepuntozero/style.css
@@ -27,8 +27,7 @@ input {
img { border :0px; }
-#id_openid_url,
-.openid {
+.openid input {
background: url(login-bg.gif) no-repeat;
background-position: 0 50%;
padding-left: 18px;
@@ -332,26 +331,23 @@ div.wall-item-content-wrapper.shiny {
margin-top: 10px;
}
-#label-login-name, #label-login-password, #login-extra-filler {
- float: left;
- width: 200px;
- margin-bottom: 20px;
-}
-
-#login-password {
+#login_standard {
+ width: 210px;
float: left;
- width: 170px;
+}
+#login_openid {
+ width: 210px;
+ margin-left: 250px;
}
-#login-name {
- float: left;
- width: 153px;
+#login_standard input,
+#login_openid input {
+ width: 180px;
}
-#login-name.no-openid {
- float: left;
- width: 170px;
+#login-extra-links {
+ clear: both;
}
#register-link, #lost-password-link {
diff --git a/view/theme/loozah/style.css b/view/theme/loozah/style.css
index c6250c51c..447072390 100644
--- a/view/theme/loozah/style.css
+++ b/view/theme/loozah/style.css
@@ -41,18 +41,21 @@ input:hover {
cursor: pointer;
}
-#id_openid_url,
-.openid {
+.openid input{
background-color: #ECECEC !important;
background: url(login-bg.gif) no-repeat;
background-position: 0 50%;
padding-left: 18px;
+ width: 385px !important;
}
-#id_openid_url:hover,
-.openid:hover {
+
+.openid input:hover {
background-color: #0CBEFE !important;
}
+
+
+
option {
background-color: #ECD6D2;
}
@@ -451,27 +454,20 @@ nav {
margin-top: 10px;
}
-#label-login-name, #label-login-password, #login-extra-filler {
- float: left;
- width: 200px;
- margin-bottom: 20px;
-}
-
-
-#login-password {
+#login_standard {
+ width: 480px;
float: left;
- width: 170px;
}
-
-#login-name {
- float: left;
- width: 153px;
+#login_openid {
+ width: 480px;
+ margin-left: 490px;
}
-#login-name.no-openid {
- float: left;
- width: 170px;
+#login_standard input,
+#login_openid input {
+ width: 180px!important;
}
+#login-extra-links { clear: both; }
#register-link, #lost-password-link {
float: left;
@@ -479,9 +475,6 @@ nav {
margin-right: 15px;
}
-#login-name-end, #login-password-end, #login-extra-end, #login-submit-end {
- clear: both;
-}
#login-submit-button {
/* margin-top: 10px; */
diff --git a/view/theme/quattro/colors.less b/view/theme/quattro/colors.less
index 564cf6d24..a7a91114c 100644
--- a/view/theme/quattro/colors.less
+++ b/view/theme/quattro/colors.less
@@ -38,6 +38,10 @@
@LinkHover: @Blue3;
@LinkVisited: @Blue3;
+
+@ButtonColor: @Grey1;
+@ButtonBackgroundColor: @Grey5;
+
@Banner: @Grey1;
@NavbarBackground:@Metalic4;
@@ -72,3 +76,4 @@
@CommentBoxEmptyBorderColor: @Grey3;
@CommentBoxFullColor: @Grey5;
@CommentBoxFullBorderColor: @Grey5;
+
diff --git a/view/theme/quattro/quattro.less b/view/theme/quattro/quattro.less
index 9f47cf099..782e1b62b 100644
--- a/view/theme/quattro/quattro.less
+++ b/view/theme/quattro/quattro.less
@@ -433,15 +433,11 @@ section {
}
/** buttons **/
input[type="submit"] {
- border: 1px solid;
- background-color: @BodyColor;
- font: bold 85%;
- color: @Grey1;
- height: 20px;
- padding: 10px 5px;
- border-radius: 8px;
- -moz-border-radius: 8px;
- -webkit-border-radius: 8px;
+ border: 0px;
+ background-color: @ButtonBackgroundColor;
+ color: @ButtonColor;
+ padding: 0px 10px;
+ .rounded(5px);
}
@@ -473,10 +469,8 @@ input[type="submit"] {
background-position: 7px 7px;
background-repeat: no-repeat;
padding: 7px 5px 0px 30px;
- -webkit-border-radius: 5px ;
- -moz-border-radius: 5px;
- border-radius: 5px;
color: #999999;
+ .rounded(5px);
}
#acl-showall.selected {
color: #000000;
diff --git a/view/theme/quattro/style.css b/view/theme/quattro/style.css
index 56c4bc967..aa4552837 100644
--- a/view/theme/quattro/style.css
+++ b/view/theme/quattro/style.css
@@ -693,15 +693,13 @@ section {
}
/** buttons **/
input[type="submit"] {
- border: 1px solid;
+ border: 0px;
background-color: #2d2d2d;
- font: bold 85%;
color: #ffffff;
- height: 20px;
- padding: 10px 5px;
- border-radius: 8px;
- -moz-border-radius: 8px;
- -webkit-border-radius: 8px;
+ padding: 0px 10px;
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
}
/** acl **/
#photo-edit-perms-select, #photos-upload-permissions-wrapper, #profile-jot-acl-wrapper {
@@ -726,10 +724,10 @@ input[type="submit"] {
background-position: 7px 7px;
background-repeat: no-repeat;
padding: 7px 5px 0px 30px;
- -webkit-border-radius: 5px ;
- -moz-border-radius: 5px;
- border-radius: 5px;
color: #999999;
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
}
#acl-showall.selected {
color: #000000;
diff --git a/view/theme/testbubble/login.tpl b/view/theme/testbubble/login.tpl
deleted file mode 100644
index c17950ece..000000000
--- a/view/theme/testbubble/login.tpl
+++ /dev/null
@@ -1,25 +0,0 @@
-
-<form action="" method="post" >
- <input type="hidden" name="auth-params" value="login" />
- <div id="login-name-wrapper">
- <label for="login-name" id="label-login-name">$namelabel</label>
- <input type="text" maxlength="60" name="openid_url" class="$classname" id="login-name" value="" />
- </div>
- <div id="login-name-end" ></div>
- <div id="login-password-wrapper">
- <label for="login-password" id="label-login-password">$passlabel</label>
- <input type="password" maxlength="60" name="password" id="login-password" value="" />
- </div>
- <div id="login-password-end"></div>
- <div id="login-submit-wrapper" >
- <input type="submit" name="submit" id="login-submit-button" value="$login" />
- <a href="lostpass" title="$lostpass" id="lost-password-link" >$lostlink</a>
- </div>
- <div id="login-submit-end"></div>
- <div id="login-extra-links" class=".button">
- <div id="login-extra-filler">&nbsp;</div>
- $register_html
- </div>
- <div id="login-extra-end"></div>
-</form>
-
diff --git a/view/theme/testbubble/style.css b/view/theme/testbubble/style.css
index 4a3edc163..83afe78f4 100644
--- a/view/theme/testbubble/style.css
+++ b/view/theme/testbubble/style.css
@@ -823,7 +823,7 @@ profile-jot-banner-wrapper {
/* ======== */
.tabs {
- width: 600px;
+ width: 450px;
list-style: none;
padding: 10px;
margin: 0px 0px 10px 0px;
@@ -2101,19 +2101,11 @@ margin-left: 0px;
/* = Register, Settings, Profile Forms = */
/* ===================================== */
-#id_openid_url,
-.openid {
+.openid input{
background: url(login-bg.gif) no-repeat;
background-position: 0 50%;
- padding-left: 18px !important;
- width: 385px;
-}
-
-.openid {
- width: 150px !important;
-}
-#login-password {
- width: 168px !important;
+ padding-left: 18px;
+ width: 384px!important;
}
#profile-tabs-wrapper {
@@ -2218,25 +2210,6 @@ margin-left: 0px;
padding: 5px;
}
-.settings-block {
- margin-top: 20px;
- -moz-box-shadow: 1px 2px 6px 0px #959494;
- -webkit-box-shadow: 1px 2px 6px 0px #959494;
- box-shadow: 1px 2px 6px 0px #959494;
- background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #f8f8f8), color-stop(1, #f6f6f6) );
- background:-moz-linear-gradient( center top, #f8f8f8 5%, #f6f6f6 100% );
- filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f8f8f8', endColorstr='#f6f6f6');
- background-color:#f8f8f8;
- -moz-border-radius:5px;
- -webkit-border-radius:5px;
- border-radius:5px;
- border:1px solid #eee;
- color:#a6a6a6;
- text-shadow:-1px 0px 0px #bdbdbd;
- border: 1px solid #cdcdcd;
- padding: 5px;
-}
-
#register-form div,
#profile-edit-form div {
clear: both;
@@ -2621,10 +2594,6 @@ tr {
width: 150px;
}
-.directory-end {
- clear: both;
-}
-
/* ========= */
/* = Admin = */
/* ========= */