2005-05-15 03:01:19 +00:00
|
|
|
<?php // $Id$
|
|
|
|
/// This file to be included so we can assume config.php has already been included.
|
2005-05-15 14:35:41 +00:00
|
|
|
/// We also assume that $inactive, $activetab and $currentaction have been set
|
2005-05-15 03:01:19 +00:00
|
|
|
|
2005-08-11 12:45:38 +00:00
|
|
|
global $USER;
|
|
|
|
$tabs = $row = array();
|
2005-05-15 03:01:19 +00:00
|
|
|
|
2009-05-06 09:15:33 +00:00
|
|
|
// TODO
|
2007-12-20 16:25:49 +00:00
|
|
|
if (empty($this->instance->pinned)) {
|
|
|
|
$context = get_context_instance(CONTEXT_BLOCK, $this->instance->id);
|
|
|
|
} else {
|
|
|
|
$context = get_context_instance(CONTEXT_SYSTEM); // pinned blocks do not have own context
|
|
|
|
}
|
2006-09-12 06:57:05 +00:00
|
|
|
|
|
|
|
if (has_capability('moodle/site:manageblocks', $context)) {
|
2009-05-06 08:55:53 +00:00
|
|
|
$script = $page->url->out(array('instanceid' => $this->instance->id, 'sesskey' => sesskey(), 'blockaction' => 'config', 'currentaction' => 'configblock', 'id' => $id, 'section' => 'rss'));
|
2007-07-30 17:11:55 +00:00
|
|
|
$row[] = new tabobject('configblock', $script,
|
2006-09-12 06:57:05 +00:00
|
|
|
get_string('configblock', 'block_rss_client'));
|
|
|
|
}
|
2005-05-15 03:01:19 +00:00
|
|
|
|
2009-05-06 08:55:53 +00:00
|
|
|
$script = $page->url->out(array('instanceid' => $this->instance->id, 'sesskey' => sesskey(), 'blockaction' => 'config', 'currentaction' => 'managefeeds', 'id' => $id, 'section' => 'rss'));
|
2007-07-30 17:11:55 +00:00
|
|
|
$row[] = new tabobject('managefeeds', $script,
|
2005-08-11 12:45:38 +00:00
|
|
|
get_string('managefeeds', 'block_rss_client'));
|
2005-05-15 14:35:41 +00:00
|
|
|
|
2005-08-11 12:45:38 +00:00
|
|
|
$tabs[] = $row;
|
2005-05-15 03:01:19 +00:00
|
|
|
|
2005-08-11 12:45:38 +00:00
|
|
|
/// Print out the tabs and continue!
|
2007-03-23 07:48:02 +00:00
|
|
|
print "\n".'<div class="tabs">'."\n";
|
2005-08-11 12:45:38 +00:00
|
|
|
print_tabs($tabs, $currentaction);
|
2007-03-23 07:48:02 +00:00
|
|
|
print '</div>' . print_location_comment(__FILE__, __LINE__, true);
|
|
|
|
?>
|