2014-01-22 14:01:31 +00:00
{if $mode == '' || $mode == 'photo_settings'}
2014-05-09 10:34:00 +00:00
< div class = "heading" >
< h2 > Photo Settings< / h2 >
< / div >
2014-01-22 14:01:31 +00:00
< form name = "form1" method = "post" id = "photo_settings" >
< h3 > Photo Resizing< / h3 >
2014-02-28 11:58:38 +00:00
< div class = "row" >
< div class = "col-md-4" >
2014-01-22 14:01:31 +00:00
< label for = "radio_id" >
Photo Ratio
< P > < small >
Your photo thumb and medium size thumb will be resized according to these ratios
< / small > < / P >
< / label >
2014-02-28 11:58:38 +00:00
< select class = "form-control" >
< option class = "form-control" name = "photo_ratio" id = "ratio_1" { if $ row . photo_ratio = = ' 4:3 ' } checked { / if } > 4:3< / option >
< option class = "form-control" name = "photo_ratio" id = "ratio_3" { if $ row . photo_ratio = = ' 16:9 ' } checked { / if } > 16:9< / option >
< option class = "form-control" name = "photo_ratio" id = "ratio_2" { if $ row . photo_ratio = = ' 16:10 ' } checked { / if } > 16:10< / option >
< / select >
2014-01-22 14:01:31 +00:00
< / div >
2014-02-28 11:58:38 +00:00
< div class = "col-md-4" >
2014-01-22 14:01:31 +00:00
< label for = "multi_photo" >
Multi-upload
< p >
2014-02-28 11:58:38 +00:00
< small > Number of photos, user can upload at once.< br >
eg. 10 or 20
< / small >
2014-01-22 14:01:31 +00:00
< / p >
< / label >
< input class = "form-control" type = "text" name = "photo_multi_upload" id = "multi_photo" value = "{$row.photo_multi_upload}" >
< / div >
2014-02-28 11:58:38 +00:00
< div class = "col-md-4" >
2014-01-22 14:01:31 +00:00
< label for = "max_photo_size" > Max photo size
< p >
2014-02-28 11:58:38 +00:00
< small > Maximum allowed photo size, in MBs.< br >
Megabytes
< / small >
2014-01-22 14:01:31 +00:00
< / p >
< / label >
< input class = "form-control" type = "text" name = "max_photo_size" id = "max_photo_size" value = "{$row.max_photo_size}" >
< / div >
2014-02-28 11:58:38 +00:00
< / div >
< br >
< div class = "row" >
< div class = "col-md-4" >
2014-01-22 14:01:31 +00:00
< label class = "checkbox" >
< input type = "checkbox" name = "photo_download" id = "photo_download" value = "1" { if $ row . photo_download = = ' 1 ' } checked { / if } >
Enable Photo Downloading
< / label >
< label class = "checkbox" >
< input type = "checkbox" name = "photo_comments" id = "photo_comments" value = "1" { if $ row . photo_comments = = ' 1 ' } checked { / if } >
Enable Photo Comments
< / label >
< label class = "checkbox" >
< input type = "checkbox" name = "photo_rating" id = "photo_rating" value = "1" { if $ row . photo_rating = = ' 1 ' } checked { / if } >
Enable Photo Rating
< / label >
< label class = "checkbox" >
< input type = "checkbox" name = "own_photo_rating" id = "own_photo_rating" value = "1" { if $ row . own_photo_rating = = ' 1 ' } checked { / if } / >
User can rate his own photo
< / label >
< / div >
2014-02-28 11:58:38 +00:00
< div class = "col-md-4" >
2014-01-22 14:01:31 +00:00
< label for = "image_width" >
Photo Width
< p >
< small > Height will automatically be updated according to your ratio selected< / small >
< / p >
< / label >
< input class = "form-control" maxlength = "3" type = "text" name = "photo_thumb_width" title = "Thumb Width" id = "image_width" value = "{$row.photo_thumb_width}" / >
2014-04-15 11:45:14 +00:00
< input class = "form-control" maxlength = "3" title = "Thumb Height" type = "text" name = "photo_thumb_height" id = "image_height" value = "{$row.photo_thumb_height}" style = "margin-top: 10px" readonly >
2014-01-22 14:01:31 +00:00
< / div >
2014-02-28 11:58:38 +00:00
< div class = "col-md-4" >
2014-01-22 14:01:31 +00:00
< label for = "med_width" >
Thumb Dimensions
< p >
< small >
Medium Thumb Dimensions:
< / small >
< / p >
< / label >
< input class = "form-control" maxlength = "3" title = "Medium Thumb Width" type = "text" name = "photo_med_width" id = "med_width" value = "{$row.photo_med_width}" / >
2014-04-15 11:45:14 +00:00
< input class = "form-control" maxlength = "3" title = "Medium Thumb Height" type = "text" name = "photo_med_height" id = "med_height" value = "{$row.photo_med_height}" style = "margin-top: 10px" readonly >
2014-01-22 14:01:31 +00:00
< / div >
2014-02-28 11:58:38 +00:00
< / div >
< hr >
< div class = "row" >
< div class = "col-md-6" >
2014-01-22 14:01:31 +00:00
< label for = "lar_width" > Large photo width< / label >
< input class = "form-control" type = "text" maxlength = "3" name = "photo_lar_width" id = "lar_width" value = "{$row.photo_lar_width}" / >
< / div >
2014-02-28 11:58:38 +00:00
< div class = "col-md-6" >
2014-01-22 14:01:31 +00:00
< label for = "crop_yes" >
Crop Image
< / label >
2014-02-28 11:58:38 +00:00
< select class = "form-control" >
< option class = "form-control" name = "photo_crop" id = "crop_yes" { if $ row . photo_crop = = ' 1 ' } checked { / if } > Enable< / option >
< option class = "form-control" name = "photo_crop" id = "crop_no" { if $ row . photo_crop = = ' 0 ' } checked { / if } > Disable< / option >
< / select >
< small >
If Enable, your thumb and medium size will be cropped excatly to above dimensions if required.
< / small >
< / div >
< / div >
< div class = "button" >
< input type = "submit" name = "update" class = "btn btn-primary btn-sm" value = "Update Settings" id = "udpate" / >
2014-01-22 14:01:31 +00:00
< / div >
< / form >
{/if}
{if $mode == 'watermark_settings'}
2014-05-09 10:34:00 +00:00
< div class = "heading" >
< h2 > Watermark Settings< / h2 >
< / div >
2014-01-22 14:01:31 +00:00
< form action = "" method = "post" enctype = "multipart/form-data" >
2014-02-28 11:58:38 +00:00
< div class = "row" >
2014-01-23 13:26:16 +00:00
< div class = "watermarSettings" >
2014-02-28 11:58:38 +00:00
< div class = "col-md-4" >
2014-04-15 11:45:14 +00:00
< label class = "pull-right inline" style = " margin-right: 238px;" >
< input name = "watermark_photo" id = "watermark_photo" type = "checkbox" value = "1" { if $ row . watermark_photo = = ' 1 ' } checked = "checked" { / if } name = "closed" type = "checkbox" class = "ace ace-switch ace-switch-5 bootstrap-switch-on" >
2014-01-23 13:26:16 +00:00
Enable Watermark
2014-04-15 11:45:14 +00:00
< span class = "lbl" > < / span >
2014-01-23 13:26:16 +00:00
< / label >
< / div >
2014-04-15 11:45:14 +00:00
<!-- <div class="col - md - 4"> -->
<!-- <label for="watermark_photo" class="radio"> -->
<!-- <input name="watermark_photo" id="watermark_photo" type="checkbox" value="1"{if $row.watermark_photo == '1'} checked{/if} > -->
<!-- Enable Watermark -->
<!-- </label> -->
<!-- </div> -->
2014-02-28 11:58:38 +00:00
< div class = "col-md-4" >
2014-01-23 13:26:16 +00:00
< label for = "watermark_maximum_width" > Maximum Width of watermark< br > < small > Recommended is 120< / small > < / label >
< input class = "form-control" name = "watermark_max_width" id = "watermark_max_width" type = "text" value = "{$row.watermark_max_width}" >
< / div >
2014-02-28 11:58:38 +00:00
< div class = "col-md-4" >
< label for = "top_left" > Watermark placement< br >
< small > Set your Placement< / small >
< / label >
< select class = "form-control" >
< option class = "form-control" name = "watermark_placement" id = "top_left" { if $ row . watermark_placement = = ' left:top ' } checked { / if } > Top - Left< / option >
< option class = "form-control" name = "watermark_placement" id = "top_right" { if $ row . watermark_placement = = ' right:top ' } checked { / if } > Top - Right< / option >
< option class = "form-control" name = "watermark_placement" id = "top_center" { if $ row . watermark_placement = = ' center:top ' } checked { / if } > Top - Center< / option >
< option class = "form-control" name = "watermark_placement" id = "bottom_left" { if $ row . watermark_placement = = ' left:bottom ' } checked { / if } > Bottom - Left< / option >
< option class = "form-control" name = "watermark_placement" id = "bottom_right" { if $ row . watermark_placement = = ' righ:bottom ' } checked { / if } > Bottom - Right< / option >
< option class = "form-control" name = "watermark_placement" id = "bottom_center" { if $ row . watermark_placement = = ' center:bottom ' } checked { / if } > Bottom - Center< / option >
< option class = "form-control" name = "watermark_placement" id = "left" { if $ row . watermark_placement = = ' left:center ' } checked { / if } > Left< / option >
< option class = "form-control" name = "watermark_placement" id = "right" { if $ row . watermark_placement = = ' right:center ' } checked { / if } > Right< / option >
< option class = "form-control" name = "watermark_placement" id = "center" { if $ row . watermark_placement = = ' center:center ' } checked { / if } > Center< / option >
< / select >
2014-01-23 13:26:16 +00:00
< / div >
2014-02-28 11:58:38 +00:00
< / div >
< / div >
< br >
< div class = "row" >
< div class = "col-md-4" >
2014-01-23 13:26:16 +00:00
< label for = "watermark_file" > Upload New Watermark< br > < small >
This will over-write your existing watermark file, if exists.
< / small > < / label >
2014-02-28 11:58:38 +00:00
< input type = "file" class = "form-control" name = "watermark_file" id = "watermark_file" >
2014-01-23 13:26:16 +00:00
< / div >
2014-02-28 11:58:38 +00:00
< div class = "col-md-4" >
2014-01-23 13:26:16 +00:00
< h4 > Current Watermark< / h4 >
{assign var=file value=$cbphoto->watermark_file()}
{if $file}
< img src = "{$cbphoto->watermark_file()}" / >
{else}
< p > Watermark not found< / p >
{/if}
< / div >
2014-02-28 11:58:38 +00:00
< div class = "col-md-4" >
< input type = "submit" name = "update_watermark" class = "btn btn-primary btn-sm" value = "Update Settings" id = "update_watermark" / >
2014-01-23 13:26:16 +00:00
< / div >
2014-02-28 11:58:38 +00:00
< / div >
2014-01-23 13:26:16 +00:00
< / div > <!-- watermarkSettings end -->
2014-01-22 14:01:31 +00:00
< / form >
{/if}