Where is sidebar module code is located?

Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Thu, 2009-06-18 20:40

Where is sidebar module code is located?

 
appelflap

Joined: 2009-06-16
Posts: 23
Posted: Thu, 2009-06-18 22:31

What do you mean with 'sidebar code'? There are many different places where code is stored that can appear in the sidebar. If you only want to change the looks you have to change your theme: themes/enteryourthemenamehere/views/sidebar.html.php . It contains the part that calls the different sidebar blocks. The blocks that are shown depend on your custom site configuration.

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Thu, 2009-06-18 23:40

Main code, one which populates list of known widgets.
I am refering to implementation of sidebar_blocks()

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Fri, 2009-06-19 01:15

So in your template you call $theme->sidebar_blocks() and that calls Theme_View::_call("sidebar_blocks") which is located here:
http://github.com/gallery/gallery3/blob/master/modules/gallery/libraries/Theme_View.php#L194

That code in turn calls xxx_theme::sidebar_blocks() on every individual module's theme class, eg the image_block theme helper:
http://github.com/gallery/gallery3/blob/master/modules/image_block/helpers/image_block_theme.php#L21

---
Problems: Check gallery3/var/logs first!
file a bug or feature request | upgrade to the latest code | use git

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Fri, 2009-06-19 02:39

Thanks!