Go to the source code of this file.
Classes | |
class | gallery2_viewType_interface |
The interface definition of the gallery2_viewType. More... | |
class | gallery2_viewType_table |
The Table view-type class for the new gallery. More... | |
class | gallery2_viewType_oldstyle |
The interface definition of the gallery2_viewType. More... | |
Functions | |
loadSubgalleries () | |
loadImages () | |
save () | |
getGlobalID ($editingFunction) | |
getBreadcrumbs () | |
optionSubgalleries ($currentGallery="", $level) | |
countSubImages () | |
userCanEdit () | |
userCanView () | |
renderEditor () | |
render () | |
parse_gallery2 ($page_data) | |
profilemodule_gallery2 () | |
modulesetup_gallery2 () | |
globalID_gallery2 ($splitID) | |
globalIDThumbnail_gallery2 ($splitID) | |
Variables | |
$modules_names [] = "Gallery2" | |
$modules_versions [] = "0.1" | |
$modules_descriptions [] = "A simple but powerful gallery" | |
$modules_setup [] = "modulesetup_gallery2" | |
$profilemodules [] = "profilemodule_gallery2" | |
$modules_globalID [] = "globalID_gallery2" | |
$modules [] = "parse_gallery2" | |
$page_help ["\gallery(txt1)"] = "This will show the gallery with the global ID txt1." | |
$page_help ["\galleryimage(txt1,txt2,txt3)"] = "This will show the image thumbnail for the image with the global ID txt1. If txt2 is present the image will be floated to the alignment as described. Accepted values are left, center and right. If you write anything at all as txt3, the shown thumbnail will not be linked to the midsize view. If omitted, the image will be linked." | |
$page_help ["\profilegallerylist(txt1)"] = "This will show a list of profiles where there is at least one image in the user's profile gallery. txt1 is optional, and is the style of listing. Defaults to three-up." | |
$gallery_options | |
else $this | baseurl = $module_folder . "/gallery/" |
$this | title = $gallery["title"] |
$this | description = $gallery["description"] |
$this | viewType = $gallery["viewType"] |
$this | viewLevel = $gallery["viewLevel"] |
$this | commentLevel = $gallery["commentLevel"] |
$this | editLevel = $gallery["editLevel"] |
$this | embedLevel = $gallery["embedLevel"] |
$this | imageOrder = $gallery["imageOrder"] |
$this | images = array() |
else | $filecontents = "No title\nNo description file found" |
$galleryinfobegpos = strpos( $filecontents, "\n" ) | |
$gallery2_viewTypes [] = "table" |
countSubImages | ( | ) |
Count the amount of images in this and subgalleries
Definition at line 790 of file gallery2.php.
References images, loadImages(), and loadSubgalleries().
getBreadcrumbs | ( | ) |
Get the breadcrumbs trail leading up to this gallery
Definition at line 692 of file gallery2.php.
References $i, edit, globalIDtoURL(), imageOrder, and title.
Referenced by render().
getGlobalID | ( | $ | editingFunction | ) |
Get the global ID for a particular editing function
Definition at line 677 of file gallery2.php.
Referenced by modulesetup_gallery2(), profilemodule_gallery2(), render(), renderEditor(), gallery2_viewType_oldstyle::renderSingleImage(), and gallery2_viewType_table::renderSingleImage().
globalID_gallery2 | ( | $ | splitID | ) |
Returns the url that corresponds to the globalID corresponding to a gallery item if appropriate
splitID | The global ID to check |
Definition at line 2588 of file gallery2.php.
globalIDThumbnail_gallery2 | ( | $ | splitID | ) |
Return an array of data about the thumbnail for a global ID
splitID | The global ID to check |
Definition at line 2630 of file gallery2.php.
References images.
loadImages | ( | ) |
If you're simply showing the list of galleries (e.g. subgalleries), you don't want to have loaded the actual images' data. Do that here!
Definition at line 600 of file gallery2.php.
References imageOrder, and images.
Referenced by countSubImages().
loadSubgalleries | ( | ) |
Load the subgalleries contained within. You only want this information if you're actually showing the gallery
Definition at line 584 of file gallery2.php.
References $fp.
Referenced by countSubImages(), and optionSubgalleries().
modulesetup_gallery2 | ( | ) |
Definition at line 2243 of file gallery2.php.
References $default_language, $gallery, $gallery2_viewTypes, $menu_folder, $meta_headers, $page_folder, $pagectl, $panel, $permissionlevels_array, $recent_file, $values, array_export(), currentUser(), description, editLevel, getGlobalID(), globalIDtoURL(), i18n(), parse_page_data(), render(), renderInformationBox(), rotate_recent(), siteURL(), and update_getpage_id().
optionSubgalleries | ( | $ | currentGallery = "" , |
|
$ | level | |||
) |
Get a list of all subgalleries contained inside a gallery, listed as options, greyed if not available (for one reason or another)
currentGallery | The global ID of the current gallery (not selectable, for more or less obvious reasons) | |
level | What level are we at (for indentation purposes) |
Definition at line 758 of file gallery2.php.
References i18n(), imageOrder, loadSubgalleries(), and title.
parse_gallery2 | ( | $ | page_data | ) |
Definition at line 2120 of file gallery2.php.
References allUsersArray(), globalIDtoURL(), i18n(), images, parse_userlists(), renderInformationBox(), and spotModuleCommand().
profilemodule_gallery2 | ( | ) |
Definition at line 2222 of file gallery2.php.
References $gallery, $tabwidget, edit, editLevel, getGlobalID(), globalIDtoURL(), and i18n().
render | ( | ) |
Render the gallery view
Definition at line 1761 of file gallery2.php.
References $meta_headers, $permissionlevels_array, description, edit, getBreadcrumbs(), getGlobalID(), globalIDtoURL(), i18n(), imageOrder, images, parse_page_data(), renderEditor(), renderInformationBox(), siteURL(), userCanView(), viewLevel, and viewType.
renderEditor | ( | ) |
Render the gallery editor
Cropping method adopted from lixlpixel PHParadise
category : image editing
snippet : crop image
downloaded : 11.02.2005 - 16:27
file URL : http://www.fundisom.com/phparadise/php/image_editing/crop_image
Definition at line 862 of file gallery2.php.
References $filename, $formatting_toolbar, $gallery, $gallery2_viewTypes, $message, $panel, $permissionlevels_array, $values, allUsersArray(), array_export(), baseurl, commentLevel, cropImage(), currentUser(), description, drawCommand(), editLevel, embedLevel, endKey(), formatTime(), generate_pagehelplink(), getGlobalID(), globalIDtoURL(), i18n(), imageOrder, images, render(), renderInformationBox(), save(), scaleImage(), title, viewLevel, and viewType.
Referenced by render().
save | ( | ) |
Save the gallery's options and descriptions and things
Definition at line 657 of file gallery2.php.
References $gallery, array_export(), commentLevel, description, editLevel, embedLevel, imageOrder, title, viewLevel, and viewType.
userCanEdit | ( | ) |
Check wether the current user is allowed to edit this gallery
Definition at line 813 of file gallery2.php.
References currentUser(), and editLevel.
userCanView | ( | ) |
Check wether the current user is allowed to view this gallery
Definition at line 837 of file gallery2.php.
References currentUser(), and viewLevel.
Referenced by render().
else $filecontents = "No title\nNo description file found" |
Definition at line 531 of file gallery2.php.
$gallery2_viewTypes[] = "table" |
Definition at line 1909 of file gallery2.php.
Referenced by modulesetup_gallery2(), and renderEditor().
$gallery_options |
Definition at line 39 of file gallery2.php.
$galleryinfobegpos = strpos( $filecontents, "\n" ) |
Definition at line 533 of file gallery2.php.
$modules[] = "parse_gallery2" |
Definition at line 32 of file gallery2.php.
$modules_descriptions[] = "A simple but powerful gallery" |
Definition at line 25 of file gallery2.php.
$modules_globalID[] = "globalID_gallery2" |
Definition at line 30 of file gallery2.php.
$modules_names[] = "Gallery2" |
New Gallery module for Travelsized CMS Based around the old gallery, but with a new, much improved (and much easier to maintain) code structure
Dan Jensen <admin@leinir.dk> 0.1 3rd Dec, 2006
The structure of a gallery is as follows below:
A gallery is a directory with...
Definition at line 23 of file gallery2.php.
$modules_setup[] = "modulesetup_gallery2" |
Definition at line 27 of file gallery2.php.
$modules_versions[] = "0.1" |
Definition at line 24 of file gallery2.php.
$page_help["\profilegallerylist(txt1)"] = "This will show a list of profiles where there is at least one image in the user's profile gallery. txt1 is optional, and is the style of listing. Defaults to three-up." |
Definition at line 36 of file gallery2.php.
$page_help["\galleryimage(txt1,txt2,txt3)"] = "This will show the image thumbnail for the image with the global ID txt1. If txt2 is present the image will be floated to the alignment as described. Accepted values are left, center and right. If you write anything at all as txt3, the shown thumbnail will not be linked to the midsize view. If omitted, the image will be linked." |
Definition at line 35 of file gallery2.php.
$page_help["\gallery(txt1)"] = "This will show the gallery with the global ID txt1." |
Definition at line 34 of file gallery2.php.
$profilemodules[] = "profilemodule_gallery2" |
Definition at line 29 of file gallery2.php.
this baseurl = $module_folder . "/gallery/" |
this commentLevel = $gallery["commentLevel"] |
Definition at line 478 of file gallery2.php.
Referenced by commentHandler::commentHandler(), blogger_entry::load(), commentHandler::renderCommentsActual(), commentHandler::renderCommentsAdder(), renderEditor(), blogger_entry::renderFull(), save(), and blogger_entry::save().
this description = $gallery["description"] |
Definition at line 473 of file gallery2.php.
Referenced by confirmDeleteDialog::confirmDeleteDialog(), discussForum::discussForum(), discussSection::discussSection(), discussThread::discussThread(), Feed::Feed(), FeedItem::FeedItem(), Convention::handleRegistration(), load(), discussThread::load(), discussSection::load(), discussForum::load(), modulesetup_convention(), modulesetup_gallery2(), confirmDeleteDialog::render(), render(), Hotel::render(), Event::render(), Convention::render(), SimpleListEditor::renderAdd(), SimpleListEditor::renderEdit(), renderEditor(), Member::renderEditor(), Hotel::renderEditor(), Event::renderEditor(), Convention::renderEditor(), discussThread::renderThreadEditor(), save(), discussThread::save(), discussSection::save(), discussForum::save(), OptionalChoice::save(), MembershipType::save(), Hotel::save(), Event::save(), Convention::save(), and SimpleListEditor::SimpleListEditor().
this editLevel = $gallery["editLevel"] |
Definition at line 479 of file gallery2.php.
Referenced by commentHandler::commentHandler(), discussThread::discussThread(), discussThread::load(), modulesetup_documents(), modulesetup_gallery2(), profilemodule_gallery2(), discussThread::render(), commentHandler::renderCommentsActual(), renderEditor(), discussThread::renderThreadEditor(), save(), discussThread::save(), userCanEdit(), and discussThread::userCanEdit().
this embedLevel = $gallery["embedLevel"] |
this imageOrder = $gallery["imageOrder"] |
Definition at line 481 of file gallery2.php.
Referenced by getBreadcrumbs(), loadImages(), optionSubgalleries(), render(), renderEditor(), and save().
this images = array() |
Definition at line 518 of file gallery2.php.
Referenced by countSubImages(), globalIDThumbnail_gallery2(), loadImages(), parse_gallery2(), render(), and renderEditor().
this title = $gallery["title"] |
Definition at line 472 of file gallery2.php.
Referenced by breadcrumb::breadcrumb(), confirmDeleteDialog::confirmDeleteDialog(), ConventionSettings::ConventionSettings(), discuss_rebuildDeep(), discussForum::discussForum(), discussSection::discussSection(), discussThread::discussThread(), Feed::Feed(), FeedItem::FeedItem(), getBreadcrumbs(), blogger_entry::getFeedItem(), Convention::getMessage(), Convention::handleRegistration(), load(), discussThread::load(), discussSection::load(), discussForum::load(), blogger_entry::load(), modulesetup_convention(), optionSubgalleries(), CommandButton::render(), confirmDeleteDialog::render(), breadcrumb::render(), render(), Convention::render(), blogger_userOptions::render(), SimpleListEditor::renderAdd(), blogger_entry::renderBlock(), SimpleListEditor::renderEdit(), renderEditor(), Member::renderEditor(), Convention::renderEditor(), blogger_entry::renderEditor(), blogger_entry::renderFull(), discussThread::renderThreadEditor(), blogger_entry::renderTiny(), save(), discussThread::save(), discussSection::save(), discussForum::save(), OptionalChoice::save(), MembershipType::save(), ConventionSettings::save(), Convention::save(), blogger_entry::save(), and SimpleListEditor::SimpleListEditor().
this viewLevel = $gallery["viewLevel"] |
Definition at line 477 of file gallery2.php.
Referenced by discussForum::discussForum(), discussSection::discussSection(), discussThread::discussThread(), discussThread::load(), discussSection::load(), discussForum::load(), blogger_entry::load(), modulesetup_discuss(), render(), discussThread::render(), discussForum::renderBlock(), renderEditor(), discussThread::renderThreadEditor(), save(), discussThread::save(), discussSection::save(), discussForum::save(), blogger_entry::save(), userCanView(), discussThread::userCanView(), discussSection::userCanView(), discussForum::userCanView(), and blogger_entry::userCanView().
this viewType = $gallery["viewType"] |