how to customize

rafiks
rafiks's picture

Joined: 2009-07-13
Posts: 44
Posted: Thu, 2009-07-16 17:19

How do I customize Gallery 3 ? is it the same as gallery 2?

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Thu, 2009-07-16 19:01

Not exactly.
Structure changed slightly.
Check /gallery3/themes/ folder for more info and sample of creating a new theme

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2009-07-16 20:42

To start creating your own theme, simply just copy the default theme and rename the directory.

Done. Now hack away.

You can edit theme.info to change the name of the theme if it's an "admin" or "site" theme add a description, etc

Create a new screenshot for it when it's done, etc.

Documentation will be forth coming.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
rafiks
rafiks's picture

Joined: 2009-07-13
Posts: 44
Posted: Fri, 2009-07-17 11:55

I don't have any experience in this . complete noob ..is this basically just html and css? can I use a web editor like bluefish?

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Fri, 2009-07-17 12:16

It is PHP based, you would find mix of PHP and HTML there.
More to it, page on the web-site would be a combination of several files in the view folder
Whenever you see something like this <?= new View("header.html") ?> (part of page.html.php) it would mean that here would be inserted content of header.html.php file.

You would start from page.html.php and then drill down for each mode

You can use Bluefish since it does support PHP

 
rafiks
rafiks's picture

Joined: 2009-07-13
Posts: 44
Posted: Fri, 2009-07-17 18:23

Only know very little html ..so this header.html is in the themes directory? i don't see it there.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2009-07-17 18:38

/themes/default/views

Copy the default directory and rename that so you have something like

/themes/mytheme

edit /themes/mytheme/theme.info and change the name from "Gallery Default" to something else, like "My Cool Theme"

edit the pages in /themes/mytheme/views/ to your hearts content.

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
rafiks
rafiks's picture

Joined: 2009-07-13
Posts: 44
Posted: Fri, 2009-07-17 19:28

found the views folder. wasn't paying attention . thanks!