forked from PerJensen/elgg_connect
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added option to enable landing page on the walled garden mode
- Loading branch information
1 parent
b5fd9b6
commit d9138de
Showing
4 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
if ((bool) elgg_get_plugin_setting('walled_garden', 'elgg_theme')) { | ||
elgg_push_context('elgg_theme'); | ||
$class = ['class' => 'elgg-landing-page']; | ||
|
||
$body = elgg_view_layout('front_page'); | ||
echo elgg_view_page(null, $body, 'default', ['body_attrs' => $class]); | ||
} else { | ||
echo elgg_view_page('', [ | ||
'content' => elgg_view('core/account/login_box', ['title' => false]), | ||
'title' => elgg_echo('login'), | ||
'sidebar' => false, | ||
'filter' => false, | ||
], 'walled_garden'); | ||
} |