Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
112d8144
Commit
112d8144
authored
Apr 14, 2014
by
Robert Lyon
Committed by
Gerrit Code Review
Apr 14, 2014
Browse files
Merge "When editing site skin, disable skin background images (Bug 1305308)"
parents
1ca82920
982f5747
Changes
3
Hide whitespace changes
Inline
Side-by-side
htdocs/lang/en.utf8/skin.php
View file @
112d8144
...
...
@@ -34,6 +34,7 @@ $string['exportspecific'] = 'Export "%s"';
$string
[
'exportskins'
]
=
'Export skin(s)'
;
$string
[
'createskin'
]
=
'Create skin'
;
$string
[
'editthisskin'
]
=
'Edit this skin'
;
$string
[
'editsiteskin?'
]
=
'This is a site skin. Do you want to edit it?'
;
$string
[
'editskin'
]
=
'Edit skin'
;
$string
[
'skinsaved'
]
=
'Skin saved successfully'
;
$string
[
'skinimported'
]
=
'Skin imported successfully'
;
...
...
htdocs/skin/design.php
View file @
112d8144
...
...
@@ -72,7 +72,8 @@ else {
}
// Set the Skin access options (for creating or editing form)...
if
(
$designsiteskin
or
(
isset
(
$skindata
)
and
$skinobj
->
get
(
'type'
)
==
'site'
))
{
$designsiteskin
=
$designsiteskin
||
(
isset
(
$skinobj
)
&&
$skinobj
->
get
(
'type'
)
==
'site'
);
if
(
$designsiteskin
)
{
$accessoptions
=
array
(
'site'
=>
get_string
(
'siteskinaccess'
,
'skin'
)
);
...
...
htdocs/theme/raw/templates/skin/index.tpl
View file @
112d8144
...
...
@@ -20,7 +20,8 @@
<div
class=
"skinthumb"
>
<div
class=
"skin-controls"
>
{
if
$skin.editable
}
<a
href=
"
{
$WWWROOT
}
skin/design.php?id=
{
$skin.id
}{
if
$siteskins
}
&site=1
{/
if
}
"
class=
"btn-big-edit"
title=
"
{
str
tag
=
'editthisskin'
section
=
'skin'
}
"
>
<a
href=
"
{
$WWWROOT
}
skin/design.php?id=
{
$skin.id
}{
if
$skin.type
==
'site'
}
&site=1
{/
if
}
"
class=
"btn-big-edit"
title=
"
{
str
tag
=
'editthisskin'
section
=
'skin'
}
"
{
if
$skin.type
==
'site'
}
onclick=
"return confirm('
{
str
tag
=
'editsiteskin?'
section
=
'skin'
}
');"
{/
if
}
>
{
str
tag
=
editspecific
arg1
=
$skin.title
}
</a>
{/
if
}
...
...
@@ -33,7 +34,7 @@
<a
href=
"
{
$WWWROOT
}
skin/export.php?id=
{
$skin.id
}
"
class=
"btn-big-export"
title=
"
{
str
tag
=
'exportthisskin'
section
=
'skin'
}
"
>
{
str
tag
=
exportspecific
section
=
skin
arg1
=
$skin.title
}
</a>
<a
href=
"
{
$WWWROOT
}
skin/delete.php?id=
{
$skin.id
}{
if
$s
iteskins
}
&site=1
{/
if
}
"
class=
"btn-big-del"
title=
"
{
str
tag
=
'deletethisskin'
section
=
'skin'
}
"
>
<a
href=
"
{
$WWWROOT
}
skin/delete.php?id=
{
$skin.id
}{
if
$s
kin.type
==
'site'
}
&site=1
{/
if
}
"
class=
"btn-big-del"
title=
"
{
str
tag
=
'deletethisskin'
section
=
'skin'
}
"
>
{
str
tag
=
deletespecific
arg1
=
$skin.title
}
</a>
{
else
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment