This repository has been archived by the owner on Aug 30, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(layout): implement a different UI for embeds
- Loading branch information
1 parent
e30e0d5
commit dd1855f
Showing
16 changed files
with
404 additions
and
87 deletions.
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,40 @@ | ||
<?php | ||
/** | ||
* Layout of embed panel loaded in lightbox | ||
*/ | ||
|
||
// So we get a selected a tab | ||
elgg_view_menu('embed', [ | ||
'sort_by' => 'priority' | ||
]); | ||
|
||
$selected = elgg_get_config('embed_tab'); | ||
|
||
if ($selected->getData('view')) { | ||
$tab = elgg_view($selected->getData('view'), $vars); | ||
} else { | ||
$tab = elgg_list_entities( | ||
embed_get_list_options($selected->getData('options')), | ||
'elgg_get_entities', | ||
'embed_list_items' | ||
); | ||
|
||
if (!$tab) { | ||
$tab = elgg_echo('embed:no_section_content'); | ||
} | ||
} | ||
|
||
$tab .= elgg_view('graphics/ajax_loader', [ | ||
'class' => 'embed-throbber', | ||
]); | ||
|
||
$container_info = elgg_view('input/hidden', [ | ||
'name' => 'embed_container_guid', | ||
'value' => elgg_get_page_owner_guid(), | ||
]); | ||
|
||
?> | ||
<div class="embed-wrapper"> | ||
<?= $tab ?> | ||
<?= $container_info ?> | ||
</div> |
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
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
Oops, something went wrong.