Commit f9295a81 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic Committed by Robert Lyon
Browse files

Bug 1813987: remove layout button from navigation

+ Also remove not used templates. They should have been deleted
in commit 84119067
that unifies layout and settings section


Change-Id: Icd90bd4980b9be566f7e20aee6271476edafe321
parent 6aadcd02
......@@ -2462,11 +2462,13 @@ class View {
'row' => $values['positiony'],
'column' => $values['positionx'],
'order' => 1,
'positionx' => $values['positionx'],
'positiony' => $values['positiony'],
'width' => $values['width'],
'height' => $values['height'],
// add the dimension of the block
$bi->set_block_dimensions($values['positionx'], $values['positiony'], $values['width'], $values['height']);
if ($values['returndata'] === 'id') {
return $bi->get('id');
......@@ -4,12 +4,14 @@
{include file="view/contenteditor.tpl" selected='content'}
<a class="btn btn-secondary first-of-group editviews editlayout {if $selected == 'layout' or $selected == 'editlayout'}active{/if}"
title="{if $edittitle || $canuseskins}{str tag=settings section=view}{else}{str tag=editlayout section=view}{/if}">
<span class="icon icon-lg icon-cogs"></span>
<span class="btn-title sr-only">{if ($edittitle || $canuseskins) }{str tag=settings section=view}{else}{str tag=editlayout section=view}{/if}</span>
{if ($edittitle || $canuseskins) }
<a class="btn btn-secondary first-of-group editviews editlayout {if $selected == 'editlayout'}active{/if}"
title="{str tag=settings section=view}">
<span class="icon icon-lg icon-cogs"></span>
<span class="btn-title sr-only">{str tag=settings section=view}</span>
{if $selected == 'content'}
<a id='displaypagebtn' class="btn btn-secondary editviews displaycontent active" href="{$WWWROOT}view/view.php?id={$viewid}" title="{str tag=displayview section=view}">
<span class="icon icon-lg icon-tv" aria-hidden="true" role="presentation"></span>
......@@ -21,7 +23,6 @@
<span class="btn-title sr-only">{str tag=editcontent1 section=view}</span>
{if !$accesssuspended && ($edittitle || $viewtype == 'share') && !$issitetemplate}
<a class="btn btn-secondary editviews editshare {if $selected == 'share'}active{/if}" href="{$WWWROOT}view/accessurl.php?id={$viewid}{if $collectionid}&collection={$collectionid}{/if}" title="{str tag=shareview1 section=view}">
<span class="icon icon-lg icon-unlock" aria-hidden="true" role="presentation"></span>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment