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
f795d462
Commit
f795d462
authored
Jul 16, 2009
by
Richard Mansfield
Browse files
Raw theme: preferences page
parent
ebf03d33
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/account/index.php
View file @
f795d462
...
@@ -43,7 +43,7 @@ $authobj = AuthFactory::create($USER->authinstance);
...
@@ -43,7 +43,7 @@ $authobj = AuthFactory::create($USER->authinstance);
if
(
method_exists
(
$authobj
,
'change_password'
))
{
if
(
method_exists
(
$authobj
,
'change_password'
))
{
$elements
=
array
(
$elements
=
array
(
'changepassworddesc'
=>
array
(
'changepassworddesc'
=>
array
(
'value'
=>
'<tr><t
d
colspan="2"><h3>'
.
get_string
(
'changepassworddesc'
,
'account'
)
.
'</h3></t
d
></tr>'
'value'
=>
'<tr><t
h
colspan="2"><h3>'
.
get_string
(
'changepassworddesc'
,
'account'
)
.
'</h3></t
h
></tr>'
),
),
'oldpassword'
=>
array
(
'type'
=>
'password'
,
'oldpassword'
=>
array
(
'type'
=>
'password'
,
'title'
=>
get_string
(
'oldpassword'
),
'title'
=>
get_string
(
'oldpassword'
),
...
@@ -64,7 +64,7 @@ else if ($url = get_config_plugin_instance('auth', $USER->authinstance, 'changep
...
@@ -64,7 +64,7 @@ else if ($url = get_config_plugin_instance('auth', $USER->authinstance, 'changep
// @todo contextual help
// @todo contextual help
$elements
=
array
(
$elements
=
array
(
'changepasswordotherinterface'
=>
array
(
'changepasswordotherinterface'
=>
array
(
'value'
=>
'<tr><t
d
colspan="2"><h3>'
.
get_string
(
'changepasswordotherinterface'
,
'account'
,
$url
)
.
'</h3></t
d
></tr>'
'value'
=>
'<tr><t
h
colspan="2"><h3>'
.
get_string
(
'changepasswordotherinterface'
,
'account'
,
$url
)
.
'</h3></t
h
></tr>'
)
)
);
);
}
}
...
@@ -74,7 +74,7 @@ else {
...
@@ -74,7 +74,7 @@ else {
if
(
$authobj
->
authname
==
'internal'
)
{
if
(
$authobj
->
authname
==
'internal'
)
{
$elements
[
'changeusernameheading'
]
=
array
(
$elements
[
'changeusernameheading'
]
=
array
(
'value'
=>
'<tr><t
d
colspan="2"><h3>'
.
get_string
(
'changeusernameheading'
,
'account'
)
.
'</h3></t
d
></tr>'
'value'
=>
'<tr><t
h
colspan="2"><h3>'
.
get_string
(
'changeusernameheading'
,
'account'
)
.
'</h3></t
h
></tr>'
);
);
$elements
[
'username'
]
=
array
(
$elements
[
'username'
]
=
array
(
'type'
=>
'text'
,
'type'
=>
'text'
,
...
@@ -85,7 +85,7 @@ if ($authobj->authname == 'internal') {
...
@@ -85,7 +85,7 @@ if ($authobj->authname == 'internal') {
}
}
$elements
[
'accountoptionsdesc'
]
=
array
(
$elements
[
'accountoptionsdesc'
]
=
array
(
'value'
=>
'<tr><t
d
colspan="2"><h3>'
.
get_string
(
'accountoptionsdesc'
,
'account'
)
.
'</h3></t
d
></tr>'
'value'
=>
'<tr><t
h
colspan="2"><h3>'
.
get_string
(
'accountoptionsdesc'
,
'account'
)
.
'</h3></t
h
></tr>'
);
);
$elements
[
'friendscontrol'
]
=
array
(
$elements
[
'friendscontrol'
]
=
array
(
'type'
=>
'radio'
,
'type'
=>
'radio'
,
...
@@ -242,7 +242,7 @@ function clearPasswords(form, data) {
...
@@ -242,7 +242,7 @@ function clearPasswords(form, data) {
}
}
}
}
"
);
"
);
$smarty
->
assign
(
'
heading'
,
get_string
(
'preferences'
));
$smarty
->
assign
(
'
PAGEHEADING'
,
hsc
(
get_string
(
'preferences'
))
)
;
$smarty
->
display
(
'account/index.tpl'
);
$smarty
->
display
(
'account/index.tpl'
);
...
...
htdocs/theme/raw/templates/account/index.tpl
View file @
f795d462
{
include
file
=
"header.tpl"
}
{
include
file
=
"header.tpl"
}
{
include
file
=
"sidebar.tpl"
}
{
include
file
=
"columnleftstart.tpl"
}
{
$form
}
{
$form
}
{
include
file
=
"columnleftend.tpl"
}
{
include
file
=
"footer.tpl"
}
{
include
file
=
"footer.tpl"
}
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