if ( isset( $_REQUEST['filesProcessed'] ) ) {
$this->filesProcessed = filter_var( $_REQUEST['filesProcessed'], FILTER_VALIDATE_INT );
}
+ // Setup which additional plugins will be doing imports
+ $addOnTabsAllowed = array(
+ 'contacts',
+ 'social',
+ );
+ //echo '<pre>$this->config: ' . print_r( $this->config, true ) . '</pre>';
+
// $fileData - The main files needed for the member import
// - field: input field name
// - name: file name
// Setup the template data array
$templateData = array(
+ //'addOnTabs' => $addOnTabs,
'fileExists' => $fileExists,
'option' => $option,
'errors' => $this->errors,
href="{$thisUrl}?page={$thisPage}&glm_action=index&option=files"
class="nav-tab{if $option==files or $option===filesValidate} nav-tab-active{/if}">Import Files</a>
{/if}
+
+ {foreach $addOnTabs as $a}
+ <a href="{$thisUrl}?page={$thisPage}&glm_action={$a.action}{if isset($a.option)}&option={$a.option}{/if}" class="nav-tab{if $thisAction==$a.action} nav-tab-active{/if}">{$a.text}</a>
+ {/foreach}
</h2>
<div id="glm-admin-content-container">