ElkArte Community

Extending Elk => Custom Themes => Topic started by: Spuds on September 05, 2014, 09:08:13 pm

Title: [Theme] Lattice
Post by: Spuds on September 05, 2014, 09:08:13 pm
Another theme that I made for testing, in this case I was testing the sprite creator script so I needed something different then the default.  I found a couple of errors with the sprite script and those fixes are in the tools repo so it was worth it!  Actually I only checked a couple of the sprite generation functions, if I was better at themes, I could have checked more :P

Attached is the theme I used for some testing etc, feel free to use it as you want, there may be some areas that are not complete, like any themes you get from me  O:-)

See it in action here: http://themes.spudsdesign.com/index.php?theme=8

Download it here: http://themes.elkarte.net/mimic/Lattice.html
Title: Re: [Theme] Lattice
Post by: Allan on September 05, 2014, 09:30:28 pm
Great looking theme.
Title: Re: [Theme] Lattice
Post by: Adrek on September 06, 2014, 10:38:14 am
Awesome theme :D

One minor issue - active menu tab in sidebar is not visible (wrong font color).
Title: Re: [Theme] Lattice
Post by: CrimeS on September 06, 2014, 11:18:43 am
Its style looks similar to some studio na SMF  :-X

It actually is a good theme for custom works of EA members, as the layout is really nice.
Title: Re: [Theme] Lattice
Post by: Spuds on September 06, 2014, 12:01:42 pm
Quote from: CrimeS – Its style looks similar to some studio na SMF  :-X
I always worry about releasing any themes since there is very often some similarity with some layout or color palette, or  :(  ... , be it from smf, mybb, phpbb, xen, etc.   I look at lots of layouts and try and come up with my own twist on things which is what I did here (actually it was inspired from a WP theme).  Anyway for now I've removed the file to avoid any issue, if someone wants a copy  just let me know.
Title: Re: [Theme] Lattice
Post by: Ruth on September 06, 2014, 12:16:53 pm
Quote from: Spuds – ...there is very often some similarity with some layout or color palette, or ...

It seems almost inevitable that there is some similarity...

Quote from: Spuds – Anyway for now I've removed the file to avoid any issue...

Why? It is your theme and it's special, you didn't  just copy it. Is "inspiration" forbidden?
Title: Re: [Theme] Lattice
Post by: CrimeS on September 06, 2014, 01:00:42 pm
I just meant that the style is similar to the one of dzinerstudio, anyway that's just my impression. I'm not saying you copied something :)

It is a really good theme.
Title: Re: [Theme] Lattice
Post by: Spuds on September 06, 2014, 06:22:01 pm
Well it would have been hard to "copy" since they don't have Elk themes (yet, but I do hope they do at some point !) But I see what you are saying.  It also looks a lot like some other stock forum themes IMO.  I needed something for testing plus I figured it would help others see how easy it was to change the look with very little css and index.template changes.
 
Quote from: Ruth –
Quote from: Spuds – ...there is very often some similarity with some layout or color palette, or ...

It seems almost inevitable that there is some similarity...

Quote from: Spuds – Anyway for now I've removed the file to avoid any issue...

Why? It is your theme and it's special, you didn't  just copy it. Is "inspiration" forbidden?
Thank you for that, and I agree 100% :D

Anyway no worries, I did not intend to step on anyone's toes or give the appearance of any theme impropriety.  It helped me find an error in my sprite script, so its all  8)
Title: Re: [Theme] Lattice
Post by: CrimeS on September 06, 2014, 06:31:29 pm
I'd say that this theme might kick off some cool custom work, as it has a good layout and looks to be vulnerable for some good editing :)
Title: Re: [Theme] Lattice
Post by: Spuds on September 06, 2014, 06:35:12 pm
LOL .. hey I never said I was a themer, but if you want excess markup to accomplish something, I'm you div container man !
Title: Lattice theme download
Post by: meetdilip on November 30, 2014, 06:41:54 am
Is Lattice theme by @Spuds available for download ?
Title: Re: [Theme] Lattice
Post by: Spuds on November 30, 2014, 09:39:01 am
I'll update the first post today, need to fix a couple of things
Title: Re: [Theme] Lattice
Post by: meetdilip on November 30, 2014, 08:09:33 pm
Thanks @Spuds :)
Title: Re: [Theme] Lattice
Post by: meetdilip on December 02, 2014, 09:34:35 am
ping @Spuds
Title: Re: [Theme] Lattice
Post by: Spuds on December 02, 2014, 10:37:38 am
Don't worry, I had not forgotten :D ... just been a bit busy!  Will get to it :promise:

Added it, I think its updated for 1.0.1/1.0.2 but I may have missed a few spots, this was originally done as a test on RC2 :P
Title: Re: [Theme] Lattice
Post by: Lars on January 01, 2015, 04:03:10 pm
How can I change the displayed time on the index page in the 24-hour format?

index.template.php:
Code: [Select]
			<div id="time" class="floatleft"><i class="fa fa-clock-o"></i>
', standardTime(time(), '%d. %B %Y,'), '
<font id="clock">...</font>
<script>
refrClock();

function refrClock()
{
var d = new Date(),
s = d.getSeconds(),
m = d.getMinutes(),
h = d.getHours(),
am_pm;

if (s < 10)
s = "0" + s;

if (m < 10)
m = "0" + m;

if (h > 12) {
h -= 12;
am_pm = "pm";
}
else
am_pm = "am";

if (h < 10)
h = "0" + h;

document.getElementById("clock").innerHTML = h + ":" + m + ":" + s + am_pm;
setTimeout("refrClock()", 1000);
}
</script>
</div>
Title: Re: [Theme] Lattice
Post by: Spuds on January 01, 2015, 05:06:10 pm
This should do it, untested of course  O:-)
Code: [Select]
				<script>
refrClock();

function refrClock()
{
var d = new Date(),
s = d.getSeconds(),
m = d.getMinutes(),
h = d.getHours(),
am_pm;

if (s < 10)
s = "0" + s;

if (m < 10)
m = "0" + m;

if (h > 12)
am_pm = "pm";
else
am_pm = "am";

if (h < 10)
h = "0" + h;

document.getElementById("clock").innerHTML = h + ":" + m + ":" + s + am_pm;
setTimeout(function () {
"use strict";
refrClock();
}, 1000);
}
</script>

That still says am/pm which is useless, so change that  "+ s + am_pm;" to just "+ s;"
Title: Re: [Theme] Lattice
Post by: Lars on January 01, 2015, 05:27:45 pm
Thank you, Spuds. It works perfect! :)
Title: Re: [Theme] Lattice
Post by: davemc on January 04, 2015, 02:18:56 am
Great looking theme, appears to function  perfectly
Title: Re: [Theme] Lattice
Post by: Eliana Tamerin on January 05, 2016, 10:52:25 pm
Dunno why I haven't seen this yet, I actually like this one.
Title: Re: [Theme] Lattice
Post by: txcas on February 12, 2016, 12:19:11 pm
I love this theme, but I don't like that the text is greyed-out when editing a post.  Is there any way to make the text while making a post black?
Title: Re: [Theme] Lattice
Post by: Spuds on February 12, 2016, 05:47:13 pm
I'm sure there is ... been a bit since I looked at this one, so let me get it refreshed a bit.
Title: Re: [Theme] Lattice
Post by: Spuds on February 12, 2016, 07:14:44 pm
Updated the zip file in the first post ... that should fix the color issue and update it to a 1.0.6 level of fixes.   

This has some new files due to font awesome changes etc ... So if you have not done any custom edits to the theme, I'd uninstall the theme, delete its directory, and then reinstall it as you need to remove old now unused files.
Title: Re: [Theme] Lattice
Post by: txcas on February 13, 2016, 01:26:43 pm
Thanks!
Title: Re: [Theme] Lattice
Post by: Spuds on September 17, 2019, 10:49:45 am
And updated for ElkArte 1.1  O:-)  See the first post for the link etc.