diff --git a/pix/bg/bg-cabecalho.png b/pix/bg/bg-cabecalho.png new file mode 100755 index 0000000..fd640de Binary files /dev/null and b/pix/bg/bg-cabecalho.png differ diff --git a/pix/bg/bg_footer.png b/pix/bg/bg_footer.png new file mode 100755 index 0000000..a12e8df Binary files /dev/null and b/pix/bg/bg_footer.png differ diff --git a/pix/logos/logo-footer.png b/pix/logos/logo-footer.png new file mode 100644 index 0000000..d502fd8 Binary files /dev/null and b/pix/logos/logo-footer.png differ diff --git a/pix/logos/logo-footer2x.png b/pix/logos/logo-footer2x.png new file mode 100644 index 0000000..7f1616c Binary files /dev/null and b/pix/logos/logo-footer2x.png differ diff --git a/pix/logos/logo-topo.png b/pix/logos/logo-topo.png new file mode 100644 index 0000000..75ddae5 Binary files /dev/null and b/pix/logos/logo-topo.png differ diff --git a/pix_core/f/pdf-24.png b/pix_core/f/pdf-24.png new file mode 100644 index 0000000..b400373 Binary files /dev/null and b/pix_core/f/pdf-24.png differ diff --git a/pix_plugins/mod/assign/icon.png b/pix_plugins/mod/assign/icon.png new file mode 100644 index 0000000..9801a04 Binary files /dev/null and b/pix_plugins/mod/assign/icon.png differ diff --git a/pix_plugins/mod/chat/icon.png b/pix_plugins/mod/chat/icon.png new file mode 100644 index 0000000..e7cf856 Binary files /dev/null and b/pix_plugins/mod/chat/icon.png differ diff --git a/pix_plugins/mod/feedback/icon.png b/pix_plugins/mod/feedback/icon.png new file mode 100644 index 0000000..6cb7ff1 Binary files /dev/null and b/pix_plugins/mod/feedback/icon.png differ diff --git a/pix_plugins/mod/folder/icon.png b/pix_plugins/mod/folder/icon.png new file mode 100644 index 0000000..2c069b0 Binary files /dev/null and b/pix_plugins/mod/folder/icon.png differ diff --git a/pix_plugins/mod/forum/icon.png b/pix_plugins/mod/forum/icon.png new file mode 100644 index 0000000..426364e Binary files /dev/null and b/pix_plugins/mod/forum/icon.png differ diff --git a/pix_plugins/mod/lesson/icon.png b/pix_plugins/mod/lesson/icon.png new file mode 100644 index 0000000..b8b058b Binary files /dev/null and b/pix_plugins/mod/lesson/icon.png differ diff --git a/pix_plugins/mod/page/icon.png b/pix_plugins/mod/page/icon.png new file mode 100644 index 0000000..b587f01 Binary files /dev/null and b/pix_plugins/mod/page/icon.png differ diff --git a/pix_plugins/mod/quiz/icon.png b/pix_plugins/mod/quiz/icon.png new file mode 100644 index 0000000..749e98c Binary files /dev/null and b/pix_plugins/mod/quiz/icon.png differ diff --git a/pix_plugins/mod/url/icon.png b/pix_plugins/mod/url/icon.png new file mode 100644 index 0000000..ba7db43 Binary files /dev/null and b/pix_plugins/mod/url/icon.png differ diff --git a/renderers.php b/renderers.php index 9257d47..612300b 100644 --- a/renderers.php +++ b/renderers.php @@ -25,3 +25,4 @@ defined('MOODLE_INTERNAL') || die(); require_once('renderers/core_renderer.php'); require_once('renderers/course_renderer.php'); +//require_once('renderers/block_news_items_renderer.php'); diff --git a/renderers/block_news_items_renderer.php b/renderers/block_news_items_renderer.php new file mode 100644 index 0000000..bcd791f --- /dev/null +++ b/renderers/block_news_items_renderer.php @@ -0,0 +1,153 @@ +. + +/** + * Snap assignment renderer. + * Overrides core assignment renderer, this code is not great. + * Unfortunatly tried to keep as close to original renderer for maintainability. + * + * @package theme_snap + * @copyright Copyright (c) 2017 Blackboard Inc. + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +//namespace theme_qualisaude\output; + +defined('MOODLE_INTERNAL') || die(); + +//require_once($CFG->dirroot.'/blocks/news_items/block_news_items.php'); +//require_once($CFG->dirroot.'/blocks/moodleblock.class.php'); + +class theme_qualisaude_block_news_items_renderer extends block_news_items_renderer { + + + function get_content() { + global $CFG, $USER; + + if ($this->content !== NULL) { + return $this->content; + } + + $this->content = new stdClass; + $this->content->text = ''; + $this->content->footer = ''; + + if (empty($this->instance)) { + return $this->content; + } + + + if ($this->page->course->newsitems) { // Create a nice listing of recent postings + + require_once($CFG->dirroot.'/mod/forum/lib.php'); // We'll need this + + $text = ''; + + if (!$forum = forum_get_course_forum($this->page->course->id, 'news')) { + return ''; + } + + $modinfo = get_fast_modinfo($this->page->course); + if (empty($modinfo->instances['forum'][$forum->id])) { + return ''; + } + $cm = $modinfo->instances['forum'][$forum->id]; + + if (!$cm->uservisible) { + return ''; + } + + $context = context_module::instance($cm->id); + + /// User must have perms to view discussions in that forum + if (!has_capability('mod/forum:viewdiscussion', $context)) { + return ''; + } + + /// First work out whether we can post to this group and if so, include a link + $groupmode = groups_get_activity_groupmode($cm); + $currentgroup = groups_get_activity_group($cm, true); + + if (forum_user_can_post_discussion($forum, $currentgroup, $groupmode, $cm, $context)) { + $text .= '
'; + } + + /// Get all the recent discussions we're allowed to see + + // This block displays the most recent posts in a forum in + // descending order. The call to default sort order here will use + // that unless the discussion that post is in has a timestart set + // in the future. + // This sort will ignore pinned posts as we want the most recent. + $sort = forum_get_default_sort_order(true, 'p.modified', 'd', false); + if (! $discussions = forum_get_discussions($cm, $sort, false, + -1, $this->page->course->newsitems, + false, -1, 0, FORUM_POSTS_ALL_USER_GROUPS) ) { + $text .= '('.get_string('nonews', 'forum').')'; + $this->content->text = $text; + return $this->content; + } + + /// Actually create the listing now + + $strftimerecent = get_string('strftimerecent'); + $strmore = get_string('more', 'forum'); + + /// Accessibility: markup as a list. + $text .= "\n