diff --git a/templates/Dynamic/RecipeBook/Page/Layout/RecipeCategoryPage.ss b/templates/Dynamic/RecipeBook/Page/Layout/RecipeCategoryPage.ss index 546c64f..d9ee98c 100644 --- a/templates/Dynamic/RecipeBook/Page/Layout/RecipeCategoryPage.ss +++ b/templates/Dynamic/RecipeBook/Page/Layout/RecipeCategoryPage.ss @@ -13,48 +13,7 @@ <% if $RecipeList.Sort('Title') %>
<% loop $RecipeList.Sort('Title') %> -
-
- - <% if $Image %> - $Image.Title - <% else %> - No Image - <% end_if %> - -
- <% if $PrimaryCategory %> -

$PrimaryCategory.Title

- <% end_if %> -
- $Title -
-
- <% if $PrepTime %> -
- Prep: $PrepTime -
- <% end_if %> - <% if $CookTime %> -
- Cook: $CookTime -
- <% end_if %> - <% if $Servings %> -
- Servings: $Servings -
- <% end_if %> -
- <% if $Summary %> -

$Summary.LimitCharacters(100)

- <% end_if %> -
- -
-
+ <% include RecipeSummary %> <% end_loop %>
<% else %> diff --git a/templates/Dynamic/RecipeBook/Page/Layout/RecipeLanding.ss b/templates/Dynamic/RecipeBook/Page/Layout/RecipeLanding.ss index cc713c6..9f83e1a 100644 --- a/templates/Dynamic/RecipeBook/Page/Layout/RecipeLanding.ss +++ b/templates/Dynamic/RecipeBook/Page/Layout/RecipeLanding.ss @@ -20,45 +20,7 @@ <% loop $RecipeList.Limit(3).Sort('Title') %> -
-
- - <% if $Image %> - $Image.Title - <% else %> - No Image - <% end_if %> - -
- <% if $PrimaryCategory %> -

$PrimaryCategory.Title

- <% end_if %> -
- $Title -
-
- <% if $PrepTime %> -
- Prep: $PrepTime -
- <% end_if %> - <% if $CookTime %> -
- Cook: $CookTime -
- <% end_if %> - <% if $Servings %> -
- Servings: $Servings -
- <% end_if %> -
-
- -
-
+ <% include RecipeSummary %> <% end_loop %> diff --git a/templates/Dynamic/RecipeBook/Page/Layout/RecipePage.ss b/templates/Dynamic/RecipeBook/Page/Layout/RecipePage.ss index 8b0d757..83ec4a9 100644 --- a/templates/Dynamic/RecipeBook/Page/Layout/RecipePage.ss +++ b/templates/Dynamic/RecipeBook/Page/Layout/RecipePage.ss @@ -1,5 +1,12 @@
+ <% if $Image %> +
+
+ $Image.Title +
+
+ <% end_if %>
$Image.Title @@ -15,38 +22,51 @@

$Title

- Prep: $PreparationTime minutes + Prep: $PrepTime
- Cook: $CookTime minutes + Cook: $CookTime
Servings: $Servings
-
-
- - -
-
-
-

Share This Recipe:

- - - - - - - - - - - - - - - + +
+
+ <% if $CategoryList %> +
Additional Categories:
+
    + <% loop $CategoryList %> + <% if $ID != $CurrentCategory.ID %> +
  • + $Title +
  • + <% end_if %> + <% end_loop %> +
+ <% end_if %> +
+
+
Share This Recipe:
+ +
@@ -65,28 +85,26 @@

Ingredients

Instructions

- +
- -
+
$ElementalArea
\ No newline at end of file diff --git a/templates/Includes/RecipeSummary.ss b/templates/Includes/RecipeSummary.ss new file mode 100644 index 0000000..1bb6541 --- /dev/null +++ b/templates/Includes/RecipeSummary.ss @@ -0,0 +1,40 @@ +
+
+ <% if $Image %> + + $Image.Title + + <% end_if %> +
+ <% if $PrimaryCategory %> +

$PrimaryCategory.Title

+ <% end_if %> +
+ $Title +
+
+ <% if $PrepTime %> +
+ Prep: $PrepTime +
+ <% end_if %> + <% if $CookTime %> +
+ Cook: $CookTime +
+ <% end_if %> + <% if $Servings %> +
+ Servings: $Servings +
+ <% end_if %> +
+ <% if $Summary %> +

$Summary.LimitCharacters(100)

+ <% end_if %> +
+ +
+
\ No newline at end of file