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
e9d202ca
Commit
e9d202ca
authored
Aug 05, 2015
by
Robert Lyon
Committed by
Gerrit Code Review
Aug 05, 2015
Browse files
Merge "Bug 1478361: allowing the tab menus to look the same"
parents
de4e9ec3
3474b314
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/internal/socialprofile.php
View file @
e9d202ca
...
@@ -14,6 +14,7 @@ define('INTERNAL', true);
...
@@ -14,6 +14,7 @@ define('INTERNAL', true);
define
(
'MENUITEM'
,
'content/profile'
);
define
(
'MENUITEM'
,
'content/profile'
);
define
(
'SECTION_PLUGINTYPE'
,
'artefact'
);
define
(
'SECTION_PLUGINTYPE'
,
'artefact'
);
define
(
'SECTION_PLUGINNAME'
,
'internal'
);
define
(
'SECTION_PLUGINNAME'
,
'internal'
);
define
(
'SECTION_PAGE'
,
'social'
);
define
(
'INTERNAL_SUBPAGE'
,
'social'
);
define
(
'INTERNAL_SUBPAGE'
,
'social'
);
require_once
(
dirname
(
dirname
(
dirname
(
__FILE__
)))
.
'/init.php'
);
require_once
(
dirname
(
dirname
(
dirname
(
__FILE__
)))
.
'/init.php'
);
...
@@ -124,7 +125,7 @@ else {
...
@@ -124,7 +125,7 @@ else {
'type'
=>
'submitcancel'
,
'type'
=>
'submitcancel'
,
'class'
=>
'btn-success'
,
'class'
=>
'btn-success'
,
'value'
=>
array
(
get_string
(
'save'
),
get_string
(
'cancel'
)),
'value'
=>
array
(
get_string
(
'save'
),
get_string
(
'cancel'
)),
'goto'
=>
get_config
(
'wwwroot'
)
.
'
/
artefact/internal/index.php?fs=social'
,
'goto'
=>
get_config
(
'wwwroot'
)
.
'artefact/internal/index.php?fs=social'
,
),
),
)
)
);
);
...
@@ -140,7 +141,7 @@ else {
...
@@ -140,7 +141,7 @@ else {
$smarty
=
smarty
();
$smarty
=
smarty
();
$smarty
->
assign
(
'PAGEHEADING'
,
TITLE
);
$smarty
->
assign
(
'PAGEHEADING'
,
TITLE
);
$smarty
->
assign
(
'
SUBPAGENAV
'
,
PluginArtefactInternal
::
submenu_items
());
$smarty
->
assign
(
'
navtabs
'
,
PluginArtefactInternal
::
submenu_items
());
$smarty
->
assign
(
'subheading'
,
$subheading
);
$smarty
->
assign
(
'subheading'
,
$subheading
);
$smarty
->
assign
(
'form'
,
$form
);
$smarty
->
assign
(
'form'
,
$form
);
$smarty
->
assign
(
'message'
,
$message
);
$smarty
->
assign
(
'message'
,
$message
);
...
@@ -153,7 +154,7 @@ function deleteprofileform_submit(Pieform $form, $values) {
...
@@ -153,7 +154,7 @@ function deleteprofileform_submit(Pieform $form, $values) {
$todelete
->
delete
();
$todelete
->
delete
();
$SESSION
->
add_ok_msg
(
get_string
(
'profiledeletedsuccessfully'
,
'artefact.internal'
));
$SESSION
->
add_ok_msg
(
get_string
(
'profiledeletedsuccessfully'
,
'artefact.internal'
));
redirect
(
'
/
artefact/internal/index.php?fs=social'
);
redirect
(
get_config
(
'wwwroot'
)
.
'artefact/internal/index.php?fs=social'
);
}
}
function
editprofileform_validate
(
Pieform
$form
,
$values
)
{
function
editprofileform_validate
(
Pieform
$form
,
$values
)
{
...
@@ -209,5 +210,5 @@ function editprofileform_submit(Pieform $form, $values) {
...
@@ -209,5 +210,5 @@ function editprofileform_submit(Pieform $form, $values) {
$toedit
->
commit
();
$toedit
->
commit
();
$SESSION
->
add_ok_msg
(
get_string
(
'profilesavedsuccessfully'
,
'artefact.internal'
));
$SESSION
->
add_ok_msg
(
get_string
(
'profilesavedsuccessfully'
,
'artefact.internal'
));
redirect
(
'
/
artefact/internal/index.php?fs=social'
);
redirect
(
get_config
(
'wwwroot'
)
.
'artefact/internal/index.php?fs=social'
);
}
}
htdocs/theme/raw/plugintype/artefact/internal/templates/socialprofile.tpl
View file @
e9d202ca
{
include
file
=
"header.tpl"
}
{
include
file
=
"header.tpl"
}
<ul
class=
"nav nav-tabs"
>
{
foreach
from
=
$navtabs
item
=
item
}
<li
class=
"
{
if
$item.class
}{
$item.class
}
{/
if
}{
if
$item.selected
}
active
{/
if
}
"
role=
"presentation"
>
<a
href=
"
{
$WWWROOT
}{
$item.url
}
#profileform_
{
$item.page
}
_container"
>
{
$item.title
}
<span
class=
"accessible-hidden sr-only"
>
(
{
str
tag
=
tab
}{
if
$item.selected
}
{
str
tag
=
selected
}{/
if
}
)
</span>
</a>
</li>
{/
foreach
}
</ul>
<div
class=
"pbxl"
></div>
{
if
$message
}
{
if
$message
}
<div
class=
"deletemessage"
>
<div
class=
"deletemessage"
>
<h2>
{
$subheading
}
</h2>
<h2>
{
$subheading
}
</h2>
...
...
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