From b7f6cceaea464df81fac872d2d7b863bd02746de Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 24 Apr 2015 22:37:22 +0200 Subject: provide block titles in blocklist --- include/conversation.php | 1 + mod/blocks.php | 4 +++- view/css/mod_blocks.css | 8 ++++---- view/tpl/blocklist.tpl | 10 +++++++--- 4 files changed, 15 insertions(+), 8 deletions(-) diff --git a/include/conversation.php b/include/conversation.php index 19c5bda14..42ce140a6 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1200,6 +1200,7 @@ function status_editor($a, $x, $popup = false) { '$shortnoloc' => t('clear location'), '$title' => ((x($x, 'title')) ? htmlspecialchars($x['title'], ENT_COMPAT,'UTF-8') : ''), '$placeholdertitle' => t('Title (optional)'), + '$hidetitle' => ((x($x, 'hidetitle')) ? $x['hidetitle'] : false), '$catsenabled' => ((feature_enabled($x['profile_uid'], 'categories') && (! $webpage)) ? 'categories' : ''), '$category' => "", '$placeholdercategory' => t('Categories (optional, comma-separated list)'), diff --git a/mod/blocks.php b/mod/blocks.php index 5df6aa1bc..23a66f8d9 100644 --- a/mod/blocks.php +++ b/mod/blocks.php @@ -128,7 +128,8 @@ function blocks_content(&$a) { ); $pages[$rr['iid']][] = array( 'url' => $rr['iid'], - 'title' => $rr['sid'], + 'name' => $rr['sid'], + 'title' => $rr['title'], 'created' => $rr['created'], 'edited' => $rr['edited'], 'bb_element' => '[element]' . base64url_encode(json_encode($element_arr)) . '[/element]' @@ -143,6 +144,7 @@ function blocks_content(&$a) { '$baseurl' => $url, '$title' => t('Blocks'), '$name' => t('Block Name'), + '$blocktitle' => t('Block Title'), '$created' => t('Created'), '$edited' => t('Edited'), '$create' => t('Create'), diff --git a/view/css/mod_blocks.css b/view/css/mod_blocks.css index c930f5dc8..e17d19750 100644 --- a/view/css/mod_blocks.css +++ b/view/css/mod_blocks.css @@ -15,14 +15,14 @@ padding: 7px 3px 7px 10px; } -#block-list-table th:nth-child(5), -#block-list-table td:nth-child(5){ +#block-list-table th:nth-child(6), +#block-list-table td:nth-child(6){ padding: 7px 3px; white-space: nowrap; } -#block-list-table th:nth-child(6), -#block-list-table td:nth-child(6){ +#block-list-table th:nth-child(7), +#block-list-table td:nth-child(7){ padding: 7px 10px 7px 7px; white-space: nowrap; } diff --git a/view/tpl/blocklist.tpl b/view/tpl/blocklist.tpl index f599aade7..f653ef59d 100644 --- a/view/tpl/blocklist.tpl +++ b/view/tpl/blocklist.tpl @@ -16,7 +16,8 @@
- + + @@ -28,11 +29,14 @@ +
{{$name}}{{$name}}{{$blocktitle}}
{{if $view}} - {{$item.title}} + {{$item.name}} {{else}} - {{$item.title}} + {{$item.name}} {{/if}} + {{$item.title}} + {{if $edit}} -- cgit v1.2.3