add icons addworkuser and fix list links course CT#7539

1.10.x
aragonc 9 years ago
parent 05df7fe881
commit 0ce316e0eb
  1. 160
      app/Resources/public/css/base.css
  2. BIN
      main/img/icons/22/addworkuser.png
  3. BIN
      main/img/icons/22/url.png
  4. BIN
      main/img/icons/32/addworkuser.png
  5. BIN
      main/img/icons/48/addworkuser.png
  6. 1334
      main/img/icons/svg/addworkuser.svg
  7. 184
      main/img/icons/svg/forum_listview.svg
  8. 208
      main/img/icons/svg/forum_nestedview.svg
  9. 206
      main/img/icons/svg/url.svg
  10. 4
      main/inc/ajax/link.ajax.php
  11. 214
      main/inc/lib/link.lib.php
  12. 2
      main/work/work_list_all.php

@ -370,34 +370,36 @@ ul#navigation .report a {
padding: 6px;
border: 1px solid #DDD
}
/* .actions a img{
margin-right: 5px;
}
.actions a{
border: 1px solid #ddd;
border-radius: 5px;
display: inline-block;
margin-left: 5px;
padding: 5px;
background: #ffffff;
background: -moz-linear-gradient(top, #ffffff 0%, #e5e5e5 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#e5e5e5));
background: -webkit-linear-gradient(top, #ffffff 0%,#e5e5e5 100%);
background: -o-linear-gradient(top, #ffffff 0%,#e5e5e5 100%);
background: -ms-linear-gradient(top, #ffffff 0%,#e5e5e5 100%);
background: linear-gradient(to bottom, #ffffff 0%,#e5e5e5 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e5e5e5',GradientType=0 );
text-decoration: none;
margin-right: 5px;
}
.actions a:hover{
background: #f4f4f4;
background: -moz-linear-gradient(top, #f4f4f4 0%, #dddddd 71%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f4f4f4), color-stop(71%,#dddddd));
background: -webkit-linear-gradient(top, #f4f4f4 0%,#dddddd 71%);
background: -o-linear-gradient(top, #f4f4f4 0%,#dddddd 71%);
background: -ms-linear-gradient(top, #f4f4f4 0%,#dddddd 71%);
background: linear-gradient(to bottom, #f4f4f4 0%,#dddddd 71%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f4f4f4', endColorstr='#dddddd',GradientType=0 );
}*/
text-decoration: none;
}
.actions img{
padding: 3px;
border: 1px solid #dcdcdc;
border-radius: 5px;
background: #ffffff; /* Old browsers */
background: -moz-linear-gradient(top, #ffffff 0%, #f6f6f6 47%, #ededed 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(47%,#f6f6f6), color-stop(100%,#ededed)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #ffffff 0%,#f6f6f6 47%,#ededed 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #ffffff 0%,#f6f6f6 47%,#ededed 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #ffffff 0%,#f6f6f6 47%,#ededed 100%); /* IE10+ */
background: linear-gradient(to bottom, #ffffff 0%,#f6f6f6 47%,#ededed 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ededed',GradientType=0 ); /* IE6-9 */
}
.actions img:hover{
background: #ededed; /* Old browsers */
background: -moz-linear-gradient(top, #ededed 2%, #f6f6f6 49%, #ffffff 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(2%,#ededed), color-stop(49%,#f6f6f6), color-stop(100%,#ffffff)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #ededed 2%,#f6f6f6 49%,#ffffff 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #ededed 2%,#f6f6f6 49%,#ffffff 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #ededed 2%,#f6f6f6 49%,#ffffff 100%); /* IE10+ */
background: linear-gradient(to bottom, #ededed 2%,#f6f6f6 49%,#ffffff 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ededed', endColorstr='#ffffff',GradientType=0 ); /* IE6-9 */
}
.actions .btn-toolbar {
margin : 0px;
}
@ -4255,111 +4257,21 @@ li.annoucement{
margin-bottom: 5px;
}
.link_category .head {
background-color: #EFEFEF;
border: 1px solid #CCCCCC;
margin-bottom: 5px;
padding-top: 2px;
padding-right: 2px;
padding-bottom: 2px;
vertical-align: middle;
}
.link_category .body{
margin-left: 32px;
}
.link:nth-child(2n) {
background-color: #F9F9F9;
}
.link{
border-top: 1px solid #DDDDDD;
border-left: 1px solid #DDDDDD;
border-right: 1px solid #DDDDDD;
}
.link:last-child{
border-bottom: 1px solid #DDDDDD;
border-left: 1px solid #DDDDDD;
border-right: 1px solid #DDDDDD;
}
.link{
border-collapse: collapse;
/*border: 1px solid #CCCCCC;*/
padding-top: 6px;
padding-right: 6px;
padding-bottom: 6px;
padding-left: 6px;
vertical-align: middle;
}
.link .icon{
position: absolute;
float: left;
}
.link:hover{
background-color: #E5EDF9;
}
.link .title,
.link .description{
margin-left: 32px;
}
.link .description{
font-weight: normal;
color: #000000;
}
.link.invisible img{
opacity:0.4;
filter:alpha(opacity=40); /* For IE8 and earlier */
margin-top: 15px;
}
.link.invisible .description{
color: #999999;
}
.link .status{
border:none;
border-radius: 0;
background-color: transparent;
width:22px;
height:22px;
margin:0;
padding:0;
display:inline-block;
background-repeat: no-repeat;
background-position:center center;
box-shadow:none;
.link .list-group-item-heading a{
text-decoration: none;
}
.link.invalid .status{
background-image: url('../../main/img/icons/22/error.png');
.link .list-group-item-heading .invisible{
color: #666666;
}
.link.valid .status{
background-image: url('../../main/img/icons/22/accept.png');
.link .list-group-item-text{
font-size: 12px;
}
.btn.validate_link{
border:none;
border-radius: 0;
background-color: transparent;
width:22px;
height:22px;
margin:0;
padding:0;
display:inline-block;
background-image: url('../../main/img/icons/22/preview_view.png');
background-repeat: no-repeat;
background-position:center center;
box-shadow:none;
.link .check-link{
margin-left: 5px;
}
/*
Glossary
*/

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 651 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 44 KiB

@ -0,0 +1,184 @@
<?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="128"
height="128"
viewBox="0 0 128 128"
id="svg25238"
version="1.1"
inkscape:version="0.91 r"
sodipodi:docname="forum_listview.svg">
<defs
id="defs25240">
<linearGradient
inkscape:collect="always"
id="linearGradient14830">
<stop
style="stop-color:#e6e6e6;stop-opacity:1"
offset="0"
id="stop14832" />
<stop
style="stop-color:#ffffff;stop-opacity:1"
offset="1"
id="stop14834" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient14830"
id="linearGradient15204"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(3.8972775,0,0,3.9822222,-722.63696,-2079.0607)"
x1="201.74556"
y1="785.15424"
x2="200.38338"
y2="751.77924" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1.6308594"
inkscape:cx="78.492596"
inkscape:cy="12.383273"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
units="px"
inkscape:window-width="1920"
inkscape:window-height="1051"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1" />
<metadata
id="metadata25243">
<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,-924.3622)">
<g
id="g25439">
<rect
inkscape:export-ydpi="90"
inkscape:export-xdpi="90"
inkscape:export-filename="/var/www/chamilo/main/img/icons/22/forum_listview.png"
y="924.36224"
x="4.6471425e-05"
height="128"
width="128"
id="rect15415"
style="opacity:0.49060005;fill:#cccccc;fill-opacity:0;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<g
transform="matrix(0.953125,0,0,0.953125,3.000041,46.32948)"
id="g25429">
<rect
style="fill:#cccccc;fill-opacity:1;stroke:none"
id="rect15182"
width="110.6377"
height="128"
x="8.6811543"
y="924.36224"
ry="6.8416853"
inkscape:export-filename="/var/www/chamilo/main/img/icons/22/forum_listview.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90" />
<rect
ry="6.3855729"
y="928.62891"
x="12.469862"
height="119.46666"
width="103.81497"
id="rect15184"
style="fill:url(#linearGradient15204);fill-opacity:1;stroke:none"
inkscape:export-filename="/var/www/chamilo/main/img/icons/22/forum_listview.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90" />
<rect
style="opacity:1;fill:#008080;fill-opacity:1;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect15221"
width="17.463566"
height="17.463566"
x="20.615458"
y="941.95099"
inkscape:export-filename="/var/www/chamilo/main/img/icons/22/forum_listview.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90" />
<rect
ry="1.7867612"
y="941.87323"
x="42.733356"
height="17.133371"
width="63.776535"
id="rect15238"
style="fill:#cccccc;fill-opacity:1;stroke:none"
inkscape:export-filename="/var/www/chamilo/main/img/icons/22/forum_listview.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90" />
<rect
y="979.1875"
x="20.615458"
height="17.463566"
width="17.463566"
id="rect15242"
style="opacity:1;fill:#ff6600;fill-opacity:1;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
inkscape:export-filename="/var/www/chamilo/main/img/icons/22/forum_listview.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90" />
<rect
y="1018.7511"
x="20.615458"
height="17.463566"
width="17.463566"
id="rect15262"
style="opacity:1;fill:#2c89a0;fill-opacity:1;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
inkscape:export-filename="/var/www/chamilo/main/img/icons/22/forum_listview.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90" />
<rect
style="fill:#cccccc;fill-opacity:1;stroke:none"
id="rect15532"
width="63.776535"
height="17.133371"
x="43.116169"
y="979.4613"
ry="1.7867612"
inkscape:export-filename="/var/www/chamilo/main/img/icons/22/forum_listview.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90" />
<rect
ry="1.7867612"
y="1018.608"
x="43.116169"
height="17.133371"
width="63.776535"
id="rect15534"
style="fill:#cccccc;fill-opacity:1;stroke:none"
inkscape:export-filename="/var/www/chamilo/main/img/icons/22/forum_listview.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90" />
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 6.5 KiB

@ -0,0 +1,208 @@
<?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="128"
height="128"
viewBox="0 0 128 128"
id="svg25309"
version="1.1"
inkscape:version="0.91 r"
sodipodi:docname="forum_nestedview.svg">
<defs
id="defs25311">
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient14830"
id="linearGradient15568"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(3.8972775,0,0,3.9822222,-722.63704,-2079.0608)"
x1="201.74556"
y1="785.15424"
x2="200.38338"
y2="751.77924" />
<linearGradient
inkscape:collect="always"
id="linearGradient14830">
<stop
style="stop-color:#e6e6e6;stop-opacity:1"
offset="0"
id="stop14832" />
<stop
style="stop-color:#ffffff;stop-opacity:1"
offset="1"
id="stop14834" />
</linearGradient>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="3.2617188"
inkscape:cx="86.334098"
inkscape:cy="32.635371"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
units="px"
inkscape:window-width="1920"
inkscape:window-height="1051"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1" />
<metadata
id="metadata25314">
<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,-924.36216)">
<g
id="g25405"
inkscape:export-filename="/var/www/chamilo/main/img/icons/22/forum_nestedview.png"
inkscape:export-xdpi="15.46875"
inkscape:export-ydpi="15.46875">
<rect
style="opacity:0.49060005;fill:#cccccc;fill-opacity:0;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect15549"
width="128"
height="128"
x="-3.5928577e-05"
y="924.36212"
inkscape:export-filename="/var/www/chamilo/main/img/icons/32/forum_nestedview.png"
inkscape:export-xdpi="130.90909"
inkscape:export-ydpi="130.90909" />
<g
transform="matrix(0.953125,0,0,0.953125,3.0000368,46.329474)"
id="g25392">
<rect
inkscape:export-ydpi="130.90909"
inkscape:export-xdpi="130.90909"
inkscape:export-filename="/var/www/chamilo/main/img/icons/32/forum_nestedview.png"
ry="6.8416853"
y="924.36212"
x="8.6810722"
height="128"
width="110.6377"
id="rect15551"
style="fill:#cccccc;fill-opacity:1;stroke:none" />
<rect
inkscape:export-ydpi="130.90909"
inkscape:export-xdpi="130.90909"
inkscape:export-filename="/var/www/chamilo/main/img/icons/32/forum_nestedview.png"
style="fill:url(#linearGradient15568);fill-opacity:1;stroke:none"
id="rect15553"
width="103.81497"
height="119.46666"
x="12.469779"
y="928.62885"
ry="6.3855729" />
<g
id="g15588"
transform="matrix(5.8181818,0,0,5.8181818,-4042.5991,-2508.825)"
inkscape:export-filename="/var/www/chamilo/main/img/icons/32/forum_nestedview.png"
inkscape:export-xdpi="130.90909"
inkscape:export-ydpi="130.90909">
<rect
style="opacity:1;fill:#008080;fill-opacity:1;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect15556"
width="3.0015504"
height="3.0015504"
x="698.36499"
y="593.10211"
inkscape:export-filename="/var/www/chamilo/main/img/icons/22/forum_listview.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90" />
<rect
ry="0.30709958"
y="593.08875"
x="702.1665"
height="2.9447982"
width="10.961592"
id="rect15558"
style="fill:#cccccc;fill-opacity:1;stroke:none"
inkscape:export-filename="/var/www/chamilo/main/img/icons/22/forum_listview.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90" />
</g>
<g
id="g15579"
transform="matrix(5.8181818,0,0,5.8181818,-4025.6326,-2507.733)"
inkscape:export-filename="/var/www/chamilo/main/img/icons/32/forum_nestedview.png"
inkscape:export-xdpi="130.90909"
inkscape:export-ydpi="130.90909">
<rect
y="599.50214"
x="698.36499"
height="3.0015504"
width="3.0015504"
id="rect15560"
style="opacity:1;fill:#ff6600;fill-opacity:1;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
inkscape:export-filename="/var/www/chamilo/main/img/icons/22/forum_listview.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90" />
<rect
style="fill:#cccccc;fill-opacity:1;stroke:none"
id="rect15564"
width="7.9796839"
height="2.9447982"
x="702.2323"
y="599.54919"
ry="0.30709958"
inkscape:export-filename="/var/www/chamilo/main/img/icons/22/forum_listview.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90" />
</g>
<g
id="g15583"
transform="matrix(5.8181818,0,0,5.8181818,-4008.7936,-2508.825)"
inkscape:export-filename="/var/www/chamilo/main/img/icons/32/forum_nestedview.png"
inkscape:export-xdpi="130.90909"
inkscape:export-ydpi="130.90909">
<rect
y="606.30212"
x="698.36499"
height="3.0015504"
width="3.0015504"
id="rect15562"
style="opacity:1;fill:#2c89a0;fill-opacity:1;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
inkscape:export-filename="/var/www/chamilo/main/img/icons/22/forum_listview.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90" />
<rect
ry="0.30709958"
y="606.27753"
x="702.2323"
height="2.9447982"
width="5.0854797"
id="rect15566"
style="fill:#cccccc;fill-opacity:1;stroke:none"
inkscape:export-filename="/var/www/chamilo/main/img/icons/22/forum_listview.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90" />
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 7.7 KiB

@ -0,0 +1,206 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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"
height="48px"
id="svg11300"
width="48px"
version="1.1"
inkscape:version="0.91 r"
sodipodi:docname="url.svg">
<metadata
id="metadata3459">
<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>
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1051"
id="namedview3457"
showgrid="false"
inkscape:zoom="4.3489583"
inkscape:cx="24.346818"
inkscape:cy="9.7359282"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg11300" />
<defs
id="defs3">
<linearGradient
inkscape:collect="always"
id="linearGradient4449">
<stop
style="stop-color:#3aae52;stop-opacity:1"
offset="0"
id="stop4451" />
<stop
style="stop-color:#008080;stop-opacity:1"
offset="1"
id="stop4453" />
</linearGradient>
<radialGradient
cx="605.71429"
cy="486.64789"
fx="605.71429"
fy="486.64789"
gradientTransform="matrix(-2.774389,0,0,1.969706,112.7623,-872.8854)"
gradientUnits="userSpaceOnUse"
id="radialGradient6719"
r="117.14286"
xlink:href="#linearGradient5060" />
<linearGradient
id="linearGradient5060">
<stop
id="stop5062"
offset="0"
style="stop-color:black;stop-opacity:1;" />
<stop
id="stop5064"
offset="1"
style="stop-color:black;stop-opacity:0;" />
</linearGradient>
<radialGradient
cx="605.71429"
cy="486.64789"
fx="605.71429"
fy="486.64789"
gradientTransform="matrix(2.774389,0,0,1.969706,-1891.633,-872.8854)"
gradientUnits="userSpaceOnUse"
id="radialGradient6717"
r="117.14286"
xlink:href="#linearGradient5060" />
<linearGradient
id="linearGradient5048">
<stop
id="stop5050"
offset="0"
style="stop-color:black;stop-opacity:0;" />
<stop
id="stop5056"
offset="0.5"
style="stop-color:black;stop-opacity:1;" />
<stop
id="stop5052"
offset="1"
style="stop-color:black;stop-opacity:0;" />
</linearGradient>
<linearGradient
gradientTransform="matrix(2.774389,0,0,1.969706,-1892.179,-872.8854)"
gradientUnits="userSpaceOnUse"
id="linearGradient6715"
x1="302.85715"
x2="302.85715"
xlink:href="#linearGradient5048"
y1="366.64789"
y2="609.50507" />
<linearGradient
id="linearGradient11520">
<stop
id="stop11522"
offset="0.0000000"
style="stop-color:#ffffff;stop-opacity:1.0000000;" />
<stop
id="stop11524"
offset="1.0000000"
style="stop-color:#dcdcdc;stop-opacity:1.0000000;" />
</linearGradient>
<linearGradient
id="linearGradient11508">
<stop
id="stop11510"
offset="0"
style="stop-color:#000000;stop-opacity:1;" />
<stop
id="stop11512"
offset="1"
style="stop-color:#000000;stop-opacity:0;" />
</linearGradient>
<radialGradient
cx="30.203562"
cy="44.565483"
fx="30.203562"
fy="44.565483"
gradientTransform="matrix(1.000000,0.000000,0.000000,0.338462,-1.435476e-15,29.48178)"
gradientUnits="userSpaceOnUse"
id="radialGradient1348"
r="6.5659914"
xlink:href="#linearGradient11508" />
<radialGradient
cx="24.445690"
cy="35.878170"
fx="24.445690"
fy="35.878170"
gradientTransform="matrix(1.995058,0,0,1.995058,-24.770571,-35.255176)"
gradientUnits="userSpaceOnUse"
id="radialGradient1366"
r="20.530962"
xlink:href="#linearGradient11520" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4449"
id="linearGradient4455"
x1="40.01709"
y1="3.0601947"
x2="22.18343"
y2="31.342829"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.213132,0,0,1.213132,-5.5995346,-4.4868621)" />
</defs>
<g
id="g4559"
inkscape:export-filename="/var/www/chamilo/main/img/icons/22/url.png"
inkscape:export-xdpi="41"
inkscape:export-ydpi="41">
<rect
inkscape:export-ydpi="41.25"
inkscape:export-xdpi="41.25"
inkscape:export-filename="/var/www/chamilo/main/img/icons/22/url.png"
ry="0"
rx="0"
y="0.049267571"
x="0.049266063"
height="47.901466"
width="47.901466"
id="rect4463"
style="opacity:0;fill:#3aae52;fill-opacity:1;stroke:#d4d4d4;stroke-width:0.09853212;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0" />
<path
inkscape:export-ydpi="41.25"
inkscape:export-xdpi="41.25"
inkscape:export-filename="/var/www/chamilo/main/img/icons/22/url.png"
sodipodi:nodetypes="cccccccccc"
inkscape:connector-curvature="0"
id="path3639"
d="m 17.382725,21.435215 8.602616,-8.877391 -6.044721,-6.0447215 20.758142,0 0,20.7679365 -6.083001,-6.083002 -8.112301,8.112301 c -0.852306,0.871547 -2.207092,1.222807 -3.533821,0.295094 l -5.171373,-4.535238 c -1.084485,-0.965269 -1.225234,-2.649991 -0.415541,-3.634979 z"
style="fill:url(#linearGradient4455);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.40000001;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<path
inkscape:export-ydpi="41.25"
inkscape:export-xdpi="41.25"
inkscape:export-filename="/var/www/chamilo/main/img/icons/22/url.png"
inkscape:connector-curvature="0"
id="rect4441"
d="m 11.436509,12.603353 c -2.5833404,-1e-6 -4.6637438,2.078329 -4.6637438,4.66167 l 0,18.735895 c 0,2.583339 2.0804034,4.663743 4.6637438,4.663743 l 18.217238,0 c 2.583342,0 4.663745,-2.080404 4.663745,-4.663743 l 0,-9.777686 -3.116079,2.535186 0,5.124311 c 0,1.998902 -1.608862,3.607764 -3.607764,3.607764 l -14.097045,0 c -1.998899,0 -3.607761,-1.608862 -3.607761,-3.607764 l 0,-14.497444 c 0,-1.998902 1.608862,-3.607764 3.607761,-3.607764 l 5.559985,0 2.935586,-3.174168 -10.555666,0 z"
style="opacity:1;fill:#008080;fill-opacity:1;stroke:none;stroke-width:0.10254168;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 7.3 KiB

@ -40,9 +40,9 @@ switch ($action) {
curl_close($ch);
if ($result) {
echo Display::return_icon('accept.png', get_lang('Ok'));
echo Display::return_icon('check-circle.png', get_lang('Ok'), null, ICON_SIZE_TINY);
} else {
echo Display::return_icon('wrong.gif', get_lang('Wrong'));
echo Display::return_icon('closed-circle.png', get_lang('Wrong'), null, ICON_SIZE_TINY);
}
}
break;

@ -890,7 +890,7 @@ class Link extends Model
$result = Database:: query($sql);
$numberoflinks = Database:: num_rows($result);
if ($numberoflinks > 0) {
$content .= '<table class="data_table" width="100%">';
$content .= '<div class="link list-group">';
$i = 1;
while ($myrow = Database:: fetch_array($result)) {
// Validation when belongs to a session.
@ -899,75 +899,42 @@ class Link extends Model
$_user['status']
);
$css_class = $i % 2 == 0 ? $css_class = 'row_odd' : $css_class = 'row_even';
//$css_class = $i % 2 == 0 ? $css_class = 'row_odd' : $css_class = 'row_even';
$toolbar = '';
$link_validator = '';
if (api_is_allowed_to_edit(null, true)) {
$link_validator = Display::url(
Display::return_icon(
'preview_view.png',
get_lang('CheckURL'),
array(),
16
),
'#',
array(
'onclick' => "check_url('" . $myrow['id'] . "', '" . addslashes($myrow['url']) . "');"
)
);
$toolbar .= Display::toolbarButton('',
'#',
'retweet',
'default btn-sm',
array(
'onclick' => "check_url('" . $myrow['id'] . "', '" . addslashes($myrow['url']) . "');"
)
);
$link_validator .= Display::span(
'',
array('id' => 'url_id_' . $myrow['id'])
array(
'id' => 'url_id_' . $myrow['id'],
'class' => 'check-link'
)
);
}
if ($myrow['visibility'] == '1') {
$content .= '<tr class="' . $css_class . '">';
$content .= '<td align="center" valign="middle" width="5%">';
$content .= '<a href="link_goto.php?' . api_get_cidreq() .'&link_id=' . $myrow['id'] .'&link_url=' . urlencode($myrow['url']) . '" target="_blank">
<img src="../../main/img/link.gif" border="0" alt="' . get_lang('Link') . '"/></a>
</td>
<td width="80%" valign="top">
<a href="link_goto.php?' . api_get_cidreq() .'&link_id=' . $myrow['id'] .'&link_url=' . urlencode($myrow['url']) . '" target="' . $myrow['target'] . '">';
$content .= Security:: remove_XSS($myrow['title']);
$content .= '</a>';
$content .= $link_validator;
$content .= $session_img;
$content .= '<br />' . $myrow['description'];
} else {
if (api_is_allowed_to_edit(null, true)) {
$content .= '<tr class="' . $css_class . '">';
$content .= '<td align="center" valign="middle" width="5%">
<a href="link_goto.php?' . api_get_cidreq() .'&link_id=' . $myrow['id'] . "&link_url=" . urlencode($myrow['url']) . '" target="_blank" class="invisible">';
$content .= Display:: return_icon(
'link_na.gif',
get_lang('Link')
).'</a>';
$content .= '</td><td width="80%" valign="top">
<a href="link_goto.php?'.api_get_cidreq().'&link_id='.$myrow['id'].'&link_url='.urlencode($myrow['url']).'" target="'. $myrow['target']. '" class="invisible">';
$content .= Security:: remove_XSS($myrow['title']);
$content .= "</a>";
$content .= $link_validator;
$content .= $session_img.'<br />'.$myrow['description'];
}
}
if (api_is_allowed_to_edit(null, true)) {
$content .= '<td style="text-align:center;">';
if ($session_id == $myrow['session_id']) {
$url = api_get_self() . '?' . api_get_cidreq() .
'&action=editlink&category=' . (!empty ($category) ? $category : '') .
'&id=' . $myrow['id'] .
'&category_id=' . $myrow['id'];
$content .= '<a href="' .$url .'">'.
Display:: return_icon(
'edit.png',
get_lang('Modify'),
array(),
ICON_SIZE_SMALL
) . '</a>';
$toolbar .= Display::toolbarButton(
'',
$url,
'pencil',
'default btn-sm'
);
// DISPLAY MOVE UP COMMAND only if it is not the top link.
/* commented at least since 2014-10-11
if ($i != 1) {
@ -984,50 +951,111 @@ class Link extends Model
}*/
if ($myrow['visibility'] == '1') {
$content .= '<a href="link.php?' . api_get_cidreq() .
$url .= 'link.php?' . api_get_cidreq() .
'&sec_token=' . $token .
'&action=invisible&id=' . $myrow['id'] .
'&scope=link&category_id=' . $myrow['category_id'] . '" title="' . get_lang('Hide') . '">' .
Display:: return_icon(
'visible.png',
get_lang('Hide'),
array(),
ICON_SIZE_SMALL
) . '</a>';
'&scope=link&category_id=' . $myrow['category_id'];
$toolbar .= Display::toolbarButton(
'',
$url,
'eye',
'default btn-sm'
);
}
if ($myrow['visibility'] == '0') {
$content .= ' <a href="link.php?' . api_get_cidreq() .'&sec_token=' . $token .'&action=visible&id=' . $myrow['id'] .'&scope=link&category_id=' . $myrow['category_id'] . '" title="' . get_lang('Show') . '">' .
Display:: return_icon(
'invisible.png',
get_lang('Show'),
array(),
ICON_SIZE_SMALL
) . '</a>';
$url .= 'link.php?' . api_get_cidreq() .'&sec_token=' . $token .'&action=visible&id=' . $myrow['id'] .'&scope=link&category_id=' . $myrow['category_id'];
$toolbar .= Display::toolbarButton(
'',
$url,
'eye-slash',
'primary btn-sm'
);
}
$content .= ' <a href="' . api_get_self() . '?' . api_get_cidreq() .'&sec_token=' . $token .'&action=deletelink&id=' . $myrow['id'] .'&category_id=' . $myrow['category_id'] . "\"
onclick=\"javascript: if(!confirm('" . get_lang('LinkDelconfirm') . "'))
return false;\" title=\"" . get_lang('Delete') . '">' .
Display:: return_icon(
'delete.png',
get_lang('Delete'),
array(),
ICON_SIZE_SMALL
) . '</a>';
$url .= api_get_self() . '?' . api_get_cidreq() .'&sec_token=' . $token .'&action=deletelink&id=' . $myrow['id'] .'&category_id=' . $myrow['category_id'];
$event = "javascript: if(!confirm('" . get_lang('LinkDelconfirm') . "'))return false;";
$title = get_lang('Delete');
$toolbar .= Display::toolbarButton(
'',
$url,
'trash',
'default btn-sm',
array(
'onclick' => $event,
'title' => $title
)
);
} else {
$content .= Display:: return_icon(
'edit_na.png',
get_lang('EditionNotAvailableFromSession'),
array(),
ICON_SIZE_SMALL
); //get_lang('EditionNotAvailableFromSession');
$title = get_lang('EditionNotAvailableFromSession');
$toolbar .= Display::toolbarButton(
'',
'#',
'trash-o',
'default btn-sm',
array(
'title' => $title
)
);
}
}
$iconLink = Display::return_icon(
'url.png',
get_lang('Link'),
null,
ICON_SIZE_SMALL
);
if ($myrow['visibility'] == '1') {
$content .= '<div class="list-group-item">';
$content .= '<div class="pull-right"><div class="btn-group">'.$toolbar.'</div></div>';
$content .= '<h4 class="list-group-item-heading">';
$content .= $iconLink;
$url = 'link_goto.php?' . api_get_cidreq() .'&link_id=' . $myrow['id'] .'&link_url=' . urlencode($myrow['url']);
$content .= Display::tag(
'a',
Security:: remove_XSS($myrow['title']),
array(
'href' => $url,
'target' => $myrow['target']
)
);
$content .= $link_validator;
$content .= $session_img;
$content .= '</h4>';
$content .= '<p class="list-group-item-text">' . $myrow['description'] . '</p>';
$content .= '</div>';
} else {
if (api_is_allowed_to_edit(null, true)) {
$content .= '<div class="list-group-item">';
$content .= '<div class="pull-right"><div class="btn-group">'.$toolbar.'</div></div>';
$content .= '<h4 class="list-group-item-heading">';
$content .= $iconLink;
$url = 'link_goto.php?' . api_get_cidreq() .'&link_id=' . $myrow['id'] . "&link_url=" . urlencode($myrow['url']);
$content .= Display::tag(
'a',
Security:: remove_XSS($myrow['title']),
array(
'href' => $url,
'target' => '_blank',
'class' => 'invisible'
)
);
$content .= $link_validator;
$content .= $session_img;
$content .= '</h4>';
$content .= '<p class="list-group-item-text">' . $myrow['description'] . '</p>';
$content .= '</div>';
}
$content .= '</td>';
}
$content .= '</tr>';
$i++;
}
$content .= '</table>';
$content .= '</div>';
}
return $content;
@ -1563,10 +1591,10 @@ class Link extends Model
$header = '';
if ($showChildren) {
$header .= '<a class="'.$visibilityClass.'" href="'.api_get_self().'?'.api_get_cidreq().'&category_id=">';
$header .= Display::return_icon('view_remove.png');
$header .= Display::return_icon('forum_nestedview.png');
} else {
$header .= '<a class="'.$visibilityClass.'" href="'.api_get_self().'?'.api_get_cidreq().'&category_id='.$myrow['id'].'">';
$header .= Display::return_icon('view_tree.png');
$header .= Display::return_icon('forum_listview.png');
}
$header .= Security::remove_XSS($myrow['category_title']).'</a>';

@ -165,7 +165,7 @@ if (api_is_allowed_to_session_edit(false, true) && !empty($workId) && !$isDrhOfC
echo Display::return_icon('new_document.png', get_lang('AddDocument'), '', ICON_SIZE_MEDIUM).'</a>';
echo '<a href="'.api_get_path(WEB_CODE_PATH).'work/add_user.php?'.api_get_cidreq().'&id='.$workId.'">';
echo Display::return_icon('user.png', get_lang('AddUsers'), '', ICON_SIZE_MEDIUM).'</a>';
echo Display::return_icon('addworkuser.png', get_lang('AddUsers'), '', ICON_SIZE_MEDIUM).'</a>';
echo '<a href="'.api_get_path(WEB_CODE_PATH).'work/work_list_all.php?'.api_get_cidreq().'&id='.$workId.'&action=export_pdf">';
echo Display::return_icon('pdf.png', get_lang('Export'), '', ICON_SIZE_MEDIUM).'</a>';

Loading…
Cancel
Save