more webpages - generic-content-wrapper fixes
This commit is contained in:
parent
1554b5a2ee
commit
fee607db56
@ -108,12 +108,6 @@ function editblock_content(&$a) {
|
|||||||
else
|
else
|
||||||
$mimeselect = mimetype_select($itm[0]['uid'],$mimetype);
|
$mimeselect = mimetype_select($itm[0]['uid'],$mimetype);
|
||||||
|
|
||||||
$o .= replace_macros(get_markup_template('edpost_head.tpl'), array(
|
|
||||||
'$title' => t('Edit Block'),
|
|
||||||
'$delete' => ((($itm[0]['author_xchan'] === $ob_hash) || ($itm[0]['owner_xchan'] === $ob_hash)) ? t('Delete') : false),
|
|
||||||
'$id' => $itm[0]['id']
|
|
||||||
));
|
|
||||||
|
|
||||||
$a->page['htmlhead'] .= replace_macros(get_markup_template('jot-header.tpl'), array(
|
$a->page['htmlhead'] .= replace_macros(get_markup_template('jot-header.tpl'), array(
|
||||||
'$baseurl' => $a->get_baseurl(),
|
'$baseurl' => $a->get_baseurl(),
|
||||||
'$editselect' => (($plaintext) ? 'none' : '/(profile-jot-text|prvmail-text)/'),
|
'$editselect' => (($plaintext) ? 'none' : '/(profile-jot-text|prvmail-text)/'),
|
||||||
@ -133,7 +127,7 @@ function editblock_content(&$a) {
|
|||||||
|
|
||||||
$rp = 'blocks/' . $channel['channel_address'];
|
$rp = 'blocks/' . $channel['channel_address'];
|
||||||
|
|
||||||
$o .= replace_macros($tpl,array(
|
$editor = replace_macros($tpl,array(
|
||||||
'$return_path' => $rp,
|
'$return_path' => $rp,
|
||||||
'$action' => 'item',
|
'$action' => 'item',
|
||||||
'$webpage' => ITEM_BUILDBLOCK,
|
'$webpage' => ITEM_BUILDBLOCK,
|
||||||
@ -181,6 +175,13 @@ function editblock_content(&$a) {
|
|||||||
'$expires' => t('Set expiration date'),
|
'$expires' => t('Set expiration date'),
|
||||||
));
|
));
|
||||||
|
|
||||||
|
$o .= replace_macros(get_markup_template('edpost_head.tpl'), array(
|
||||||
|
'$title' => t('Edit Block'),
|
||||||
|
'$delete' => ((($itm[0]['author_xchan'] === $ob_hash) || ($itm[0]['owner_xchan'] === $ob_hash)) ? t('Delete') : false),
|
||||||
|
'$id' => $itm[0]['id'],
|
||||||
|
'$editor' => $editor
|
||||||
|
));
|
||||||
|
|
||||||
return $o;
|
return $o;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -101,12 +101,6 @@ function editlayout_content(&$a) {
|
|||||||
$layout_title = $item_id[0]['sid'];
|
$layout_title = $item_id[0]['sid'];
|
||||||
|
|
||||||
$plaintext = true;
|
$plaintext = true;
|
||||||
|
|
||||||
$o .= replace_macros(get_markup_template('edpost_head.tpl'), array(
|
|
||||||
'$title' => t('Edit Layout'),
|
|
||||||
'$delete' => ((($itm[0]['author_xchan'] === $ob_hash) || ($itm[0]['owner_xchan'] === $ob_hash)) ? t('Delete') : false),
|
|
||||||
'$id' => $itm[0]['id']
|
|
||||||
));
|
|
||||||
|
|
||||||
$a->page['htmlhead'] .= replace_macros(get_markup_template('jot-header.tpl'), array(
|
$a->page['htmlhead'] .= replace_macros(get_markup_template('jot-header.tpl'), array(
|
||||||
'$baseurl' => $a->get_baseurl(),
|
'$baseurl' => $a->get_baseurl(),
|
||||||
@ -132,7 +126,7 @@ function editlayout_content(&$a) {
|
|||||||
|
|
||||||
$rp = 'layouts/' . $which;
|
$rp = 'layouts/' . $which;
|
||||||
|
|
||||||
$o .= replace_macros($tpl,array(
|
$editor = replace_macros($tpl,array(
|
||||||
'$return_path' => $rp,
|
'$return_path' => $rp,
|
||||||
'$action' => 'item',
|
'$action' => 'item',
|
||||||
'$webpage' => ITEM_PDL,
|
'$webpage' => ITEM_PDL,
|
||||||
@ -178,6 +172,14 @@ function editlayout_content(&$a) {
|
|||||||
'$expires' => t('Set expiration date'),
|
'$expires' => t('Set expiration date'),
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
||||||
|
$o .= replace_macros(get_markup_template('edpost_head.tpl'), array(
|
||||||
|
'$title' => t('Edit Layout'),
|
||||||
|
'$delete' => ((($itm[0]['author_xchan'] === $ob_hash) || ($itm[0]['owner_xchan'] === $ob_hash)) ? t('Delete') : false),
|
||||||
|
'$id' => $itm[0]['id'],
|
||||||
|
'$editor' => $editor
|
||||||
|
));
|
||||||
|
|
||||||
return $o;
|
return $o;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -100,7 +100,7 @@ function editpost_content(&$a) {
|
|||||||
$cipher = 'aes256';
|
$cipher = 'aes256';
|
||||||
|
|
||||||
|
|
||||||
$editor .= replace_macros($tpl,array(
|
$editor = replace_macros($tpl,array(
|
||||||
'$return_path' => $_SESSION['return_url'],
|
'$return_path' => $_SESSION['return_url'],
|
||||||
'$action' => 'item',
|
'$action' => 'item',
|
||||||
'$share' => t('Edit'),
|
'$share' => t('Edit'),
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{{if $header}}
|
{{if $header}}
|
||||||
|
<div class="generic-content-wrapper">
|
||||||
<div class="section-title-wrapper">
|
<div class="section-title-wrapper">
|
||||||
{{if $menu_id}}
|
{{if $menu_id}}
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
@ -27,3 +28,6 @@
|
|||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
{{if $header}}
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
@ -1,37 +1,42 @@
|
|||||||
{{if $header}}
|
{{if $header}}
|
||||||
<div class="section-title-wrapper">
|
<div class="generic-content-wrapper">
|
||||||
<h2>{{$header}}</h2>
|
<div class="section-title-wrapper">
|
||||||
|
<h2>{{$header}}</h2>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
<div id="menu-element-creator" class="section-content-tools-wrapper" style="display: {{$display}};">
|
||||||
|
<form id="mitemedit" action="mitem/{{$menu_id}}{{if $mitem_id}}/{{$mitem_id}}{{/if}}" method="post" >
|
||||||
|
<input type="hidden" name="menu_id" value="{{$menu_id}}" />
|
||||||
|
{{if $mitem_id}}
|
||||||
|
<input type="hidden" name="mitem_id" value="{{$mitem_id}}" />
|
||||||
|
{{/if}}
|
||||||
|
{{include file="field_input.tpl" field=$mitem_desc}}
|
||||||
|
{{include file="field_input.tpl" field=$mitem_link}}
|
||||||
|
{{if $menu_names}}
|
||||||
|
<datalist id="menu-names">
|
||||||
|
{{foreach $menu_names as $menu_name}}
|
||||||
|
<option value="{{$menu_name}}">
|
||||||
|
{{/foreach}}
|
||||||
|
</datalist>
|
||||||
|
{{/if}}
|
||||||
|
{{include file="field_input.tpl" field=$mitem_order}}
|
||||||
|
{{include file="field_checkbox.tpl" field=$usezid}}
|
||||||
|
{{include file="field_checkbox.tpl" field=$newwin}}
|
||||||
|
<div class="pull-right form-group">
|
||||||
|
<div class="btn-group">
|
||||||
|
<button id="dbtn-acl" class="btn btn-default btn-sm" data-toggle="modal" data-target="#aclModal" onclick="return false;">
|
||||||
|
<i id="jot-perms-icon" class="icon-{{$lockstate}}"></i>
|
||||||
|
</button>
|
||||||
|
{{if $submit_more}}
|
||||||
|
<button class="btn btn-primary btn-sm" type="submit" name="submit-more" value="{{$submit_more}}">{{$submit_more}} <i class="icon-caret-right"></i></button>
|
||||||
|
{{/if}}
|
||||||
|
<button class="btn btn-primary btn-sm" type="submit" name="submit" value="{{$submit}}">{{$submit}}</button>
|
||||||
|
</div>
|
||||||
|
{{$aclselect}}
|
||||||
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
{{if $header}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<div id="menu-element-creator" class="section-content-tools-wrapper" style="display: {{$display}};">
|
|
||||||
<form id="mitemedit" action="mitem/{{$menu_id}}{{if $mitem_id}}/{{$mitem_id}}{{/if}}" method="post" >
|
|
||||||
<input type="hidden" name="menu_id" value="{{$menu_id}}" />
|
|
||||||
{{if $mitem_id}}
|
|
||||||
<input type="hidden" name="mitem_id" value="{{$mitem_id}}" />
|
|
||||||
{{/if}}
|
|
||||||
{{include file="field_input.tpl" field=$mitem_desc}}
|
|
||||||
{{include file="field_input.tpl" field=$mitem_link}}
|
|
||||||
{{if $menu_names}}
|
|
||||||
<datalist id="menu-names">
|
|
||||||
{{foreach $menu_names as $menu_name}}
|
|
||||||
<option value="{{$menu_name}}">
|
|
||||||
{{/foreach}}
|
|
||||||
</datalist>
|
|
||||||
{{/if}}
|
|
||||||
{{include file="field_input.tpl" field=$mitem_order}}
|
|
||||||
{{include file="field_checkbox.tpl" field=$usezid}}
|
|
||||||
{{include file="field_checkbox.tpl" field=$newwin}}
|
|
||||||
<div class="pull-right form-group">
|
|
||||||
<div class="btn-group">
|
|
||||||
<button id="dbtn-acl" class="btn btn-default btn-sm" data-toggle="modal" data-target="#aclModal" onclick="return false;">
|
|
||||||
<i id="jot-perms-icon" class="icon-{{$lockstate}}"></i>
|
|
||||||
</button>
|
|
||||||
{{if $submit_more}}
|
|
||||||
<button class="btn btn-primary btn-sm" type="submit" name="submit-more" value="{{$submit_more}}">{{$submit_more}} <i class="icon-caret-right"></i></button>
|
|
||||||
{{/if}}
|
|
||||||
<button class="btn btn-primary btn-sm" type="submit" name="submit" value="{{$submit}}">{{$submit}}</button>
|
|
||||||
</div>
|
|
||||||
{{$aclselect}}
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
|
@ -1,35 +1,34 @@
|
|||||||
<div class="section-title-wrapper">
|
<div class="generic-content-wrapper">
|
||||||
<div class="pull-right">
|
<div class="section-title-wrapper">
|
||||||
<button id="webpage-create-btn" class="btn btn-xs btn-success" onclick="openClose('menu-element-creator');"><i class="icon-edit"></i> {{$hintnew}}</button>
|
<div class="pull-right">
|
||||||
|
<button id="webpage-create-btn" class="btn btn-xs btn-success" onclick="openClose('menu-element-creator');"><i class="icon-edit"></i> {{$hintnew}}</button>
|
||||||
|
</div>
|
||||||
|
<h2>{{$title}} {{if $menudesc}}{{$menudesc}}{{else}}{{$menuname}}{{/if}}</h2>
|
||||||
|
<div class="clear"></div>
|
||||||
</div>
|
</div>
|
||||||
<h2>{{$title}} {{if $menudesc}}{{$menudesc}}{{else}}{{$menuname}}{{/if}}</h2>
|
|
||||||
<div class="clear"></div>
|
{{$create}}
|
||||||
|
|
||||||
|
{{if $mlist }}
|
||||||
|
<div id="mitemlist-content-wrapper" class="section-content-wrapper-np">
|
||||||
|
<table id="mitem-list-table">
|
||||||
|
<tr>
|
||||||
|
<th width="1%">{{$nametitle}}</th>
|
||||||
|
<th width="96%">{{$targettitle}}</th>
|
||||||
|
<th width="1%"></th>
|
||||||
|
<th width="1%"></th>
|
||||||
|
<th width="1%"></th>
|
||||||
|
</tr>
|
||||||
|
{{foreach $mlist as $m }}
|
||||||
|
<tr id="mitem-list-item-{{$m.mitem_id}}">
|
||||||
|
<td width="1%">{{$m.mitem_desc}}</td>
|
||||||
|
<td width="96%"><a href="{{$m.mitem_link}}">{{$m.mitem_link}}</a></td>
|
||||||
|
<td width="1%" class="mitem-list-tool dropdown">{{if $m.allow_cid || $m.allow_gid || $m.deny_cid || $m.deny_gid}}<i class="icon-lock dropdown-toggle lockview" data-toggle="dropdown" onclick="lockview('menu_item',{{$m.mitem_id}});" ></i><ul id="panel-{{$m.mitem_id}}" class="lockview-panel dropdown-menu"></ul>{{/if}}</td>
|
||||||
|
<td width="1%" class="mitem-list-tool"><a href="mitem/{{$menu_id}}/{{$m.mitem_id}}" title="{{$hintedit}}"><i class="icon-pencil"></i></a></td>
|
||||||
|
<td width="1%" class="mitem-list-tool"><a href="#" title="{{$hintdrop}}" onclick="dropItem('mitem/{{$menu_id}}/{{$m.mitem_id}}/drop', '#mitem-list-item-{{$m.mitem_id}}, #pmenu-item-{{$m.mitem_id}}'); return false;"><i class="icon-trash drop-icons"></i></a></td>
|
||||||
|
</tr>
|
||||||
|
{{/foreach}}
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{$create}}
|
|
||||||
|
|
||||||
{{if $mlist }}
|
|
||||||
<div id="mitemlist-content-wrapper" class="section-content-wrapper-np">
|
|
||||||
<table id="mitem-list-table">
|
|
||||||
<tr>
|
|
||||||
<th width="1%">{{$nametitle}}</th>
|
|
||||||
<th width="96%">{{$targettitle}}</th>
|
|
||||||
<th width="1%"></th>
|
|
||||||
<th width="1%"></th>
|
|
||||||
<th width="1%"></th>
|
|
||||||
</tr>
|
|
||||||
{{foreach $mlist as $m }}
|
|
||||||
<tr id="mitem-list-item-{{$m.mitem_id}}">
|
|
||||||
<td width="1%">{{$m.mitem_desc}}</td>
|
|
||||||
<td width="96%"><a href="{{$m.mitem_link}}">{{$m.mitem_link}}</a></td>
|
|
||||||
<td width="1%" class="mitem-list-tool dropdown">{{if $m.allow_cid || $m.allow_gid || $m.deny_cid || $m.deny_gid}}<i class="icon-lock dropdown-toggle lockview" data-toggle="dropdown" onclick="lockview('menu_item',{{$m.mitem_id}});" ></i><ul id="panel-{{$m.mitem_id}}" class="lockview-panel dropdown-menu"></ul>{{/if}}</td>
|
|
||||||
<td width="1%" class="mitem-list-tool"><a href="mitem/{{$menu_id}}/{{$m.mitem_id}}" title="{{$hintedit}}"><i class="icon-pencil"></i></a></td>
|
|
||||||
<td width="1%" class="mitem-list-tool"><a href="#" title="{{$hintdrop}}" onclick="dropItem('mitem/{{$menu_id}}/{{$m.mitem_id}}/drop', '#mitem-list-item-{{$m.mitem_id}}, #pmenu-item-{{$m.mitem_id}}'); return false;"><i class="icon-trash drop-icons"></i></a></td>
|
|
||||||
</tr>
|
|
||||||
{{/foreach}}
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user