Themable Catalog Block

Contrib type: 
Module
Status: 
Initial upload

Downloads

Compatibility: 
Ubercart 1.x

I made the catalog block themable.

I changed the following functions in "uc_catalog.module" to be able to handle theming.
uc_catalog_block
_uc_catalog_navigation

and added the following theme functions (which can be overridden in your theme):
theme_uc_catalog_block_start()
theme_uc_catalog_block_end()
theme_uc_catalog_item($here, $active_link, $lis, $expand, $inpath, $link, $count_children )

I also added a "sequence" to class "uc_treeNode" (I need it in my own template, if you don't need it, it shouldn't be in your way).

It's a start, feedback very welcome (this is my first drupal contribution).

Hans

PreviewAttachmentSize
uc_catalog_module.zip7.96 KB
Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6855
Re: Themable Catalog Block

Looks pretty good. I'll fold your changes into the dev version.

Thanks.