Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F848140
in-portal
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Apr 20, 2:00 AM
Size
1 KB
Mime Type
text/x-diff
Expires
Tue, Apr 22, 2:00 AM (20 h, 4 m)
Engine
blob
Format
Raw Data
Handle
602891
Attached To
rINP In-Portal
in-portal
View Options
Index: branches/5.0.x/core/install/step_templates/select_theme.tpl
===================================================================
--- branches/5.0.x/core/install/step_templates/select_theme.tpl (revision 13000)
+++ branches/5.0.x/core/install/step_templates/select_theme.tpl (revision 13001)
@@ -1,38 +1,40 @@
<tr class="table-color2">
<td class="text"><strong>Default Theme:</strong></td>
<td>
<select name="theme">
<?php
$sql = 'SELECT Name
FROM ' . TABLE_PREFIX . 'Modules';
$modules = $this->Conn->GetCol($sql);
$incommerce_only = count($modules) == 2 && in_array('In-Commerce', $modules);
$default_theme = $incommerce_only ? 'onlinestore' : 'default';
if ($default_theme == 'default') {
- if (file_exists(FULL_PATH . '/themes/default2007')) {
- $default_theme = 'default2007';
+ // default theme since 5.0.2
+ if (file_exists(FULL_PATH . '/themes/default')) {
+ $default_theme = 'default';
}
-
- // default theme since 5.0.1
- if (file_exists(FULL_PATH . '/themes/simple')) {
+ elseif (file_exists(FULL_PATH . '/themes/simple')) {
$default_theme = 'simple';
- }
+ }
+ elseif (file_exists(FULL_PATH . '/themes/advanced')) {
+ $default_theme = 'advanced';
+ }
}
$themes = $this->toolkit->getThemes();
$default_theme = array_search($default_theme, $themes); // convert theme name to id
$option_tpl = '<option value="%s"%s>%s</option>';
foreach ($themes as $theme_id => $theme_name) {
$selected = $theme_id == $default_theme ? ' selected' : '';
echo sprintf($option_tpl, $theme_id, $selected, $theme_name);
}
?>
</select>
<input type="checkbox" name="install_demo_data" id="install_demo_data" value="1"/><label for="install_demo_data">Install Demo content for this theme</label>
</td>
</tr>
\ No newline at end of file
Event Timeline
Log In to Comment