some work on feature/addon settings
This commit is contained in:
parent
76fedfe1f8
commit
8113ee1c4a
@ -678,11 +678,9 @@ function settings_content(&$a) {
|
||||
'$title' => t('Feature/Addon Settings'),
|
||||
'$diaspora_enabled' => $diaspora_enabled,
|
||||
'$dsprdesc' => t('Settings for the built-in Diaspora emulator'),
|
||||
'$pubcomments' => $pubcomments,
|
||||
'$pubcomments' => array('dspr_pubcomment', t('Allow any Diaspora member to comment on your public posts'), $pubcomments, '', $yes_no),
|
||||
'$dsprtitle' => t('Diaspora Policy Settings'),
|
||||
'$dsprhelp' => t('Allow any Diaspora member to comment on your public posts.'),
|
||||
'$dsprhijack' => t('Prevent your hashtags from being redirected to other sites'),
|
||||
'$hijacking' => $hijacking,
|
||||
'$hijacking' => array('dspr_hijack', t('Prevent your hashtags from being redirected to other sites'), $hijacking, '', $yes_no),
|
||||
'$dsprsubmit' => t('Submit Diaspora Policy Settings'),
|
||||
'$settings_addons' => $settings_addons
|
||||
));
|
||||
|
@ -1,17 +1,3 @@
|
||||
#dspr-pubcomment-label, #dspr-hijack-label {
|
||||
float: left;
|
||||
width: 350px;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
|
||||
#dspr-pubcomment-checkbox, #dspr-hijack-checkbox {
|
||||
float: left;
|
||||
}
|
||||
|
||||
#settings-dspr-wrapper {
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
.group {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
@ -1,28 +1,33 @@
|
||||
<div class="generic-content-wrapper-styled">
|
||||
<h1>{{$title}}</h1>
|
||||
|
||||
<div class="generic-content-wrapper">
|
||||
<div class="section-title-wrapper">
|
||||
<h2>{{$title}}</h2>
|
||||
</div>
|
||||
<form action="settings/featured" method="post" autocomplete="off">
|
||||
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
|
||||
|
||||
<div class="panel-group" id="settings" role="tablist">
|
||||
{{if $diaspora_enabled}}
|
||||
<div class="settings-block">
|
||||
<button class="btn btn-default" data-target="#settings-dspr-wrapper" data-toggle="collapse" type="button">{{$dsprtitle}}</button>
|
||||
<div id="settings-dspr-wrapper" class="collapse well">
|
||||
<div id="dspr-settings-wrapper">
|
||||
<label id="dspr-pubcomment-label" for="dspr-pubcomment-checkbox">{{$dsprhelp}}</label>
|
||||
<input id="dspr-pubcomment-checkbox" type="checkbox" name="dspr_pubcomment" value="1" ' . {{if $pubcomments}} checked="checked" {{/if}} />
|
||||
<div class="clear"></div>
|
||||
<label id="dspr-hijack-label" for="dspr-hijack-checkbox">{{$dsprhijack}}</label>
|
||||
<input id="dspr-hijack-checkbox" type="checkbox" name="dspr_hijack" value="1" ' . {{if $hijacking}} checked="checked" {{/if}} />
|
||||
<div class="clear"></div>
|
||||
<div class="panel">
|
||||
<div class="section-subtitle-wrapper" role="tab" id="dspr-settings">
|
||||
<h3>
|
||||
<a title="{{$dsprdesc}}" data-toggle="collapse" data-parent="#settings" href="#dspr-settings-content" aria-controls="dspr-settings-content">
|
||||
{{$dsprtitle}}
|
||||
</a>
|
||||
</h3>
|
||||
</div>
|
||||
<div id="dspr-settings-content" class="panel-collapse collapse" role="tabpanel" aria-labelledby="dspr-settings">
|
||||
<div class="section-content-tools-wrapper">
|
||||
|
||||
{{include file="field_checkbox.tpl" field=$pubcomments}}
|
||||
{{include file="field_checkbox.tpl" field=$hijacking}}
|
||||
|
||||
|
||||
<div class="settings-submit-wrapper" ><input type="submit" name="dspr-submit" class="settings-submit" value="{{$dsprsubmit}}" /></div></div></div>
|
||||
<div class="settings-submit-wrapper" >
|
||||
<button type="submit" name="dspr-submit" class="btn btn-primary" value="{{$dsprsubmit}}">{{$dsprsubmit}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{$settings_addons}}
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
{{$settings_addons}}
|
||||
</form>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user