* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-if (!defined('LACONICA')) { exit(1) }
+if (!defined('LACONICA')) { exit(1); }
define('NOTICES_PER_PAGE', 20);
function show_notice($notice) {
$profile = $notice->getProfile();
# XXX: RDFa
- common_start_element('div', array('class' => 'notice'));
+ common_element_start('div', array('class' => 'notice'));
$avatar = $profile->getAvatar(AVATAR_STREAM_SIZE);
- common_start_element('a', array('href' => $profile->profileurl));
+ common_element_start('a', array('href' => $profile->profileurl));
common_element('img', array('src' => ($avatar) ? $avatar->url : DEFAULT_STREAM_AVATAR,
'class' => 'avatar stream',
'width' => AVATAR_STREAM_SIZE,
'alt' =>
($profile->fullname) ? $profile->fullname :
$profile->nickname));
- common_end_element('a');
+ common_element_end('a');
common_element('a', array('href' => $profile->profileurl,
'class' => 'nickname'),
$profile->nickname);
common_element('a', array('class' => 'notice',
'href' => $noticeurl),
common_date_string($notice->created));
- common_end_element('div');
+ common_element_end('div');
}
}