{* * $Revision: 16903 $ * Read this before changing templates! http://codex.gallery2.org/Gallery2:Editing_Templates *}

{g->text text="Image Block Settings"}

{if isset($status.saved)}

{g->text text="Settings saved successfully"}

{/if}

{g->text text="Show"}






{if isset($ImageBlockSiteAdmin.list)}

{g->text text="Frames"}

{g->text text="View samples"}

{g->text text="Album Frame"}
{g->text text="Photo Frame"}
{/if}

{g->text text="External Image Block"}

{g->text text="Use a PHP block like the one shown below to include an image block in a PHP page outside of Gallery."}

<?php @readfile('{g->url arg1="view=imageblock.External" arg2="blocks=randomImage" arg3="show=title" forceDirect=true forceSessionId=false forceFullUrl=true}'); ?>

{if isset($ImageBlockSiteAdmin.list)} {/if}
{$ImageBlockSiteAdmin.prefix}blocks {g->text text="Pipe(|) separate list chosen from: randomImage, recentImage, viewedImage, randomAlbum, recentAlbum, viewedAlbum, dailyImage, weeklyImage, monthlyImage, dailyAlbum, weeklyAlbum, monthlyAlbum, specificItem; default is randomImage"}
{$ImageBlockSiteAdmin.prefix}show * {g->text text="Pipe(|) separated list chosen from: title, date, views, owner, heading, fullSize, rawImage; the value can also be: none"}
{$ImageBlockSiteAdmin.prefix}itemId {g->text text="Limit the item selection to the subtree of the gallery under the album with the given id; or the id of the item to display when used with specificItem block type"}
{$ImageBlockSiteAdmin.prefix}maxSize {g->text text="Scale images to this maximum size. If used alone Gallery will locate the most-closely-sized image to the specified value - larger images will be scaled down as necessary in your browser. If specified along with %sshow=fullSize the full size image will always be used and scaled down as necessary." arg1=$ImageBlockSiteAdmin.prefix}
{$ImageBlockSiteAdmin.prefix}exactSize {g->text text="Just like %smaxSize except that it will not substitute an image smaller than the size you request, so you'll get the closest match in size possible. Note that this may use a lot more bandwidth if a much larger image has to be scaled down in your browser." arg1=$ImageBlockSiteAdmin.prefix}
{$ImageBlockSiteAdmin.prefix}link {g->text text="Href for link on image; value of none for no link; default is link to item in the Gallery"}
{$ImageBlockSiteAdmin.prefix}linkTarget {g->text text="Add a link target (for example, to open links in a new browser window)"}
{$ImageBlockSiteAdmin.prefix}itemFrame * {g->text text="Image frame to use around images"}
{$ImageBlockSiteAdmin.prefix}albumFrame * {g->text text="Image frame to use around albums"}

{g->text text="If a parameter marked with * is omitted then the site default defined above is used."}

{if isset($ImageBlockSiteAdmin.list)}

{g->text text="Image frames require CSS to be displayed correctly. Include the following in the %s section to support image frames." arg1="<head>"}

{capture name="cssUrl"}{g->url arg1="controller=imageblock.ExternalCSS" arg2="frames=wood" forceDirect=true forceSessionId=false forceFullUrl=true useAuthToken=false}{/capture} <link rel="stylesheet" href="{$smarty.capture.cssUrl|replace:"&":"&"}"/>

{g->text text="Specify the frame id (or pipe separated list of ids) in the frames parameter. Omit the parameter to support the image frames configured above. Frame ids are the directory names in the %s directory." arg1="modules/imageframe/frames"}

{/if}