|
@model sBlog.Net.Areas.Admin.Models.AdminSocialSharingOptions
@{
ViewBag.Title = string.Format("Social Sharing Options || {0}", Model.Title);
}
@Html.Partial("UpdateStatus", Model.UpdateStatus)
@if (Model.IsEnabled)
{
<div class="cpHeader">
Social Sharing Settings
</div>
<div class="cpContentPlain">
@using (Html.BeginForm())
{
foreach (var shareable in Model.Options)
{
var id = string.Format("radio{0}", shareable.Value);
if (shareable.Selected)
{
<input type="radio" value="@shareable.Value" id="@id" name="@Model.Name" checked="checked" />
}
else
{
<input type="radio" value="@shareable.Value" id="@id" name="@Model.Name" />
}
<span><img src="@Url.Content(shareable.ImageUrl)" alt="" class="@Model.ImageClass" /></span>
<br />
}
<br />
<input type="submit" value="Update Settings" class="submitBtn" />
}
</div>
}
else
{
<div class="cpHeader">
Social Sharing Settings
</div>
<div class="cpContent">
@using(Html.BeginForm("EnableSocialSharing","Admin"))
{
@Html.CheckBox("enableSocialSharing", new { @id = "enableSocialSharing" })
<label for="enableSocialSharing">Enable Social Sharing</label>
<input type="submit" value="Enable"/>
}
</div>
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Just another passionate software developer!
Some of the contributions to the open source world - a blog engine written in MVC 4 - sBlog.Net. Check it out
here. For the codeproject article regarding sBlog.Net click
here!
(Figuring out this section!)