ElkArte Community

Extending Elk => Custom Themes => Topic started by: Spuds on September 06, 2014, 03:08:13 am

Title: [Theme] Lattice
Post by: Spuds on September 06, 2014, 03:08:13 am
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=5

Download it here: http://themes.elkarte.net/mimic/Lattice.html
Title: Re: [Theme] Lattice
Post by: Allan on September 06, 2014, 03:30:28 am
Great looking theme.
Title: Re: [Theme] Lattice
Post by: phantom on September 06, 2014, 04:38:14 pm
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, 05:18:43 pm
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, 06:01:42 pm
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, 06:16:53 pm
...there is very often some similarity with some layout or color palette, or ...

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

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, 07: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 07, 2014, 12:22:01 am
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.
 
...there is very often some similarity with some layout or color palette, or ...

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

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 07, 2014, 12:31:29 am
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 07, 2014, 12:35:12 am
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, 12:41:54 pm
Is Lattice theme by @Spuds available for download ?
Title: Re: [Theme] Lattice
Post by: Spuds on November 30, 2014, 03:39:01 pm
I'll update the first post today, need to fix a couple of things
Title: Re: [Theme] Lattice
Post by: meetdilip on December 01, 2014, 02:09:33 am
Thanks @Spuds :)
Title: Re: [Theme] Lattice
Post by: meetdilip on December 02, 2014, 03:34:35 pm
ping @Spuds
Title: Re: [Theme] Lattice
Post by: Spuds on December 02, 2014, 04:37:38 pm
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, 10: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, 11: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, 11:27:45 pm
Thank you, Spuds. It works perfect! :)
Title: Re: [Theme] Lattice
Post by: davemc on January 04, 2015, 08:18:56 am
Great looking theme, appears to function  perfectly
Title: Re: [Theme] Lattice
Post by: Eliana Tamerin on January 06, 2016, 04:52:25 am
Dunno why I haven't seen this yet, I actually like this one.
Title: Re: [Theme] Lattice
Post by: txcas on February 12, 2016, 06: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, 11: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 13, 2016, 01:14:44 am
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, 07:26:43 pm
Thanks!