~ubuntu-branches/ubuntu/natty/moodle/natty

« back to all changes in this revision

Viewing changes to blocks/rss_client/block_rss_client_action.php

  • Committer: Bazaar Package Importer
  • Author(s): Tomasz Muras
  • Date: 2010-10-30 12:19:28 UTC
  • mfrom: (1.1.12 upstream) (3.1.10 squeeze)
  • Revision ID: james.westby@ubuntu.com-20101030121928-qzobi6mctpnk4dif
Tags: 1.9.9.dfsg2-2
* Added Romanian translation
* Updated Japanese translation (closes: #596820)
* Backporting security fixes from Moodle 1.9.10 (closes: #601384)
   - Updated embedded CAS to 1.1.3
   - Added patch for MDL-24523:
     clean_text() not filtering text in markdown format
   - Added patch for MDL-24810 and upgraded customized HTML Purifier to 4.2.0 
   - Added patch for MDL-24258:
     students can delete their forum posts later than $CFG->maxeditingtime 
     under certain conditions
   - Added patch for MDL-23377:
     Can't delete quiz attempts in course without enrolled students

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php //$Id: block_rss_client_action.php,v 1.54.2.6 2008/06/08 18:29:51 dongsheng Exp $
 
1
<?php //$Id: block_rss_client_action.php,v 1.54.2.7 2009/07/29 06:21:50 tjhunt Exp $
2
2
 
3
3
/*******************************************************************
4
4
* This file contains no classes. It will display a list of existing feeds
5
5
* defined for the site and allow add/edit/delete of site feeds.
6
6
*
7
7
* @author Daryl Hawes
8
 
* @version  $Id: block_rss_client_action.php,v 1.54.2.6 2008/06/08 18:29:51 dongsheng Exp $
 
8
* @version  $Id: block_rss_client_action.php,v 1.54.2.7 2009/07/29 06:21:50 tjhunt Exp $
9
9
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
10
10
* @package base
11
11
******************************************************************/
276
276
            print '<a href="'. $rss->items[$y]['link'] .'" target="_blank"><strong>'. $rss->items[$y]['title'];
277
277
            print '</strong></a>'."\n";
278
278
            print '</td>'."\n";
279
 
            if (file_exists($CFG->dirroot .'/blog/lib.php')) {
280
 
                //Blog module is installed - provide "blog this" link
281
 
                print '<td align="right">'."\n";
282
 
 
283
 
                /// MDL-9291, blog this feature needs further discussion/implementation
284
 
                /// temporarily disabling for now.
285
 
 
286
 
                // print '<img src="'. $CFG->pixpath .'/blog/blog.gif" alt="'. get_string('blogthis', 'blog').'" title="'. get_string('blogthis', 'blog') .'" border="0" align="middle" />'."\n";
287
 
                //print '<a href="'. $CFG->wwwroot .'/blog/blogthis.php?userid='. $USER->id .'&act=use&item='. $y .'&rssid='. $rssid .'"><small><strong>'. get_string('blogthis', 'blog') .'</strong></small></a>'."\n";
288
 
            } else {
289
 
                print '<td>&nbsp;';
290
 
            }
 
279
            print '<td align="right">'."\n";
 
280
 
 
281
            // MDL-9291, blog this feature needs further discussion/implementation
 
282
            // temporarily disabling for now.
 
283
 
 
284
            // print '<img src="'. $CFG->pixpath .'/blog/blog.gif" alt="'. get_string('blogthis', 'blog').'" title="'. get_string('blogthis', 'blog') .'" border="0" align="middle" />'."\n";
 
285
            // print '<a href="'. $CFG->wwwroot .'/blog/blogthis.php?userid='. $USER->id .'&act=use&item='. $y .'&rssid='. $rssid .'"><small><strong>'. get_string('blogthis', 'blog') .'</strong></small></a>'."\n";
291
286
            print '</td></tr>'."\n";
292
 
            print '<tr><td colspan=2><small>';
 
287
            print '<tr><td colspan="2"><small>';
293
288
            print $rss->items[$y]['description'] .'</small></td></tr>'."\n";
294
289
        }
295
290
        print '</table>'."\n";