Hide Disabled Domains from domain Selector
Disabled domains can still by managed by going to the Domains app and clicking Manage.
This commit is contained in:
+38
-36
@@ -1033,42 +1033,44 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id='domains_list'>
|
<div id='domains_list'>
|
||||||
{foreach $domains as $row}
|
{foreach $domains as $row}
|
||||||
{*//alternate background colors of inactive domains *}
|
{if $row.domain_enabled}
|
||||||
{if $background_color == $domain_selector_background_color_1}
|
{*//alternate background colors of inactive domains *}
|
||||||
{$background_color=$domain_selector_background_color_2}
|
{if $background_color == $domain_selector_background_color_1}
|
||||||
{else}
|
{$background_color=$domain_selector_background_color_2}
|
||||||
{$background_color=$domain_selector_background_color_1}
|
{else}
|
||||||
{/if}
|
{$background_color=$domain_selector_background_color_1}
|
||||||
{*//set active domain color *}
|
{/if}
|
||||||
{if $domain_active_background_color != ''}
|
{*//set active domain color *}
|
||||||
{if $row.domain_uuid == $domain_uuid}{$background_color=$domain_active_background_color}{/if}
|
{if $domain_active_background_color != ''}
|
||||||
{/if}
|
{if $row.domain_uuid == $domain_uuid}{$background_color=$domain_active_background_color}{/if}
|
||||||
{*//active domain text hover color *}
|
{/if}
|
||||||
{if $settings.theme.domain_active_text_color_hover != '' && $row.domain_uuid == $domain_uuid}
|
{*//active domain text hover color *}
|
||||||
<div id='{$row.domain_name}' class='domains_list_item_active' style='background-color: {$background_color}' onclick="document.location.href='{$domains_app_path}?domain_uuid={$row.domain_uuid}&domain_change=true';">
|
{if $settings.theme.domain_active_text_color_hover != '' && $row.domain_uuid == $domain_uuid}
|
||||||
{elseif $settings.theme.domain_inactive_text_color_hover != '' && $row.domain_uuid != $domain_uuid}
|
<div id='{$row.domain_name}' class='domains_list_item_active' style='background-color: {$background_color}' onclick="document.location.href='{$domains_app_path}?domain_uuid={$row.domain_uuid}&domain_change=true';">
|
||||||
<div id='{$row.domain_name}' class='domains_list_item_inactive' style='background-color: {$background_color}' onclick="document.location.href='{$domains_app_path}?domain_uuid={$row.domain_uuid}&domain_change=true';">
|
{elseif $settings.theme.domain_inactive_text_color_hover != '' && $row.domain_uuid != $domain_uuid}
|
||||||
{else}
|
<div id='{$row.domain_name}' class='domains_list_item_inactive' style='background-color: {$background_color}' onclick="document.location.href='{$domains_app_path}?domain_uuid={$row.domain_uuid}&domain_change=true';">
|
||||||
<div id='{$row.domain_name}' class='domains_list_item' style='background-color: {$background_color}' onclick="document.location.href='{$domains_app_path}?domain_uuid={$row.domain_uuid}&domain_change=true';">
|
{else}
|
||||||
{/if}
|
<div id='{$row.domain_name}' class='domains_list_item' style='background-color: {$background_color}' onclick="document.location.href='{$domains_app_path}?domain_uuid={$row.domain_uuid}&domain_change=true';">
|
||||||
{*//domain link *}
|
{/if}
|
||||||
<a href='{$domains_app_path}?domain_uuid={$row.domain_uuid}&domain_change=true' {if $row.domain_uuid == $domain_uuid}style='font-weight: bold;'{/if}>{$row.domain_name}</a>
|
{*//domain link *}
|
||||||
{*//domain description *}
|
<a href='{$domains_app_path}?domain_uuid={$row.domain_uuid}&domain_change=true' {if $row.domain_uuid == $domain_uuid}style='font-weight: bold;'{/if}>{$row.domain_name}</a>
|
||||||
{if $row.domain_description != ''}
|
{*//domain description *}
|
||||||
{*//active domain description text color *}
|
{if $row.domain_description != ''}
|
||||||
{if $settings.theme.domain_active_desc_text_color != '' && $row.domain_uuid == $domain_uuid}
|
{*//active domain description text color *}
|
||||||
<span class='domain_active_list_item_description' title="{$row.domain_description}"> - {$row.domain_description}</span>
|
{if $settings.theme.domain_active_desc_text_color != '' && $row.domain_uuid == $domain_uuid}
|
||||||
{*//inactive domains description text color *}
|
<span class='domain_active_list_item_description' title="{$row.domain_description}"> - {$row.domain_description}</span>
|
||||||
{elseif $settings.theme.domain_inactive_desc_text_color != '' && $row.domain_uuid != $domain_uuid}
|
{*//inactive domains description text color *}
|
||||||
<span class='domain_inactive_list_item_description' title="{$row.domain_description}"> - {$row.domain_description}</span>
|
{elseif $settings.theme.domain_inactive_desc_text_color != '' && $row.domain_uuid != $domain_uuid}
|
||||||
{*//default domain description text color *}
|
<span class='domain_inactive_list_item_description' title="{$row.domain_description}"> - {$row.domain_description}</span>
|
||||||
{else}
|
{*//default domain description text color *}
|
||||||
<span class='domain_list_item_description' title="{$row.domain_description}"> - {$row.domain_description}</span>
|
{else}
|
||||||
{/if}
|
<span class='domain_list_item_description' title="{$row.domain_description}"> - {$row.domain_description}</span>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
{/if}
|
||||||
{$ary_domain_names[]=$row.domain_name}
|
</div>
|
||||||
{$ary_domain_descs[]=$row.domain_description|replace:'"':'\"'}
|
{$ary_domain_names[]=$row.domain_name}
|
||||||
|
{$ary_domain_descs[]=$row.domain_description|replace:'"':'\"'}
|
||||||
|
{/if}
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user