Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PlanetRed
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Digital Experience Group
PlanetRed
Commits
68ad5bc0
Commit
68ad5bc0
authored
15 years ago
by
Eric Rasmussen
Browse files
Options
Downloads
Patches
Plain Diff
moved globe plugin to plugins dir
parent
a8a42196
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
plugins/globe/index.php
+34
-0
34 additions, 0 deletions
plugins/globe/index.php
plugins/globe/start.php
+55
-0
55 additions, 0 deletions
plugins/globe/start.php
with
89 additions
and
0 deletions
plugins/globe/index.php
0 → 100644
+
34
−
0
View file @
68ad5bc0
<?php
/**
* Elgg globe plugin
*
* @package ElggGlobe
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
* @author Eric Rasmussen
* @copyright UNL 2009
* @link http://planetred.unl.edu/
*/
require_once
(
dirname
(
dirname
(
dirname
(
__FILE__
)))
.
"/engine/start.php"
);
$x
=
'afasf'
;
var_dump
(
$x
);
$limit
=
get_input
(
"limit"
,
10
);
$offset
=
get_input
(
"offset"
,
0
);
$title
=
sprintf
(
elgg_echo
(
"groups:owned"
),
page_owner_entity
()
->
name
);
// Get objects
$area2
=
elgg_view_title
(
$title
);
set_context
(
'search'
);
$objects
=
list_entities
(
"group"
,
""
,
page_owner
(),
$limit
,
false
);
set_context
(
'groups'
);
$area2
.
=
$objects
;
$body
=
elgg_view_layout
(
'two_column_left_sidebar'
,
$area1
,
$area2
);
// Finally draw the page
page_draw
(
$title
,
$body
);
?>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
plugins/globe/start.php
0 → 100644
+
55
−
0
View file @
68ad5bc0
<?php
/**
* Elgg globe plugin
*
* @package ElggGlobe
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
* @author Eric Rasmussen
* @copyright UNL 2009
* @link http://planetred.unl.edu/
*/
/**
* Initialise the groups plugin.
* Register actions, set up menus
*/
function
globe_init
()
{
global
$CONFIG
;
// Set up the menu for logged in users
if
(
isloggedin
())
{
add_menu
(
elgg_echo
(
'globe'
),
$CONFIG
->
wwwroot
.
"globe/"
);
//add_menu(elgg_echo('groups:alldiscussion'),$CONFIG->wwwroot."mod/groups/discussions.php");
}
else
{
add_menu
(
elgg_echo
(
'globe'
),
$CONFIG
->
wwwroot
.
"globe/"
);
}
register_page_handler
(
'globe'
,
'globe_page_handler'
);
}
function
globe_page_handler
(
$page
)
{
switch
(
$page
[
0
])
{
case
'friends'
:
include
(
$CONFIG
->
pluginspath
.
"groups/new.php"
);
break
;
default
:
include
(
$CONFIG
->
pluginspath
.
"groups/index.php"
);
break
;
}
}
register_elgg_event_handler
(
'init'
,
'system'
,
'globe_init'
);
?>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment