if (is_file($CFG->dirroot .'/blocks/'. $this->name() .'/config_instance.html')) {
print_simple_box_start('center', '', '', 5, 'blockconfiginstance');
- print_location_comment(__FILE__,__LINE__);
include($CFG->dirroot .'/blocks/'. $this->name() .'/config_instance.html');
print_simple_box_end();
- print_location_comment(__FILE__,__LINE__);
} else {
notice(get_string('blockconfigbad'), str_replace('blockaction=', 'dummy=', qualified_me()));
}
$item['link'] = str_replace('&', '&', $item['link']);
- $returnstring .= '<li><div class="link"><a href="'. $item['link'] .'" target="_blank">'. $item['title'] . "</a></div>\n";
+ $returnstring .= '<li><div class="link"><a href="'. $item['link'] .'">'. $item['title'] . "</a></div>\n";
if ($display_description && !empty($item['description'])) {
$item['description'] = break_up_long_words($item['description'], 30);
}
}
-?>
\ No newline at end of file
+?>
print "<!-- code came from " . __FILE__ . " at line " . __LINE__ . ". -->\n";
} else {
global $act, $url, $rssid, $preferredtitle, $shared;
- print '</form>'; // Closes off page form
-
+ print '</div></form></div>'; // Closes off page form
$context = get_context_instance(CONTEXT_BLOCK, $this->instance->id);
print_box_start();
rss_display_feeds($id, $USER->id, '', $context);
rss_print_form($act, $url, $rssid, $preferredtitle, $shared, $id, $context);
- print_box_end();
+ // Do NOT print_box_end() here, this is taken care of by blocks/moodleblock.class.php:582
}
?>
}
.blockconfigtable #rssfeeds {
- width: 100%;
+ margin-left: auto;
+ margin-right: auto;
+ background-color: blue;
}
.blockconfigtable #rssfeeds td.actions {
if ($blockobject === false) {
break;
}
-
+
// First of all check to see if the block wants to be edited
if(!$blockobject->user_can_edit()) {
break;
margin-top: 5px;
}
-#rss_table {
+#rssfeeds {
margin-left: auto;
margin-right: auto;
}
+
+#block_rss {
+ text-align: center;
+}
+
/***
*** Blogs
***/