mirror of
https://github.com/friendica/friendica
synced 2024-11-18 10:23:41 +00:00
39 lines
1.6 KiB
Smarty
39 lines
1.6 KiB
Smarty
{{*
|
|
* Copyright (C) 2010-2024, the Friendica project
|
|
* SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*}}
|
|
<span id="settings_{{$addon}}_inflated" class="settings-block fakelink" style="display: {{if $open}}none{{else}}block{{/if}};" onclick="openClose('settings_{{$addon}}_expanded'); openClose('settings_{{$addon}}_inflated');">
|
|
<h3>{{$title}}</h3>
|
|
</span>
|
|
<div id="settings_{{$addon}}_expanded" class="settings-block" style="display: {{if $open}}block{{else}}none{{/if}};">
|
|
<span class="fakelink" onclick="openClose('settings_{{$addon}}_expanded'); openClose('settings_{{$addon}}_inflated');">
|
|
<h3>{{$title}}</h3>
|
|
</span>
|
|
{{$html nofilter}}
|
|
{{if $submit}}
|
|
<div class="settings-submit-wrapper panel-footer">
|
|
{{if $submit|is_string}}
|
|
<button type="submit" name="{{$addon}}-submit" class="btn btn-primary settings-submit" value="{{$submit}}">{{$submit}}</button>
|
|
{{else}}
|
|
{{$count = 1}}
|
|
{{foreach $submit as $name => $label}}{{if $label}}
|
|
{{if $count == 1}}
|
|
<button type="submit" name="{{$name}}" class="btn btn-primary settings-submit" value="{{$label}}">{{$label}}</button>
|
|
{{/if}}
|
|
{{if $count == 2}}
|
|
<div class="btn-group" role="group" aria-label="...">
|
|
{{/if}}
|
|
{{if $count != 1}}
|
|
<button type="submit" name="{{$name}}" class="btn btn-default settings-submit" value="{{$label}}">{{$label}}</button>
|
|
{{/if}}
|
|
{{$count = $count + 1}}
|
|
{{/if}}{{/foreach}}
|
|
{{if $submit|count > 1}}
|
|
</div>
|
|
{{/if}}
|
|
{{/if}}
|
|
</div>
|
|
{{/if}}
|
|
</div>
|