cmb69 / onepage_xh

Tools for creating "one pagers" with CMSimple_XH
GNU General Public License v3.0
3 stars 2 forks source link

Allow different image formats as TopLink image #47

Open frase-git opened 3 years ago

frase-git commented 3 years ago

The help file writes:

The image of the link can be changed by putting an image file named up.png into the images/ folder of the template.

It would be better to allow any image format as toplink image - not only PNG. Maybe you could search for "toplink-image.*" in the template image folder instead of "up.png". (Make the name more unique and readable).

frase-git commented 3 years ago

Even crazier would be to enable a design of the TopLink with pure HTML and CSS. For this it would have to be possible to enter the html code somewhere - in the config, or (better) in the template. Small not perfect example:

<a id="topLink" href="#top" title="<?=$tx['navigator']['top']?>">
<span class="line"></span>
<span class="line"></span>
</a>

The rest is then pure CSS, so that an "arrow up" arises. And: So it would also be easily color customizable.

cmb69 commented 3 years ago

I need to think about that, but it looks like an improvement. Thanks!