Merge ../csarven into uiredesign

Conflicts:

	lib/action.php
This commit is contained in:
Evan Prodromou 2009-01-15 20:54:03 +00:00
commit 7233e89be6
8 changed files with 56 additions and 14 deletions

View File

@ -124,15 +124,15 @@ class Action extends HTMLOutputter // lawsuit
{ {
$this->element('link', array('rel' => 'stylesheet', $this->element('link', array('rel' => 'stylesheet',
'type' => 'text/css', 'type' => 'text/css',
'href' => theme_path('display.css', 'base') . '?version=' . LACONICA_VERSION, 'href' => theme_path('css/display.css', 'base') . '?version=' . LACONICA_VERSION,
'media' => 'screen, projection, tv')); 'media' => 'screen, projection, tv'));
$this->element('link', array('rel' => 'stylesheet', $this->element('link', array('rel' => 'stylesheet',
'type' => 'text/css', 'type' => 'text/css',
'href' => theme_path('thickbox.css', 'base') . '?version=' . LACONICA_VERSION, 'href' => theme_path('css/thickbox.css', 'base') . '?version=' . LACONICA_VERSION,
'media' => 'screen, projection, tv')); 'media' => 'screen, projection, tv'));
$this->element('link', array('rel' => 'stylesheet', $this->element('link', array('rel' => 'stylesheet',
'type' => 'text/css', 'type' => 'text/css',
'href' => theme_path('display.css', null) . '?version=' . LACONICA_VERSION, 'href' => theme_path('css/display.css', null) . '?version=' . LACONICA_VERSION,
'media' => 'screen, projection, tv')); 'media' => 'screen, projection, tv'));
foreach (array(6,7) as $ver) { foreach (array(6,7) as $ver) {
if (file_exists(theme_file('ie'.$ver.'.css'))) { if (file_exists(theme_file('ie'.$ver.'.css'))) {
@ -324,6 +324,7 @@ class Action extends HTMLOutputter // lawsuit
$this->elementStart('dd', null); $this->elementStart('dd', null);
// Output a bunch of paragraphs here // Output a bunch of paragraphs here
$this->elementEnd('dd'); $this->elementEnd('dd');
$this->elementEnd('dl');
} }
// MUST overload // MUST overload
@ -366,7 +367,10 @@ class Action extends HTMLOutputter // lawsuit
function showSecondaryNav() function showSecondaryNav()
{ {
$this->elementStart('ul', array('id' => 'nav_sub')); $this->elementStart('dl', array('id' => 'site_nav_global_secondary'));
$this->element('dt', null, _('Secondary site navigation'));
$this->elementStart('dd', null);
$this->elementStart('ul', array('id' => 'nav'));
$this->menuItem(common_local_url('doc', array('title' => 'help')), $this->menuItem(common_local_url('doc', array('title' => 'help')),
_('Help')); _('Help'));
$this->menuItem(common_local_url('doc', array('title' => 'about')), $this->menuItem(common_local_url('doc', array('title' => 'about')),
@ -380,6 +384,8 @@ class Action extends HTMLOutputter // lawsuit
$this->menuItem(common_local_url('doc', array('title' => 'contact')), $this->menuItem(common_local_url('doc', array('title' => 'contact')),
_('Contact')); _('Contact'));
$this->elementEnd('ul'); $this->elementEnd('ul');
$this->elementEnd('dd');
$this->elementEnd('dl');
} }
function showLicenses() function showLicenses()

View File

@ -127,4 +127,16 @@ class DisfavorForm extends Form
$this->out->submit('disfavor-submit-' . $this->notice->id, $this->out->submit('disfavor-submit-' . $this->notice->id,
_('Disfavor favorite')); _('Disfavor favorite'));
} }
/**
* Class of the form.
*
* @return string the form's class
*/
function formClass()
{
return 'disfavor';
}
} }

View File

@ -127,4 +127,15 @@ class FavorForm extends Form
$this->out->submit('favor-submit-' . $this->notice->id, $this->out->submit('favor-submit-' . $this->notice->id,
_('Make a favorite')); _('Make a favorite'));
} }
/**
* Class of the form.
*
* @return string the form's class
*/
function formClass()
{
return 'favor';
}
} }

View File

@ -65,6 +65,7 @@ class Form extends Widget
{ {
$this->out->elementStart('form', $this->out->elementStart('form',
array('id' => $this->id(), array('id' => $this->id(),
'class' => $this->formClass(),
'method' => 'POST', 'method' => 'POST',
'action' => $this->action())); 'action' => $this->action()));
$this->out->elementStart('fieldset'); $this->out->elementStart('fieldset');
@ -153,4 +154,15 @@ class Form extends Widget
function action() function action()
{ {
} }
/**
* Class of the form.
*
* @return string the form's class
*/
function formClass()
{
return 'form';
}
} }

View File

@ -144,10 +144,8 @@ class NoticeForm extends Form
if ($this->action) { if ($this->action) {
$this->out->hidden('notice_return-to', $this->action, 'returnto'); $this->out->hidden('notice_return-to', $this->action, 'returnto');
$this->out->hidden('notice_in-reply-to', $this->action, 'inreplyto');
} }
$this->out->hidden('notice_in-reply-to', $this->action, 'inreplyto');
} }
/** /**

View File

@ -229,9 +229,11 @@ class NoticeListItem extends Widget
$user = common_current_user(); $user = common_current_user();
if ($user) { if ($user) {
if ($user->hasFave($this->notice)) { if ($user->hasFave($this->notice)) {
common_disfavor_form($this->notice); $disfavor = new DisfavorForm($this->out, $this->notice);
$disfavor->show();
} else { } else {
common_favor_form($this->notice); $favor = new FavorForm($this->out, $this->notice);
$favor->show();
} }
} }
} }

View File

@ -127,6 +127,7 @@ font-weight:bold;
address { address {
float:left; float:left;
margin-bottom:18px; margin-bottom:18px;
margin-left:18px;
} }
address .fn, address .fn,
address .email { address .email {
@ -316,7 +317,7 @@ padding:18px 4px 18px 18px;
#form_notice { #form_notice {
width:384px; width:384px;
float:left; float:left;
margin-left:86px; margin-left:68px;
position:relative; position:relative;
line-height:1; line-height:1;
} }

View File

@ -83,16 +83,16 @@ background-repeat:no-repeat;
background-position:0 45%; background-position:0 45%;
} }
#export_data li a.rss { #export_data li a.rss {
background-image:url(../images/icons/icon_rss.jpg); background-image:url(../../base/images/icons/icon_rss.jpg);
} }
#export_data li a.atom { #export_data li a.atom {
background-image:url(../images/icons/icon_atom.jpg); background-image:url(../../base/images/icons/icon_atom.jpg);
} }
#export_data li a.foaf { #export_data li a.foaf {
background-image:url(../images/icons/icon_foaf.gif); background-image:url(../../base/images/icons/icon_foaf.gif);
=} =}
#export_data li a.export_vcard { #export_data li a.export_vcard {
background-image:url(../images/icons/icon_vcard.gif); background-image:url(../../base/images/icons/icon_vcard.gif);
} }