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\n"; + + $this->content->text = $text; + + $this->content->footer = ''. + get_string('oldertopics', 'forum').' ...'; + + /// If RSS is activated at site and forum level and this forum has rss defined, show link + if (isset($CFG->enablerssfeeds) && isset($CFG->forum_enablerssfeeds) && + $CFG->enablerssfeeds && $CFG->forum_enablerssfeeds && $forum->rsstype && $forum->rssarticles) { + require_once($CFG->dirroot.'/lib/rsslib.php'); // We'll need this + if ($forum->rsstype == 1) { + $tooltiptext = get_string('rsssubscriberssdiscussions','forum'); + } else { + $tooltiptext = get_string('rsssubscriberssposts','forum'); + } + if (!isloggedin()) { + $userid = $CFG->siteguest; + } else { + $userid = $USER->id; + } + + $this->content->footer .= '
'.rss_get_link($context->id, $userid, 'mod_forum', $forum->id, $tooltiptext); + } + + } + + return $this->content; + } + +} diff --git a/scss/preset/custom.scss b/scss/preset/custom.scss index b15c52e..a1e56ff 100644 --- a/scss/preset/custom.scss +++ b/scss/preset/custom.scss @@ -227,6 +227,7 @@ section#inicial{ } #cabecalho-geral .card{ background-color:transparent; + border: 0px; } #cabecalho-geral .breadcrumb .breadcrumb-item{ color:#fff; @@ -241,10 +242,17 @@ section#inicial{ padding-left: 0px; padding-right: 0px; } -#cabecalho-geral div.page-title > h1{ - color:#fff; - font-size: 28px; - font-weight: 700; +#cabecalho-geral{ + div.page-title{ + h1{ + color:#fff; + font-size: 28px; + font-weight: 700; + &.course-title{ + margin-top: 30px; + } + } + } } /* ################################### DASHBOARD ################################# */ @@ -253,4 +261,108 @@ section#inicial{ #region-main{ border: 0px; } -} \ No newline at end of file +} + +/* ################################### CURSO ################################# */ + +.pagelayout-course{ + #region-main{ + border: 0px; + .completionprogress{display: none;} + } +} + +/* ################################### BLOCOS Laterais ################################# */ + +/* Blocos gerais */ +.card{ + border: 0px; + .card-body{ + padding: 0; + .context-header-settings-menu{ + position: absolute; + right: 0px; + } + .card-title{ + color: $color_padrao_azul; + //background-color: #6482c1; + //padding: 10px 15px 5px 15px !important; + //border-radius: 5px 5px 0 0; + //width: auto !important; + //font-size: 14px !important; + } + .card-title:before { + font-family: FontAwesome; + display: inline-block; + padding-right: 10px; + vertical-align: middle; + font-size: 32px; + } + .card-text{ + background: #fff !important; + .card-deck{ + overflow: auto; + .card{ + -webkit-box-shadow: 0 0 6px 3px rgba(0,0,0,.1); + -moz-box-shadow: 0 0 6px 3px rgba(0,0,0,.1); + box-shadow: 0 0 6px 3px rgba(0,0,0,.1); + margin-top: 10px; + } + } + } + } +} + +/* Blocos da lateral */ +#block-region-side-pre{ + .card{ + border: 1px solid $color_padrao_azul; + border-radius: 15px; + padding: 10px; + .card-body{ + .card-title{ + width: 100%; + font-size: 17px!important; + display: table !important; + text-align: center; + font-weight: 700; + } + } + } + .block_news_items{ + .card-text{ + ul{ + li.post{ + display: table; + border-top: 1px solid #bbbbbb; + width: 100%; + margin-top: 10px; + .head{ + display: table-footer-group; + font-size: 12px; + .date{ + display: table-cell; + } + } + .info{ + display: table-header-group; + font-weight: 700; + } + } + } + } + } +} + +.mr-auto{ + //display: none; +} + +.block_recentlyaccessedcourses > .card-body > .card-title:before {content: "\f0ae";} +.block_timeline > .card-body > .card-title:before {content: "\f1da";} +.block_myoverview > .card-body > .card-title:before {content: "\f015";} + +.card-body > .content{ + background-color: #fff; +} + diff --git a/scss/preset/theme.scss b/scss/preset/theme.scss index d72157c..4b9156f 100644 --- a/scss/preset/theme.scss +++ b/scss/preset/theme.scss @@ -2,7 +2,7 @@ $color_olivine_approx: #6482c1; $white: #fff; $color_storm_dust_approx: #656565; -$blaze_orange: #f60; +$blaze_orange: #0A486B; // Cor padrao $color_ebb_approx: #e8e3e3; $color_woodsmoke_approx: #111; $color_alto_approx: #dedede; @@ -42,6 +42,7 @@ $color_trendy_pink_approx: #8e558e; $color_monatana: #373a3c; $color_whisper: #e6e6e6; $color_light_gray: #f8f9fa; +$color_padrao_azul: #0A486B; //fonts $font_0: 'Lato'; @@ -2461,8 +2462,8 @@ table { .card-body { padding: 0; .card-title { - width: 60%; - padding: 15px; + width: 100%; + padding: 0px; margin-bottom: 0; //display: none !important; } diff --git a/style/custom.css b/style/custom.css index c8614c4..74d1a84 100644 --- a/style/custom.css +++ b/style/custom.css @@ -31,55 +31,6 @@ a{color: #474749;} margin-bottom: 2px; } -.card{ - border: 0px; -} -.card > .card-body{ - padding: 0; -} - -.mr-auto{ - display: none; -} - -.card > .card-body .context-header-settings-menu{ - position: absolute; - right: 0px; -} - -.card-body > .card-title{ - color: #fff; - background-color: #6482c1; - padding: 10px 15px 5px 15px !important; - border-radius: 5px 5px 0 0; - width: auto !important; - font-size: 14px !important; -} -.card-body > .card-text{background: #fff !important;} -.card-body > .card-text .card-deck{overflow: auto;} -.card-body > .card-text .card-deck .card{ - -webkit-box-shadow: 0 0 6px 3px rgba(0,0,0,.1); - -moz-box-shadow: 0 0 6px 3px rgba(0,0,0,.1); - box-shadow: 0 0 6px 3px rgba(0,0,0,.1); - margin-top: 10px; -} - -.block > .card-body > .card-title:before { - font-family: FontAwesome; - display: inline-block; - padding-right: 10px; - vertical-align: middle; - font-size: 32px; -} - -.block_recentlyaccessedcourses > .card-body > .card-title:before {content: "\f0ae";} -.block_timeline > .card-body > .card-title:before {content: "\f1da";} -.block_myoverview > .card-body > .card-title:before {content: "\f015";} - -.card-body > .content{ - background-color: #fff; -} - /*############################################################# Barra de progresso*/ /* My */ diff --git a/templates/course.mustache b/templates/course.mustache index 7c2c764..9122fd2 100644 --- a/templates/course.mustache +++ b/templates/course.mustache @@ -58,13 +58,23 @@ {{>theme_qualisaude/header}} +
+
+
+ {{{ output.breadscrumb }}} +

{{coursedata.fullname}}

+
+ {{{ output.edit_buttons }}} +
+
+
- {{{ output.full_header }}} -
-

{{coursedata.fullname}}

-
- {{{progresso}}} + + + + +
{{#hasregionmainsettingsmenu}} @@ -73,6 +83,7 @@
{{/hasregionmainsettingsmenu}}
+ {{{coursedata.summary}}} {{#hasregionmainsettingsmenu}}
{{/hasregionmainsettingsmenu}} diff --git a/templates/edit_buttons.mustache b/templates/edit_buttons.mustache index c07d4ed..cb3c5ea 100644 --- a/templates/edit_buttons.mustache +++ b/templates/edit_buttons.mustache @@ -34,6 +34,19 @@
+
+ {{#contextheader}} +
+ +
+ {{/contextheader}} + + {{#settingsmenu}} +
+ {{{settingsmenu}}} +
+ {{/settingsmenu}} +
{{{pageheadingbutton}}}