MDL-73368 mod_bigbluebuttonbn: update activity icon
* Add the new icon (svg and png) * Remove unused icon and font (the glyph was used once in the removed style)
@@ -31,7 +31,7 @@ $addons = [
|
||||
'coursebigbluebuttonbn' => [ // Handler unique name (can be anything).
|
||||
'displaydata' => [
|
||||
'title' => 'pluginname',
|
||||
'icon' => $CFG->wwwroot . '/mod/bigbluebuttonbn/pix/icon.gif',
|
||||
'icon' => $CFG->wwwroot . '/mod/bigbluebuttonbn/pix/icon.png',
|
||||
'class' => '',
|
||||
],
|
||||
'delegate' => 'CoreCourseModuleDelegate', // Delegate (where to display the link to the add-on).
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMid meet">
|
||||
<metadata>Generated by Fontastic.me</metadata>
|
||||
<defs>
|
||||
<font id="bigbluebutton-font" horiz-adv-x="512">
|
||||
<font-face font-family="bigbluebutton-font" units-per-em="512" ascent="480" descent="-32"/>
|
||||
<missing-glyph horiz-adv-x="512" />
|
||||
|
||||
<glyph glyph-name="bigbluebutton" unicode="" d="M12 256c0-135 109-244 244-244 135 0 244 109 244 244 0 135-109 244-244 244-135 0-244-109-244-244m363-74c0-21-8-38-22-52-15-15-32-22-52-22l-89 0c-21 0-38 7-53 22-14 14-22 31-22 52l0 222c16 0 30-7 41-23 11-15 17-34 17-55l0-144c0-12 5-17 17-17l89 0c11 0 16 5 16 17l0 68c0 11-5 17-16 17l-18 0c-22 1-41 7-56 18-15 10-23 24-23 39l97 0c20 0 37-7 52-21 14-15 22-32 22-53z"/>
|
||||
</font></defs></svg>
|
||||
|
Before Width: | Height: | Size: 889 B |
@@ -71,6 +71,7 @@ function bigbluebuttonbn_supports($feature) {
|
||||
FEATURE_GRADE_HAS_GRADE => false,
|
||||
FEATURE_GRADE_OUTCOMES => false,
|
||||
FEATURE_SHOW_DESCRIPTION => true,
|
||||
FEATURE_MOD_PURPOSE => MOD_PURPOSE_OTHER
|
||||
];
|
||||
if (isset($features[(string) $feature])) {
|
||||
return $features[$feature];
|
||||
@@ -431,15 +432,6 @@ function bigbluebuttonbn_check_updates_since(cm_info $cm, $from, $filter = []) {
|
||||
return $updates;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get icon mapping for font-awesome.
|
||||
*/
|
||||
function mod_bigbluebuttonbn_get_fontawesome_icon_map() {
|
||||
return [
|
||||
'mod_bigbluebuttonbn:icon' => 'icon-bigbluebutton',
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* This function receives a calendar event and returns the action associated with it, or null if there is none.
|
||||
*
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
<?php
|
||||
// This file is part of Moodle - http://moodle.org/
|
||||
//
|
||||
// Moodle is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// Moodle is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* Pix icon handler for Totara
|
||||
*
|
||||
* @package mod_bigbluebuttonbn
|
||||
* @copyright 2010 onwards, Blindside Networks Inc
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @author Jesus Federico (jesus [at] blindsidenetworks [dt] com)
|
||||
*/
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$icons = [
|
||||
'mod_bigbluebuttonbn|icon' => [
|
||||
'data' => [
|
||||
'classes' => 'icon-bigbluebutton',
|
||||
],
|
||||
],
|
||||
];
|
||||
|
Before Width: | Height: | Size: 7.6 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 5.1 KiB |
|
Before Width: | Height: | Size: 5.4 KiB |
|
Before Width: | Height: | Size: 6.1 KiB |
@@ -1,28 +0,0 @@
|
||||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||
<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMid meet">
|
||||
<metadata>
|
||||
<json>
|
||||
<![CDATA[
|
||||
{
|
||||
"fontFamily": "bigbluebutton",
|
||||
"majorVersion": 1,
|
||||
"minorVersion": 0,
|
||||
"version": "Version 1.0",
|
||||
"fontId": "bigbluebutton",
|
||||
"psName": "bigbluebutton",
|
||||
"subFamily": "Regular",
|
||||
"fullName": "bigbluebutton",
|
||||
"description": "Font generated by IcoMoon."
|
||||
}
|
||||
]]>
|
||||
</json>
|
||||
</metadata>
|
||||
<defs>
|
||||
<font id="bigbluebutton" horiz-adv-x="1024">
|
||||
<font-face units-per-em="1024" ascent="960" descent="-64" />
|
||||
<missing-glyph horiz-adv-x="1024" />
|
||||
<glyph unicode=" " horiz-adv-x="512" d="" />
|
||||
<glyph unicode="🌑" d="M1025.284 449.788c0-282.77-229.23-512-512-512s-512 229.23-512 512c0 282.77 229.23 512 512 512s512-229.23 512-512z" />
|
||||
<glyph unicode="🌒" d="M285.368 761.582l0.804-466.185 1.608-10.449 3.215-13.664 4.019-8.038 4.019-12.86 6.43-11.253 12.86-14.468 9.645-10.449 7.234-5.626 6.43-7.234 11.253-8.841 15.272-8.841 9.645-6.43 12.86-2.411 14.468-5.626 249.168 0.804 12.86 5.626 11.253 6.43 12.86 10.449 13.664 8.841 5.626 5.626 10.449 8.038 9.645 9.645 7.234 8.038 7.234 8.841 8.038 14.468 6.43 16.879 0.804 207.372-1.607 16.075-6.43 20.898-10.449 16.879-10.449 14.468-12.86 13.664-12.057 12.057-10.449 9.645-12.86 8.038-16.879 8.841-17.683 0.804-12.86 0.804-214.606 3.215v-16.075l2.411-12.86 5.626-16.879 12.86-16.879 12.057-9.645 16.879-13.664 17.683-9.645 32.151-13.664 23.309-3.215 27.328-1.608h46.619l12.057-2.411 10.449-8.038 2.411-15.272v-155.931l-3.215-12.057-7.234-7.234-208.176-1.608-10.449 1.608-7.234 8.841-3.215 12.86v339.19l-3.215 16.075-3.215 10.449-8.841 15.272-6.43 13.664-8.038 12.057-8.841 10.449-11.253 11.253-10.449 11.253-14.468 10.449-10.449 4.019-11.253 1.608-12.057 3.215-9.645-1.608z" />
|
||||
</font></defs></svg>
|
||||
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 700 B |
@@ -1,55 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 16.0.4, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
width="24px" height="24px" viewBox="0 0 30 30" enable-background="new 0 0 30 30" xml:space="preserve" preserveAspectRatio="xMinYMid meet">
|
||||
<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="-58.9473" y1="84.1865" x2="58.9479" y2="-84.1852">
|
||||
<stop offset="0" style="stop-color:#283274"/>
|
||||
<stop offset="0.7088" style="stop-color:#293275"/>
|
||||
<stop offset="0.967" style="stop-color:#273F87"/>
|
||||
</linearGradient>
|
||||
<symbol id="New_Symbol" viewBox="-107.423 -107.423 214.847 214.846">
|
||||
<g>
|
||||
<path fill="url(#SVGID_1_)" stroke="#5D6AA4" stroke-width="9.3191" d="M102.765,0c0-56.755-46.009-102.764-102.765-102.764
|
||||
c-56.754,0-102.764,46.009-102.764,102.764S-56.754,102.764,0,102.764C56.756,102.764,102.765,56.755,102.765,0z"/>
|
||||
|
||||
<linearGradient id="SVGID_2_" gradientUnits="userSpaceOnUse" x1="-75.0186" y1="112.8037" x2="-15.8528" y2="28.3063" gradientTransform="matrix(1 0 0 1 18.4946 -31.9512)">
|
||||
<stop offset="0" style="stop-color:#BEC7E5"/>
|
||||
<stop offset="0.0956" style="stop-color:#B5BEDE"/>
|
||||
<stop offset="0.2524" style="stop-color:#9CA5CC"/>
|
||||
<stop offset="0.4508" style="stop-color:#747DAE"/>
|
||||
<stop offset="0.6809" style="stop-color:#3D4684"/>
|
||||
<stop offset="0.7582" style="stop-color:#293275"/>
|
||||
</linearGradient>
|
||||
<path fill="url(#SVGID_2_)" d="M0.282,98.502C26.323,98.31,54.293,87.893,74.49,63.84C73.631,43.207,36.703,22.057,5.886-1.229
|
||||
c-25.857-19.538-65.427-37.86-92.487-45.059c-25.73,49.263-7.016,96.619,25.25,123.238C-46.256,90.16-23.508,98.679,0.282,98.502z
|
||||
"/>
|
||||
</g>
|
||||
<g>
|
||||
<g>
|
||||
<path d="M55.602-25.561c0-8.678-3.055-16.072-9.16-22.179c-6.11-6.109-13.501-9.16-22.179-9.16h-37.367
|
||||
c-8.679,0-16.073,3.051-22.179,9.16c-6.11,6.106-9.162,13.501-9.162,22.179v93.779c6.656,0,12.336-3.254,17.046-9.764
|
||||
c4.708-6.509,7.062-14.344,7.062-23.505v-60.511c0-4.821,2.411-7.231,7.232-7.231h37.367c4.821,0,7.231,2.41,7.231,7.231V3.128
|
||||
c0,4.66-2.41,7.07-7.231,7.232H17.03c-9.323,0.324-17.2,2.757-23.626,7.304c-6.43,4.543-9.643,10.145-9.643,16.805h40.501
|
||||
c8.678,0,16.068-3.056,22.179-9.161c6.105-6.11,9.16-13.5,9.16-22.18V-25.561z"/>
|
||||
</g>
|
||||
</g>
|
||||
<g opacity="0.46">
|
||||
<g>
|
||||
<path fill="#FFFFFF" d="M55.602-25.561c0-8.678-3.055-16.072-9.16-22.179c-6.11-6.109-13.501-9.16-22.179-9.16h-37.367
|
||||
c-8.679,0-16.073,3.051-22.179,9.16c-6.11,6.106-9.162,13.501-9.162,22.179v93.779c6.656,0,12.336-3.254,17.046-9.764
|
||||
c4.708-6.509,7.062-14.344,7.062-23.505v-60.511c0-4.821,2.411-7.231,7.232-7.231h37.367c4.821,0,7.231,2.41,7.231,7.231V3.128
|
||||
c0,4.66-2.41,7.07-7.231,7.232H17.03c-9.323,0.324-17.2,2.757-23.626,7.304c-6.43,4.543-9.643,10.145-9.643,16.805h40.501
|
||||
c8.678,0,16.068-3.056,22.179-9.161c6.105-6.11,9.16-13.5,9.16-22.18V-25.561z"/>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
<path fill="#FFFFFF" d="M53.829-26.788c0-8.678-3.055-16.072-9.16-22.179c-6.11-6.109-13.501-9.16-22.18-9.16h-37.367
|
||||
c-8.679,0-16.073,3.051-22.179,9.16c-6.109,6.106-9.16,13.501-9.16,22.179v93.779c6.655,0,12.336-3.255,17.045-9.764
|
||||
c4.708-6.509,7.062-14.345,7.062-23.505v-60.511c0-4.821,2.41-7.231,7.232-7.231h37.367c4.821,0,7.232,2.41,7.232,7.231V1.901
|
||||
c0,4.66-2.411,7.07-7.232,7.232h-7.232C5.935,9.457-1.942,11.89-8.368,16.438c-6.43,4.542-9.644,10.144-9.644,16.803h40.501
|
||||
c8.679,0,16.069-3.055,22.18-9.16c6.105-6.109,9.16-13.5,9.16-22.179V-26.788z"/>
|
||||
</g>
|
||||
</symbol>
|
||||
<use xlink:href="#New_Symbol" width="214.847" height="214.846" x="-107.423" y="-107.423" transform="matrix(0.1376 0 0 -0.1376 14.9995 15)" overflow="visible"/>
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<circle cx="12" cy="12" r="12" fill="#0F4D9D"/>
|
||||
<path d="M8 6.3999V14.7946C8 15.5714 8.27311 16.2332 8.82005 16.7799C9.36663 17.3267 10.0285 17.5999 10.8053 17.5999H14.1503C14.9272 17.5999 15.5887 17.3267 16.1357 16.7799C16.6822 16.2332 16.9558 15.5714 16.9558 14.7946V12.2265C16.9558 11.4495 16.6822 10.788 16.1357 10.2411C15.5887 9.6945 14.9272 9.42103 14.1503 9.42103H10.5249C10.5249 10.0172 10.8126 10.5186 11.3882 10.9253C11.9634 11.3323 12.6684 11.55 13.503 11.579H14.1503C14.5818 11.5935 14.7977 11.8093 14.7977 12.2265V14.7946C14.7977 15.2261 14.5818 15.4419 14.1503 15.4419H10.8053C10.3738 15.4419 10.158 15.2261 10.158 14.7946V9.37795C10.158 8.558 9.94726 7.85658 9.52582 7.27393C9.10429 6.69128 8.59573 6.3999 8 6.3999Z" fill="white"/>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 850 B |
@@ -1,33 +1,5 @@
|
||||
@charset "UTF-8";
|
||||
|
||||
/* bigbluebutton-font */
|
||||
@font-face {
|
||||
font-family: "bigbluebutton-font";
|
||||
src:
|
||||
url("../../../../mod/bigbluebuttonbn/fonts/bigbluebutton-font.woff") format("woff"),
|
||||
url("../../../../mod/bigbluebuttonbn/fonts/bigbluebutton-font.ttf") format("truetype"),
|
||||
url("../../../../mod/bigbluebuttonbn/fonts/bigbluebutton-font.svg#bigbluebutton-font") format("svg");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
[class^="icon-bigbluebutton"]:before,
|
||||
[class*=" icon-bigbluebutton"]:before {
|
||||
font-family: "bigbluebutton-font";
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
font-variant: normal;
|
||||
text-transform: none;
|
||||
speak: none;
|
||||
line-height: 1;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.icon-bigbluebutton:before {
|
||||
content: "\e099";
|
||||
}
|
||||
|
||||
/* bigbluebuttonbn resources */
|
||||
.recording-thumbnail {
|
||||
border: 1px solid #ddd;
|
||||
|
||||
@@ -441,17 +441,6 @@ class lib_test extends \advanced_testcase {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check font awesome icon map
|
||||
*
|
||||
* @covers ::mod_bigbluebuttonbn_get_fontawesome_icon_map
|
||||
*/
|
||||
public function test_mod_bigbluebuttonbn_get_fontawesome_icon_map() {
|
||||
$this->resetAfterTest();
|
||||
$this->assertEquals(['mod_bigbluebuttonbn:icon' => 'icon-bigbluebutton'],
|
||||
mod_bigbluebuttonbn_get_fontawesome_icon_map());
|
||||
}
|
||||
|
||||
/**
|
||||
* Check event action (calendar)
|
||||
*
|
||||
|
||||