Small amount of work on webpages.
This commit is contained in:
parent
c28f7e0622
commit
f45efcab78
@ -65,8 +65,11 @@ $r = q("select * from item_id where uid = %d and service = 'WEBPAGE'",
|
|||||||
|
|
||||||
// This isn't pretty, but it works. Until I figure out what to do with the UI, it's Good Enough(TM).
|
// This isn't pretty, but it works. Until I figure out what to do with the UI, it's Good Enough(TM).
|
||||||
return $o . replace_macros(get_markup_template("webpagelist.tpl"), array(
|
return $o . replace_macros(get_markup_template("webpagelist.tpl"), array(
|
||||||
'$editlink' => t('Edit'),
|
'$editlink' => t('Edit'),
|
||||||
'$pages' => $pages,
|
'$pages' => $pages,
|
||||||
|
'$channel' => $a->profile['channel_address'],
|
||||||
|
'$view' => t('View'),
|
||||||
|
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
||||||
|
@ -168,3 +168,15 @@ ul.menu-popup .menu-sep {
|
|||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
box-shadow: 4px 4px 3px #000;
|
box-shadow: 4px 4px 3px #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
div#pagelist-content-wrapper {
|
||||||
|
width: 80%;
|
||||||
|
background: #111;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.page-list-item {
|
||||||
|
margin: 20px;
|
||||||
|
}
|
||||||
|
@ -3894,3 +3894,15 @@ width: 200px;
|
|||||||
margin-right: 25px;
|
margin-right: 25px;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
div#pagelist-content-wrapper {
|
||||||
|
width: 80%;
|
||||||
|
background: #fff;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.page-list-item {
|
||||||
|
margin: 20px;
|
||||||
|
}
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
{{if $pages}}
|
{{if $pages}}
|
||||||
<div id="pagelist-content-wrapper">
|
|
||||||
{{foreach $pages as $key => $items}}
|
<div id="pagelist-content-wrapper">
|
||||||
<ul class="page-list">
|
{{foreach $pages as $key => $items}}
|
||||||
{{foreach $items as $item}}
|
{{foreach $items as $item}}
|
||||||
<li><a href="editwebpage/{{$item.url}}">{{$editlink}}</a> {{$item.title}}</li>
|
<div class="page-list-item"><a href="editwebpage/{{$item.url}}">{{$editlink}}</a> | <a href="page/{{$channel}}/{{$item.title}}">{{$view}}</a> {{$item.title}}</div>
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
</ul>
|
{{/foreach}}
|
||||||
<div class="clear"></div>
|
</div>
|
||||||
</div>
|
|
||||||
{{/foreach}}
|
<div class="clear"></div>
|
||||||
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
Reference in New Issue
Block a user