mirror of
https://github.com/friendica/friendica
synced 2025-04-26 22:30:18 +00:00
Refactor widgets
- Move widget templates to subfolder - Add new generic filter widget templates to replace category, network and filer filters - Update styles
This commit is contained in:
parent
6cc376020e
commit
71ae8d07a6
37 changed files with 260 additions and 308 deletions
|
@ -59,7 +59,7 @@ class CalendarExport
|
|||
// of the profile page it should be the personal /events page. So we can use $a->user.
|
||||
$user = defaults($a->data['user'], 'nickname', $a->user['nickname']);
|
||||
|
||||
$tpl = Renderer::getMarkupTemplate("events_aside.tpl");
|
||||
$tpl = Renderer::getMarkupTemplate("widget/events.tpl");
|
||||
$return = Renderer::replaceMacros($tpl, [
|
||||
'$etitle' => L10n::t("Export"),
|
||||
'$export_ical' => L10n::t("Export calendar as ical"),
|
||||
|
|
|
@ -26,7 +26,7 @@ class ContactBlock
|
|||
/**
|
||||
* Get HTML for contact block
|
||||
*
|
||||
* @template contact_block.tpl
|
||||
* @template widget/contacts.tpl
|
||||
* @hook contact_block_end (contacts=>array, output=>string)
|
||||
* @return string
|
||||
*/
|
||||
|
@ -102,7 +102,7 @@ class ContactBlock
|
|||
DBA::close($contact_ids_stmt);
|
||||
}
|
||||
|
||||
$tpl = Renderer::getMarkupTemplate('contact_block.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('widget/contacts.tpl');
|
||||
$o = Renderer::replaceMacros($tpl, [
|
||||
'$contacts' => $contacts_title,
|
||||
'$nickname' => $profile['nickname'],
|
||||
|
|
|
@ -49,7 +49,7 @@ class TagCloud
|
|||
$tags[] = $tag;
|
||||
}
|
||||
|
||||
$tpl = Renderer::getMarkupTemplate('tagblock_widget.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('widget/tagcloud.tpl');
|
||||
$o = Renderer::replaceMacros($tpl, [
|
||||
'$title' => L10n::t('Tags'),
|
||||
'$tags' => $tags
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue