Creating a custom theme

Kreationz

Joined: 2013-06-30
Posts: 5
Posted: Sun, 2013-06-30 03:17

Hello,

I'm a new user to Gallery. I've successfully installed Gallery 3 to my site. I'm planning on creating a custom theme(I plan to share it at least in part with the community) for my site. I'm wondering where to find documentation about themes and creating themes. If I have further questions after that I'll ask here.

Thanks,
Kreationz

P.S. I've seen another site using a custom theme that I like and am hoping to create something similar. I also plan to make sure my site is as compatible as possible with the default Android browser. If I have concerns or questions related to that. I'll also post about that here. I also have development experience and plan to contribute as needed to the project if I find limitations for my planned usage of it.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2013-06-30 04:11

http://codex.galleryproject.org/Gallery3:Themes

Since you mention the android browser you might find the http://codex.galleryproject.org/Gallery3:Modules:themedispatcher module and its sister theme.

Dave
__________________________________________
Blog & G2 || floridave - Gallery Team

 
Kreationz

Joined: 2013-06-30
Posts: 5
Posted: Sun, 2013-06-30 06:51

Thanks for that. It will be useful in order to present the site in different formats for different browsers.

 
Kreationz

Joined: 2013-06-30
Posts: 5
Posted: Mon, 2013-07-01 03:07

Been looking at the current themes available and a few of the available modules. It looks like I'm going to have to start with the standard "Wind Theme" and go from there. "Clean Canvas" looks nice and will likely incorporate a few elements from it. My biggest issue at this point is that the gallery was only going to be part of the site and I plan to separate out the login page and embed the Gallery in the overall site(standard users/clients don't need to see a "Login" option). On that note, I'll need to figure out how to hide the header/footer.

I've found a site that uses Gallery, but very heavily customized and am looking at the design elements of it. http://www.mikelimmer.co.nz/ It seems very heavily customized, but I like the overall look of it.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2013-07-01 04:24

@removing the header edit the page.html.php

 <? if ($header_text = module::get_var("gallery", "header_text")): ?>
<?= $header_text ?>
<? else: ?>
<a id="g-logo" class="g-left" href="<?= item::root()->url() ?>" title="<?= t("go back to the Gallery home")->for_html_attr() ?>">
<img width="107" height="48" alt="<?= t("Gallery logo: Your photos on your web site")->for_html_attr() ?>" src="<?= url::file("lib/images/logo.png") ?>" />
</a>
<? endif ?>

@footer same file:

 <div id="g-footer" class="ui-helper-clearfix">
<?= $theme->footer() ?>
<? if ($footer_text = module::get_var("gallery", "footer_text")): ?>
<?= $footer_text ?>
<? endif ?>

<? if (module::get_var("gallery", "show_credits")): ?>
<ul id="g-credits" class="g-inline">
<?= $theme->credits() ?>
</ul>
<? endif ?>
</div>

@login and logout:
<?= $theme->user_menu() ?>

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Kreationz

Joined: 2013-06-30
Posts: 5
Posted: Mon, 2013-07-01 06:14

Thanks. I already figured it out on my own. I won't need to create a theme. I'm just going to modify GreyDragon slightly to fit my needs. And use the custom menu module to handle the rest. My site will end up being built on top of Gallery 3 instead of the other way around. I just wish I had more control over users/admin permissions since I want some users to be able to add photos and edit some things, but not change the overall site design. The site is going to be used for a tattoo studio and want the artists to be able to edit there own portfolios without breaking the site. I'm fairly skilled with PHP thankfully. If I have to create any extra modules to allow me the permissions control I need. I'll add it to the codex after posting it here on the forums first.

Thanks,
Kreationz

 
Kreationz

Joined: 2013-06-30
Posts: 5
Posted: Mon, 2013-07-01 11:40

Update: Almost there. Just wondering if there is a module that allows you to set album permissions?

Update: Nevermind, found what I needed.