# Admin Theme

**URL:** <https://forum.phpvms.net/t/admin-theme/13011>\
**Category:** General Support\
**Created:** [November 7, 2019, 1:56pm UTC](https://forum.phpvms.net/t/admin-theme/13011 "2019-11-07T13:56:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karamellwuerfel](https://forum.phpvms.net/user_avatar/forum.phpvms.net/karamellwuerfel/32/910_2.png) [@Karamellwuerfel](https://forum.phpvms.net/u/Karamellwuerfel)\
**Post date:** [November 7, 2019, 1:56pm UTC](https://forum.phpvms.net/t/admin-theme/13011/1 "2019-11-07T13:56:38Z")

</div>

Hello,

in the admin navigation is a variable to show the addons installed on the page:&nbsp;

```
$MODULE\_NAV\_INC

```

It will echo this:

```
\<li\>\<a href="http://xxxxxxx.xxxxxxxxxxx.xx/admin/index.php/FAQ"\>FAQ\</a\>\</li\>

```

Is there a way to change the content’s design? Like removing the \<li\>\</li\> or add classes to the \<li\>?

It’s defined in the “admin/index.php”:&nbsp;

```
Template::Set('MODULE\_NAV\_INC', $NAVBAR);

```

But I dont find more… Or is there a other way to get the addons (url and name) of the site?

&nbsp;

Thanks!!

---

<div class="post-metadata">

**Author:** ![Karamellwuerfel](https://forum.phpvms.net/user_avatar/forum.phpvms.net/karamellwuerfel/32/910_2.png) [@Karamellwuerfel](https://forum.phpvms.net/u/Karamellwuerfel)\
**Post date:** [November 14, 2019, 5:56pm UTC](https://forum.phpvms.net/t/admin-theme/13011/2 "2019-11-14T17:56:42Z")

</div>

Okay - so now after a week no reply.

I have done a workaround.

- got all links from&nbsp;_$MODULE\_NAV\_INC_ and explode them with PHP into an array on the “_\<li\>_” element.
- create a empty array for save my results
- loop all _$links_ (first “link” is empty - so check if empty and jump over empty links)&nbsp;
- for each link I strip the tags and save it as **_name_** ; and save the link as **_url_**
- I save this array in my result array
- Now I can loop the result array and use the links and names

The code (not the right way I think, but I don’t know how to do it in phpvms…):

```
\<?php $links = explode("\<li\>", $MODULE\_NAV\_INC); $result\_array = array(); foreach ($links as $link) { if(empty($link)) continue; preg\_match\_all('#\bhttps?://[^,\s()\<\>]+(?:\([\w\d]+\)|([^,[:punct:]\s]|/))#', $link, $match); $res = array( "name" =\> strip\_tags($link), "url" =\> $match[0][0] ); $result\_array[] = $res; } ?\>

```

Thanks.
