bring some more generic-content-wrappers and fix some of them

This commit is contained in:
Mario Vavti 2015-06-19 12:44:11 +02:00
parent 25e134dd9c
commit de84f48e2f
12 changed files with 283 additions and 274 deletions

View File

@ -247,7 +247,7 @@ class RedBrowser extends DAV\Browser\Plugin {
$this->server->broadcastEvent('onHTMLActionsPanel', array($parent, &$output)); $this->server->broadcastEvent('onHTMLActionsPanel', array($parent, &$output));
} }
$html .= replace_macros(get_markup_template('cloud_header.tpl'), array( $html .= replace_macros(get_markup_template('cloud.tpl'), array(
'$header' => t('Files') . ": " . $this->escapeHTML($path) . "/", '$header' => t('Files') . ": " . $this->escapeHTML($path) . "/",
'$quota' => $quota, '$quota' => $quota,
'$total' => t('Total'), '$total' => t('Total'),
@ -255,10 +255,7 @@ class RedBrowser extends DAV\Browser\Plugin {
'$shared' => t('Shared'), '$shared' => t('Shared'),
'$create' => t('Create'), '$create' => t('Create'),
'$upload' => t('Upload'), '$upload' => t('Upload'),
'$is_owner' => $is_owner '$is_owner' => $is_owner,
));
$html .= replace_macros(get_markup_template('cloud_directory.tpl'), array(
'$parentpath' => $parentpath, '$parentpath' => $parentpath,
'$entries' => $f, '$entries' => $f,
'$name' => t('Name'), '$name' => t('Name'),

View File

@ -1,4 +1,5 @@
<div class="section-title-wrapper"> <div class="generic-content-wrapper">
<div class="section-title-wrapper">
{{if $editor}} {{if $editor}}
<div class="pull-right"> <div class="pull-right">
<button id="webpage-create-btn" class="btn btn-xs btn-success" onclick="openClose('block-editor');"><i class="icon-edit"></i>&nbsp;{{$create}}</button> <button id="webpage-create-btn" class="btn btn-xs btn-success" onclick="openClose('block-editor');"><i class="icon-edit"></i>&nbsp;{{$create}}</button>
@ -6,14 +7,14 @@
{{/if}} {{/if}}
<h2>{{$title}}</h2> <h2>{{$title}}</h2>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
{{if $editor}} {{if $editor}}
<div id="block-editor" class="section-content-tools-wrapper"> <div id="block-editor" class="section-content-tools-wrapper">
{{$editor}} {{$editor}}
</div> </div>
{{/if}} {{/if}}
{{if $pages}} {{if $pages}}
<div id="pagelist-content-wrapper" class="section-content-wrapper-np"> <div id="pagelist-content-wrapper" class="section-content-wrapper-np">
<table id="block-list-table"> <table id="block-list-table">
<tr> <tr>
<th width="1%">{{$name}}</th> <th width="1%">{{$name}}</th>
@ -62,6 +63,7 @@
{{/foreach}} {{/foreach}}
{{/foreach}} {{/foreach}}
</table> </table>
</div>
<div class="clear"></div>
{{/if}}
</div> </div>
<div class="clear"></div>
{{/if}}

View File

@ -1,4 +1,4 @@
<div class="generic-content-wrapper section-content-wrapper-np"> <div class="section-content-wrapper-np">
<table id="cloud-index"> <table id="cloud-index">
<tr> <tr>
<th width="1%"></th> <th width="1%"></th>

View File

@ -4,7 +4,7 @@
</div> </div>
<div id="collapsed-comments-{{$item.id}}" class="collapsed-comments" style="display: none;"> <div id="collapsed-comments-{{$item.id}}" class="collapsed-comments" style="display: none;">
{{/if}} {{/if}}
<div id="thread-wrapper-{{$item.id}}" class="thread-wrapper {{$item.toplevel}}"> <div id="thread-wrapper-{{$item.id}}" class="thread-wrapper{{if $item.toplevel}} {{$item.toplevel}} generic-content-wrapper{{/if}}">
<a name="{{$item.id}}" ></a> <a name="{{$item.id}}" ></a>
<div class="wall-item-outside-wrapper {{$item.indent}}{{$item.previewing}}" id="wall-item-outside-wrapper-{{$item.id}}" > <div class="wall-item-outside-wrapper {{$item.indent}}{{$item.previewing}}" id="wall-item-outside-wrapper-{{$item.id}}" >
<div class="wall-item-content-wrapper {{$item.indent}}" id="wall-item-content-wrapper-{{$item.id}}" style="clear:both;"> <div class="wall-item-content-wrapper {{$item.indent}}" id="wall-item-content-wrapper-{{$item.id}}" style="clear:both;">

View File

@ -4,7 +4,7 @@
</div> </div>
<div id="collapsed-comments-{{$item.id}}" class="collapsed-comments" style="display: none;"> <div id="collapsed-comments-{{$item.id}}" class="collapsed-comments" style="display: none;">
{{/if}} {{/if}}
<div id="thread-wrapper-{{$item.id}}" class="thread-wrapper {{$item.toplevel}} conv-list-mode"> <div id="thread-wrapper-{{$item.id}}" class="thread-wrapper conv-list-mode{{if $item.toplevel}} {{$item.toplevel}} generic-content-wrapper{{/if}}">
<a name="{{$item.id}}" ></a> <a name="{{$item.id}}" ></a>
<div class="wall-item-outside-wrapper {{$item.indent}}{{$item.previewing}}" id="wall-item-outside-wrapper-{{$item.id}}" > <div class="wall-item-outside-wrapper {{$item.indent}}{{$item.previewing}}" id="wall-item-outside-wrapper-{{$item.id}}" >
<div class="wall-item-content-wrapper {{$item.indent}}" id="wall-item-content-wrapper-{{$item.id}}" style="clear:both;"> <div class="wall-item-content-wrapper {{$item.indent}}" id="wall-item-content-wrapper-{{$item.id}}" style="clear:both;">

View File

@ -1,6 +1,6 @@
<div id="threads-begin"></div> <div id="threads-begin"></div>
{{foreach $threads as $thread}} {{foreach $threads as $thread}}
<div id="thread-wrapper-{{$thread.id}}" class="thread-wrapper"> <div id="thread-wrapper-{{$thread.id}}" class="thread-wrapper generic-content-wrapper">
{{foreach $thread.items as $item}} {{foreach $thread.items as $item}}
{{if $item.comment_firstcollapsed}} {{if $item.comment_firstcollapsed}}
<div class="hide-comments-outer"> <div class="hide-comments-outer">

View File

@ -1,4 +1,5 @@
<div class="section-title-wrapper"> <div class="generic-content-wrapper">
<div class="section-title-wrapper">
{{if $editor}} {{if $editor}}
<div class="pull-right"> <div class="pull-right">
<button id="webpage-create-btn" class="btn btn-xs btn-success" onclick="openClose('layout-editor');"><i class="icon-edit"></i>&nbsp;{{$create}}</button> <button id="webpage-create-btn" class="btn btn-xs btn-success" onclick="openClose('layout-editor');"><i class="icon-edit"></i>&nbsp;{{$create}}</button>
@ -7,15 +8,15 @@
{{/if}} {{/if}}
<h2>{{$title}}</h2> <h2>{{$title}}</h2>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
{{if $editor}} {{if $editor}}
<div id="layout-editor" class="section-content-tools-wrapper"> <div id="layout-editor" class="section-content-tools-wrapper">
{{$editor}} {{$editor}}
</div> </div>
{{/if}} {{/if}}
{{if $pages}} {{if $pages}}
<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="1%">{{$name}}</th> <th width="1%">{{$name}}</th>
@ -64,6 +65,7 @@
{{/foreach}} {{/foreach}}
{{/foreach}} {{/foreach}}
</table> </table>
</div>
<div class="clear"></div>
{{/if}}
</div> </div>
<div class="clear"></div>
{{/if}}

View File

@ -1,15 +1,16 @@
<div class="section-title-wrapper"> <div class="generic-content-wrapper">
<div class="section-title-wrapper">
<div class="pull-right"> <div class="pull-right">
<button id="webpage-create-btn" class="btn btn-xs btn-success" onclick="openClose('menu-creator');"><i class="icon-edit"></i>&nbsp;{{$hintnew}}</button> <button id="webpage-create-btn" class="btn btn-xs btn-success" onclick="openClose('menu-creator');"><i class="icon-edit"></i>&nbsp;{{$hintnew}}</button>
</div> </div>
<h2>{{$title}}</h2> <h2>{{$title}}</h2>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
{{$create}} {{$create}}
{{if $menus }} {{if $menus }}
<div id="menulist-content-wrapper" class="section-content-wrapper-np"> <div id="menulist-content-wrapper" class="section-content-wrapper-np">
<table id="menu-list-table"> <table id="menu-list-table">
<tr> <tr>
<th width="1%"></th> <th width="1%"></th>
@ -34,5 +35,6 @@
</tr> </tr>
{{/foreach}} {{/foreach}}
</table> </table>
</div>
{{/if}}
</div> </div>
{{/if}}

View File

@ -1,4 +1,5 @@
<div class="section-title-wrapper"> <div class="generic-content-wrapper">
<div class="section-title-wrapper">
<div class="pull-right"> <div class="pull-right">
<a class="btn btn-default btn-xs" href="{{$order.1}}" title="{{$order.0}}"><i class="icon-sort"></i></a> <a class="btn btn-default btn-xs" href="{{$order.1}}" title="{{$order.0}}"><i class="icon-sort"></i></a>
<div class="btn-group btn-group"> <div class="btn-group btn-group">
@ -14,14 +15,15 @@
<h2>{{$album}}</h2> <h2>{{$album}}</h2>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
{{$upload_form}} {{$upload_form}}
{{$album_edit.1}} {{$album_edit.1}}
<div id="photo-album-contents" class="generic-content-wrapper"> <div id="photo-album-contents">
{{foreach $photos as $photo}} {{foreach $photos as $photo}}
{{include file="photo_top.tpl"}} {{include file="photo_top.tpl"}}
{{/foreach}} {{/foreach}}
<div id="page-end"></div> <div id="page-end"></div>
</div>
</div> </div>
<div class="photos-end"></div> <div class="photos-end"></div>
<script>$(document).ready(function() { loadingPage = false; justifyPhotos(); });</script> <script>$(document).ready(function() { loadingPage = false; justifyPhotos(); });</script>

View File

@ -1,16 +1,18 @@
<div class="section-title-wrapper"> <div class="generic-content-wrapper">
<div class="section-title-wrapper">
{{if $can_post}} {{if $can_post}}
<button class="btn btn-xs btn-success pull-right" title="{{$usage}}" onclick="openClose('photo-upload-form');"><i class="icon-upload"></i>&nbsp;{{$upload.0}}</button> <button class="btn btn-xs btn-success pull-right" title="{{$usage}}" onclick="openClose('photo-upload-form');"><i class="icon-upload"></i>&nbsp;{{$upload.0}}</button>
{{/if}} {{/if}}
<h2>{{$title}}</h2> <h2>{{$title}}</h2>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
{{$upload_form}} {{$upload_form}}
<div id="photo-album-contents" class="generic-content-wrapper"> <div id="photo-album-contents">
{{foreach $photos as $photo}} {{foreach $photos as $photo}}
{{include file="photo_top.tpl"}} {{include file="photo_top.tpl"}}
{{/foreach}} {{/foreach}}
<div id="page-end"></div> <div id="page-end"></div>
</div>
</div> </div>
<div class="photos-end"></div> <div class="photos-end"></div>
<script>$(document).ready(function() { loadingPage = false; justifyPhotos(); });</script> <script>$(document).ready(function() { loadingPage = false; justifyPhotos(); });</script>

View File

@ -1,4 +1,4 @@
<div id="thread-wrapper-{{$item.id}}" class="thread-wrapper {{$item.toplevel}}"> <div id="thread-wrapper-{{$item.id}}" class="thread-wrapper{{if $item.toplevel}} {{$item.toplevel}} generic-content-wrapper{{/if}}">
<a name="{{$item.id}}" ></a> <a name="{{$item.id}}" ></a>
<div class="wall-item-outside-wrapper {{$item.indent}}{{$item.previewing}}{{if $item.owner_url}} wallwall{{/if}}" id="wall-item-outside-wrapper-{{$item.id}}" > <div class="wall-item-outside-wrapper {{$item.indent}}{{$item.previewing}}{{if $item.owner_url}} wallwall{{/if}}" id="wall-item-outside-wrapper-{{$item.id}}" >
<div class="wall-item-content-wrapper {{$item.indent}}" id="wall-item-content-wrapper-{{$item.id}}" style="clear:both;"> <div class="wall-item-content-wrapper {{$item.indent}}" id="wall-item-content-wrapper-{{$item.id}}" style="clear:both;">

View File

@ -1,4 +1,5 @@
<div class="section-title-wrapper"> <div class="generic-content-wrapper">
<div class="section-title-wrapper">
{{if $editor}} {{if $editor}}
<div class="pull-right"> <div class="pull-right">
<button id="webpage-create-btn" class="btn btn-xs btn-success" onclick="openClose('webpage-editor');"><i class="icon-edit"></i>&nbsp;{{$create}}</button> <button id="webpage-create-btn" class="btn btn-xs btn-success" onclick="openClose('webpage-editor');"><i class="icon-edit"></i>&nbsp;{{$create}}</button>
@ -6,14 +7,14 @@
{{/if}} {{/if}}
<h2>{{$listtitle}}</h2> <h2>{{$listtitle}}</h2>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
{{if $editor}} {{if $editor}}
<div id="webpage-editor" class="section-content-tools-wrapper"> <div id="webpage-editor" class="section-content-tools-wrapper">
{{$editor}} {{$editor}}
</div> </div>
{{/if}} {{/if}}
{{if $pages}} {{if $pages}}
<div id="pagelist-content-wrapper" class="section-content-wrapper-np"> <div id="pagelist-content-wrapper" class="section-content-wrapper-np">
<table id="webpage-list-table"> <table id="webpage-list-table">
<tr> <tr>
<th width="1%">{{$pagelink_txt}}</th> <th width="1%">{{$pagelink_txt}}</th>
@ -69,6 +70,7 @@
{{/foreach}} {{/foreach}}
{{/foreach}} {{/foreach}}
</table> </table>
</div>
{{/if}}
<div class="clear"></div>
</div> </div>
<div class="clear"></div>
{{/if}}