Merge branch 'master' of evan@dev.controlyourself.ca:/var/www/trunk

This commit is contained in:
Evan Prodromou 2009-01-23 06:47:43 +01:00
commit 277a6e984c
7 changed files with 90 additions and 242 deletions

View File

@ -91,6 +91,9 @@ class FacebookhomeAction extends FacebookAction
function login() function login()
{ {
$this->showStylesheets();
$nickname = common_canonical_nickname($this->trimmed('nickname')); $nickname = common_canonical_nickname($this->trimmed('nickname'));
$password = $this->arg('password'); $password = $this->arg('password');
@ -185,6 +188,8 @@ class FacebookhomeAction extends FacebookAction
function getUpdatePermission() { function getUpdatePermission() {
$this->showStylesheets();
$this->elementStart('div', array('class' => 'content')); $this->elementStart('div', array('class' => 'content'));
$instructions = sprintf(_('If you would like the %s app to automatically update ' . $instructions = sprintf(_('If you would like the %s app to automatically update ' .

View File

@ -92,14 +92,26 @@ class RemotesubscribeAction extends Action
{ {
# id = remotesubscribe conflicts with the # id = remotesubscribe conflicts with the
# button on profile page # button on profile page
$this->elementStart('form', array('id' => 'remsub', 'method' => 'post', $this->elementStart('form', array('id' => 'form_remote_subscribe',
'method' => 'post',
'class' => 'form_settings',
'action' => common_local_url('remotesubscribe'))); 'action' => common_local_url('remotesubscribe')));
$this->elementStart('fieldset');
$this->element('legend', 'Subscribe to a remote user');
$this->hidden('token', common_session_token()); $this->hidden('token', common_session_token());
$this->elementStart('ul', 'form_data');
$this->elementStart('li');
$this->input('nickname', _('User nickname'), $this->nickname, $this->input('nickname', _('User nickname'), $this->nickname,
_('Nickname of the user you want to follow')); _('Nickname of the user you want to follow'));
$this->elementEnd('li');
$this->elementStart('li');
$this->input('profile_url', _('Profile URL'), $this->profile_url, $this->input('profile_url', _('Profile URL'), $this->profile_url,
_('URL of your profile on another compatible microblogging service')); _('URL of your profile on another compatible microblogging service'));
$this->elementEnd('li');
$this->elementEnd('ul');
$this->submit('submit', _('Subscribe')); $this->submit('submit', _('Subscribe'));
$this->elementEnd('fieldset');
$this->elementEnd('form'); $this->elementEnd('form');
} }

View File

@ -95,7 +95,7 @@ class ShownoticeAction extends Action
return false; return false;
} }
$this->avatar = $this->profile->getAvatar(AVATAR_STREAM_SIZE); $this->avatar = $this->profile->getAvatar(AVATAR_PROFILE_SIZE);
return true; return true;
} }

View File

@ -367,7 +367,7 @@ class ShowstreamAction extends Action
$url = common_local_url('remotesubscribe', $url = common_local_url('remotesubscribe',
array('nickname' => $this->profile->nickname)); array('nickname' => $this->profile->nickname));
$this->element('a', array('href' => $url, $this->element('a', array('href' => $url,
'id' => 'entity_subscribe_remote'), 'class' => 'entity_remote_subscribe'),
_('Subscribe')); _('Subscribe'));
} }

View File

@ -74,8 +74,6 @@ class FacebookAction extends Action
{ {
parent::prepare($argarray); parent::prepare($argarray);
common_debug("Facebookaction::prepare");
$this->facebook = getFacebook(); $this->facebook = getFacebook();
$this->fbuid = $this->facebook->require_login(); $this->fbuid = $this->facebook->require_login();
@ -261,7 +259,6 @@ class FacebookAction extends Action
function showInstructions() function showInstructions()
{ {
global $xw;
$this->elementStart('dl', array('class' => 'system_notice')); $this->elementStart('dl', array('class' => 'system_notice'));
$this->element('dt', null, 'Page Notice'); $this->element('dt', null, 'Page Notice');

View File

@ -1,4 +1,12 @@
/* theme: base */ /** theme: base
*
* @package Laconica
* @author Sarven Capadisli <csarven@controlyourself.ca>
* @copyright 2009 Control Yourself, Inc.
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://laconi.ca/
*/
* { margin:0; padding:0; } * { margin:0; padding:0; }
img { display:block; border:0; } img { display:block; border:0; }
a abbr { cursor: pointer; border-bottom:0; } a abbr { cursor: pointer; border-bottom:0; }
@ -13,7 +21,6 @@ font-size:1em;
line-height:1.65; line-height:1.65;
position:relative; position:relative;
margin:0 auto; margin:0 auto;
width:1004px;
width:71.714em; width:71.714em;
} }
h1,h2,h3,h4,h5,h6 { h1,h2,h3,h4,h5,h6 {
@ -34,7 +41,6 @@ h6 { font-size:0.9em; }
caption { caption {
font-weight:bold; font-weight:bold;
} }
legend { legend {
font-weight:bold; font-weight:bold;
font-size:1.3em; font-size:1.3em;
@ -59,8 +65,6 @@ font-weight:bold;
textarea { textarea {
overflow:auto; overflow:auto;
} }
select {
}
option { option {
padding-bottom:0; padding-bottom:0;
} }
@ -74,7 +78,6 @@ margin:0 0 18px 0;
} }
form label { form label {
font-weight:bold; font-weight:bold;
/*margin:0 0 11px 0;*/
} }
input.checkbox { input.checkbox {
position:relative; position:relative;
@ -104,16 +107,10 @@ margin-bottom:29px;
.form_settings input.remove { .form_settings input.remove {
margin-left:11px; margin-left:11px;
} }
.form_guide {
font-style:italic;
}
.form_settings .form_data li { .form_settings .form_data li {
width:100%; width:100%;
float:left; float:left;
} }
.form_settings .form_data label { .form_settings .form_data label {
float:left; float:left;
} }
@ -123,7 +120,6 @@ float:left;
margin-left:11px; margin-left:11px;
float:left; float:left;
} }
.form_settings label { .form_settings label {
margin-top:2px; margin-top:2px;
width:152px; width:152px;
@ -132,6 +128,9 @@ width:152px;
.form_actions label { .form_actions label {
display:none; display:none;
} }
.form_guide {
font-style:italic;
}
.form_settings #settings_autosubscribe label { .form_settings #settings_autosubscribe label {
display:inline; display:inline;
@ -145,7 +144,8 @@ font-weight:bold;
#form_settings_avatar legend, #form_settings_avatar legend,
#newgroup legend, #newgroup legend,
#editgroup legend, #editgroup legend,
#form_tag_user legend { #form_tag_user legend,
#form_remote_subscribe legend {
display:none; display:none;
} }
@ -185,7 +185,6 @@ padding:0 7px;
} }
address { address {
float:left; float:left;
margin-bottom:18px; margin-bottom:18px;
@ -291,12 +290,7 @@ width:100%;
#site_nav_global_secondary dt { #site_nav_global_secondary dt {
display:none; display:none;
} }
/*
#site_nav_global_primary .current a {
font-weight:bold;
border-style:solid;
}
*/
#site_nav_global_secondary { #site_nav_global_secondary {
margin-bottom:11px; margin-bottom:11px;
} }
@ -350,10 +344,9 @@ margin-right:4px;
} }
#wrap { #wrap {
float:left; float:left;
margin:0 auto; margin:0 auto;
width:1004px; width:71.714em;
width:71.714em;
} }
#core { #core {
@ -489,9 +482,9 @@ margin-top:11px;
#notice_to select { #notice_to select {
float:left; float:left;
} }
/*end FORM NOTICE*/ /*end FORM NOTICE*/
/* entity_profile */ /* entity_profile */
.entity_profile { .entity_profile {
position:relative; position:relative;
@ -559,9 +552,9 @@ display:none;
.entity_profile h2 { .entity_profile h2 {
display:none; display:none;
} }
/* entity_profile */ /* entity_profile */
/*entity_actions*/ /*entity_actions*/
.entity_actions { .entity_actions {
float:right; float:right;
@ -594,7 +587,8 @@ cursor:pointer;
width:100%; width:100%;
} }
.entity_actions a, .entity_actions a,
#entity_nudge p { #entity_nudge p,
.entity_remote_subscribe {
text-decoration:none; text-decoration:none;
font-weight:bold; font-weight:bold;
display:block; display:block;
@ -614,6 +608,16 @@ padding-left:20px;
padding:4px 4px 4px 23px; padding:4px 4px 4px 23px;
} }
.entity_remote_subscribe {
padding:4px;
border-width:2px;
border-style:solid;
border-radius:4px;
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
.entity_tags ul { .entity_tags ul {
list-style-type:none; list-style-type:none;
} }
@ -642,11 +646,6 @@ display:inline;
content: ":"; content: ":";
} }
#user_subscriptions,
#user_subscribers,
#user_groups, {
}
.section ul.entities { .section ul.entities {
width:220px; width:220px;
float:left; float:left;
@ -721,9 +720,6 @@ margin-right:11px;
} }
/* NOTICE */ /* NOTICE */
.notice, .notice,
.profile { .profile {
@ -735,11 +731,9 @@ float:left;
width:100%; width:100%;
border-top-width:1px; border-top-width:1px;
border-top-style:dashed; border-top-style:dashed;
/*-moz-border-radius:7px;*/
} }
.notices li { .notices li {
list-style-type:none; list-style-type:none;
/*margin-bottom:11px;*/
} }
.notices li.hover { .notices li.hover {
border-radius:4px; border-radius:4px;
@ -767,11 +761,6 @@ padding-left:28px;
.notice .author { .notice .author {
margin-right:11px; margin-right:11px;
} }
.notice .author a {
}
.notice .author:after {
/*content:":";*/
}
.notice .author .fn { .notice .author .fn {
font-weight:bold; font-weight:bold;
@ -795,29 +784,20 @@ text-decoration:underline;
} }
.vcard .fn { .vcard .fn {
font-style:italic; font-style:italic;
}
.vcard .fn:hover {
} }
.notice .entry-title { .notice .entry-title {
float:left; float:left;
width:100%; width:100%;
} }
#shownotice .notice .entry-title {
font-size:2.2em;
}
.notice p.entry-content { .notice p.entry-content {
display:inline; display:inline;
} }
.notice_video p.entry-content,
.notice_audio p.entry-content,
.notice_image p.entry-content,
.notice_location p.entry-content,
.notice_event p.entry-content,
.notice_document p.entry-content {
}
#laconicat .notice p.entry-content {
/*margin-left:199px;*/
}
#content .notice p.entry-content a:visited { #content .notice p.entry-content a:visited {
border-radius:4px; border-radius:4px;
-moz-border-radius:4px; -moz-border-radius:4px;
@ -932,10 +912,6 @@ text-decoration:none;
padding-left:16px; padding-left:16px;
} }
.notice-options .notice_delete {
}
.notice-options form input.submit { .notice-options form input.submit {
cursor:pointer; cursor:pointer;
width:16px; width:16px;
@ -953,9 +929,19 @@ display:none;
border:0; border:0;
padding:0; padding:0;
} }
/*END: NOTICES */ /*END: NOTICES */
#groups p {
margin-bottom:18px;
}
#groups #new_group a {
padding-left:20px;
}
.pagination dt { .pagination dt {
font-weight:bold; font-weight:bold;
display:none; display:none;
@ -995,10 +981,9 @@ border-left:0;
padding-right:20px; padding-right:20px;
border-right:0; border-right:0;
} }
/* END: NOTICE */ /* END: NOTICE */
/*If there is hentry on #content_inner, then this doesn't need to be specific to #doc or any other section */
.hentry .entry-content p { .hentry .entry-content p {
margin-bottom:18px; margin-bottom:18px;
} }
@ -1013,67 +998,10 @@ margin-bottom:18px;
margin-left:18px; margin-left:18px;
} }
/*START: LOAD ALONG WITH JS*/
.notice .in-reply-to {
width:98%;
margin-left:2%;
}
.notice .in-reply-to li {
background-color:#F7F9FB;
}
.notice .in-reply-to li .in-reply-to li {
background-color:#E4E9F0;
}
.notice .in-reply-to li .in-reply-to li .in-reply-to li {
background-color:#D1D9E4;
}
.entity_actions #user_subscribe .form_note,
.entity_actions #user_subscribe .form_data,
.entity_actions #user_subscribe .form_actions label {
display:none;
}
#form_user-relationship .form_note,
#form_user-relationship .form_data,
#form_user-relationship .form_actions label {
display:block;
}
.entity_actions #user-relationship_submit {
margin-bottom:0;
}
#form_user-relationship .form_data li label {
margin-right:11px;
}
#user_relationship_xfn {
/*z-index:1000;
position:absolute;
width:521px;
height:322px;*/
display:none;
}
#user_relationship_xfn fieldset {
background-color:#fff;
}
/*END: LOAD ALONG WITH JS*/
/* TOP_POSTERS */ /* TOP_POSTERS */
#top_posters caption {
text-align:left;
text-transform:uppercase;
}
#top_posters thead {
display:none;
}
#top_poster_user {
width:199px;
}
#top_poster_number-of-notices {
width:123px;
}
.section tbody td { .section tbody td {
padding-right:11px; padding-right:11px;
padding-bottom:11px; padding-bottom:11px;
@ -1086,7 +1014,6 @@ margin-bottom:0;
.section .notice { .section .notice {
padding-top:11px; padding-top:11px;
padding-bottom:11px; padding-bottom:11px;
} }
.section .notice:first-child { .section .notice:first-child {
@ -1095,19 +1022,14 @@ border-top:0;
} }
/* tagcloud */ /* tagcloud */
.tag-cloud { .tag-cloud {
list-style-type:none; list-style-type:none;
text-align:center; text-align:center;
} }
.aside .tag-cloud { .aside .tag-cloud {
font-size:0.8em; font-size:0.8em;
} }
.tag-cloud li { .tag-cloud li {
display:inline; display:inline;
margin-right:7px; margin-right:7px;
@ -1181,82 +1103,3 @@ clear:both;
#form_settings_avatar .form_actions { #form_settings_avatar .form_actions {
margin-bottom:0; margin-bottom:0;
} }
#groups_related ul,
#users_featured ul {
list-style-type:none;
}
#groups_related li,
#users_featured li {
margin-top:11px;
float:left;
width:100%;
}
#groups_related li:first-child,
#users_featured li:first-child {
margin-top:0;
}
#groups_related .vcard,
#users_featured .vcard {
float:left;
margin-bottom:-23px;
}
#groups_related dl,
#users_featured dl {
float:left;
margin-left:63px;
clear:left;
}
#groups_related dt,
#users_featured dt {
display:none;
font-weight:bold;
}
#home.logged_out h1 {
display:none;
}
#home #intro {
margin-bottom:29px;
float:left;
width:100%;
}
#home #intro p {
margin-bottom:18px;
font-size:1.8em;
}
#home #intro #guide_steps {
list-style-type:none;
}
#home #intro #guide_steps li {
float:left;
margin-left:18px;
}
#home #intro #guide_steps li:first-child {
margin-left:0;
}
#home #intro #guide_steps li a {
display:block;
float:left;
width:185px;
height:109px;
border-width:1px;
border-style:dotted;
text-decoration:none;
border-radius:7px;
-moz-border-radius:7px;
-webkit-border-radius:7px;
padding:7px;
font-size:1.6em;
font-weight:bold;
text-align:center;
}
#testimonials {
clear:both;
}

View File

@ -1,4 +1,12 @@
/* theme: identica */ /** theme: identica
*
* @package Laconica
* @author Sarven Capadisli <csarven@controlyourself.ca>
* @copyright 2009 Control Yourself, Inc.
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://laconi.ca/
*/
html, html,
body, body,
a:active { a:active {
@ -18,7 +26,8 @@ display:none;
input, textarea, select, option { input, textarea, select, option {
font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif; font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
} }
input, textarea, select { input, textarea, select,
.entity_remote_subscribe {
border-color:#aaa; border-color:#aaa;
} }
@ -26,7 +35,8 @@ border-color:#aaa;
input.submit, input.submit,
#form_notice.warning #notice_text-count, #form_notice.warning #notice_text-count,
#nav_register a, #nav_register a,
.form_settings .form_note { .form_settings .form_note,
.entity_remote_subscribe {
background-color:#A9BF4F; background-color:#A9BF4F;
} }
@ -35,7 +45,8 @@ input:focus, textarea:focus, select:focus,
border-color:#A9BF4F; border-color:#A9BF4F;
} }
input.submit, input.submit,
#nav_register a { #nav_register a,
.entity_remote_subscribe {
color:#fff; color:#fff;
} }
@ -66,9 +77,7 @@ background-color:#fcfcfc;
background-color:#fcfffc; background-color:#fcfffc;
} }
#aside_primary, #aside_primary {
#entity_subscribe a,
#TB_window input.submit {
background-color:#CEE1E9; background-color:#CEE1E9;
} }
@ -151,12 +160,6 @@ background-image:url(../../base/images/icons/icon_vcard.gif);
} }
/*user_actions*/
#user_actions li {
/*border-top-color:#eee;*/
}
#entity_send-a-message a, #entity_send-a-message a,
.form_user_nudge input.submit, .form_user_nudge input.submit,
.form_user_block input.submit, .form_user_block input.submit,
@ -259,6 +262,10 @@ background-color:#fcfcfc;
/*END: NOTICES */ /*END: NOTICES */
#groups #new_group a {
background:transparent url(../images/icons/twotone/green/news.gif) no-repeat 0 45%;
}
.pagination .nav_prev a, .pagination .nav_prev a,
.pagination .nav_next a { .pagination .nav_next a {
@ -272,19 +279,3 @@ background-position:0 45%;
background-image:url(../images/icons/twotone/green/arrow-right.gif); background-image:url(../images/icons/twotone/green/arrow-right.gif);
background-position:100% 45%; background-position:100% 45%;
} }
#home #intro #guide_steps li a {
border-color:#ccc;
color:#fff;
}
#home #intro #step_join-now a {
background-color:#f00;
}
#home #intro #step_start-a-group a {
background-color:#0f0;
}
#home #intro #step_create-a-community a {
background-color:#00f;
}