Announcement

  •  » Themes
  •  » Building my own HTML5 Theme

#1 2012-07-05 23:23:52

mendip_discovery
Member
Mendip Hills, Somerset, UK
2012-05-19
91

Building my own HTML5 Theme

I am working on making my own theme based on the default theme and turning it into a HTML 5 ready website.

I have made a new folder for the theme and I have started to mess around with footer.tpl and header.tpl

Problem I am getting is the smarty {get_combined_css} it outputting the CSS fine but where do I find the line that has the <link rel="stylesheet" type="text/css" href="_data/combined/9dypdj.css">. I want to close the link tag />

Offline

 

#2 2012-07-06 00:11:23

flop25
Piwigo Team
2006-07-06
7037

Re: Building my own HTML5 Theme

hello
and what a so great news
unfortunately, it've been written on the marble : line 461 template.class.php
        $content[] = '<link rel="stylesheet" type="text/css" href="'.$href.'">';

Last edited by flop25 (2012-07-06 11:26:37)


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2012-07-06 11:21:27

mendip_discovery
Member
Mendip Hills, Somerset, UK
2012-05-19
91

Re: Building my own HTML5 Theme

Thank you flop25 for the quick and accurate response.

I am not sure what is meant by "unfortunately, it've been write on the marble". I assume its a French saying that is lost of translation.

I like to produce HTML to a standard and have it validate. This is a good excuse to have a go as my website is being rebuilt as I have had to change gallery providers.


Jack

Offline

 

#4 2012-07-06 11:40:33

flop25
Piwigo Team
2006-07-06
7037

Re: Building my own HTML5 Theme

mendip_discovery wrote:

I am not sure what is meant by "unfortunately, it've been write on the marble". I assume its a French saying that is lost of translation.

like "It's written in stone"

I'm reading the w3c doc http://www.w3.org/TR/html5/the-link-ele … nk-element but I don't see where they recommend an end tag


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#5 2012-07-06 11:52:18

mendip_discovery
Member
Mendip Hills, Somerset, UK
2012-05-19
91

Re: Building my own HTML5 Theme

Hello,

I am using,
http://diveintohtml5.info/semantics.html
and
http://www.w3schools.com/html5/default.asp


Its like the difference between the <br> and <br />. All tags must be closed, <p>Text</p> we have been doing for a while but now its considered good manners to close tags br and hr.


I am really interested in what this article talks about,
http://diveintohtml5.info/history.html


Jack

Offline

 

#6 2012-07-06 13:05:27

flop25
Piwigo Team
2006-07-06
7037

Re: Building my own HTML5 Theme

thx for sharing !!
you can add a ticket in our bugtracker http://piwigo.org/bugs


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#7 2012-07-06 14:22:01

rvelices
Former Piwigo Team
2005-12-29
1960

Re: Building my own HTML5 Theme

mendip_discovery wrote:

Problem I am getting is the smarty {get_combined_css} it outputting the CSS fine but where do I find the line that has the <link rel="stylesheet" type="text/css" href="_data/combined/9dypdj.css">. I want to close the link tag />

Why do you want to close it? The link declaration that you cite is perfectly compliant with html5 ...

Offline

 

#8 2012-07-06 14:28:46

flop25
Piwigo Team
2006-07-06
7037

Re: Building my own HTML5 Theme

okay now I do remember : xhtml (5 or whatever) requires to close it, but html doesn't


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#9 2012-07-06 14:46:07

mendip_discovery
Member
Mendip Hills, Somerset, UK
2012-05-19
91

Re: Building my own HTML5 Theme

Trying to validate a page I kept getting an error on the head and body tags. Turns out there was a div tag added within the head area by the facebookplug plugin.

I thought it was due to a HTML error because of tags not being closed.

Offline

 
  •  » Themes
  •  » Building my own HTML5 Theme

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact