From ac13eb42c1d8489f61f08fccc583e3ca274edb8b Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Tue, 12 Feb 2019 09:17:24 -0500 Subject: [PATCH] Updates for smarty not using {php} tags --- views/admin/forSale/edit.html | 68 ++++++++----------- .../settings/emailForSaleNotifications.html | 60 ++++++++-------- 2 files changed, 59 insertions(+), 69 deletions(-) diff --git a/views/admin/forSale/edit.html b/views/admin/forSale/edit.html index 3ec4857..a649168 100644 --- a/views/admin/forSale/edit.html +++ b/views/admin/forSale/edit.html @@ -56,7 +56,7 @@
Topic
- +
- +
- Item + Item
@@ -80,7 +80,7 @@
{if !$lockedToMember && $memberList} - +
Member @@ -116,21 +116,16 @@ Description
- {php} - wp_editor( - - '{$item.fieldData.descr|escape:quotes}', - - 'descr', array( - 'media_buttons' => false, - 'tinymce' => true, - // 'quicktags' => false, - // 'wpautop' => false, NOTE: Dont's use. Problem when numerous spaces before text. - 'textarea_name' => 'descr', - 'editor_height' => 200, // Height in px, overrides editor_rows - // 'textarea_rows' => 8 - )); - {/php} + {wp_editor( + $item.fieldData.descr|escape:quotes, + 'descr', + json_decode('{ + "media_buttons": false, + "quicktags": false, + "textarea_name": "descr", + "editor_height": 200 + }', true) + )}
@@ -139,21 +134,16 @@ Terms
- {php} - wp_editor( - - '{$item.fieldData.terms|escape:quotes}', - - 'terms', array( - 'media_buttons' => false, - 'tinymce' => true, - // 'quicktags' => false, - // 'wpautop' => false, NOTE: Dont's use. Problem when numerous spaces before text. - 'textarea_name' => 'terms', - 'editor_height' => 200, // Height in px, overrides editor_rows - // 'textarea_rows' => 8 - )); - {/php} + {wp_editor( + $item.fieldData.terms|escape:quotes, + 'terms', + json_decode('{ + "media_buttons": false, + "quicktags": false, + "textarea_name": "terms", + "editor_height": 200 + }', true) + )}
@@ -186,11 +176,11 @@
{include file='admin/forSale/parts/image_input.html'}
- +
- Item Expiration + Item Expiration
- - + + @@ -261,7 +251,7 @@ window.location.replace("{$thisUrl}?page={$thisPage}&glm_action=index&option=delete&item={$item.fieldData.id}"); }); {/if} - + // Flash certain elements for a short time after display $(".glm-flash-updated").fadeOut(500).fadeIn(500).fadeOut(500).fadeIn(500).fadeOut(500).fadeIn(500).fadeOut(500).fadeIn(500).fadeOut(500); diff --git a/views/admin/settings/emailForSaleNotifications.html b/views/admin/settings/emailForSaleNotifications.html index 5b04a2a..1d2783e 100644 --- a/views/admin/settings/emailForSaleNotifications.html +++ b/views/admin/settings/emailForSaleNotifications.html @@ -23,46 +23,46 @@
-- 2.17.1