mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Added Cycle demo project.
This commit is contained in:
@@ -0,0 +1,170 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>9.0.30729</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{6CE8A820-B7EC-416B-9772-A402F875074D}</ProjectGuid>
|
||||
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>IDeliverable.Tutorials.Slides</RootNamespace>
|
||||
<AssemblyName>IDeliverable.Tutorials.Slides</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
|
||||
<MvcBuildViews>false</MvcBuildViews>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<OldToolsVersion>4.0</OldToolsVersion>
|
||||
<UpgradeBackupLocation />
|
||||
<TargetFrameworkProfile />
|
||||
<UseIISExpress>false</UseIISExpress>
|
||||
<IISExpressSSLPort />
|
||||
<IISExpressAnonymousAuthentication />
|
||||
<IISExpressWindowsAuthentication />
|
||||
<IISExpressUseClassicPipelineMode />
|
||||
<UseGlobalApplicationHostFile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\lib\aspnetmvc\Microsoft.Web.Infrastructure.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.ComponentModel.DataAnnotations">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.DynamicData" />
|
||||
<Reference Include="System.Web" />
|
||||
<Reference Include="System.Web.Extensions" />
|
||||
<Reference Include="System.Web.Abstractions" />
|
||||
<Reference Include="System.Web.Helpers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\lib\aspnetmvc\System.Web.Helpers.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\lib\aspnetmvc\System.Web.Mvc.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\lib\aspnetmvc\System.Web.Razor.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.Routing" />
|
||||
<Reference Include="System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\lib\aspnetmvc\System.Web.WebPages.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.WebPages.Deployment, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\lib\aspnetmvc\System.Web.WebPages.Deployment.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\lib\aspnetmvc\System.Web.WebPages.Razor.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Scripts\jquery.cycle2.js" />
|
||||
<Content Include="Scripts\jquery.cycle2.min.js" />
|
||||
<Content Include="Web.config" />
|
||||
<Content Include="Scripts\Web.config" />
|
||||
<Content Include="Styles\Web.config" />
|
||||
<Content Include="Properties\AssemblyInfo.cs" />
|
||||
<Content Include="Module.txt" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\Orchard\Orchard.Framework.csproj">
|
||||
<Project>{2D1D92BB-4555-4CBE-8D0E-63563D6CE4C6}</Project>
|
||||
<Name>Orchard.Framework</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Core\Orchard.Core.csproj">
|
||||
<Project>{9916839C-39FC-4CEB-A5AF-89CA7E87119F}</Project>
|
||||
<Name>Orchard.Core</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\IDeliverable.Slides\IDeliverable.Slides.csproj">
|
||||
<Project>{f5c14e1e-e2b4-4851-bb27-06b97818c4fa}</Project>
|
||||
<Name>IDeliverable.Slides</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Views\SlideshowPlayerEngines.Cycle.cshtml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="SlideshowPlayerEngines\Cycle.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Views\EditorTemplates\SlideshowPlayerEngines.Cycle.cshtml" />
|
||||
</ItemGroup>
|
||||
<PropertyGroup>
|
||||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
|
||||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target> -->
|
||||
<Target Name="AfterBuild" DependsOnTargets="AfterBuildCompiler">
|
||||
<PropertyGroup>
|
||||
<AreasManifestDir>$(ProjectDir)\..\Manifests</AreasManifestDir>
|
||||
</PropertyGroup>
|
||||
<!-- If this is an area child project, uncomment the following line:
|
||||
<CreateAreaManifest AreaName="$(AssemblyName)" AreaType="Child" AreaPath="$(ProjectDir)" ManifestPath="$(AreasManifestDir)" ContentFiles="@(Content)" />
|
||||
-->
|
||||
<!-- If this is an area parent project, uncomment the following lines:
|
||||
<CreateAreaManifest AreaName="$(AssemblyName)" AreaType="Parent" AreaPath="$(ProjectDir)" ManifestPath="$(AreasManifestDir)" ContentFiles="@(Content)" />
|
||||
<CopyAreaManifests ManifestPath="$(AreasManifestDir)" CrossCopy="false" RenameViews="true" />
|
||||
-->
|
||||
</Target>
|
||||
<Target Name="AfterBuildCompiler" Condition="'$(MvcBuildViews)'=='true'">
|
||||
<AspNetCompiler VirtualPath="temp" PhysicalPath="$(ProjectDir)\..\$(ProjectName)" />
|
||||
</Target>
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
|
||||
<WebProjectProperties>
|
||||
<UseIIS>False</UseIIS>
|
||||
<AutoAssignPort>True</AutoAssignPort>
|
||||
<DevelopmentServerPort>45979</DevelopmentServerPort>
|
||||
<DevelopmentServerVPath>/</DevelopmentServerVPath>
|
||||
<IISUrl>
|
||||
</IISUrl>
|
||||
<NTLMAuthentication>False</NTLMAuthentication>
|
||||
<UseCustomServer>True</UseCustomServer>
|
||||
<CustomServerUrl>http://orchard.codeplex.com</CustomServerUrl>
|
||||
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
|
||||
</WebProjectProperties>
|
||||
</FlavorProperties>
|
||||
</VisualStudio>
|
||||
</ProjectExtensions>
|
||||
</Project>
|
||||
@@ -0,0 +1,12 @@
|
||||
Name: IDeliverable Slides Tutorial
|
||||
AntiForgery: enabled
|
||||
Author: IDeliverable
|
||||
Website: http://www.ideliverable.com
|
||||
Version: 1.0
|
||||
OrchardVersion: 1.9
|
||||
Features:
|
||||
IDeliverable.Tutorials.Slides
|
||||
Name: IDeliverable Slides Tutorial
|
||||
Description: Demonstrates the implementation of various extensibility points of IDeliverable.Slides.
|
||||
Category: Tutorials
|
||||
Dependencies: IDeliverable.Slides
|
||||
@@ -0,0 +1,37 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Security;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("IDeliverable.Tutorials.Slides")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyProduct("Orchard")]
|
||||
[assembly: AssemblyCopyright("")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("50ce7c92-9558-4b16-91c2-fe11457e77ea")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
<system.webServer>
|
||||
<staticContent>
|
||||
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="7.00:00:00" />
|
||||
</staticContent>
|
||||
|
||||
<handlers accessPolicy="Script,Read">
|
||||
<!--
|
||||
iis7 - for any request to a file exists on disk, return it via native http module.
|
||||
accessPolicy 'Script' is to allow for a managed 404 page.
|
||||
-->
|
||||
<add name="StaticFile" path="*" verb="*" modules="StaticFileModule" preCondition="integratedMode" resourceType="File" requireAccess="Read" />
|
||||
</handlers>
|
||||
</system.webServer>
|
||||
</configuration>
|
||||
File diff suppressed because it is too large
Load Diff
15
src/Orchard.Web/Modules/IDeliverable.Tutorials.Slides/Scripts/jquery.cycle2.min.js
vendored
Normal file
15
src/Orchard.Web/Modules/IDeliverable.Tutorials.Slides/Scripts/jquery.cycle2.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1,85 @@
|
||||
using IDeliverable.Slides.Helpers;
|
||||
using IDeliverable.Slides.Services;
|
||||
using IUpdateModel = Orchard.ContentManagement.IUpdateModel;
|
||||
|
||||
namespace IDeliverable.Tutorials.Slides.SlideshowPlayerEngines
|
||||
{
|
||||
public class Cycle : SlideshowPlayerEngine
|
||||
{
|
||||
public int Speed
|
||||
{
|
||||
get { return this.Retrieve(x => x.Speed, () => 500); }
|
||||
set { this.Store(x => x.Speed, value); }
|
||||
}
|
||||
|
||||
public int? ManualSpeed
|
||||
{
|
||||
get { return this.Retrieve(x => x.ManualSpeed); }
|
||||
set { this.Store(x => x.ManualSpeed, value); }
|
||||
}
|
||||
|
||||
public int Timeout
|
||||
{
|
||||
get { return this.Retrieve(x => x.Timeout, () => 4000); }
|
||||
set { this.Store(x => x.Timeout, value); }
|
||||
}
|
||||
|
||||
public bool AllowWrap
|
||||
{
|
||||
get { return this.Retrieve(x => x.AllowWrap, () => true); }
|
||||
set { this.Store(x => x.AllowWrap, value); }
|
||||
}
|
||||
|
||||
public string AutoHeight
|
||||
{
|
||||
get { return this.Retrieve(x => x.AutoHeight, () => "0"); }
|
||||
set { this.Store(x => x.AutoHeight, value); }
|
||||
}
|
||||
|
||||
public int Loop
|
||||
{
|
||||
get { return this.Retrieve(x => x.Loop, () => 0); }
|
||||
set { this.Store(x => x.Loop, value); }
|
||||
}
|
||||
|
||||
public bool Paused
|
||||
{
|
||||
get { return this.Retrieve(x => x.Paused); }
|
||||
set { this.Store(x => x.Paused, value); }
|
||||
}
|
||||
|
||||
public bool PauseOnHover
|
||||
{
|
||||
get { return this.Retrieve(x => x.PauseOnHover); }
|
||||
set { this.Store(x => x.PauseOnHover, value); }
|
||||
}
|
||||
|
||||
public bool Random
|
||||
{
|
||||
get { return this.Retrieve(x => x.Random); }
|
||||
set { this.Store(x => x.Random, value); }
|
||||
}
|
||||
|
||||
public bool Reverse
|
||||
{
|
||||
get { return this.Retrieve(x => x.Reverse); }
|
||||
set { this.Store(x => x.Reverse, value); }
|
||||
}
|
||||
|
||||
public override dynamic BuildEditor(dynamic shapeFactory)
|
||||
{
|
||||
return UpdateEditor(shapeFactory, null);
|
||||
}
|
||||
|
||||
public override dynamic UpdateEditor(dynamic shapeFactory, IUpdateModel updater)
|
||||
{
|
||||
updater?.TryUpdateModel(this, Prefix, null, null);
|
||||
return shapeFactory.EditorTemplate(TemplateName: "SlideshowPlayerEngines.Cycle", Model: this, Prefix: Prefix);
|
||||
}
|
||||
|
||||
public override dynamic BuildDisplay(dynamic shapeFactory)
|
||||
{
|
||||
return shapeFactory.SlideshowPlayerEngines_Cycle();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
<system.webServer>
|
||||
<staticContent>
|
||||
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="7.00:00:00" />
|
||||
</staticContent>
|
||||
|
||||
<handlers accessPolicy="Script,Read">
|
||||
<!--
|
||||
iis7 - for any request to a file exists on disk, return it via native http module.
|
||||
accessPolicy 'Script' is to allow for a managed 404 page.
|
||||
-->
|
||||
<add name="StaticFile" path="*" verb="*" modules="StaticFileModule" preCondition="integratedMode" resourceType="File" requireAccess="Read" />
|
||||
</handlers>
|
||||
</system.webServer>
|
||||
</configuration>
|
||||
@@ -0,0 +1,64 @@
|
||||
@model IDeliverable.Tutorials.Slides.SlideshowPlayerEngines.Cycle
|
||||
<fieldset>
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(m => m.Speed, T("Speed"))
|
||||
@Html.TextBoxFor(m => m.Speed, new { @class = "text medium" })
|
||||
@Html.Hint(T("The speed of the transition effect in milliseconds."))
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(m => m.ManualSpeed, T("Manual Speed"))
|
||||
@Html.TextBoxFor(m => m.ManualSpeed, new { @class = "text medium" })
|
||||
@Html.Hint(T("The speed (in milliseconds) for transitions that are manually initiated, such as those caused by clicking a \"next\" button or a pager link. By default, manual transitions occur at the same speed as automatic (timer-based) transitions."))
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(m => m.Timeout, T("Timeout"))
|
||||
@Html.TextBoxFor(m => m.Timeout, new { @class = "text medium" })
|
||||
@Html.Hint(T("The time between slide transitions in milliseconds."))
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@Html.CheckBoxFor(m => m.AllowWrap)
|
||||
@Html.LabelFor(m => m.AllowWrap, T("Allow Wrap").Text, new {@class = "forcheckbox"})
|
||||
@Html.Hint(T("This option determines whether or not a slideshow can advance from the last slide to the first (or vice versa)."))
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(m => m.Loop, T("Loop"))
|
||||
@Html.TextBoxFor(m => m.Loop, new { @class = "text medium" })
|
||||
@Html.Hint(T("The number of times an auto-advancing slideshow should loop before terminating. If the value is less than 1 then the slideshow will loop continuously. Set to 1 to loop once, etc. Note: Setting the allow-wrap option to false will override looping."))
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(m => m.AutoHeight, T("Auto Height"))
|
||||
@Html.TextBoxFor(m => m.AutoHeight, new { @class = "text medium" })
|
||||
<div class="hint">
|
||||
<p>This option determines whether or not Cycle2 will provide height management for the slideshow which can be very useful in fluid or responsive designs. There are three ways this option can be used:</p>
|
||||
<ul>
|
||||
<li>an integer can be provided to identify the zero-based slide index for a sentinel slide</li>
|
||||
<li>the string "calc" can be provided to instruct Cycle2 to calculate the tallest slide and use it as the sentinel</li>
|
||||
<li>a ratio string can be provided which identifies the width:height aspect ratio for the container</li>
|
||||
</ul>
|
||||
<p>By default, the slideshow's first slide is used as the sentinel slide and its demensions will control the height of the slideshow container if the container does not have a specific height set via CSS.</p>
|
||||
<p>To force the slideshow container to a specific aspect ratio, for example to hold a set of images that are 600x400, use a ratio string like this:</p>
|
||||
<blockquote>data-cycle-auto-height="600:400"</blockquote>
|
||||
<p>To disable height management, set this option's value to -1 or false.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@Html.CheckBoxFor(m => m.Paused)
|
||||
@Html.LabelFor(m => m.Paused, T("Paused").Text, new {@class = "forcheckbox"})
|
||||
@Html.Hint(T("If checked the slideshow will begin in a paused state."))
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@Html.CheckBoxFor(m => m.PauseOnHover)
|
||||
@Html.LabelFor(m => m.PauseOnHover, T("Pause On Hover").Text, new {@class = "forcheckbox"})
|
||||
@Html.Hint(T("If checked an auto-running slideshow will be paused while the mouse is over the slideshow."))
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@Html.CheckBoxFor(m => m.Random)
|
||||
@Html.LabelFor(m => m.Random, T("Random").Text, new {@class = "forcheckbox"})
|
||||
@Html.Hint(T("If checked the order of the slides will be randomized. This only effects slides that are initially in the markup, not slides added via the add command or via Cycle2's image loader functionality."))
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@Html.CheckBoxFor(m => m.Reverse)
|
||||
@Html.LabelFor(m => m.Reverse, T("Reverse").Text, new { @class = "forcheckbox" })
|
||||
@Html.Hint(T("If checked the slideshow will proceed in reverse order and transitions that support this option will run a reverse animation."))
|
||||
</div>
|
||||
</fieldset>
|
||||
@@ -0,0 +1,32 @@
|
||||
@using IDeliverable.Tutorials.Slides.SlideshowPlayerEngines
|
||||
@{
|
||||
Script.Require("jQuery");
|
||||
Script.Include("jquery.cycle2.js", "jquery.cycle2.min.js");
|
||||
}
|
||||
@{
|
||||
var engine = (Cycle)Model.Engine;
|
||||
var slides = (IList<dynamic>)Model.Slides;
|
||||
|
||||
if (slides.Any())
|
||||
{
|
||||
<div class="cycle-slideshow"
|
||||
data-cycle-speed="@engine.Speed"
|
||||
data-cycle-manual-speed="@engine.ManualSpeed"
|
||||
data-cycle-timeout="@engine.Timeout"
|
||||
data-cycle-allow-wrap="@engine.AllowWrap.ToString().ToLowerInvariant()"
|
||||
data-cycle-auto-height="@engine.AutoHeight"
|
||||
data-cycle-loop="@engine.Loop.ToString().ToLowerInvariant()"
|
||||
data-cycle-paused="@engine.Paused.ToString().ToLowerInvariant()"
|
||||
data-cycle-pause-on-hover="@engine.PauseOnHover.ToString().ToLowerInvariant()"
|
||||
data-cycle-random="@engine.Random.ToString().ToLowerInvariant()"
|
||||
data-cycle-reverse="@engine.Reverse.ToString().ToLowerInvariant()"
|
||||
data-cycle-slides="> div">
|
||||
@foreach (var slide in slides)
|
||||
{
|
||||
<div>
|
||||
@Display(slide)
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
|
||||
<configSections>
|
||||
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
||||
<remove name="host" />
|
||||
<remove name="pages" />
|
||||
<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
|
||||
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
|
||||
<system.web.webPages.razor>
|
||||
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
|
||||
<pages pageBaseType="Orchard.Mvc.ViewEngines.Razor.WebViewPage">
|
||||
<namespaces>
|
||||
<add namespace="System.Web.Mvc" />
|
||||
<add namespace="System.Web.Mvc.Ajax" />
|
||||
<add namespace="System.Web.Mvc.Html" />
|
||||
<add namespace="System.Web.Routing" />
|
||||
<add namespace="System.Web.WebPages" />
|
||||
<add namespace="System.Linq" />
|
||||
<add namespace="System.Collections.Generic" />
|
||||
<add namespace="Orchard.Mvc.Html" />
|
||||
</namespaces>
|
||||
</pages>
|
||||
</system.web.webPages.razor>
|
||||
|
||||
<system.web>
|
||||
<compilation targetFramework="4.5.1">
|
||||
<assemblies>
|
||||
<add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
|
||||
<add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
|
||||
<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
|
||||
<add assembly="System.Web.Mvc, Version=5.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
|
||||
<add assembly="System.Web.WebPages, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
|
||||
</assemblies>
|
||||
</compilation>
|
||||
</system.web>
|
||||
|
||||
<runtime>
|
||||
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
|
||||
<dependentAssembly>
|
||||
|
||||
<assemblyIdentity name="Autofac" publicKeyToken="17863af14b0044da" culture="neutral" />
|
||||
|
||||
<bindingRedirect oldVersion="0.0.0.0-3.5.0.0" newVersion="3.5.0.0" />
|
||||
|
||||
</dependentAssembly>
|
||||
|
||||
<dependentAssembly>
|
||||
|
||||
<assemblyIdentity name="NHibernate" publicKeyToken="aa95f207798dfdb4" culture="neutral" />
|
||||
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.0.4000" newVersion="4.0.0.4000" />
|
||||
|
||||
</dependentAssembly>
|
||||
|
||||
<dependentAssembly>
|
||||
|
||||
<assemblyIdentity name="Iesi.Collections" publicKeyToken="aa95f207798dfdb4" culture="neutral" />
|
||||
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
|
||||
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
|
||||
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
|
||||
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
|
||||
</dependentAssembly>
|
||||
|
||||
</assemblyBinding>
|
||||
|
||||
</runtime>
|
||||
</configuration>
|
||||
@@ -282,6 +282,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IDeliverable.Widgets", "Orc
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Vandelay.TranslationManager", "Orchard.Web\Modules\Vandelay.TranslationManager\Vandelay.TranslationManager.csproj", "{D853C0F7-3570-4D27-A45F-9ADE897E9BB5}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "IDeliverable.Star.Tutorials", "IDeliverable.Star.Tutorials", "{9DFCD562-414E-4E53-AD51-D48943470A6D}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IDeliverable.Tutorials.Slides", "Orchard.Web\Modules\IDeliverable.Tutorials.Slides\IDeliverable.Tutorials.Slides.csproj", "{6CE8A820-B7EC-416B-9772-A402F875074D}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
CodeCoverage|Any CPU = CodeCoverage|Any CPU
|
||||
@@ -1154,6 +1158,16 @@ Global
|
||||
{D853C0F7-3570-4D27-A45F-9ADE897E9BB5}.FxCop|Any CPU.Build.0 = Release|Any CPU
|
||||
{D853C0F7-3570-4D27-A45F-9ADE897E9BB5}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{D853C0F7-3570-4D27-A45F-9ADE897E9BB5}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{6CE8A820-B7EC-416B-9772-A402F875074D}.CodeCoverage|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{6CE8A820-B7EC-416B-9772-A402F875074D}.CodeCoverage|Any CPU.Build.0 = Release|Any CPU
|
||||
{6CE8A820-B7EC-416B-9772-A402F875074D}.Coverage|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{6CE8A820-B7EC-416B-9772-A402F875074D}.Coverage|Any CPU.Build.0 = Release|Any CPU
|
||||
{6CE8A820-B7EC-416B-9772-A402F875074D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{6CE8A820-B7EC-416B-9772-A402F875074D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{6CE8A820-B7EC-416B-9772-A402F875074D}.FxCop|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{6CE8A820-B7EC-416B-9772-A402F875074D}.FxCop|Any CPU.Build.0 = Release|Any CPU
|
||||
{6CE8A820-B7EC-416B-9772-A402F875074D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{6CE8A820-B7EC-416B-9772-A402F875074D}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
@@ -1244,5 +1258,6 @@ Global
|
||||
{66279934-5324-48A7-969B-565CD23D6B79} = {35CE9047-8A48-4EFA-A30C-93C5A8E564A4}
|
||||
{B2883BED-DD02-4064-8553-15EE0F07F18F} = {35CE9047-8A48-4EFA-A30C-93C5A8E564A4}
|
||||
{D853C0F7-3570-4D27-A45F-9ADE897E9BB5} = {35CE9047-8A48-4EFA-A30C-93C5A8E564A4}
|
||||
{6CE8A820-B7EC-416B-9772-A402F875074D} = {9DFCD562-414E-4E53-AD51-D48943470A6D}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
||||
Reference in New Issue
Block a user