fix icons input radio and checkbox - refs BT#13094

pull/2487/head
Alex Aragon 8 years ago
parent 6b32bc3881
commit 7fceb8a5c5
  1. 4
      main/attendance/attendance_sheet.php
  2. BIN
      main/img/icons/16/checkbox_off.png
  3. BIN
      main/img/icons/16/checkbox_on.png
  4. BIN
      main/img/icons/16/radio_off.png
  5. BIN
      main/img/icons/16/radio_on.png
  6. 89
      main/img/icons/svg/checkbox_off.svg
  7. 101
      main/img/icons/svg/checkbox_on.svg
  8. 88
      main/img/icons/svg/radio_off.svg
  9. 101
      main/img/icons/svg/radio_on.svg
  10. 8
      main/inc/lib/exercise_show_functions.lib.php

@ -358,7 +358,7 @@ if (api_is_allowed_to_edit(null, true) ||
echo '<input type="checkbox" name="check_presence['.$calendar['id'].'][]" value="'.$user['user_id'].'" '.$disabled.' '.$checked.' />';
echo '<span class="anchor_'.$calendar['id'].'"></span>';
} else {
echo $presence ? Display::return_icon('checkbox_on.gif', get_lang('Presence')) : Display::return_icon('checkbox_off.gif', get_lang('Presence'));
echo $presence ? Display::return_icon('checkbox_on.png', get_lang('Presence'), null , ICON_SIZE_TINY) : Display::return_icon('checkbox_off.png', get_lang('Presence'), null, ICON_SIZE_TINY);
}
} else {
switch ($presence) {
@ -449,7 +449,7 @@ if (api_is_allowed_to_edit(null, true) ||
?>
<tr class="<?php echo $class ?>">
<td>
<?php echo $presence['presence'] ? Display::return_icon('checkbox_on.gif', get_lang('Presence')) : Display::return_icon('checkbox_off.gif', get_lang('Presence')) ?>
<?php echo $presence['presence'] ? Display::return_icon('checkbox_on.png', get_lang('Presence'), null, ICON_SIZE_TINY) : Display::return_icon('checkbox_off.png', get_lang('Presence'), null, ICON_SIZE_TINY) ?>
<?php echo "&nbsp; ".$presence['date_time'] ?>
</td>
</tr>

Binary file not shown.

After

Width:  |  Height:  |  Size: 352 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 526 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 720 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 861 B

@ -0,0 +1,89 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="16"
height="16"
viewBox="0 0 16 16"
id="svg4495"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="checkbox_off.svg">
<defs
id="defs4497">
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4454"
id="linearGradient4430"
x1="142.61438"
y1="114.5815"
x2="157.99605"
y2="128.21983"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.97238733,0,0,0.97238733,-137.63337,926.83526)" />
<linearGradient
id="linearGradient4454"
inkscape:collect="always">
<stop
id="stop4456"
offset="0"
style="stop-color:#deded6;stop-opacity:1" />
<stop
id="stop4458"
offset="1"
style="stop-color:#ffffff;stop-opacity:1" />
</linearGradient>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="15.839192"
inkscape:cx="7.5055071"
inkscape:cy="4.4819689"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
units="px"
inkscape:window-width="1319"
inkscape:window-height="744"
inkscape:window-x="47"
inkscape:window-y="24"
inkscape:window-maximized="1" />
<metadata
id="metadata4500">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Capa 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-1036.3622)">
<rect
y="1037.0914"
x="0.72928977"
height="14.541419"
width="14.541419"
id="rect4142"
style="opacity:1;fill:url(#linearGradient4430);fill-opacity:1;stroke:#265278;stroke-width:1.45858097;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.7 KiB

@ -0,0 +1,101 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="16"
height="16"
viewBox="0 0 16 16"
id="svg4495"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="checkbox_on.svg">
<defs
id="defs4497">
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4454"
id="linearGradient4430"
x1="142.61438"
y1="114.5815"
x2="157.99605"
y2="128.21983"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(2.4518301,2.0924379e-6)" />
<linearGradient
id="linearGradient4454"
inkscape:collect="always">
<stop
id="stop4456"
offset="0"
style="stop-color:#deded6;stop-opacity:1" />
<stop
id="stop4458"
offset="1"
style="stop-color:#ffffff;stop-opacity:1" />
</linearGradient>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="15.839192"
inkscape:cx="7.5055071"
inkscape:cy="4.4819689"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
units="px"
inkscape:window-width="1319"
inkscape:window-height="744"
inkscape:window-x="47"
inkscape:window-y="24"
inkscape:window-maximized="1" />
<metadata
id="metadata4500">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Capa 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-1036.3622)">
<g
transform="matrix(0.97238733,0,0,0.97238733,-140.0175,926.83526)"
id="g4476"
inkscape:export-filename="/var/www/chamilo11/main/img/icons/16/checkbox_on.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<rect
style="opacity:1;fill:url(#linearGradient4430);fill-opacity:1;stroke:#265278;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect4142"
width="14.954349"
height="14.954349"
x="144.74355"
y="113.38715" />
<path
style="fill:#20a41f;fill-opacity:1"
inkscape:connector-curvature="0"
d="m 155.78125,116.41367 -5.34081,5.3408 -1.78026,-1.78027 -1.78027,1.78027 3.56053,3.56052 7.12107,-7.12106 -1.78026,-1.78026 z"
id="path4205" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.1 KiB

@ -0,0 +1,88 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="16"
height="16"
viewBox="0 0 16 16"
id="svg4495"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="radio_off.svg">
<defs
id="defs4497">
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4448"
id="linearGradient4468"
gradientUnits="userSpaceOnUse"
x1="143.23439"
y1="92.668205"
x2="155.69041"
y2="104.77415"
gradientTransform="matrix(0.97322057,0,0,0.97322057,-138.35469,947.91187)" />
<linearGradient
id="linearGradient4448"
inkscape:collect="always">
<stop
id="stop4450"
offset="0"
style="stop-color:#deded6;stop-opacity:1" />
<stop
id="stop4452"
offset="1"
style="stop-color:#ffffff;stop-opacity:1" />
</linearGradient>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="15.839192"
inkscape:cx="7.5055071"
inkscape:cy="4.4819689"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
units="px"
inkscape:window-width="1319"
inkscape:window-height="744"
inkscape:window-x="47"
inkscape:window-y="24"
inkscape:window-maximized="1" />
<metadata
id="metadata4500">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Capa 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-1036.3622)">
<circle
id="circle4138"
style="opacity:1;fill:url(#linearGradient4468);fill-opacity:1;stroke:#265278;stroke-width:1.45983088;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
r="7.2700844"
cy="1044.3622"
cx="8.0000086" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.6 KiB

@ -0,0 +1,101 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="16"
height="16"
viewBox="0 0 16 16"
id="svg4495"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="radio_on.svg">
<defs
id="defs4497">
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4448"
id="linearGradient4468"
gradientUnits="userSpaceOnUse"
x1="143.23439"
y1="92.668205"
x2="155.69041"
y2="104.77415"
gradientTransform="translate(0.03231812,0.0297699)" />
<linearGradient
id="linearGradient4448"
inkscape:collect="always">
<stop
id="stop4450"
offset="0"
style="stop-color:#deded6;stop-opacity:1" />
<stop
id="stop4452"
offset="1"
style="stop-color:#ffffff;stop-opacity:1" />
</linearGradient>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="15.839192"
inkscape:cx="7.5055071"
inkscape:cy="4.4819689"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
units="px"
inkscape:window-width="1319"
inkscape:window-height="744"
inkscape:window-x="47"
inkscape:window-y="24"
inkscape:window-maximized="1" />
<metadata
id="metadata4500">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Capa 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-1036.3622)">
<g
transform="matrix(0.97322057,0,0,0.97322057,-138.38614,947.8829)"
id="g4470"
inkscape:export-filename="/var/www/chamilo11/main/img/icons/16/radio_on.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<circle
cx="150.41415"
cy="99.134048"
r="7.4701304"
style="opacity:1;fill:url(#linearGradient4468);fill-opacity:1;stroke:#265278;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="circle4138" />
<circle
r="4.076179"
cy="99.134048"
cx="150.41415"
id="path4236"
style="opacity:1;fill:#20a41f;fill-opacity:1;stroke:none;stroke-width:1.84473765;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.2 KiB

@ -321,19 +321,19 @@ class ExerciseShowFunctions
$icon = in_array($answerType, array(UNIQUE_ANSWER, UNIQUE_ANSWER_NO_OPTION)) ? 'radio' : 'checkbox';
$icon .= $studentChoice ? '_on' : '_off';
$icon .= '.gif';
$icon .= '.png';
$iconAnswer = in_array($answerType, array(UNIQUE_ANSWER, UNIQUE_ANSWER_NO_OPTION)) ? 'radio' : 'checkbox';
$iconAnswer .= $answerCorrect ? '_on' : '_off';
$iconAnswer .= '.gif';
$iconAnswer .= '.png';
?>
<tr>
<td width="5%">
<?php echo Display::return_icon($icon); ?>
<?php echo Display::return_icon($icon, null, null, ICON_SIZE_TINY); ?>
</td>
<td width="5%">
<?php if (!$hide_expected_answer) {
echo Display::return_icon($iconAnswer);
echo Display::return_icon($iconAnswer, null, null, ICON_SIZE_TINY);
} else {
echo "-";
} ?>

Loading…
Cancel
Save