Link the IPFire logo to ipfire.org
Message ID | 55760023.9040301@web.de |
---|---|
State | Superseded |
Headers |
Return-Path: <development-bounces@lists.ipfire.org> Received: from mail01.ipfire.org (mail01.tremer.info [172.28.1.200]) by septima.ipfire.org (Postfix) with ESMTP id 713C7606E1 for <patchwork@ipfire.org>; Mon, 8 Jun 2015 22:50:59 +0200 (CEST) Received: from hedwig.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 2EB5921FF; Mon, 8 Jun 2015 22:50:59 +0200 (CEST) Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=212.227.15.4; helo=mout.web.de; envelope-from=larsen007@web.de; receiver=development@lists.ipfire.org Received: from mout.web.de (mout.web.de [212.227.15.4]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPS id 9E4A4199C for <development@lists.ipfire.org>; Mon, 8 Jun 2015 22:50:47 +0200 (CEST) Received: from [192.168.178.24] ([2.240.99.29]) by smtp.web.de (mrweb002) with ESMTPSA (Nemesis) id 0M4HmV-1ZJb7d2awt-00rmQ5 for <development@lists.ipfire.org>; Mon, 08 Jun 2015 22:50:46 +0200 Message-ID: <55760023.9040301@web.de> Date: Mon, 08 Jun 2015 22:50:43 +0200 From: Larsen <larsen007@web.de> User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: "development@lists.ipfire.org" <development@lists.ipfire.org> Subject: [PATCH] Link the IPFire logo to ipfire.org Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:iH8lmyhjzpi3PLsjS6fHoC896JjxdGIn3ASoKg8opIReq9pPBA5 RPM/lkq+J849/en+KHD8tVT1sZsrBhod4WV8oceR/LuhMu/PWEzpqeW7q4Cd/vHNgIIsJAV uZFZ/u+I/sd7wp3PnWPuWAToRbdW2sQ9s+ngBNbDx4fic1H4EWKZdPSjCci9/vC9jZE4Uq4 85gEQ21WQeXWQQ2yMqOyQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:XZYIjqCyRKA=:HLqLQQ+DGmhCvmygtVEYA4 tsWu8uK1cPhqn2+zesRlh/+16Ej8JnubgTX9OmrqVxCy4T7fTslaxEnKq1/fhdnBsu8LY83x1 PGYxBbMmAPTa3E5BC+Abx3MHmxvCfUrNSftl+1/05gkfn3oXKUaj0LFm2EGerQdnTtMLnRSsG Nuoxx6pxuXcs4t0NCTaDQyJr6p/PAw1kCvEpsEFNba13yckLHGMgN5IjWHH3vYRiJ9L9seacN XeKFfC5heZcaI76Mox1US0Mb14iuY99iMpXz1eKKx4WJSec/gqJ36vW1FTDhPIR3BX3icZ/m/ 1OiFiCgsagjCPZ1WqpvhZBhCS3pW0RMYQIlJuvGU0gZD9T186qHa3PpSJHgMy3txZQ4KcA/cE CJRkX0Cg7KpiWs7l4Iwid/KYKwzNs/q7x38c9AY4y4Z6jolyFeYG96GIDOHVty9UqC+KtLssg K4chVsP1JM3HiDI9ulfPPEIFqwUCdWoDj3TRcUS0S7tKXycmSDqaW0bNUxK3jGJnFUkDDonic JA/ZTqmzw/qmerMVrLa2tpmLNEFLBJI3HGcvLaCNmm2yQeSEr9mLNe1uBZ7mSwdpDwt744ZO5 32D1YhlVdkrbHqdFf7rs5cnd0DteO/qdQAbyy9KLls09FIcNBqlWfMYPq3gJ4qKxykRGgfshE F7d1YyXswn51zFrKeO/sKi+PLEgFn3d/gQDasSPhkcETB38tux+hG/JIoV8/4O6kAiHQ= X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: IPFire development talk <development.lists.ipfire.org> List-Unsubscribe: <http://lists.ipfire.org/mailman/options/development>, <mailto:development-request@lists.ipfire.org?subject=unsubscribe> List-Archive: <http://lists.ipfire.org/pipermail/development/> List-Post: <mailto:development@lists.ipfire.org> List-Help: <mailto:development-request@lists.ipfire.org?subject=help> List-Subscribe: <http://lists.ipfire.org/mailman/listinfo/development>, <mailto:development-request@lists.ipfire.org?subject=subscribe> Errors-To: development-bounces@lists.ipfire.org Sender: "Development" <development-bounces@lists.ipfire.org> |
Message
Lars Schuhmacher
9 Jun 2015, 6:50 a.m. UTC
Link the IPFire logo and subsequent text to http://www.ipfire.org
Signed-off-by: Lars Schuhmacher <larsen007@web.de>
---
html/html/themes/darkdos/include/functions.pl | 2 +-
html/html/themes/ipfire-legacy/include/functions.pl | 2 +-
html/html/themes/ipfire/include/functions.pl | 2 +-
html/html/themes/maniac/include/functions.pl | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
if ($settings{'WINDOWWITHHOSTNAME'} eq 'on') {
Comments
Hi Lars, Is there a certain reason why this is done by using Javascript? An <a> tag would have worked fine as well I think. That would require to embed the image by using the <img> tag, but that is probably the cleaner solution any way... Other than that: I like the idea. Best, -Michael On Mon, 2015-06-08 at 22:50 +0200, Larsen wrote: > Link the IPFire logo and subsequent text to http://www.ipfire.org > > Signed-off-by: Lars Schuhmacher <larsen007@web.de> > --- > html/html/themes/darkdos/include/functions.pl | 2 +- > html/html/themes/ipfire-legacy/include/functions.pl | 2 +- > html/html/themes/ipfire/include/functions.pl | 2 +- > html/html/themes/maniac/include/functions.pl | 2 +- > 4 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/html/html/themes/darkdos/include/functions.pl > b/html/html/themes/darkdos/include/functions.pl > index 737e051..4b00b4c 100644 > --- a/html/html/themes/darkdos/include/functions.pl > +++ b/html/html/themes/darkdos/include/functions.pl > @@ -221,7 +221,7 @@ print <<END > > <div id="header_inner" class="fixed"> > > - <div id="logo"> > + <div id="logo" style="cursor: pointer;" > onclick="window.location='http://www.ipfire.org/';"> > END > ; > if ($settings{'WINDOWWITHHOSTNAME'} eq 'on') { > diff --git a/html/html/themes/ipfire-legacy/include/functions.pl > b/html/html/themes/ipfire-legacy/include/functions.pl > index 1401030..e1b8cb8 100644 > --- a/html/html/themes/ipfire-legacy/include/functions.pl > +++ b/html/html/themes/ipfire-legacy/include/functions.pl > @@ -221,7 +221,7 @@ print <<END > > <div id="header_inner" class="fixed"> > > - <div id="logo"> > + <div id="logo" style="cursor: pointer;" > onclick="window.location='http://www.ipfire.org/';"> > END > ; > if ($settings{'WINDOWWITHHOSTNAME'} eq 'on') { > diff --git a/html/html/themes/ipfire/include/functions.pl > b/html/html/themes/ipfire/include/functions.pl > index 63740d4..39d972d 100644 > --- a/html/html/themes/ipfire/include/functions.pl > +++ b/html/html/themes/ipfire/include/functions.pl > @@ -151,7 +151,7 @@ print <<END > </head> > <body> > <div id="header" class="fixed"> > - <div id="logo"> > + <div id="logo" style="cursor: pointer;" > onclick="window.location='http://www.ipfire.org/';"> > END > ; > if ($settings{'WINDOWWITHHOSTNAME'} ne 'off') { > diff --git a/html/html/themes/maniac/include/functions.pl > b/html/html/themes/maniac/include/functions.pl > index e8514ad..d3d4a73 100644 > --- a/html/html/themes/maniac/include/functions.pl > +++ b/html/html/themes/maniac/include/functions.pl > @@ -221,7 +221,7 @@ print <<END > > <div id="header_inner" class="fixed"> > > - <div id="logo"> > + <div id="logo" style="cursor: pointer;" > onclick="window.location='http://www.ipfire.org/';"> > END > ; > if ($settings{'WINDOWWITHHOSTNAME'} eq 'on') {
On Tue, 09 Jun 2015 12:53:08 +0200, Michael Tremer <michael.tremer@ipfire.org> wrote: > Is there a certain reason why this is done by using Javascript? An <a> > tag would have worked fine as well I think. That would require to embed > the image by using the <img> tag, but that is probably the cleaner > solution any way... I used this as a starting point: http://stackoverflow.com/questions/4465923/a-href-link-for-entire-div-in-html-css The <a>-tag didn´t work when I wrapped it around the <div>-tag (and it would only be allowed for HTML5). I didn´t think about using an <img>-tag as I thought that it was cleaner as it is by using CSS. I do know that some have JS deactivated and don´t like it, but in this case there is nothing lost. Is there anything else wrong with using JS? Lars
On Tue, 2015-06-09 at 12:59 +0200, Larsen wrote: > On Tue, 09 Jun 2015 12:53:08 +0200, Michael Tremer > <michael.tremer@ipfire.org> wrote: > > > Is there a certain reason why this is done by using Javascript? An <a> > > tag would have worked fine as well I think. That would require to embed > > the image by using the <img> tag, but that is probably the cleaner > > solution any way... > > I used this as a starting point: > http://stackoverflow.com/questions/4465923/a-href-link-for-entire-div-in-html-css > > The <a>-tag didn´t work when I wrapped it around the <div>-tag (and it > would only be allowed for HTML5). > I didn´t think about using an <img>-tag as I thought that it was cleaner > as it is by using CSS. > > I do know that some have JS deactivated and don´t like it, but in this > case there is nothing lost. If someone disables JS they will already have issues with other parts of the web user interface and of course most of the "web 2.0". > Is there anything else wrong with using JS? Not in general. I just find it a rather complex solution for a simple problem. The plain HTML approach would be much better and work for those who disable JS, too. -Michael > > > Lars
On Tue, 09 Jun 2015 13:02:15 +0200, Michael Tremer <michael.tremer@ipfire.org> wrote: >> I do know that some have JS deactivated and don´t like it, but in this >> case there is nothing lost. > > If someone disables JS they will already have issues with other parts of > the web user interface and of course most of the "web 2.0". > >> Is there anything else wrong with using JS? > > Not in general. I just find it a rather complex solution for a simple > problem. The plain HTML approach would be much better and work for those > who disable JS, too. But then you loose CSS, don´t you? And if someone has actually disabled JS, they will notice other problems as you mentioned before, so it´s unlikely they will even noticed that they cannot click on the IPFire logo to get to the homepage. Lars
On Tue, 2015-06-09 at 13:13 +0200, Larsen wrote: > On Tue, 09 Jun 2015 13:02:15 +0200, Michael Tremer > <michael.tremer@ipfire.org> wrote: > > >> I do know that some have JS deactivated and don´t like it, but in this > >> case there is nothing lost. > > > > If someone disables JS they will already have issues with other parts of > > the web user interface and of course most of the "web 2.0". > > > >> Is there anything else wrong with using JS? > > > > Not in general. I just find it a rather complex solution for a simple > > problem. The plain HTML approach would be much better and work for those > > who disable JS, too. > > But then you loose CSS, don´t you? What do you mean by loose? That should be changed then, yes. The final HTML code would look something like this: <div id="logo"> <a href="http://www.ipfire.org"> <img src="logo.png" ...> </a> </div> The CSS properties should be changed that the background image is removed and the content is centered. The final result should like the same in the end. > And if someone has actually disabled JS, they will notice other problems > as you mentioned before, so it´s unlikely they will even noticed that they > cannot click on the IPFire logo to get to the homepage. > > > Lars
> The final HTML code would look something like this: > > <div id="logo"> > <a href="http://www.ipfire.org"> > <img src="logo.png" ...> > </a> > </div> > > The CSS properties should be changed that the background image is > removed and the content is centered. The final result should like the > same in the end. Ok, will try this and report back later. Lars