23 lines
674 B
Plaintext
23 lines
674 B
Plaintext
@inherits Umbraco.Web.Mvc.UmbracoViewPage<dynamic>
|
|
|
|
@if (Model.value != null)
|
|
{
|
|
var url = Model.value.image;
|
|
if(Model.editor.config != null && Model.editor.config.size != null){
|
|
url += "?width=" + Model.editor.config.size.width;
|
|
url += "&height=" + Model.editor.config.size.height;
|
|
|
|
if(Model.value.focalPoint != null){
|
|
url += "¢er=" + Model.value.focalPoint.top +"," + Model.value.focalPoint.left;
|
|
url += "&mode=crop";
|
|
}
|
|
}
|
|
|
|
<img class="round center" src="@url" alt="@Model.value.caption">
|
|
|
|
if (Model.value.caption != null)
|
|
{
|
|
<strong>@Model.value.caption</strong>
|
|
}
|
|
}
|