-
getAdminHeadTags
-
Gets the Shashin Admin CSS file, for inclusion on the widget management page and the Shashin admin pages.
-
getAdminMenu
-
Performs the requested admin action, based on the value of $_REQUEST['shashin_action'] values.
-
getAlbum
-
Wrapper for ShashinAlbum->getAlbumMarkup()
-
getAlbum
-
Populates a ShashinAlbum object based on an album identifier (can be a Picasa ID, album name, or Shashin key) or a passed-in array of album data.
-
getAlbumList
-
Wrapper for ShashinAlbum->getAlbumListMarkup()
-
getAlbumListMarkup
-
Returns xhtml markup for displaying album thumbnails paired with the album description, and optional other data to display. Will instead call ShashinPhoto::getAlbumPhotosMarkup() if there is an album key in the $_REQUEST.
-
getAlbumMarkup
-
DEPRECATED - use getAlbumThumbsMarkup instead.
-
getAlbumPhotos
-
Retrieves all photos in the shashin_photo table for an album. Must call getAlbum() first.
-
getAlbumPhotosMarkup
-
Static method that display thumbnails for photos in an album. Can be invoked by the salbumphotos tag, or with $_REQUEST['shashin_album_key'] when an album cover thumbnail is clicked.
-
getAlbums
-
Retrieves data for multiple albums from the shashin_album table.
-
getAlbumThumbs
-
Wrapper for ShashinAlbum->getAlbumThumbsMarkup()
-
getAlbumThumbsMarkup
-
Returns xhtml markup for displaying album thumbnails in a table. Will instead call ShashinPhoto::getAlbumPhotosMarkup() if there is an album key in the $_REQUEST.
-
getHeadTags
-
Gets the Shashin CSS file, and the optional Highslide CSS and JS, for inclusion in the document head. Will get a copy of shashin.css from your theme directory if you put a custom one there.
-
getNewest
-
Wrapper for ShashinPhoto::getNewestMarkup()
-
getNewestMarkup
-
Translates the "snewest" Shashin tag into xhtml displaying a table of thumbnails of your newest photos (by upload date). If album keys are not provided, then it will pick from among all photos.
-
getOptionsMenu
-
Generates and echoes the HTML for the Shashin settings menu and sets Shashin options in WordPress.
-
getPhoto
-
Populates a ShashinPhoto object based on an identifier (can be a Picasa ID, photo title, or Shashin key) or a passed-in array of photo data.
-
getPhotoMarkup
-
Translates the "simage" Shashin tag into xhtml displaying the specified photo, with a hyperlink to the photo (either in Highslide or at Picasa).
-
getPhotos
-
A static method for retrieving an arbitrary set of photos.
-
getRandom
-
Wrapper for ShashinPhoto::getRandomMarkup()
-
getRandomMarkup
-
Translates the "srandom" Shashin tag into xhtml displaying a table of random photos. If album keys are not provided, then it will pick from among all photos.
-
getSingle
-
Wrapper for ShashinPhoto->getPhotoMarkup()
-
getThumbs
-
Wrapper for ShashinPhoto::getThumbsMarkup()
-
getThumbsMarkup
-
Static method that translates the "sthumbs" Shashin tag into an xhtml table displaying the specified thumbnails, each with a hyperlink to the photo (either in Highslide or at Picasa).
-
getUsers
-
Get all the user_names in the album table.
-
scheduledUpdate
-
Updates all albums once per day.
-
setAlbum
-
Inserts or updates a Picasa album in Shashin.
-
setAlbumLocal
-
Updates local album data (i.e. data that doesn't come from the Picasa RSS feed).
-
setAlbumPhotos
-
Inserts or updates photos for a Picasa album. Must successfully call getAlbum() or setAlbum() first.
-
setPhotoLocal
-
Updates local photo data (i.e. data that doesn't come from the Picasa RSS feed).
-
setUserAlbums
-
Inserts or updates all albums for a Picasa user.
-
Shashin
-
The main class - directs traffic for all incoming requests.
-
Shashin.php
-
-
ShashinAlbum
-
Instantiate this class and use its methods to manipulate Picasa albums in Shashin. Also has a static population method, getAlbums() and a static method for generating markup, getAlbumMarkup().
-
ShashinAlbum
-
The constructor sets $this->ref_data, which is used for creating the shashin_album table, for mapping Picasa RSS feed params to table field names, and for generating form input fields.
-
ShashinAlbum.php
-
-
ShashinPhoto
-
The constructor sets $this->ref_data, which maps Picasa photo properties to ShashinPhoto object properties. It's also used for creating the shashin_photo table and for generating form input fields.
-
ShashinPhoto
-
For manipulating and displaying Picasa photos in Shashin.
-
ShashinPhoto.php
-
-
ShashinWidget
-
A collection of static methods for Shashin widgets.
-
ShashinWidget.php
-
-
SHASHIN_ADMIN_URL
-
-
SHASHIN_ALBUM_RSS
-
-
SHASHIN_ALBUM_TABLE
-
-
SHASHIN_ALBUM_THUMB_SIZE
-
-
SHASHIN_CROP_SIZES
-
-
SHASHIN_DIR
-
-
SHASHIN_DISPLAY_NAME
-
-
SHASHIN_DISPLAY_URL
-
-
SHASHIN_FAQ_URL
-
-
SHASHIN_FILE
-
-
SHASHIN_GOOGLE_MAPS_QUERY_URL
-
-
SHASHIN_GOOGLE_PLAYER_URL
-
-
SHASHIN_IMAGE_SIZES
-
-
SHASHIN_L10N_NAME
-
-
SHASHIN_OPTIONS
-
-
SHASHIN_PATH
-
-
SHASHIN_PHOTO_TABLE
-
-
SHASHIN_PICASA_VIDEO_TYPES
-
-
SHASHIN_PLUGIN_NAME
-
-
SHASHIN_USER_RSS
-
-
SHASHIN_VERSION
-
-
sqlDelete
-
Creates and executes a SQL delete statement based on passed-in parameters.
-
sqlInsert
-
Creates and executes a SQL insert statement based on passed-in parameters.
-
sqlSelect
-
Creates and executes a SQL select statement based on passed-in parameters.
-
sqlUpdate
-
Creates and executes a SQL update statement based on passed-in parameters.
-
startElement
-
-
_getAlbumLink
-
Generates a link to an album's photo, either at Picasa or locally, depending on the option shashin_album_photos_url. The link includes an opening anchor tag but not a closing one.
-
_getAlbumThumbTag
-
Generates the xhtml markup for an album thumbnail, with an appropriate link for accessing the album photos
-
_getDivMarkup
-
Generates the xhtml div for displaying an album thumbnail.
-
_getDivMarkup
-
Generates the xhtml div for displaying an image.
-
_getOrderedAlbums
-
Returns the requested albums in the desired order.
-
_getTableMarkup
-
Generates an xhtml table containing thumbnails of the the passed in albums. Note that $albums is an array of arrays of album data, not ShashinAlbum objects.
-
_getTableMarkup
-
Generates an xhtml table containing the passed in photos. Note that $photos is an array of arrays of photo data, not ShashinPhoto objects.
-
_htmlentities
-
array_walk callback method for htmlentities()
-
_isVideo
-
Test to see whether we're dealing with a picture or a video
-
_setDimensions
-
Calculates the height or width for an image, based on $max. See See http://code.google.com/apis/picasaweb/reference.html for an explanation of the supported image sizes.
-
_setMaxPicasaSize
-
Finds the maximum possible Picasa image size for a given number of thumbnail columns. Assumes 10px of padding/margin per image.
-
_sqlEscape
-
Escapes and quotes values for safe inserting/updating to the database
-
_sqlPrepare
-
Builds a properly formatted partial SQL clause of key-value pairs, with values escaped.
-
_strtolower
-
array_walk callback method for strtolower()
-
_trim
-
array_walk callback method for trim()
-
_widgetControl
-
Displays the widget control form.
-
_widgetDisplay
-
Extracts widget args and displays a widget.