diff options
author | friendica <info@friendica.com> | 2013-05-08 02:11:17 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-05-08 02:11:17 -0700 |
commit | cdcbe9772423d5373f6d0d4aa33700446a989340 (patch) | |
tree | 2f1f1c7540c62c049dd314b0155380c6cb4526b5 /view/tpl/smarty3/cropbody.tpl | |
parent | 51c27579ba79d32c26052c0d1f1218a16315234b (diff) | |
parent | 5e1980becf69a4c65489bed6f94fa730ec8ef4bf (diff) | |
download | volse-hubzilla-cdcbe9772423d5373f6d0d4aa33700446a989340.tar.gz volse-hubzilla-cdcbe9772423d5373f6d0d4aa33700446a989340.tar.bz2 volse-hubzilla-cdcbe9772423d5373f6d0d4aa33700446a989340.zip |
Merge pull request #50 from fabrixxm/newtemplatesystem
New template system
Diffstat (limited to 'view/tpl/smarty3/cropbody.tpl')
-rw-r--r-- | view/tpl/smarty3/cropbody.tpl | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/view/tpl/smarty3/cropbody.tpl b/view/tpl/smarty3/cropbody.tpl deleted file mode 100644 index e6fcd355f..000000000 --- a/view/tpl/smarty3/cropbody.tpl +++ /dev/null @@ -1,63 +0,0 @@ -{{* - * AUTOMATICALLY GENERATED TEMPLATE - * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN - * - *}} -<h1>{{$title}}</h1> -<p id="cropimage-desc"> -{{$desc}} -</p> -<div id="cropimage-wrapper"> -<img src="{{$image_url}}" id="croppa" class="imgCrop" alt="{{$title}}" /> -</div> -<div id="cropimage-preview-wrapper" > -<div id="previewWrap" ></div> -</div> - -<script type="text/javascript" language="javascript"> - - function onEndCrop( coords, dimensions ) { - $( 'x1' ).value = coords.x1; - $( 'y1' ).value = coords.y1; - $( 'x2' ).value = coords.x2; - $( 'y2' ).value = coords.y2; - $( 'width' ).value = dimensions.width; - $( 'height' ).value = dimensions.height; - } - - Event.observe( window, 'load', function() { - new Cropper.ImgWithPreview( - 'croppa', - { - previewWrap: 'previewWrap', - minWidth: 175, - minHeight: 175, - maxWidth: 640, - maxHeight: 640, - ratioDim: { x: 100, y:100 }, - displayOnInit: true, - onEndCrop: onEndCrop - } - ); - } - ); - -</script> - -<form action="profile_photo/{{$resource}}" id="crop-image-form" method="post" /> -<input type='hidden' name='form_security_token' value='{{$form_security_token}}'> - -<input type='hidden' name='profile' value='{{$profile}}'> -<input type="hidden" name="cropfinal" value="1" /> -<input type="hidden" name="xstart" id="x1" /> -<input type="hidden" name="ystart" id="y1" /> -<input type="hidden" name="xfinal" id="x2" /> -<input type="hidden" name="yfinal" id="y2" /> -<input type="hidden" name="height" id="height" /> -<input type="hidden" name="width" id="width" /> - -<div id="crop-image-submit-wrapper" > -<input type="submit" name="submit" value="{{$done}}" /> -</div> - -</form> |