-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #296 from HotcakesCommerce/development
Development
- Loading branch information
Showing
971 changed files
with
74,533 additions
and
1,571 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
119 changes: 119 additions & 0 deletions
119
...yViewSet/Portals/_default/HotcakesViews/Areas/AdminContent/Views/FileBrowser/Index.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
@using Hotcakes.Modules.Core.AppCode | ||
@using Hotcakes.Commerce.Storage; | ||
@model Hotcakes.Modules.Core.Areas.AdminContent.Models.FileManagerViewModel | ||
|
||
@{ | ||
ViewBag.Title = "Browse Files"; | ||
Layout = "../Shared/_PopupLayout.cshtml"; | ||
} | ||
|
||
@section HeadContent | ||
{ | ||
<script type="text/javascript"> | ||
$(document).ready(function () { | ||
$('.trashdir').click(function() { | ||
if (window.confirm('Are you sure?\n\nThe directory AND everything in it will be deleted forever!\n\nTHERE IS NO UNDO FOR THIS DELETE')) | ||
{ | ||
return true; | ||
} | ||
return false; | ||
}); | ||
$('.trashfile').click(function () { | ||
if (window.confirm('Are you sure?\n\nDelete this file forever!\n\nTHERE IS NO UNDO FOR THIS DELETE')) { | ||
return true; | ||
} | ||
return false; | ||
}); | ||
$('.selectfile').click(function () { | ||
var filepluspath = $(this).attr('data-file'); | ||
//alert("selected file: " + filepluspath); | ||
window.opener.SetImage(filepluspath); | ||
}); | ||
}); | ||
</script> | ||
} | ||
|
||
@helper RenderDeleteDir(string path) | ||
{ | ||
if (DiskStorage.FileManagerIsSystemPath(path)) | ||
{ | ||
<text> </text> | ||
} | ||
else | ||
{ | ||
<form action="@Url.Content("~/DesktopModules/Hotcakes/API/mvc/filebrowser/deletedirectory")" method="post"> | ||
<input type="hidden" name="path" value="@Model.Path" /> | ||
<input type="hidden" name="deletepath" value="@path" /> | ||
<input type="image" src="@Url.Content("~/DesktopModules/Hotcakes/Core/Admin/Images/TrashCan.png")" alt="Delete Directory" class="trashdir" /> | ||
</form> | ||
} | ||
} | ||
@helper RenderDeleteFile(string filename) | ||
{ | ||
<form action="@Url.Content("~/DesktopModules/Hotcakes/API/mvc/filebrowser/deletefile")" method="post"> | ||
<input type="hidden" name="path" value="@Model.Path" /> | ||
<input type="hidden" name="filename" value="@filename" /> | ||
<input type="image" src="@Url.Content("~/DesktopModules/Hotcakes/Core/Admin/Images/TrashCan.png")" alt="Delete File" class="trashfile" /> | ||
</form> | ||
} | ||
|
||
@section nav { | ||
<div class="controlarea1"> | ||
<form action="@Url.Content("~/DesktopModules/Hotcakes/API/mvc/filebrowser/upload")" method="post" enctype="multipart/form-data"> | ||
<h3>Upload Files</h3> | ||
<input type="file" size="10" name="postedfile" multiple="multiple" /><br /> | ||
<input type="image" src="@Url.Content("~/DesktopModules/Hotcakes/Core/Admin/Images/buttons/upload.png")" alt="Upload File" /> | ||
<input type="hidden" name="path" value="@Model.Path" /> | ||
</form> | ||
</div> | ||
<div class="controlarea1"> | ||
<form action="@Url.Content("~/DesktopModules/Hotcakes/API/mvc/filebrowser/createdirectory")" method="post"> | ||
<h3>Add New Directory</h3> | ||
<input type="text" name="newdirectoryname" size="10" /><br /> | ||
<input type="image" src="@Url.Content("~/DesktopModules/Hotcakes/Core/Admin/Images/buttons/submit.png")" alt="Add New Directory" /> | ||
<input type="hidden" name="path" value="@Model.Path" /> | ||
</form> | ||
</div> | ||
} | ||
<h1>Browse Files</h1> | ||
@Html.Raw(ViewBag.BreadCrumbsFinal) | ||
<hr /> | ||
<table width="100%" class="liststyle1"> | ||
@if (Model.AllowParentPath) | ||
{ | ||
<tr> | ||
<td style="width:32px;"><a href="@Url.Content("~/DesktopModules/Hotcakes/API/mvc/filebrowser?path=" + Model.ParentPath)"><img src="@Url.Content("~/DesktopModules/Hotcakes/Core/Admin/Images/fileicons/folder_up_32.png")" alt="Up One Level" /></a></td> | ||
<td class="listitem"><a href="@Url.Content("~/DesktopModules/Hotcakes/API/mvc/filebrowser?path=" + Model.ParentPath)">« Up One Level</a></td> | ||
<td class="listitem" style="width:50px;"> </td> | ||
<td class="listitem" style="width:50px;"> </td> | ||
</tr> | ||
} | ||
@foreach (string d in Model.Directories) | ||
{ | ||
<tr> | ||
<td style="width:32px;"><a href="@Url.Content("~/DesktopModules/Hotcakes/API/mvc/filebrowser?path=" + Model.ChildPath(d))"><img src="@Url.Content("~/DesktopModules/Hotcakes/Core/Admin/Images/fileicons/folder_32.png")" alt="@d" /></a></td> | ||
<td class="listitem"><a href="@Url.Content("~/DesktopModules/Hotcakes/API/mvc/filebrowser?path=" + Model.ChildPath(d))">@d</a></td> | ||
<td class="listitem" style="width:50px;">@RenderDeleteDir(Model.ChildPath(d))</td> | ||
<td class="listitem" style="width:50px;"> </td> | ||
</tr> | ||
} | ||
@foreach (string f in Model.Files) | ||
{ | ||
var path = Url.Content(Model.PreviewUrl(f)); | ||
<tr> | ||
<td style="width:32px;"> | ||
<img src="@Url.Content(Html.FileIconUrl(@f))" class="shadowed" alt="@f" /> | ||
</td> | ||
<td class="listitem"> | ||
<a href="@path" class="selectfile" data-file="@Model.RelativeFileUrl(f)" alt="@f">@f</a> | ||
</td> | ||
<td class="listitem" style="width:50px;">@RenderDeleteFile(f)</td> | ||
<td class="listitem" style="width:50px;"> | ||
<a href="#" class="selectfile" data-file="@Model.RelativeFileUrl(f)"><img src="@Url.Content("~/DesktopModules/Hotcakes/Core/Admin/Images/buttons/select.png")" alt="SELECT" /></a> | ||
</td> | ||
</tr> | ||
} | ||
</table> |
27 changes: 27 additions & 0 deletions
27
...iewSet/Portals/_default/HotcakesViews/Areas/AdminContent/Views/Shared/_PopupLayout.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>@ViewBag.Title</title> | ||
<link href="@Url.Content("~/DesktopModules/Hotcakes/Core/Admin/styles.css")" rel="stylesheet" type="text/css" /> | ||
@Html.Raw(ViewBag.JqueryInclude) | ||
@if (IsSectionDefined("HeadContent")) | ||
{ | ||
@RenderSection("HeadContent", false) | ||
} | ||
</head> | ||
<body id="pagebody"> | ||
<div id="popup-wrapper"> | ||
<div id="main-content"> | ||
<table> | ||
<tr> | ||
<td>@RenderSection("nav")</td> | ||
<td>@RenderBody()</td> | ||
</tr> | ||
</table> | ||
|
||
</div> | ||
</div> | ||
@RenderSection("EndOfForm", false) | ||
</body> | ||
</html> | ||
|
13 changes: 13 additions & 0 deletions
13
...Set/Portals/_default/HotcakesViews/Areas/ContentBlocks/Views/CategoryRotator/Index.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@model Hotcakes.Modules.Core.Models.SingleCategoryViewModel | ||
<div class="hc-categoryrotator"> | ||
<div class="hc-content-block"> | ||
<a href="@Model.LinkUrl" title="@Model.AltText"> | ||
@if (!string.IsNullOrEmpty(Model.IconUrl)) | ||
{ | ||
<img src="@Model.IconUrl" alt="@Model.AltText" /> | ||
} | ||
<br /> | ||
<span>@Model.Name</span> | ||
</a> | ||
</div> | ||
</div> |
12 changes: 12 additions & 0 deletions
12
...et/Portals/_default/HotcakesViews/Areas/ContentBlocks/Views/FeaturedProducts/Index.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@model Hotcakes.Modules.Core.Areas.ContentBlocks.Models.FeaturedProductsViewModel | ||
|
||
<div class="hc-record-grid hc-product-grid clearfix"> | ||
@foreach (var p in Model.Items.Take(3)) | ||
{ | ||
<div class="hc-wrap3"> | ||
@Html.Partial("_RenderSingleProduct", p) | ||
</div> | ||
} | ||
</div> | ||
|
||
|
1 change: 1 addition & 0 deletions
1
...ples/MyViewSet/Portals/_default/HotcakesViews/Areas/ContentBlocks/Views/Html/Index.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
52 changes: 52 additions & 0 deletions
52
...iewSet/Portals/_default/HotcakesViews/Areas/ContentBlocks/Views/ImageRotator/Index.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
@model Hotcakes.Modules.Core.Areas.ContentBlocks.Models.ImageRotatorViewModel | ||
@using Hotcakes.Modules.Core.AppCode | ||
@Html.RegisterViewScript("ImageRotator.js") | ||
@if (Model.Images.Count > 0) | ||
{ | ||
<div class="hc-imagerotator @Model.CssClass"> | ||
<ul id="@(Model.CssId)" > | ||
@for (int i = 0; i < Model.Images.Count; i++) | ||
{ | ||
var img = Model.Images[i]; | ||
<li @if (i == 0) | ||
{ <text>class="show"</text> }><a href="@img.Url" @if (img.NewWindow) | ||
{ <text> target="_blank"</text> }> | ||
<img style="height:@(Model.Height)px;width:@(Model.Width)px;" src="@img.ImageUrl" alt="@img.Caption" /> | ||
</a></li> | ||
} | ||
</ul> | ||
</div> | ||
<script type="text/javascript"> | ||
$(document).ready(function() { | ||
StartRotator('@(Model.CssId)', @(Model.Pause)); | ||
}); | ||
</script> | ||
<style type="text/css"> | ||
#@(Model.CssId) { | ||
@if (Model.Height > 0) | ||
{ | ||
<text>height: @(Model.Height)px;</text> | ||
} | ||
@if (Model.Width > 0) | ||
{ | ||
<text>width: @(Model.Width)px;</text> | ||
} | ||
position:relative; | ||
margin:0;padding:0; | ||
} | ||
#@(Model.CssId) li { | ||
list-style:none; | ||
float:left; | ||
position:absolute; | ||
margin:0;padding:0; | ||
} | ||
#@(Model.CssId) li.show { | ||
z-index:500; | ||
} | ||
</style> | ||
} |
6 changes: 6 additions & 0 deletions
6
...wSet/Portals/_default/HotcakesViews/Areas/ContentBlocks/Views/ProductRotator/Index.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@model Hotcakes.Commerce.Catalog.Product | ||
<div class="hc-productrotator"> | ||
<div class="hc-content-block"> | ||
@Html.Action("RenderSingleProduct", "Products", new { Area = "", product = Model }) | ||
</div> | ||
</div> |
21 changes: 21 additions & 0 deletions
21
...ewSet/Portals/_default/HotcakesViews/Areas/ContentBlocks/Views/RssFeedViewer/Index.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
@model Hotcakes.Modules.Core.Areas.ContentBlocks.Models.RssFeedViewModel | ||
<div class="hc-rssfeedviewer"> | ||
<div class="hc-content-block"> | ||
@if (Model.ShowTitle) | ||
{ | ||
<h4>@Model.Channel.Title</h4> | ||
} | ||
@if (Model.ShowDescription) | ||
{ | ||
@Html.Raw(Model.Channel.Description) | ||
} | ||
<ul> | ||
@foreach (var item in Model.Channel.GetChannelItems(Model.MaxItems)) | ||
{ | ||
<li><a href="@Html.Raw(item.Link)">@Html.Raw(item.Title)</a><br /> | ||
@Html.Raw(item.Description)</li> | ||
} | ||
</ul> | ||
</div> | ||
</div> | ||
|
Oops, something went wrong.