Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
63297942
Commit
63297942
authored
Jan 24, 2007
by
Martyn Smith
Committed by
Martyn Smith
Jan 24, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Theme overhaul, included is a new MyPortfolio theme
parent
d699dd8d
Changes
27
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
92 additions
and
59 deletions
+92
-59
htdocs/account/activity/index.json.php
htdocs/account/activity/index.json.php
+1
-1
htdocs/admin/extensions/plugins.php
htdocs/admin/extensions/plugins.php
+3
-3
htdocs/admin/extensions/templates.php
htdocs/admin/extensions/templates.php
+3
-3
htdocs/admin/upgrade.php
htdocs/admin/upgrade.php
+3
-3
htdocs/auth/session.php
htdocs/auth/session.php
+1
-1
htdocs/captcha.php
htdocs/captcha.php
+2
-2
htdocs/lib/mahara.php
htdocs/lib/mahara.php
+10
-3
htdocs/lib/smarty/plugins/function.theme_path.php
htdocs/lib/smarty/plugins/function.theme_path.php
+3
-3
htdocs/lib/template.php
htdocs/lib/template.php
+1
-1
htdocs/lib/web.php
htdocs/lib/web.php
+21
-9
htdocs/theme/default/config.php
htdocs/theme/default/config.php
+7
-0
htdocs/theme/default/static/style/style.css
htdocs/theme/default/static/style/style.css
+0
-6
htdocs/theme/default/templates/admin/extensions/templates.tpl
...cs/theme/default/templates/admin/extensions/templates.tpl
+2
-2
htdocs/theme/default/templates/admin/upgradefooter.tpl
htdocs/theme/default/templates/admin/upgradefooter.tpl
+2
-2
htdocs/theme/default/templates/adminmenu.tpl
htdocs/theme/default/templates/adminmenu.tpl
+1
-1
htdocs/theme/default/templates/footer.tpl
htdocs/theme/default/templates/footer.tpl
+2
-2
htdocs/theme/default/templates/header.tpl
htdocs/theme/default/templates/header.tpl
+9
-7
htdocs/theme/default/templates/index.tpl
htdocs/theme/default/templates/index.tpl
+1
-1
htdocs/theme/default/templates/quota.tpl
htdocs/theme/default/templates/quota.tpl
+1
-1
htdocs/theme/default/templates/register.tpl
htdocs/theme/default/templates/register.tpl
+1
-1
htdocs/theme/myportfolio/config.php
htdocs/theme/myportfolio/config.php
+8
-0
htdocs/theme/myportfolio/static/images/header_myportfolio.gif
...cs/theme/myportfolio/static/images/header_myportfolio.gif
+0
-0
htdocs/theme/myportfolio/static/images/logo_mahara.gif
htdocs/theme/myportfolio/static/images/logo_mahara.gif
+0
-0
htdocs/theme/myportfolio/static/style/style.css
htdocs/theme/myportfolio/static/style/style.css
+3
-0
htdocs/thumb.php
htdocs/thumb.php
+3
-3
htdocs/view/create3.php
htdocs/view/create3.php
+2
-2
htdocs/view/edit.php
htdocs/view/edit.php
+2
-2
No files found.
htdocs/account/activity/index.json.php
View file @
63297942
...
...
@@ -89,7 +89,7 @@ if (empty($records)) {
$records
=
array
();
}
$data
=
array
();
$star
=
theme_get_
image_
url
(
'star.png'
);
$star
=
theme_get_url
(
'star.png'
);
$unread
=
get_string
(
'unread'
,
'activity'
);
foreach
(
$records
as
&
$r
)
{
...
...
htdocs/admin/extensions/plugins.php
View file @
63297942
...
...
@@ -92,9 +92,9 @@ foreach (plugin_types() as $plugin) {
}
}
$loadingicon
=
theme_get_
image_
url
(
'loading.gif'
);
$successicon
=
theme_get_
image_
url
(
'success.gif'
);
$failureicon
=
theme_get_
image_
url
(
'failure.gif'
);
$loadingicon
=
theme_get_url
(
'loading.gif'
);
$successicon
=
theme_get_url
(
'success.gif'
);
$failureicon
=
theme_get_url
(
'failure.gif'
);
$loadingstring
=
get_string
(
'upgradeloading'
,
'admin'
);
$successstring
=
get_string
(
'upgradesuccesstoversion'
,
'admin'
);
...
...
htdocs/admin/extensions/templates.php
View file @
63297942
...
...
@@ -58,9 +58,9 @@ foreach (array_keys($alltemplates) as $t) {
$alltemplates
[
$t
][
'installed'
]
=
true
;
}
}
$loadingicon
=
theme_get_
image_
url
(
'loading.gif'
);
$successicon
=
theme_get_
image_
url
(
'success.gif'
);
$failureicon
=
theme_get_
image_
url
(
'failure.gif'
);
$loadingicon
=
theme_get_url
(
'loading.gif'
);
$successicon
=
theme_get_url
(
'success.gif'
);
$failureicon
=
theme_get_url
(
'failure.gif'
);
$loadingstring
=
get_string
(
'upgradeloading'
,
'admin'
);
$successstring
=
get_string
(
'upgradesuccess'
,
'admin'
);
...
...
htdocs/admin/upgrade.php
View file @
63297942
...
...
@@ -44,9 +44,9 @@ if (!$upgrades) {
}
$js
=
'var todo = '
.
json_encode
(
array_keys
(
$upgrades
))
.
";
\n
"
;
$loadingicon
=
theme_get_
image_
url
(
'loading.gif'
);
$successicon
=
theme_get_
image_
url
(
'success.gif'
);
$failureicon
=
theme_get_
image_
url
(
'failure.gif'
);
$loadingicon
=
theme_get_url
(
'loading.gif'
);
$successicon
=
theme_get_url
(
'success.gif'
);
$failureicon
=
theme_get_url
(
'failure.gif'
);
$loadingstring
=
get_string
(
'upgradeloading'
,
'admin'
);
$installsuccessstring
=
get_string
(
'installsuccess'
,
'admin'
);
...
...
htdocs/auth/session.php
View file @
63297942
...
...
@@ -146,7 +146,7 @@ class Session {
// @todo probably should be done with MochiKit.Signal
$result
.
=
'<div class="'
.
$data
[
'type'
]
.
'">'
;
$result
.
=
'<div class="fr"><a href="" onclick="removeElement(this.parentNode.parentNode);return false;">'
;
$result
.
=
'<img src="'
.
theme_get_
image_
url
(
'images/icon_close.gif'
)
.
'" alt="[X]"></a></div>'
;
$result
.
=
'<img src="'
.
theme_get_url
(
'images/icon_close.gif'
)
.
'" alt="[X]"></a></div>'
;
$result
.
=
$data
[
'msg'
]
.
'</div>'
;
}
$_SESSION
[
'messages'
]
=
array
();
...
...
htdocs/captcha.php
View file @
63297942
...
...
@@ -34,10 +34,10 @@ $angles = array(40, 0, 340, 20, 310);
$lefts
=
array
(
30
,
50
,
70
,
95
,
110
);
$bottoms
=
array
(
24
,
20
,
28
,
34
,
33
);
$file
=
theme_get_
image_
path
(
'images/captcha.png'
);
$file
=
theme_get_path
(
'images/captcha.png'
);
$img
=
imagecreatefrompng
(
$file
);
$black
=
imagecolorallocate
(
$img
,
60
,
60
,
60
);
$ttf
=
theme_get_
image_
path
(
'captcha.ttf'
);
$ttf
=
theme_get_path
(
'captcha.ttf'
);
$captcha
=
''
;
...
...
htdocs/lib/mahara.php
View file @
63297942
...
...
@@ -288,9 +288,16 @@ function get_themes() {
throw
new
Exception
(
'Unable to read theme directory '
.
$themebase
);
}
while
(
false
!==
(
$subdir
=
readdir
(
$themedir
)))
{
// Where do we get theme names from?
if
(
$subdir
!=
"."
&&
$subdir
!=
".."
)
{
$themes
[
$subdir
]
=
get_string
(
$subdir
);
$themes
[
$subdir
]
=
$subdir
;
$config_path
=
get_config
(
'docroot'
)
.
'theme/'
.
$subdir
.
'/config.php'
;
if
(
is_readable
(
$config_path
))
{
require_once
(
$config_path
);
if
(
isset
(
$theme
->
name
))
{
$themes
[
$subdir
]
=
$theme
->
name
;
}
}
}
}
closedir
(
$themedir
);
...
...
@@ -851,7 +858,7 @@ function password_validate(Pieform $form, $values, $username, $institution) {
if
(
$values
[
'password1'
]
==
'mike01'
||
$values
[
'password1'
]
==
'mike012'
)
{
if
(
!
$form
->
get_property
(
'jsform'
))
{
die_info
(
'<img src="'
.
theme_get_
image_
url
(
'images/sidebox1_corner_botright.gif'
)
.
theme_get_url
(
'images/sidebox1_corner_botright.gif'
)
.
'" alt="(C) 2007 MSS Enterprises"></p>'
);
}
}
...
...
htdocs/lib/smarty/plugins/function.
imag
e_path.php
→
htdocs/lib/smarty/plugins/function.
them
e_path.php
View file @
63297942
...
...
@@ -7,7 +7,7 @@
/**
* Smarty {
imag
e_path} function plugin
* Smarty {
them
e_path} function plugin
*
* Type: function<br>
* Name: str<br>
...
...
@@ -19,13 +19,13 @@
* @param Smarty
* @return Internationalized string
*/
function
smarty_function_
imag
e_path
(
$params
,
&
$smarty
)
{
function
smarty_function_
them
e_path
(
$params
,
&
$smarty
)
{
if
(
!
isset
(
$params
[
'pluginlocation'
]))
{
$params
[
'pluginlocation'
]
=
''
;
}
return
theme_get_
image_
url
(
$params
[
'
image
location'
],
$params
[
'pluginlocation'
]);
return
theme_get_url
(
$params
[
'location'
],
$params
[
'pluginlocation'
]);
}
?>
htdocs/lib/template.php
View file @
63297942
...
...
@@ -431,7 +431,7 @@ function template_render($template, $mode, $data=array(), $view_id=null) {
$javascript
=
''
;
if
(
$mode
==
TEMPLATE_RENDER_EDITMODE
)
{
$droplist
=
json_encode
(
$droplist
);
$spinner_url
=
json_encode
(
theme_get_
image_
url
(
'loading.gif'
));
$spinner_url
=
json_encode
(
theme_get_url
(
'loading.gif'
));
$wwwroot
=
get_config
(
'wwwroot'
);
$json_emptylabel
=
json_encode
(
get_string
(
'emptylabel'
,
'view'
));
...
...
htdocs/lib/web.php
View file @
63297942
...
...
@@ -178,6 +178,7 @@ EOF;
$smarty
->
assign
(
'SITEMENU'
,
site_menu
());
}
$smarty
->
assign
(
'THEMEURL'
,
get_config
(
'themeurl'
));
$smarty
->
assign
(
'STYLESHEETLIST'
,
array_reverse
(
theme_get_url
(
'style/style.css'
,
null
,
true
)));
$smarty
->
assign
(
'WWWROOT'
,
$wwwroot
);
if
(
defined
(
'TITLE'
))
{
...
...
@@ -302,11 +303,12 @@ function theme_setup() {
}
}
// always put the
parent
at the top of the tree, unless we're already it
// always put the
default theme
at the top of the tree, unless we're already it
if
(
$theme
->
theme
!=
'default'
)
{
$theme
->
template_dir
[]
=
get_config
(
'docroot'
)
.
'theme/default/templates/'
;
$theme
->
inheritance
[]
=
$parent
;
$theme
->
inheritance
[]
=
'default'
;
}
return
$theme
;
}
...
...
@@ -333,14 +335,24 @@ function theme_get_parent($currtheme) {
* @param $imagelocation path to image relative to theme/$theme/static/
* @param $pluginlocation path to plugin relative to docroot
*/
function
theme_get_
image_url
(
$image
location
,
$pluginlocation
=
''
)
{
function
theme_get_
url
(
$
location
,
$pluginlocation
=
''
,
$all
=
false
)
{
$theme
=
theme_setup
();
$list
=
array
();
foreach
(
$theme
->
inheritance
as
$themedir
)
{
if
(
is_readable
(
get_config
(
'docroot'
)
.
$pluginlocation
.
'theme/'
.
$themedir
.
'/static/'
.
$imagelocation
))
{
return
get_config
(
'wwwroot'
)
.
$pluginlocation
.
'theme/'
.
$themedir
.
'/static/'
.
$imagelocation
;
if
(
is_readable
(
get_config
(
'docroot'
)
.
$pluginlocation
.
'theme/'
.
$themedir
.
'/static/'
.
$location
))
{
if
(
$all
)
{
$list
[]
=
get_config
(
'wwwroot'
)
.
$pluginlocation
.
'theme/'
.
$themedir
.
'/static/'
.
$location
;
}
else
{
return
get_config
(
'wwwroot'
)
.
$pluginlocation
.
'theme/'
.
$themedir
.
'/static/'
.
$location
;
}
}
}
if
(
$all
)
{
return
$list
;
}
return
;
}
/**
...
...
@@ -349,12 +361,12 @@ function theme_get_image_url($imagelocation, $pluginlocation='') {
* @param $imagelocation path to image relative to theme/$theme/static/
* @param $pluginlocation path to plugin relative to docroot
*/
function
theme_get_
image_
path
(
$
image
location
,
$pluginlocation
=
''
)
{
function
theme_get_path
(
$location
,
$pluginlocation
=
''
)
{
$theme
=
theme_setup
();
foreach
(
$theme
->
inheritance
as
$themedir
)
{
if
(
is_readable
(
get_config
(
'docroot'
)
.
$pluginlocation
.
'theme/'
.
$themedir
.
'/static/'
.
$
image
location
))
{
return
get_config
(
'docroot'
)
.
$pluginlocation
.
'theme/'
.
$themedir
.
'/static/'
.
$
image
location
;
if
(
is_readable
(
get_config
(
'docroot'
)
.
$pluginlocation
.
'theme/'
.
$themedir
.
'/static/'
.
$location
))
{
return
get_config
(
'docroot'
)
.
$pluginlocation
.
'theme/'
.
$themedir
.
'/static/'
.
$location
;
}
}
}
...
...
@@ -1175,7 +1187,7 @@ function searchform() {
),
'submit'
=>
array
(
'type'
=>
'image'
,
'src'
=>
theme_get_
image_
url
(
'images/btn_search_off.gif'
)
'src'
=>
theme_get_url
(
'images/btn_search_off.gif'
)
)
)
));
...
...
htdocs/theme/default/config.php
0 → 100644
View file @
63297942
<?php
$theme
=
new
StdClass
;
$theme
->
name
=
'Default'
;
?>
htdocs/theme/default/static/style/style.css
View file @
63297942
...
...
@@ -201,12 +201,6 @@ tr.required th {
background
:
#FFFFFF
url(../images/header_corner_topleft.gif)
no-repeat
top
left
;
}
/* header for myportfolio (remember to change logo in header.tpl to logo_myportfolio.gif)
#header {
background: #FFFFFF url(../images/header_myportfolio.gif) no-repeat top left;
}*/
#logo
{
padding
:
10px
;
}
...
...
htdocs/theme/default/templates/admin/extensions/templates.tpl
View file @
63297942
...
...
@@ -13,13 +13,13 @@
<tr
class=
"
{
cycle
values
=
r1
,
r0
}
"
>
<td>
{
$name
}
</td>
<td>
{
if
$template.installed
}
<img
id=
"
{
$name
}
.status"
alt=
"
{
str
tag
=
'yes'
}
"
src=
"
{
imag
e_path
image
location
=
'
success
.
gif
}
"
/>
<img
id=
"
{
$name
}
.status"
alt=
"
{
str
tag
=
'yes'
}
"
src=
"
{
them
e_path
location
=
'
success
.
gif
}
"
/>
{
if
!
$template.error
}
<a
href=
""
onClick=
"
{
$installlink
}
('
{
$name
}
'); return false;"
id=
"admintemplates_reinstall"
>
{
str
tag
=
'reinstall'
section
=
'admin'
}
</a>
<span
id=
"
{
$name
}
.message"
></span>
{/
if
}
{
else
}
<img
id=
"
{
$name
}
.status"
alt=
"
{
str
tag
=
'yes'
}
"
src=
"
{
imag
e_path
image
location
=
'
failure
.
gif
}
"
/>
<img
id=
"
{
$name
}
.status"
alt=
"
{
str
tag
=
'yes'
}
"
src=
"
{
them
e_path
location
=
'
failure
.
gif
}
"
/>
{
if
!
$template.installed
&&
!
$template.error
}
<a
href=
""
onClick=
"
{
$installlink
}
('
{
$name
}
'); return false;"
id=
"admintemplates_install"
>
{
str
tag
=
'install'
section
=
'admin'
}
</a>
<span
id=
"
{
$name
}
.message"
></span>
...
...
htdocs/theme/default/templates/admin/upgradefooter.tpl
View file @
63297942
</div>
<div
id=
"footer"
>
<div
class=
"footerright"
><img
src=
"
{
imag
e_path
image
location
=
'images/footer_navbg_right.gif'
}
"
border=
"0"
alt=
""
></div>
<div
class=
"footerright"
><img
src=
"
{
them
e_path
location
=
'images/footer_navbg_right.gif'
}
"
border=
"0"
alt=
""
></div>
<a
href=
"http://mahara.org/"
>
Mahara
</a>
{
if
$releaseargs
}{
str
section
=
admin
tag
=
release
args
=
$releaseargs
}{/
if
}
,
©
2006 onwards,
<a
href=
"http://catalyst.net.nz/"
>
Catalyst IT Ltd
</a>
</div>
<div
class=
"housekeeping"
></div>
</div>
<div
id=
"bottom-corners"
>
<span
class=
"footer-left"
><img
src=
"
{
imag
e_path
image
location
=
'images/footer_corner_botleft.gif'
}
"
border=
"0"
alt=
""
></span><span
class=
"footer-right"
><img
src=
"
{
imag
e_path
image
location
=
'images/footer_corner_botright.gif'
}
"
border=
"0"
alt=
""
></span>
<span
class=
"footer-left"
><img
src=
"
{
them
e_path
location
=
'images/footer_corner_botleft.gif'
}
"
border=
"0"
alt=
""
></span><span
class=
"footer-right"
><img
src=
"
{
them
e_path
location
=
'images/footer_corner_botright.gif'
}
"
border=
"0"
alt=
""
></span>
</div>
</body>
</html>
htdocs/theme/default/templates/adminmenu.tpl
View file @
63297942
...
...
@@ -9,5 +9,5 @@
{/
foreach
}
</ul>
{/
if
}
<div
class=
"loginbox-botcorners"
><img
src=
"
{
imag
e_path
image
location
=
'images/sidebox_bot.gif'
}
"
border=
"0"
alt=
""
></div>
<div
class=
"loginbox-botcorners"
><img
src=
"
{
them
e_path
location
=
'images/sidebox_bot.gif'
}
"
border=
"0"
alt=
""
></div>
</div>
htdocs/theme/default/templates/footer.tpl
View file @
63297942
</div>
<div
id=
"footer"
>
<div
class=
"footerright"
><img
src=
"
{
imag
e_path
image
location
=
'images/footer_navbg_right.gif'
}
"
border=
"0"
alt=
""
></div>
<div
class=
"footerright"
><img
src=
"
{
them
e_path
location
=
'images/footer_navbg_right.gif'
}
"
border=
"0"
alt=
""
></div>
<a
href=
"
{
$WWWROOT
}
terms.php"
>
{
str
tag
=
termsandconditions
}
</a>
|
<a
href=
"
{
$WWWROOT
}
privacy.php"
>
{
str
tag
=
privacystatement
}
</a>
|
<a
href=
"
{
$WWWROOT
}
about.php"
>
{
str
tag
=
about
}
</a>
|
...
...
@@ -9,7 +9,7 @@
</div>
</div>
<div
id=
"bottom-corners"
>
<div
class=
"footer-left"
><img
src=
"
{
imag
e_path
image
location
=
'images/footer_corner_botleft.gif'
}
"
border=
"0"
alt=
""
></div><div
class=
"footer-right"
><img
src=
"
{
imag
e_path
image
location
=
'images/footer_corner_botright.gif'
}
"
border=
"0"
alt=
""
></div>
<div
class=
"footer-left"
><img
src=
"
{
them
e_path
location
=
'images/footer_corner_botleft.gif'
}
"
border=
"0"
alt=
""
></div><div
class=
"footer-right"
><img
src=
"
{
them
e_path
location
=
'images/footer_corner_botright.gif'
}
"
border=
"0"
alt=
""
></div>
</div>
</div>
</body>
...
...
htdocs/theme/default/templates/header.tpl
View file @
63297942
...
...
@@ -18,9 +18,11 @@
</script>
{/
if
}
<script
type=
"text/javascript"
src=
"/js/pieforms.js"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
{
$THEMEURL
}
style/style.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
{
$THEMEURL
}
style/dev.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
{
$THEMEURL
}
style/print.css"
media=
"print"
>
{
foreach
from
=
$STYLESHEETLIST
item
=
cssurl
}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
{
$cssurl
}
"
>
{/
foreach
}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
{
theme_path
location
=
'style/dev.css'
}
"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
{
theme_path
location
=
'style/print.css'
}
"
media=
"print"
>
<meta
http-equiv=
"Content-type"
content=
"text/html; charset=UTF-8"
>
</head>
<body>
...
...
@@ -43,7 +45,7 @@
</div>
{/
if
}
<div
id=
"header"
>
<div
class=
"fr"
><img
src=
"
{
imag
e_path
image
location
=
'images/header_corner_topright.gif'
}
"
border=
"0"
alt=
""
></div>
<div
class=
"fr"
><img
src=
"
{
them
e_path
location
=
'images/header_corner_topright.gif'
}
"
border=
"0"
alt=
""
></div>
<table
cellspacing=
"0"
class=
"searchbox fr"
>
{
if
!
$nosearch
&&
$LOGGEDIN
}
...
...
@@ -62,14 +64,14 @@
</table>
<div
id=
"logo"
><a
href=
"
{
$WWWROOT
}
"
><img
src=
"
{
imag
e_path
image
location
=
'images/logo_mahara.gif'
}
"
border=
"0"
alt=
""
></a></div>
<div
id=
"logo"
><a
href=
"
{
$WWWROOT
}
"
><img
src=
"
{
them
e_path
location
=
'images/logo_mahara.gif'
}
"
border=
"0"
alt=
""
></a></div>
<h1
class=
"hiddenStructure"
><a
href=
"
{
$WWWROOT
}
"
>
{
$heading
|
default
:
"Mahara"
|
escape
}
</a></h1>
</div>
</div>
<div
id=
"mainwrapper"
>
{
if
$MAINNAV
}
<ul
id=
"mainnav"
><div
class=
"mainnavright"
><img
src=
"
{
imag
e_path
image
location
=
'images/navbg_right.gif'
}
"
border=
"0"
alt=
""
></div>
<ul
id=
"mainnav"
><div
class=
"mainnavright"
><img
src=
"
{
them
e_path
location
=
'images/navbg_right.gif'
}
"
border=
"0"
alt=
""
></div>
{
foreach
from
=
$MAINNAV
item
=
item
}
{
if
$item.selected
}{
assign
var
=
MAINNAVSELECTED
value
=
$item
}
<li
class=
"selected"
><a
href=
"
{
$item.link
|
escape
}
"
>
{
str
section
=
$item.section
tag
=
$item.name
}
</a></li>
...
...
@@ -80,7 +82,7 @@
</ul>
{
if
$MAINNAVSELECTED.submenu
}
<ul
id=
"subnav"
><div
class=
"subnavright"
><img
src=
"
{
imag
e_path
image
location
=
'images/subnavbg_right.gif'
}
"
border=
"0"
alt=
""
></div>
<ul
id=
"subnav"
><div
class=
"subnavright"
><img
src=
"
{
them
e_path
location
=
'images/subnavbg_right.gif'
}
"
border=
"0"
alt=
""
></div>
{
foreach
from
=
$MAINNAVSELECTED.submenu
item
=
item
}
<li
{
if
$item.selected
}
class=
"selected"
{/
if
}
><a
href=
"
{
$item.link
|
escape
}
"
>
{
str
section
=
$item.section
tag
=
$item.name
}
</a></li>
{/
foreach
}
...
...
htdocs/theme/default/templates/index.tpl
View file @
63297942
...
...
@@ -5,7 +5,7 @@
<div
id=
"loginbox"
>
<noscript><p>
{
str
tag
=
"javascriptnotenabled"
}
</p></noscript>
{
$login_form
}
<div
class=
"sidebar-botcorners"
><img
src=
"
{
imag
e_path
image
location
=
'images/sidebox_bot.gif'
}
"
border=
"0"
alt=
""
></div>
<div
class=
"sidebar-botcorners"
><img
src=
"
{
them
e_path
location
=
'images/sidebox_bot.gif'
}
"
border=
"0"
alt=
""
></div>
</div>
{/
if
}
{
include
file
=
"adminmenu.tpl"
}
...
...
htdocs/theme/default/templates/quota.tpl
View file @
63297942
...
...
@@ -18,6 +18,6 @@
<span
id=
"quota_percentage"
>
{
$QUOTA_PERCENTAGE
}
%
</span>
</p>
{/
if
}
<div
class=
"loginbox-botcorners"
><img
src=
"
{
imag
e_path
image
location
=
'images/sidebox_bot.gif'
}
"
border=
"0"
alt=
""
></div>
<div
class=
"loginbox-botcorners"
><img
src=
"
{
them
e_path
location
=
'images/sidebox_bot.gif'
}
"
border=
"0"
alt=
""
></div>
</div>
{/
if
}
htdocs/theme/default/templates/register.tpl
View file @
63297942
...
...
@@ -2,7 +2,7 @@
<div
id=
"column-right"
>
<div
class=
"sidebarforgotpassword"
><a
href=
"
{
$WWWROOT
}
forgotpass.php"
>
{
str
tag
=
forgotpassword
}
</a></div>
<div
class=
"sidebarforgotpassword-botcorners"
><img
src=
"
{
imag
e_path
image
location
=
'images/sidebox_bot.gif'
}
"
border=
"0"
alt=
""
></div>
<div
class=
"sidebarforgotpassword-botcorners"
><img
src=
"
{
them
e_path
location
=
'images/sidebox_bot.gif'
}
"
border=
"0"
alt=
""
></div>
{
include
file
=
"adminmenu.tpl"
}
</div>
...
...
htdocs/theme/myportfolio/config.php
0 → 100644
View file @
63297942
<?php
$theme
=
new
StdClass
;
$theme
->
parent
=
'default'
;
$theme
->
name
=
'MyPortfolio'
;
?>
htdocs/theme/myportfolio/static/images/header_myportfolio.gif
0 → 100644
View file @
63297942
11.1 KB
htdocs/theme/myportfolio/static/images/logo_mahara.gif
0 → 100644
View file @
63297942
4.51 KB
htdocs/theme/myportfolio/static/style/style.css
0 → 100644
View file @
63297942
#header
{
background
:
#FFFFFF
url(../images/header_myportfolio.gif)
no-repeat
top
left
;
}
htdocs/thumb.php
View file @
63297942
...
...
@@ -43,7 +43,7 @@ switch ($type) {
}
header
(
'Content-type: '
.
'image/gif'
);
readfile
(
theme_get_
image_
path
(
'images/no_thumbnail.gif'
));
readfile
(
theme_get_path
(
'images/no_thumbnail.gif'
));
exit
;
break
;
...
...
@@ -81,11 +81,11 @@ switch ($type) {
}
header
(
'Content-type: '
.
'image/gif'
);
if
(
$path
=
theme_get_
image_
path
(
'images/no_userphoto'
.
$size
.
'.gif'
))
{
if
(
$path
=
theme_get_path
(
'images/no_userphoto'
.
$size
.
'.gif'
))
{
readfile
(
$path
);
exit
;
}
readfile
(
theme_get_
image_
path
(
'images/no_userphoto40x40.gif'
));
readfile
(
theme_get_path
(
'images/no_userphoto40x40.gif'
));
break
;
}
...
...
htdocs/view/create3.php
View file @
63297942
...
...
@@ -135,8 +135,8 @@ $smarty = smarty(
)
);
$smarty
->
assign
(
'rootinfo'
,
$rootinfo
);
$smarty
->
assign
(
'plusicon'
,
theme_get_
image_
url
(
'plus.png'
));
$smarty
->
assign
(
'minusicon'
,
theme_get_
image_
url
(
'minus.png'
));
$smarty
->
assign
(
'plusicon'
,
theme_get_url
(
'plus.png'
));
$smarty
->
assign
(
'minusicon'
,
theme_get_url
(
'minus.png'
));
$smarty
->
assign
(
'template'
,
$template
);
...
...
htdocs/view/edit.php
View file @
63297942
...
...
@@ -201,8 +201,8 @@ $smarty = smarty(
)
);
$smarty
->
assign
(
'rootinfo'
,
$rootinfo
);
$smarty
->
assign
(
'plusicon'
,
theme_get_
image_
url
(
'plus.png'
));
$smarty
->
assign
(
'minusicon'
,
theme_get_
image_
url
(
'minus.png'
));
$smarty
->
assign
(
'plusicon'
,
theme_get_url
(
'plus.png'
));
$smarty
->
assign
(
'minusicon'
,
theme_get_url
(
'minus.png'
));
$smarty
->
assign
(
'template'
,
$template
);
...
...
Write
Preview
Markdown
is supported
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