wrapping the apply filter calls in the member info view file
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 20 Oct 2017 18:04:01 +0000 (14:04 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 20 Oct 2017 18:04:01 +0000 (14:04 -0400)
adding table wrapper to the apply filter calls for the custom fields form in the member info
view file, adding the plugin slug to the model to be passed to the view

models/admin/member/memberInfo.php
views/admin/member/memberInfo.html

index 498c1d3..d195277 100644 (file)
@@ -526,7 +526,8 @@ class GlmMembersAdmin_member_memberInfo extends GlmDataMemberInfo
             'haveFiles'           => $this->haveFiles,
             'files'               => $this->files,
             'noActive'            => $this->noActiveInfoRecord(),
-            'time'                => time()
+            'time'                => time(),
+            'slug'                => GLM_MEMBERS_PLUGIN_SLUG
         );
 
         // Return status, suggested view, and data to controller
index 9eea7fc..296abcb 100644 (file)
         {if $settings.memb_info_files} {include file='admin/member/memberInfo/editFiles.html'} {/if}
 
       {if $memberInfoID && $memberInfo}
-        {apply_filters('glm-member-db-custom-fields-tab', '', $memberInfoID)}
+        {$prefix = $slug|cat:'_'}
+        {$uid = $prefix|cat:$memberInfoID}
+        <table id="glm-table-custom-fields" class="glm-hidden glm-admin-table glm-table">
+            {apply_filters('glm-members-custom-fields-form', '', $slug,$memberInfoID)}
+            {apply_filters('glm-members-custom-fields-form', '', $uid,$memberInfoID)}
+        </table>
       {else}
-        {apply_filters('glm-member-db-custom-fields-tab', '', '')}
+        {apply_filters('glm-members-custom-fields-form', '', '')}
       {/if}
 
         <p><span class="glm-required">*</span> Required</p>