Home » Documentation » Customization » Theme Variables

Theme Variables

The variables below can be used in any HTML template page. The only place they cannot be used in in the email templates.

Some template pages have variables specific to those pages. These specific template tags will be listed with the page they are valid for.

<!–albumtitle–>
Shows the title of the current album. If there is not a current album, et: on the login page, then this variable will be blank.

<!–carthref–>
Use inside a <a href=”<!–carthref–>”> tag to create a link to the cart page. You can also use “index.php?op=viewcart” as this is what carthref if replaced with. You can use this to create a graphic link to your cart page.

<!–cartlink–>
Creates an entire link to the cart using the language string out of theme.xml for the link text. The link is styled with the class pb_cartstatus so that you can use CSS to stylize the link how you would like.

<!–carttotal–>
The total value of everything in the cart.

<!–company_address1–>, <!–company_address2–>
The first and second lines of your company address.

<!–company_addressfull–>
The full address of your company - address line 1, address line 2 (if it exists), city, state, and zip code.

<!–company_addressshort–>
Both lines of your company address together. It will be one line if your second address line is blank.

<!–company_city–>
The city where your company is located.

<!–company_email–>
Your email address. This is the email address you enter on the Options -> Company page, not the one you entered when you created your admin account.

<!–company_name–>
Your company name.

<!–company_phone–>
Your company phone number.

<!–company_state–>
The state where your company is located.

<!–company_zip–>
The zip code of your company.

<!–logo–>
Displays your logo if it is in your /images/ folder. It must be named either logo.gif, logo.jpg, or logo.png. The loo will be used in that order, so if you have both a logo.gif and a logo.jpg in your /images/ folder logo.gif will be used. Note that it must be lower case.

If the logo file cannot be found your company name is used.

In version 1.0 it is easier to upload your image to the theme directory and link to it using the <!–themedir–> variable defined below rather than using FTP to upload your image to the /images/ folder.

<!–logo_link–>
Same as logo, but links the image back to the first thumbnail page.

<!–themedir–>
The relative path to the folder for the currently selected theme. For example, the default installation will replace this variable with ‘user/themes/basic_white’. This is useful when you have graphics or CSS files inside your theme folder that you want to link to.

<!–useradmin–>
This creates a link that will allow logged in users to change to other albums if they have permission.

It also creates a logout link.

Comments

Leave a Reply