";
}
function afg_generate_gallery_settings_table() {
global $afg_per_page_map, $afg_photo_size_map, $afg_on_off_map, $afg_descr_map, $afg_columns_map, $afg_bg_color_map, $afg_photo_source_map, $afg_width_map, $afg_yes_no_map;
return "
Gallery Settings
Max Photos Per Page
Size of Photos
Photo Titles
Photo title setting applies only to Thumbnail (and above) size photos.
Photo Descriptions
Photo Description setting applies only to Small and Medium size photos. WARNING: Enabling descriptions for photos can significantly slow down loading of the gallery and hence is not recommended.
No of Columns
Background Color
Gallery Width
Width of the Gallery is relative to the width of the page where Gallery is being generated. Automatic is 100% of page width.
Disable Pagination?
Useful when displaying gallery in a sidebar widget where you want only few recent photos.
Add a Small Credit Note?
Credit Note will appear at the bottom of the gallery as -
Powered by
AFG
";
}
function afg_generate_options($params, $selection, $show_default=False) {
$str = '';
foreach($params as $key => $value) {
if ($key == 'default' && !$show_default) {
continue;
}
if ($selection == $key) {
$str .= "";
}
else {
$str .= "";
}
}
return $str;
}
function filter($param) {
if ($param == 'default') {
return "";
}
else {
return $param;
}
}
function afg_box($title, $message) {
return "
$title
$message
";
}
function afg_usage_box($code) {
return "
Usage Instructions
Just insert $code in any of the posts or page to display your Flickr gallery.
";
}
function get_afg_option($gallery, $var) {
if ($gallery[$var]) return $gallery[$var];
else return get_option('afg_' . $var);
}
function afg_donate_box() {
return "
Support this plugin
It takes time and effort to keep releasing new versions of this plugin. If you like it, consider donating a few bucks (especially if you are using this plugin on a commercial website) to keep receiving new features.