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