Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
Vips
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Uni Osnabrück
Plugins
Vips
Commits
b35b9220
Commit
b35b9220
authored
3 years ago
by
Elmar Ludwig
Browse files
Options
Downloads
Patches
Plain Diff
update icons for Stud.IP 5.0, re
#55
parent
427abb8e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
VipsPlugin.php
+13
-3
13 additions, 3 deletions
VipsPlugin.php
images/vips_blue.svg
+14
-0
14 additions, 0 deletions
images/vips_blue.svg
with
27 additions
and
3 deletions
VipsPlugin.php
+
13
−
3
View file @
b35b9220
...
@@ -225,15 +225,25 @@ class VipsPlugin extends StudIPPlugin implements StandardPlugin, SystemPlugin, P
...
@@ -225,15 +225,25 @@ class VipsPlugin extends StudIPPlugin implements StandardPlugin, SystemPlugin, P
}
}
$overview_message
=
$this
->
getPluginName
();
$overview_message
=
$this
->
getPluginName
();
$icon
=
vips_image_url
(
'vips_grey.svg'
);
if
(
version_compare
(
$GLOBALS
[
'SOFTWARE_VERSION'
],
'5.0'
,
'<'
))
{
$icon
=
Icon
::
create
(
vips_image_url
(
'vips_grey.svg'
),
'clickable'
);
}
else
{
$icon
=
Icon
::
create
(
vips_image_url
(
'vips_blue.svg'
),
'clickable'
);
}
if
(
$new_items
>
0
)
{
if
(
$new_items
>
0
)
{
$overview_message
=
sprintf
(
$message
,
$new_items
);
$overview_message
=
sprintf
(
$message
,
$new_items
);
$icon
=
vips_image_url
(
'vips_red.svg'
);
if
(
version_compare
(
$GLOBALS
[
'SOFTWARE_VERSION'
],
'5.0'
,
'<'
))
{
$icon
=
Icon
::
create
(
vips_image_url
(
'vips_red.svg'
),
'new'
);
}
else
{
$icon
=
Icon
::
create
(
vips_image_url
(
'vips_white.svg'
),
'new'
);
}
}
}
$icon_navigation
=
new
Navigation
(
$this
->
getPluginName
(),
$this
->
url_for
(
'sheets'
));
$icon_navigation
=
new
Navigation
(
$this
->
getPluginName
(),
$this
->
url_for
(
'sheets'
));
$icon_navigation
->
setImage
(
Icon
::
create
(
$icon
)
,
[
'title'
=>
$overview_message
]);
$icon_navigation
->
setImage
(
$icon
,
[
'title'
=>
$overview_message
]);
if
(
$this
->
isNavigationEnabled
(
$course_id
))
{
if
(
$this
->
isNavigationEnabled
(
$course_id
))
{
return
$icon_navigation
;
return
$icon_navigation
;
...
...
This diff is collapsed.
Click to expand it.
images/vips_blue.svg
0 → 100644
+
14
−
0
View file @
b35b9220
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.0.0, 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=
"Ebene_1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
width=
"16px"
height=
"16px"
viewBox=
"0 0 16 16"
enable-background=
"new 0 0 16 16"
xml:space=
"preserve"
>
<g>
<path
fill=
"#24437C"
d=
"M13.67,7.312v6.781c0,1.053-0.862,1.907-1.921,1.907H1.917c-1.058,0-1.921-0.854-1.921-1.907V4.329
c0-1.053,0.863-1.908,1.921-1.908h9.832c0.475,0,0.911,0.171,1.244,0.458l-0.982,0.983c-0.076-0.043-0.167-0.067-0.262-0.067H1.917
c-0.297,0-0.538,0.24-0.538,0.535v9.764c0,0.296,0.241,0.534,0.538,0.534h9.832c0.297,0,0.54-0.238,0.54-0.534V8.69L13.67,7.312z"
/>
</g>
<polygon
fill=
"#24437C"
points=
"8.341,11.406 16.005,3.742 14.684,2.422 7.02,10.087 3.902,6.97 2.582,8.29 7.018,12.728
7.02,12.728 7.02,12.728 8.086,11.662 8.341,11.406 "
/>
</svg>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment