Location: PHPKode > scripts > easiGallery > easigallery/easiGallery_config.php
<?php // easiGallery v1.0
/*
*
*	Scripts: easiGallery - An easy to add image gallery for the web.
*
*	This file: easiGallery_config.php
*
*	NOTES
*
*	You can alter the style of practically every aspect of easiGallery using this configuration file.
*
*	string	- A string value uses: '' or "", Eg: 'This is a string', so is '1'.
*	integer	- A number value does not use: '', Eg: 1 is an integer, the following is not: '1'.
*	boolean	- A boolean value is either true or false and does not use: '', Eg: true is a boolean value, 
*			  the following is not: 'true'.
*
*	Variables are broken down into various categories headed by GENERAL STYLE etc. Be sure if and when
*	these are edited that you use the values as outlined above and that any ';' is not removed or extra
*	added, values do not need a 'px', '' or '%' added to them.
*	If there seems to be a problem with the gallery then setting '$show_php_errors' to true should show
*	any php error that might be caused by editing this file, be sure to return it to false again.
*
*	There are two types of images used in easiGallery, thumbs (Referred to as 'thumb' here) 
*	and viewing (Referred to as 'view' here), on clicking a thumb image the view image will
*	open through whichever selected option the user has opted for in these settings, currently
*	either in the same page or as a popup window - (Default is to open in the same page).
*
*	Values are grouped for that relative style, any value left as blank will null or default that style.
*
*	This config script is optional, if used it must be uploaded to the same directory as the easi script
*	it was supplied with. If not included the easi script will run on it's default settings.
*
*	October 25th, 2006
*	http://www.easibase.com/
*	Copyright 2006 Mike Brackenridge
*/

/********************************************** IMPORTANT **********************************************
*
************************* THE FOLLOWING SETTINGS ARE FOR CUSTOMISING STYLES ****************************
*
*******************************************************************************************************/

/******************************************* GENERAL ********************************************/

$gallery_page_title				= 'Easibase: easiGallery';	// string -  Page title, Eg: 'My Gallery'.

$imgs_columns					= 3;			// integer - Images across, use 1 through to 4 or 0 to ignore.
$imgs_rows						= 3;			// integer - Images down, use 1 through to 4 or 0 to ignore.

$body_bg_colour					= 'fff';		// string - Page background colour, Eg: 'cccccc', 'ccc' or 'silver'.
$body_padding_top				= 25;			// integer - px distance down from top of page.

/******************************************** IMAGE CREATION *******************************************/

$img_thumb_quality				= 50;			// integer - % quality of the thumb images - (Min 20, Max 100)
$img_view_quality				= 90;			// integer - % quality of the view images - (Min 20, Max 100)

/*	IMPORTANT NOTE ON THE FOLLOWING '$img_use_gd' OPTION
	
	The following 'img_use_gd' variable selects if the images are created on the fly or just pulled directly
	from the image folder at their full kb and dimension size.
	easiGallery checks for GD2 functions, if these are not available it will then check for
	GD1 functions, finally if these are not available then 'img_use_gd' will default to false and the images
	will be pulled directly from the server with no image rezizing. If this is the case then the images
	will still show at the selected thumb size but they will probably 'most definatly' take longer to load.
	We suggest that the images you use are rezized in Photoshop to the same size (or a little larger) than
	the full view size. If the images are good quality then doing this and setting 'img_view_quality' to
	100 should give nice crisp images if the GD2 library is available, if GD1 is used the image quality 
	will depreciate noticably over GD2, especially at larger sizes.
	We suggest you do not use large kb size images with your gallery, easiGallery should handle them without
	any problem but larger images take longer to load, also there might be server memory limitations which
	could affect the gallery, so do yourself and your users a favor, rezize large images before uploading.
*/

$img_use_gd_for_thumbs			= true;			// boolean - If true and the GD library is available then 'thumb' images will be created on the fly.
$img_use_gd_for_view			= false;			// boolean - If true and the GD library is available then 'view' images will be created on the fly.

/************************* GALLERY TEXT TITLE HEADER AT TOP OF GALLERY STYLE ***************************/

$header_text					= 'My Gallery'; // string - Gallery header text - (Leave blank not to show anything).

// The following Gallery text styles will be ignored if $header_text is empty.

$header_text_colour				= 'B25008';	// string - Eg: 'cccccc', 'ccc' or 'silver'.
$header_text_fill_colour		= 'F2F2F2';	// string - Eg: 'cccccc', 'ccc' or 'silver'.

$header_text_border				= 'solid';		// string - 'dashed' or 'solid'.
$header_text_border_colour		= 'ccc';		// string - Eg: 'cccccc', 'ccc' or 'silver'.
$header_text_border_width		= 1;			// integer - px width of border.

$header_text_font_family		= 'Verdana, sans-serif'; // string - Eg: 'Arial, sans-serif', 'Verdana, Arial, serif' or 'Verdana'.
$header_text_font_size			= 20;			// integer - px height of title header text - (10 minimum).
$header_text_padding_tb			= 3;			// integer - px padding top and bottom of title header text.
$header_text_align				= 'center';		// string - Eg: 'left', 'center' or 'right'.

// If $header_text_align is set to left or right then you can set the left or right padding using the following variable.
$header_text_padding_rl			= 0;			// integer - px padding left or right of title header text (Ignored if $header_text_align = 'center').

/************************************ NAVIGATION LINK TEXT STYLE **************************************/

$links_preceed					= '';			// string - Eg: 'Go to:', 'Navagate:' or just leave blank'.

$links_previous					= 'Previous';	// string - Eg: 'Previous', 'Back' or '<<' - (Defaults to: 'Previous' if empty).
$links_next						= 'Next';		// string - Eg: 'Next', 'Forward' or '>>' - (Defaults to: 'Next' if empty).

$links_pn_hide					= false;		// boolean - Eg: true or false - true hides the $links_previous & $links_next texts when not linked.

$link_text_font_fam				= 'Verdana, sans-serif'; // string - Eg: 'Arial, sans-serif', 'Verdana, Arial, serif' or 'Verdana'.
$link_text_font_size			= 11;			// integer - px height of link text - (10 minimum).

$link_text_colour				= '999';		// string - Eg: 'cccccc', 'ccc' or 'silver'.
$link_text_hover_colour			= '000';		// string - Eg: 'cccccc', 'ccc' or 'silver'.
$link_text_link_colour			= 'B25008';		// string - Eg: 'cccccc', 'ccc' or 'silver'.
$link_text_link_decoration		= 'underline';	// string - Eg: 'underline', 'italic' or '' - (Use '' for 'none').

$link_text_align				= 'center';		// string - Eg: 'left', 'center' or 'right'.

$link_text_link_margin			= 5;			// integer - px spacing under links.

/************************************* ALL IMAGE SPECIFIC STYLE ***************************************/

$img_alt						= 'Loading...';	// string - image alt text (Can be left empty but it should really have a value).

/**************************************** ZOOM SPECIFIC STYLE *****************************************/

$img_zoom_width					= 300;			// integer - px width of thumb image. (Defaults to 220 if more than 400 and less than 150).
$img_zoom_height				= 225;			// integer - px height of thumb image. (Defaults to 165 if more than 304 and less than 114).

$view_use_popup					= false;			// boolean - true or false, true opens thumb in a popup, false reloads it in the same window.

// If $view_use_popup IS SET to true use these variables - OTERWISE THEY WILL BE IGNORED

$img_view_left					= 10; 			// The distance the view popup opens in from the left of the screen
$img_view_top					= 10; 			// The distance the view popup opens down from the top of the screen (From the menu bar on Macintosh)

$img_view_resizable				= 'no';			// string - 'no' or 'yes', Make the zoom view window resizable (Default is 'no').
$img_view_status				= 'yes';		// string - 'no' or 'yes', Show the zoom view window status (Default is 'yes').

// If $view_use_popup IS NOT SET to true these variables will be used - OTERWISE THEY WILL BE IGNORED

$img_zoom_border				= 'solid';		// string - 'dashed' or 'solid'.
$img_zoom_border_width			= 1;			// integer - px width of border.
$img_zoom_border_fill 			= '000';		// string - Eg: 'cccccc', 'ccc' or 'silver'.

$img_zoom_padding				= 5;			// integer - px padding between zoom image and border.

$img_zoom_padding_out_fill		= 'eee';		// string - Eg: 'cccccc', 'ccc' or 'silver'.
$img_zoom_padding_out	 		= 24;			// integer - px padding on outer side of thumb image border.

$img_zoom_border_out			= 'solid';		// string - 'dashed' or 'solid'.
$img_zoom_border_out_width		= 1;			// integer - px width of border.
$img_zoom_border_out_fill		= 'ccc';		// string - Eg: 'cccccc', 'ccc' or 'silver'.

$zoom_view_back					= 'Go Back';	// string - This is the text for the javascript back link for the zoom view image (Defalut is 'Go Back').

/*************************************** THUMB SPECIFIC STYLE *****************************************/

$img_thumb_margin				= 3;			// Space between images.

$img_thumb_border				= 'solid';		// string - 'dashed' or 'solid'.
$img_thumb_border_width			= 1;			// integer - px width of border.
$img_thumb_border_fill	 		= '999999';	// string - Eg: 'cccccc', 'ccc' or 'silver'.

$img_thumb_padding				= 2;			// integer - px padding between thumb image and thumb image border.
$img_thumb_padding_out_fill		= 'eee';		// string - Eg: 'cccccc', 'ccc' or 'silver'.
$img_thumb_padding_out	 		= 5;			// integer - px padding on outer side of thumb image border.

$img_thumb_border_out			= 'solid';		// string - 'dashed' or 'solid'.
$img_thumb_border_out_width		= 1;			// integer - px width of border.
$img_thumb_border_out_fill		= 'ccc';		// string - Eg: 'cccccc', 'ccc' or 'silver'.

$img_thumb_width				= 100;			// integer - px width of thumb image. (Defaults to 50 if between 1 and 50, if less than 1 defaults to 100. 200 max).
$img_thumb_height				= 75;			// integer - px height of thumb image. (Defaults to 38 if between 1 and 38, if less than 1 defaults to 75. 152 max).

?>
Return current item: easiGallery