mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 23:55:19 +00:00
turn the "adult photo flagging" (which prevents a particularly flagged photo from showing up in your top level albums) into a feature so it doesn't clutter the normal photo edit form. This feature was a quick hack and needs more work; but it could be important to somebody.
This commit is contained in:
parent
11f0b45a90
commit
3224848bad
3 changed files with 5 additions and 0 deletions
|
@ -48,6 +48,7 @@ function get_features() {
|
|||
array('preview', t('Post Preview'), t('Allow previewing posts and comments before publishing them')),
|
||||
array('channel_sources', t('Channel Sources'), t('Automatically import channel content from other channels or feeds')),
|
||||
array('content_encrypt', t('Even More Encryption'), t('Allow optional encryption of content end-to-end with a shared secret key')),
|
||||
array('adult_photo_flagging', t('Flag Adult Photos'), t('Provide photo edit option to hide adult photos from default album view')),
|
||||
),
|
||||
|
||||
// Network Tools
|
||||
|
|
|
@ -952,6 +952,7 @@ function photos_content(&$a) {
|
|||
'lockstate' => $lockstate[0],
|
||||
'help_tags' => t('Example: @bob, @Barbara_Jensen, @jim@example.com'),
|
||||
'item_id' => ((count($linked_items)) ? $link_item['id'] : 0),
|
||||
'adult_enabled' => feature_enabled($owner_uid,'adult_photo_flagging'),
|
||||
'adult' => array('adult',t('Flag as adult in album view'), (($ph[0]['photo_flags'] & PHOTO_ADULT) ? 1 : 0),''),
|
||||
'submit' => t('Submit'),
|
||||
'delete' => t('Delete Photo')
|
||||
|
|
|
@ -59,9 +59,12 @@
|
|||
<label class="radio-inline" id="photo-edit-rotate-cw-label" for="photo-edit-rotate-cw"><input id="photo-edit-rotate-cw" type="radio" name="rotate" value="1" />{{$edit.rotatecw}}</label>
|
||||
<label class="radio-inline" id="photo-edit-rotate-ccw-label" for="photo-edit-rotate-ccw"><input id="photo-edit-rotate-ccw" type="radio" name="rotate" value="2" />{{$edit.rotateccw}}</label>
|
||||
</div>
|
||||
{{if $edit.adult_enabled}}
|
||||
<div class="form-group">
|
||||
{{include file="field_checkbox.tpl" field=$edit.adult}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{$edit.aclselect}}
|
||||
|
||||
<div class="form-group pull-left">
|
||||
|
|
Loading…
Reference in a new issue