Firefox share (that seems now the official name) button added to misc. settings.
This commit is contained in:
parent
91f2e05d5d
commit
0db5a8673d
@ -1102,12 +1102,13 @@ function settings_content(&$a) {
|
|||||||
'$expert' => feature_enabled(local_channel(),'expert'),
|
'$expert' => feature_enabled(local_channel(),'expert'),
|
||||||
'$hint' => t('Please enable expert mode (in <a href="settings/features">Settings > Additional features</a>) to adjust!'),
|
'$hint' => t('Please enable expert mode (in <a href="settings/features">Settings > Additional features</a>) to adjust!'),
|
||||||
'$lbl_misc' => t('Miscellaneous Settings'),
|
'$lbl_misc' => t('Miscellaneous Settings'),
|
||||||
'$photo_path' => array('photo_path', t('Default photo upload folder'), get_pconfig(local_channel(),'system','photo_path'), '%Y - current year, %m - current month'),
|
'$photo_path' => array('photo_path', t('Default photo upload folder'), get_pconfig(local_channel(),'system','photo_path'), t('%Y - current year, %m - current month')),
|
||||||
'$attach_path' => array('attach_path', t('Default file upload folder'), get_pconfig(local_channel(),'system','attach_path'), '%Y - current year, %m - current month'),
|
'$attach_path' => array('attach_path', t('Default file upload folder'), get_pconfig(local_channel(),'system','attach_path'), t('%Y - current year, %m - current month')),
|
||||||
'$menus' => $menu,
|
'$menus' => $menu,
|
||||||
'$menu_desc' => t('Personal menu to display in your channel pages'),
|
'$menu_desc' => t('Personal menu to display in your channel pages'),
|
||||||
'$removeme' => t('Remove Channel'),
|
'$removeme' => t('Remove Channel'),
|
||||||
'$removechannel' => t('Remove this channel.'),
|
'$removechannel' => t('Remove this channel.'),
|
||||||
|
'$firefoxshare' => t('Firefox Share $Projectname provider'),
|
||||||
));
|
));
|
||||||
|
|
||||||
call_hooks('settings_form',$o);
|
call_hooks('settings_form',$o);
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
.group {
|
.group {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ffsapilink {
|
||||||
|
margin: 10px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.channel-menu {
|
||||||
|
margin-top: 24px;
|
||||||
|
}
|
||||||
|
@ -136,7 +136,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{if $menus}}
|
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
<div class="section-subtitle-wrapper" role="tab" id="miscellaneous-settings">
|
<div class="section-subtitle-wrapper" role="tab" id="miscellaneous-settings">
|
||||||
<h3>
|
<h3>
|
||||||
@ -146,8 +146,12 @@
|
|||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
<div id="miscellaneous-settings-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="miscellaneous-settings">
|
<div id="miscellaneous-settings-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="miscellaneous-settings">
|
||||||
<div class="section-content-wrapper">
|
<div class="section-content-tools-wrapper">
|
||||||
<div class="form-group">
|
<div class="ffsapilink">
|
||||||
|
<a type="button" class="btn btn-default" href="/ffsapi">{{$firefoxshare}}</a>
|
||||||
|
</div>
|
||||||
|
{{if $menus}}
|
||||||
|
<div class="form-group channel-menu">
|
||||||
<label for="channel_menu">{{$menu_desc}}</label>
|
<label for="channel_menu">{{$menu_desc}}</label>
|
||||||
<select name="channel_menu" class="form-control">
|
<select name="channel_menu" class="form-control">
|
||||||
{{foreach $menus as $menu }}
|
{{foreach $menus as $menu }}
|
||||||
@ -156,12 +160,12 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="settings-submit-wrapper" >
|
<div class="settings-submit-wrapper" >
|
||||||
<input type="submit" name="submit" class="settings-submit" value="{{$submit}}"{{if !$expert}} onclick="$('select').prop('disabled', false);"{{/if}} />
|
<button type="submit" name="submit" class="btn btn-primary">{{$submit}}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user