Commit 6c8ea95e authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Change Profile menu to 'My Content' and move blogs, files & plans under it


Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent 8266a369
......@@ -26,7 +26,7 @@
*/
define('INTERNAL', 1);
define('MENUITEM', 'myportfolio/blogs');
define('MENUITEM', 'content/blogs');
define('SECTION_PLUGINTYPE', 'artefact');
define('SECTION_PLUGINNAME', 'blog');
define('SECTION_PAGE', 'index');
......
......@@ -50,8 +50,8 @@ class PluginArtefactBlog extends PluginArtefact {
public static function menu_items() {
global $USER;
$tab = array(
'path' => 'myportfolio/blogs',
'weight' => 50,
'path' => 'content/blogs',
'weight' => 40,
);
if ($USER->get_account_preference('multipleblogs')) {
$tab['url'] = 'artefact/blog/';
......
......@@ -26,7 +26,7 @@
*/
define('INTERNAL', 1);
define('MENUITEM', 'myportfolio/blogs');
define('MENUITEM', 'content/blogs');
define('SECTION_PLUGINTYPE', 'artefact');
define('SECTION_PLUGINNAME', 'blog');
define('SECTION_PAGE', 'new');
......
......@@ -26,7 +26,7 @@
*/
define('INTERNAL', 1);
define('MENUITEM', 'myportfolio/blogs');
define('MENUITEM', 'content/blogs');
define('SECTION_PLUGINTYPE', 'artefact');
define('SECTION_PLUGINNAME', 'blog');
define('SECTION_PAGE', 'post');
......
......@@ -26,7 +26,7 @@
*/
define('INTERNAL', 1);
define('MENUITEM', 'myportfolio/blogs');
define('MENUITEM', 'content/blogs');
define('SECTION_PLUGINTYPE', 'artefact');
define('SECTION_PLUGINNAME', 'blog');
define('SECTION_PAGE', 'settings');
......
......@@ -26,7 +26,7 @@
*/
define('INTERNAL', 1);
define('MENUITEM', 'myportfolio/blogs');
define('MENUITEM', 'content/blogs');
define('SECTION_PLUGINTYPE', 'artefact');
define('SECTION_PLUGINNAME', 'blog');
define('SECTION_PAGE', 'view');
......
......@@ -26,7 +26,7 @@
*/
define('INTERNAL', 1);
define('MENUITEM', 'myportfolio/files');
define('MENUITEM', 'content/files');
require(dirname(dirname(dirname(__FILE__))) . '/init.php');
safe_require('artefact', 'file');
......
......@@ -26,7 +26,7 @@
*/
define('INTERNAL', 1);
define('MENUITEM', 'myportfolio/files');
define('MENUITEM', 'content/files');
define('SECTION_PLUGINTYPE', 'artefact');
define('SECTION_PLUGINNAME', 'file');
define('SECTION_PAGE', 'index');
......
......@@ -50,16 +50,16 @@ class PluginArtefactFile extends PluginArtefact {
public static function menu_items() {
return array(
array(
'path' => 'myportfolio/files',
'path' => 'content/files',
'url' => 'artefact/file/',
'title' => get_string('Files', 'artefact.file'),
'weight' => 40,
'weight' => 30,
),
array(
'path' => 'profile/icons',
'path' => 'content/profileicons',
'url' => 'artefact/file/profileicons.php',
'title' => get_string('profileicons', 'artefact.file'),
'weight' => 11,
'weight' => 20,
),
);
}
......
......@@ -26,7 +26,7 @@
*/
define('INTERNAL', 1);
define('MENUITEM', 'profile/icons');
define('MENUITEM', 'content/profileicons');
define('SECTION_PLUGINTYPE', 'artefact');
define('SECTION_PLUGINNAME', 'file');
define('SECTION_PAGE', 'profileicons');
......
......@@ -26,13 +26,13 @@
*/
define('INTERNAL', 1);
define('MENUITEM', 'profile/edit');
define('MENUITEM', 'content/profile');
define('SECTION_PLUGINTYPE', 'artefact');
define('SECTION_PLUGINNAME', 'internal');
define('SECTION_PAGE', 'index');
require(dirname(dirname(dirname(__FILE__))) . '/init.php');
define('TITLE', get_string('editprofile','artefact.internal'));
define('TITLE', get_string('profile','artefact.internal'));
require_once('pieforms/pieform.php');
safe_require('artefact', 'internal');
......
......@@ -113,8 +113,6 @@ $string['emailingfailed'] = 'Profile saved, but emails were not sent to: %s';
$string['loseyourchanges'] = 'Lose your changes?';
$string['editprofile'] = 'Edit Profile';
$string['editmyprofile'] = 'Edit My Profile';
$string['Title'] = 'Title';
$string['Created'] = 'Created';
......
......@@ -93,15 +93,9 @@ class PluginArtefactInternal extends PluginArtefact {
public static function menu_items() {
return array(
array(
'path' => 'profile',
'url' => 'artefact/internal/', // @todo possibly do path aliasing and dispatch?
'title' => get_string('profile', 'artefact.internal'),
'weight' => 20,
),
array(
'path' => 'profile/edit',
'path' => 'content/profile',
'url' => 'artefact/internal/',
'title' => get_string('editprofile', 'artefact.internal'),
'title' => get_string('profile', 'artefact.internal'),
'weight' => 10,
),
);
......
......@@ -26,7 +26,7 @@
*/
define('INTERNAL', true);
define('MENUITEM', 'myportfolio/plans');
define('MENUITEM', 'content/plans');
require_once(dirname(dirname(dirname(dirname(__FILE__)))) . '/init.php');
require_once('pieforms/pieform.php');
......
......@@ -26,7 +26,7 @@
*/
define('INTERNAL', true);
define('MENUITEM', 'myportfolio/plans');
define('MENUITEM', 'content/plans');
require_once(dirname(dirname(dirname(dirname(__FILE__)))) . '/init.php');
require_once('pieforms/pieform.php');
......
......@@ -26,7 +26,7 @@
*/
define('INTERNAL', true);
define('MENUITEM', 'myportfolio/myplans');
define('MENUITEM', 'content/plans');
require_once(dirname(dirname(dirname(dirname(__FILE__)))) . '/init.php');
require_once('pieforms/pieform.php');
......
......@@ -26,7 +26,7 @@
*/
define('INTERNAL', true);
define('MENUITEM', 'myportfolio/myplans');
define('MENUITEM', 'content/plans');
require_once(dirname(dirname(dirname(dirname(__FILE__)))) . '/init.php');
require_once('pieforms/pieform.php');
......
......@@ -27,7 +27,7 @@
define('INTERNAL', 1);
define('MENUITEM', 'myportfolio/plans');
define('MENUITEM', 'content/plans');
define('SECTION_PLUGINTYPE', 'artefact');
define('SECTION_PLUGINNAME', 'plans');
define('SECTION_PAGE', 'index');
......
......@@ -46,7 +46,7 @@ class PluginArtefactPlans extends PluginArtefact {
public static function menu_items() {
return array(
array(
'path' => 'myportfolio/plans',
'path' => 'content/plans',
'url' => 'artefact/plans/',
'title' => get_string('Plans', 'artefact.plans'),
'weight' => 60,
......
......@@ -26,7 +26,7 @@
*/
define('INTERNAL', 1);
define('MENUITEM', 'myportfolio/plans');
define('MENUITEM', 'content/plans');
define('SECTION_PLUGINTYPE', 'artefact');
define('SECTION_PLUGINNAME', 'plans');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment