<br> instead of , in aliases for SSL

Hi,

I have a few sites that have a lot of aliases for SSL. So it looks like this:

I tried looking into /usr/local/hestia/web/edit/web/index.php to see if I could work out where the “Alternate” part is printed out, and replace them with
(which would make more sense), but I can’t find it. I guess this isn’t a major issue for most people - but it does look messy on my sites when managing them (as it overlaps outside of the container div)

Alternatively - even just changing the “,” to ", " makes it properly wrap , so maybe that’s a better idea?

Cheers

Andy

Ok I found out how to do it - but I’m not sure if its the best way :slight_smile:

/usr/local/hestia/web/templates/pages/edit_web.php

						<?php if ($v_ssl_aliases) {
							?>
							<li class="values-list-item">
								<span class="values-list-label"><?= _("Alternate") ?></span>
								<span class="values-list-value"><?= $v_ssl_aliases ?></span>
							</li>
						<?php } ?>

Change to:

						<?php if ($v_ssl_aliases) {
							$v_ssl_aliases = str_replace(",", ", ", $v_ssl_aliases);
							?>
							<li class="values-list-item">
								<span class="values-list-label"><?= _("Alternate") ?></span>
								<span class="values-list-value"><?= $v_ssl_aliases ?></span>
							</li>
						<?php } ?>

It seems to do the trick :slight_smile:

image

2 Likes

Awesome, thanks. I wasn’t too sure if it wanted doing in the PHP script (vs the template), but I think the change is small enough to just go in the template files

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.