/*
* Load and instatiate Smarty Templates
*/
- require (GLM_MEMBERS_PLUGIN_PATH . '/lib/Smarty-3.1.21/libs/Smarty.class.php');
-
- $this->template = new Smarty ();
+// require (GLM_MEMBERS_PLUGIN_PATH . '/lib/Smarty-3.1.21/libs/Smarty.class.php');
+// $this->template = new Smarty ();
+ require (GLM_MEMBERS_PLUGIN_PATH . '/lib/Smarty-3.1.21/libs/SmartyBC.class.php');
+ $this->template = new SmartyBC ();
/*
* Configure Smarty Templates for this site
<tr>
<th {if $memberInfo.fieldRequired.descr}class="glm-required"{/if}>Description:</th>
<td {if $memberInfo.fieldFail.descr}class="glm-form-bad-input"{/if}>
- <textarea name="descr" class="glm-form-textarea" placeholder="General description of the member.">{$memberInfo.fieldData.descr}</textarea>
+ {php}
+ wp_editor('{$memberInfo.fieldData.descr}', 'glm_descr', array(
+ 'media_buttons' => false,
+ 'quicktags' => false,
+ 'textarea_name' => 'descr',
+ 'editor_height' => 200, // Height in px, overrides editor_rows
+ // 'textarea_rows' => 8
+ ));
+ {/php}
{if $memberInfo.fieldFail.descr}<p>{$memberInfo.fieldFail.descr}</p>{/if}
</td>
</tr>
<tr>
<th {if $memberInfo.fieldRequired.notes}class="glm-required"{/if}>Notes:</th>
<td {if $memberInfo.fieldFail.notes}class="glm-form-bad-input"{/if}>
- <textarea name="notes" class="glm-form-textarea" placeholder="For reference only. Not displayed to users.">{$memberInfo.fieldData.notes}</textarea>
+ {php}
+ wp_editor('{$memberInfo.fieldData.notes}', 'glm_notes', array(
+ 'quicktags' => false,
+ 'media_buttons' => false,
+ 'textarea_name' => 'notes',
+ 'editor_height' => 100, // Height in px, overrides editor_rows
+ // 'textarea_rows' => 4,
+ ));
+ {/php}
{if $memberInfo.fieldFail.notes}<p>{$memberInfo.fieldFail.notes}</p>{/if}
</td>
</tr>