version 1.42, 2008/12/15 16:37:44
|
version 1.45, 2009/02/10 09:30:16
|
Line 306 sub handler {
|
Line 306 sub handler {
|
my ($blocked,$blocktext,$disabled,$disabletext); |
my ($blocked,$blocktext,$disabled,$disabletext); |
if (!&Apache::lonnet::is_course($udom,$uname)) { |
if (!&Apache::lonnet::is_course($udom,$uname)) { |
($blocked,$blocktext) = &blocking_blogdisplay($uname,$udom,$html,$filterfeedname); |
($blocked,$blocktext) = &blocking_blogdisplay($uname,$udom,$html,$filterfeedname); |
$disabled = &Apache::lonnet::usertools_access($uname,$udom,'blog'); |
if (&Apache::lonnet::usertools_access($uname,$udom,'blog')) { |
if ($disabled) { |
$disabled = 0; |
|
} else { |
|
$disabled = 1; |
if ($html) { |
if ($html) { |
$disabletext = '<h2>'.&mt('No user blog available') .'</h2>'. |
$disabletext = '<h2>'.&mt('No user blog available') .'</h2>'. |
&mt('This is a result of one of the following:').'<ul>'. |
&mt('This is a result of one of the following:').'<ul>'. |
Line 389 sub handler {
|
Line 391 sub handler {
|
# Add a new feed |
# Add a new feed |
if (($html) && ($edit)) { |
if (($html) && ($edit)) { |
$r->print('<form method="post" name="makenewfeed">'); |
$r->print('<form method="post" name="makenewfeed">'); |
$r->print(&mt('Name for New Feed').": <input type='text' size='40' name='namenewblog' />"); |
$r->print(&mt('Name').": <input type='text' size='40' name='namenewblog' />"); |
$r->print('<input type="submit" value="'.&mt('Start a New Feed').'" />'); |
$r->print('<input type="submit" value="'.&mt('New Feed').'" />'); |
$r->print('</form>'); |
$r->print('</form>'); |
} |
} |
if ($displayfeedname) { # this is an existing feed |
if ($displayfeedname) { # this is an existing feed |
Line 507 sub handler {
|
Line 509 sub handler {
|
'private' => 'private', |
'private' => 'private', |
'hidden' => 'hidden', |
'hidden' => 'hidden', |
'delete' => 'delete', |
'delete' => 'delete', |
'store' => 'Save changes', |
'store' => 'Select', |
'title' => 'Title', |
'title' => 'Title', |
'link' => 'Link', |
'link' => 'Link', |
'description' => 'Description', |
'description' => 'Description', |
Line 587 ENDEDIT
|
Line 589 ENDEDIT
|
if ($html) { |
if ($html) { |
$r->print('</ul>'); |
$r->print('</ul>'); |
if ($edit) { |
if ($edit) { |
$r->print('<input type="hidden" name="newid" value="'.$newid.'"/><input type="submit" value="'.&mt('Save Marked Changes').'" />'. |
$r->print('<input type="hidden" name="newid" value="'.$newid.'"/><input type="submit" value="'.&mt('Save Selected').'" />'. |
($displayoption eq 'hidden'?'<input type="submit" name="advertisethisblog" value="'.&mt('Advertise this Feed').'" />': |
($displayoption eq 'hidden'?'<input type="submit" name="advertisethisblog" value="'.&mt('Advertise this Feed').'" />': |
'<input type="submit" name="hidethisblog" value="'.&mt('Hide this Feed').'" />')); |
'<input type="submit" name="hidethisblog" value="'.&mt('Hide this Feed').'" />')); |
} |
} |