+
+ function show_subscribe_form($profile) {
+ common_element_start('form', array('id' => 'subscribe', 'method' => 'POST',
+ 'action' => common_local_url('subscribe')));
+ common_element('input', array('id' => 'subscribeto',
+ 'name' => 'subscribeto',
+ 'type' => 'hidden',
+ 'value' => $profile->nickname));
+ common_element('input', array('type' => 'submit',
+ 'class' => 'submit',
+ 'value' => _t('Subscribe')));
+ common_element_end('form');
+ }
+
+ function show_remote_subscribe_form($profile) {
+ common_element_start('form', array('id' => 'remotesubscribe',
+ 'method' => 'POST',
+ 'action' => common_local_url('remotesubscribe')));
+ common_hidden('nickname', $profile->nickname);
+ common_element('input', array('name' => 'profile_url',
+ 'type' => 'text',
+ 'id' => 'profile_url',
+ 'size' => '15'));
+ common_element('input', array('type' => 'submit',
+ 'id' => 'submit',
+ 'name' => 'submit',
+ 'value' => _t('Subscribe'),
+ 'class' => 'submit'));
+ common_element_end('form');
+ }
+
+ function show_unsubscribe_form($profile) {
+ common_element_start('form', array('id' => 'unsubscribe', 'method' => 'POST',
+ 'action' => common_local_url('unsubscribe')));
+ common_element('input', array('id' => 'unsubscribeto',
+ 'name' => 'unsubscribeto',
+ 'type' => 'hidden',
+ 'value' => $profile->nickname));
+ common_element('input', array('type' => 'submit',
+ 'class' => 'submit',
+ 'value' => _t('Unsubscribe')));
+ common_element_end('form');
+ }
+