Update for smarty
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 26 Aug 2019 18:25:00 +0000 (14:25 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 26 Aug 2019 18:25:00 +0000 (14:25 -0400)
use smarty3

Updating call to editor

views/admin/relay/edit.html

index 79807e0..c813869 100644 (file)
         <tr>
             <th {if $message.fieldRequired.dashboard_message} class="glm-required"}{/if}>Dashboard Message</th>
             <td {if $message.fieldFail.dashboard_message}class="glm-form-bad-input" data-tabid="glm-dashboard_message"{/if}>
-            {php}
-                wp_editor('{$message.fieldData.dashboard_message|escape:quotes}', 'dashboard_message', array(
-                    'wpautop'       => false,
-                    'textarea_name' => 'dashboard_message',
-                    'editor_height' => 200,
-                    'teeny'         => true,
-                ));
-            {/php}
+                {wp_editor( '{$message.fieldData.dashboard_message|escape:quotes}', 'dashboard_message', [ 'wpautop' => false, 'textarea_name' => 'dashboard_message', 'editor_height' => 200, 'teeny' => true ])}
                 {if $message.fieldFail.dashboard_message}<p>{$message.fieldFail.dashboard_message}</p>{/if}<br>
             </td>
         </tr>
         <tr>
             <th {if $message.fieldRequired.message} class="glm-required"}{/if}>Message</th>
             <td {if $message.fieldFail.message}class="glm-form-bad-input" data-tabid="glm-message"{/if}>
-            {php}
-                wp_editor('{$message.fieldData.message|escape:quotes}', 'message', array(
-                    'wpautop'       => false,
-                    'textarea_name' => 'message',
-                    'editor_height' => 400,
-                    'teeny'         => true,
-                ));
-            {/php}
+                {wp_editor( '{$message.fieldData.massage|escape:quotes}', 'massage', [ 'wpautop' => false, 'textarea_name' => 'massage', 'editor_height' => 400, 'teeny' => true ])}
                 {if $message.fieldFail.message}<p>{$message.fieldFail.message}</p>{/if}<br>
             </td>
         </tr>