mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 15:55:13 +00:00
Provide webpage layout description
This commit is contained in:
parent
e01873b4cf
commit
31b5b06e42
4 changed files with 18 additions and 7 deletions
|
@ -1199,7 +1199,7 @@ function status_editor($a, $x, $popup = false) {
|
|||
'$noloc' => ((get_pconfig($x['profile_uid'], 'system', 'use_browser_location')) ? t('Clear browser location') : ''),
|
||||
'$shortnoloc' => t('clear location'),
|
||||
'$title' => ((x($x, 'title')) ? htmlspecialchars($x['title'], ENT_COMPAT,'UTF-8') : ''),
|
||||
'$placeholdertitle' => t('Title (optional)'),
|
||||
'$placeholdertitle' => ((x($x, 'placeholdertitle')) ? $x['placeholdertitle'] : t('Title (optional)')),
|
||||
'$hidetitle' => ((x($x, 'hidetitle')) ? $x['hidetitle'] : false),
|
||||
'$catsenabled' => ((feature_enabled($x['profile_uid'], 'categories') && (! $webpage)) ? 'categories' : ''),
|
||||
'$category' => "",
|
||||
|
|
|
@ -120,7 +120,8 @@ function layouts_content(&$a) {
|
|||
'nopreview' => 1,
|
||||
'ptlabel' => t('Layout Name'),
|
||||
'profile_uid' => intval($owner),
|
||||
'expanded' => true
|
||||
'expanded' => true,
|
||||
'placeholdertitle' => t('Layout Description')
|
||||
);
|
||||
|
||||
if($_REQUEST['title'])
|
||||
|
@ -154,7 +155,8 @@ function layouts_content(&$a) {
|
|||
);
|
||||
$pages[$rr['iid']][] = array(
|
||||
'url' => $rr['iid'],
|
||||
'title' => $rr['sid'],
|
||||
'title' => $rr['sid'],
|
||||
'descr' => $rr['title'],
|
||||
'mid' => $rr['mid'],
|
||||
'created' => $rr['created'],
|
||||
'edited' => $rr['edited'],
|
||||
|
@ -173,6 +175,7 @@ function layouts_content(&$a) {
|
|||
'$editor' => $editor,
|
||||
'$baseurl' => $url,
|
||||
'$name' => t('Layout Name'),
|
||||
'$descr' => t('Layout Description'),
|
||||
'$created' => t('Created'),
|
||||
'$edited' => t('Edited'),
|
||||
'$edit' => t('Edit'),
|
||||
|
|
|
@ -15,14 +15,18 @@
|
|||
padding: 7px 3px 7px 10px;
|
||||
}
|
||||
|
||||
#layout-list-table th:nth-child(5),
|
||||
#layout-list-table td:nth-child(5){
|
||||
padding: 7px 3px;
|
||||
#layout-list-table th:nth-child(2){
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
#layout-list-table th:nth-child(6),
|
||||
#layout-list-table td:nth-child(6){
|
||||
padding: 7px 3px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
#layout-list-table th:nth-child(7),
|
||||
#layout-list-table td:nth-child(7){
|
||||
padding: 7px 10px 7px 7px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
|
|
@ -18,7 +18,8 @@
|
|||
<div id="pagelist-content-wrapper" class="section-content-wrapper-np">
|
||||
<table id="layout-list-table">
|
||||
<tr>
|
||||
<th width="97%">{{$name}}</th>
|
||||
<th width="1%">{{$name}}</th>
|
||||
<th width="94%">{{$descr}}</th>
|
||||
<th width="1%"></th>
|
||||
<th width="1%"></th>
|
||||
<th width="1%"></th>
|
||||
|
@ -35,6 +36,9 @@
|
|||
{{$item.title}}
|
||||
{{/if}}
|
||||
</td>
|
||||
<td>
|
||||
{{$item.descr}}
|
||||
</td>
|
||||
<td class="webpage-list-tool">
|
||||
{{if $edit}}
|
||||
<a href="{{$baseurl}}/{{$item.url}}" title="{{$edit}}"><i class="icon-pencil"></i></a>
|
||||
|
|
Loading…
Reference in a new issue