function show_profile($profile) {
common_element_start('div', 'profile');
+
+ common_element('h2', 'nickname', $profile->nickname);
+
$avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE);
if ($avatar) {
common_element('img', array('src' => $avatar->url,
'height' => AVATAR_PROFILE_SIZE,
'title' => $profile->nickname));
}
- common_element('span', 'nickname', $profile->nickname);
if ($profile->fullname) {
if ($profile->homepage) {
common_element('a', array('href' => $profile->homepage,
'name' => 'unsubscribeto',
'type' => 'hidden',
'value' => $profile->nickname));
- common_element('input', array('type' => 'submit'), _t('unsubscribe'));
+ common_element('input', array('type' => 'submit'), _t('Unsubscribe'));
common_element_end('form');
}
common_element_start('div', 'subscriptions');
+ common_element('h2', 'subscriptions', _t('Subscriptions'));
+
$cnt = 0;
if ($subs) {
$notice_count = 0;
}
+ common_element_start('div', 'statistics');
+ common_element('h2', 'statistics', _t('Statistics'));
+
# Other stats...?
common_element_start('dl', 'statistics');
common_element('dt', _t('Subscriptions'));
common_element('dt', _t('Notices'));
common_element('dd', $notice_count);
common_element_end('dl');
+
+ common_element_end('div');
}
function show_notices($profile) {
$notice->find();
common_element_start('div', 'notices');
-
+ common_element('h2', 'notices', _t('Notices'));
+
while ($notice->fetch()) {
$this->show_notice($notice);
}
}
function show_last_notice($profile) {
+
+ common_element_start('div', 'lastnotice');
+ common_element('h2', 'lastnotice', _t('Currently'));
+
$notice = DB_DataObject::factory('notice');
$notice->profile_id = $profile->id;
$notice->orderBy('created DESC');
$notice->limit(0, 1);
- $notice->find();
-
- while ($notice->fetch()) {
+
+ if ($notice->find(true)) {
# FIXME: URL, image, video, audio
common_element('span', array('class' => 'content'),
$notice->content);
common_element('span', array('class' => 'date'),
common_date_string($notice->created));
}
+
+ common_element_end('div');
}
}
+ common_redirect()
+ configuration system ($config)
+ release 0.1
+- design from Open Source Web Designs
++ add H1 to each page
++ add H2 for each page section
- doc action
-- default to public stream
++ default to public stream
- default avatar
- default HTML type
- set Content-Type
- FOAF dump for user
- license on showstream
- license on shownotice
-- design from Open Source Web Designs
- TOS checkbox on register
- pretty URLs
-- XML sitemap generation
- site logo
+- instructions
+- release 0.2
+- set Last-Modified
+- XML sitemap generation
- theme per site
- theme per profile
- email confirmation for registration
- change cookie handling for anon users to be more cache-friendly
-- release 0.2
-- content negotiation for interface language
-- content negotiation for content type
-- content negotiation for encoding
-- content negotiation for charset
-- If-Modified-Since support
-- Vary
-- delete a notice
- gettext
- subscribe remote
- add subscriber remote
- RDFa for subscriber pages
- RDFa for subscribed pages
- plugins and hooks
+- content negotiation for interface language
+- content negotiation for content type
+- content negotiation for encoding
+- content negotiation for charset
+- If-Modified-Since support
+- Vary
+- delete a notice
- release 0.3
- @ messages
- # tags