Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TandemPlugin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Uni Osnabrück
Plugins
TandemPlugin
Commits
5d1bb235
Commit
5d1bb235
authored
2 years ago
by
Elmar Ludwig
Browse files
Options
Downloads
Patches
Plain Diff
add local changes
parent
9fce380e
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
TandemPlugin.class.php
+7
-2
7 additions, 2 deletions
TandemPlugin.class.php
plugin.manifest
+1
-1
1 addition, 1 deletion
plugin.manifest
with
8 additions
and
3 deletions
TandemPlugin.class.php
+
7
−
2
View file @
5d1bb235
...
...
@@ -20,7 +20,7 @@ require_once(__DIR__ . '/models/BlocklistEntry.class.php');
require_once
(
__DIR__
.
'/classes/TandemMatching.class.php'
);
class
TandemPlugin
extends
StudIPPlugin
implements
SystemPlugin
,
PortalPlugin
class
TandemPlugin
extends
StudIPPlugin
implements
SystemPlugin
,
PortalPlugin
,
HomepagePlugin
{
public
static
function
isGenderSearchEnabled
()
:
bool
...
...
@@ -65,7 +65,7 @@ class TandemPlugin extends StudIPPlugin implements SystemPlugin, PortalPlugin
//navigation items:
if
(
Navigation
::
hasItem
(
'/profile'
))
{
if
(
Navigation
::
hasItem
(
'/profile'
)
&&
$this
->
isActivated
(
null
,
'user'
)
)
{
$user
=
User
::
findCurrent
();
$show_navigation
=
false
;
...
...
@@ -293,6 +293,11 @@ class TandemPlugin extends StudIPPlugin implements SystemPlugin, PortalPlugin
return
$template
;
}
public
function
getHomepageTemplate
(
$user_id
)
{
return
null
;
}
public
static
function
onEnable
(
$plugin_id
)
{
//Assign the TandemAdmin role to this plugin:
...
...
This diff is collapsed.
Click to expand it.
plugin.manifest
+
1
−
1
View file @
5d1bb235
pluginname=TandemPlugin
pluginclassname=TandemPlugin
origin=data-quest
version=1.6
version=1.6
.1-os
description=Dieses Plugin ermöglicht es, Sprachtandems innerhalb der Stud.IP Platform zu bilden.
studipMinVersion=5.5
studipMaxVersion=6.0.99
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