By tclineks on
As I'm rolling out improvements and updates to the Smarty Theme Engine I'm wanting to convert some additional themes to increase its usage.
The current list is short, so
What theme(s) would you like converted to Smarty?
As I'm rolling out improvements and updates to the Smarty Theme Engine I'm wanting to convert some additional themes to increase its usage.
The current list is short, so
What theme(s) would you like converted to Smarty?
Comments
wots the main difference?
Hi Tc,
Curious to what developments you have planned for the Smarty Theme engine. Everything seems very phptemplate-centric at the moment so it's great to see an alternative being pushed.
Do you have a quick list of ideas/updates/developments you specifically had mind mind?
Phil
PhilK
PhilK
The Smarty engine itsself is very phptemplate centric =) -- It's a pretty direct port.
A parital side effect of this is that it's surpisingly easy to convert themes (and the code comes out much more clean and readable and therefore editable by non-php folks).
The main differences are a revamping of default function registration to provide drupal function interaction from within templates (removing the need to use {php} tags).
Along with this revamping I'm improving and will be documenting how users can interface with this as well (by defining a function in your theme-specific smartytemplate.php file to register other functions/modifiers with Smarty).
This isn't really functionality beyond phptemplate as it's 'scope' is somewhat different.
A small security issue has been resolved and other minor tweaks.
If you have any suggestions please voice them.
please convert Freindselectric theme
hi Tc,
I love the freindselectric theme, can you please convert it to smarty?
enky
looks like cvs is 4.7-go but
looks like cvs is 4.7-go but I'll wait until the branch is created as to not miss some change afterwards.
most
I would say as many as possible.. the more choices, the better.
I would suggest K2, it has extendability & potential
K2 is very popular among Wordpress -with a reason, it has clean stylish look + relatively clean code
~ recently converted to Drupal phptemplate
http://drupal.org/node/43324
Origin is WordPress Binary Bonsai/Kubrick evolved to K2
http://binarybonsai.com/wordpress/k2/
K2 is a 'framework' theme which can be exteded to work with other 'custom styles' (edit css with less complication) drop-in flavoures -some from here and submits are growing;
http://www.improvpastence.com/?page_id=37
(extended styles funk. is not on the Drupal version -though can be implemented)
basically there is a main style.css ~ and [styles] directory where you can pop-in and activate on themes config/K2 section
-like civicspace themes (where you also get 'layouts' under -democratica, decleration,colombus etc.)
http://civicspacelabs.org/home/CivicSpaceThemePlan
default/plain K2 theme screenshot
http://www.technewsonline.net/images/k23col.gif
some customised examples on Flickr
(there are 242 -sub styles based on K2, most of them simply sub style.css)
http://flickr.com/groups/binarybonsai/pool/show/
and K2 developer flickr forum where you can get info&share your stuff
http://flickr.com/groups/binarybonsai/
... basically K2 theme 'framework' has lots of potential and sharing pool of WP themes developments into Drupal !!
---------
some customising tutorial (for WP version) here is showing a fix to the code (interesting presentation with usage of Flickr features)
http://flickr.com/photos/bureaublumenberg/80558205/in/pool-binarybonsai/
http://flickr.com/photo_zoom.gne?id=80558205&context=pool-52240700545@N01&size=o
on it
on it.
edit: http://drupal.org/node/44073
may not be packaged yet but it's done for the most part (and already has several great improvements over the phptemplate k2).
Activating K2 extended styles - a tweak implementation
Thanks for the theme K2 conversion into Drupal SmartyEngine!
on issue of extention of K2 into extended styles
here is a hard coded example below
(proper implementation should be upload and activate via themes admin K2 like in WordPress- if someone else better on coding into K2 theme admin)
http://orderedlist.com/wordpress-plugins/wp-tiger-administration/
for now my solution is;
1- download one of K2 theme style from the links below
2- make a styles folder inside K2_smarty directory
name it 'styles' - my example here is 'graphite style'
http://area51.wdanielryan.com/k2/graphite
...so i uploaded whole graphite style folder into
themes/K2_smarty/styles/k2-graphite/
3- edit page.pl
save/upload the page.plcopy the code below
go to line...5 after {$head}{$styles}
enjoy your new K2!
here is the pool to look for K2 styles (WordPress)
http://www.flickr.com/groups/binarybonsai/pool/show/
http://www.flickr.com/groups/binarybonsai/pool/
or
http://area51.wdanielryan.com/k2/
http://www.elifoner.com/
http://oakley.bioinformaticsonline.co.uk/k2-styles/
http://www.improvpastence.com/?page_id=37
http://www.dornhoff.net/k2-styles/
http://eightface.com/wordpress/fork/
Thanks for the 'how-to' ica.
Thanks for the 'how-to' ica.
(With your permission) I'd love to include your theme as an example.
Any qualms?
Its OK (GPL) but the graphite theme is not mine..
Its one of the WordPress them sites on the links -design credit Daniel Ryan
also I am not a coder.. it works but possiby there are other methods to do better.. hopefully someone else better in coding can pickup from there i just wanted to show possibily
Ah, thought you were the author;
Ah, thought you were the author.
BTW, is step three incorrect/missing info?
Seems it:
Ah! I did missed the <code>..
Ah! I did not missed the code.. its just the brackets makes the linking part of the code here in posts invisible sorry i missed the
to
thats it
k2-graphite=directory of the your K2 style that you uploaded into themes/K2 or themes
icludes graphite.css which those can change if you use another K2 style
The more correct way to do
The more correct way to do it (IMO) is to
1. create a k2_graphite subdirectory within the k2_smarty directory
2. rename graphite.css to style.css (so the theme code will pick it up)
3. and move the graphics into a 'graphite' subdirectory (of k2_graphite) as the css expects it there.
This way you don't have to modify your template and it will be picked up as an alternate style theme automatically.
pushbutton
Hi Travis,
Would you mind convert the pushbutton theme ? Or better yet, could you put together a write-up on how to convert to the Smarty template engine from PHPTemplate and from Xtemplate? (something like http://drupal.org/node/22019)
Thanks a lot for your effort.
Regards
Can you convert this one?
I'm hoping that someone will convert this 3-column wordpress version of kubrick to drupal?
Can you do this?
http://www.liewcf.com/blog/archives/2005/05/wordpress-three-columns-kubr...
Reflections
It would be nice to have Reflections, or any CSS tableless theme, converted to the Smarty Theme Engine. Reflections would have to be converted from 4.6.x to 4.7.x though.