Commit 5da7ce3b86713d0e6871e6c0439a424a27d5a397
1 parent
14cb5c06
PT:2492070 : First Login wizard updated.
Committed by: Jarrett Jordaan Reviewed by: Megan Watson
Showing
5 changed files
with
12 additions
and
5 deletions
setup/firstlogin/stepAction.php
| ... | ... | @@ -84,6 +84,12 @@ class stepAction extends stepActionBase { |
| 84 | 84 | $vars['left'] = $left; // Set left menu |
| 85 | 85 | $vars['fl_version'] = $this->properties['fl_version']; // Set version |
| 86 | 86 | $vars['fl_type'] = $this->properties['fl_type']; // Set type |
| 87 | + if (KTPluginUtil::pluginIsActive('fs.FolderTemplatesPlugin.plugin')) { // Check if folder templates plugin is active | |
| 88 | + $oRegistry =& KTPluginRegistry::getSingleton(); | |
| 89 | + $oPlugin =& $oRegistry->getPlugin('fs.FolderTemplatesPlugin.plugin'); // Get a handle on the plugin | |
| 90 | + $ft_dir = $oPlugin->getDirs(); | |
| 91 | + } | |
| 92 | + $vars['ft_handle'] = $ft_dir; // Set type | |
| 87 | 93 | return $vars; |
| 88 | 94 | } |
| 89 | 95 | ... | ... |
setup/firstlogin/steps/firstloginTemplates.php
| ... | ... | @@ -68,7 +68,8 @@ class firstloginTemplates extends Step { |
| 68 | 68 | function doStep() { |
| 69 | 69 | $this->temp_variables = array( |
| 70 | 70 | "step_name"=>"templates", |
| 71 | - "silent"=>$this->silent); | |
| 71 | + "silent"=>$this->silent, | |
| 72 | + ); | |
| 72 | 73 | if(!$this->inStep("templates")) { // Landing |
| 73 | 74 | $this->doRun(); // Set folder structure templates |
| 74 | 75 | return 'landing'; | ... | ... |
setup/firstlogin/templates/wizard.tpl
setup/wizard/config/databases.xml
setup/wizard/resources/js/firstlogin.js
| ... | ... | @@ -7,9 +7,9 @@ $(function() { // Document is ready |
| 7 | 7 | }); |
| 8 | 8 | |
| 9 | 9 | // Class First Login |
| 10 | -function firstlogin(rootUrl) { | |
| 10 | +function firstlogin(rootUrl, pluginHandle) { | |
| 11 | 11 | this.rootUrl = rootUrl; |
| 12 | - this.ktfolderAccess = rootUrl + "plugins/commercial/folder-templates/KTFolderTemplates.php?action="; | |
| 12 | + this.ktfolderAccess = rootUrl + pluginHandle + "?action="; | |
| 13 | 13 | this.ktmanageFolderAccess = rootUrl + "admin.php?kt_path_info=misc/adminfoldertemplatesmanagement&action="; |
| 14 | 14 | this.ajaxOn = false; |
| 15 | 15 | } | ... | ... |