Matrix theme change
cs2_1979
![]()
Joined: 2005-09-12
Posts: 18 |
![]() |
Could one of you inform me in what way I could change Matrix theme in presenting an individual photo or picture in the album on top of the accompanying text instead of the other way around? |
|
RwD
![]()
Joined: 2005-01-09
Posts: 383 |
![]() |
You can do that with a few simple steps:
{* * $Revision: 1.6 $ * If you want to customize this file, do not edit it directly since future upgrades * may overwrite it. Instead, copy it into a new directory called "local" and edit that * version. Gallery will look for that file first and use it if it exists. *} {if !empty($theme.imageViews)} {assign var="image" value=$theme.imageViews[$theme.imageViewsIndex]} {/if} <table width="100%" cellspacing="0" cellpadding="0"> <tr valign="top"> {if !empty($theme.params.sidebarBlocks)} <td id="gsSidebarCol"> {g->theme include="sidebar.tpl"} </td> {/if} <td> <div id="gsContent"> {if !empty($theme.navigator)} <div class="gbBlock gcBackground2 gbNavigator"> {g->block type="core.Navigator" navigator=$theme.navigator reverseOrder=true} </div> {/if} <div id="gsImageView" class="gbBlock"> {if !empty($theme.imageViews)} {capture name="fallback"} <a href="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$theme.item.id`"}"> {g->text text="Download %s" arg1=$theme.sourceImage.itemTypeName.1} </a> {/capture} {if ($image.viewInline)} {if isset($theme.photoFrame)} {g->container type="imageframe.ImageFrame" frame=$theme.photoFrame} {g->image id="%ID%" item=$theme.item image=$image fallback=$smarty.capture.fallback class="%CLASS%"} {/g->container} {else} {g->image item=$theme.item image=$image fallback=$smarty.capture.fallback} {/if} {else} {$smarty.capture.fallback} {/if} {else} {g->text text="There is nothing to view for this item."} {/if} </div> <div class="gbBlock gcBackground1"> <table width="100%"> <tr> <td> {if !empty($theme.item.title)} <h2> {$theme.item.title|markup} </h2> {/if} {if !empty($theme.item.description)} <p class="giDescription"> {$theme.item.description|markup} </p> {/if} </td> <td style="width: 30%"> {g->block type="core.ItemInfo" item=$theme.item showDate=true showOwner=true class="giInfo"} {g->block type="core.PhotoSizes" class="giInfo"} </td> </tr> </table> </div> {* Download link for item in original format *} {if !empty($theme.sourceImage) && $theme.sourceImage.mimeType != $theme.item.mimeType} <div class="gbBlock"> <a href="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$theme.item.id`"}"> {g->text text="Download %s in original format" arg1=$theme.sourceImage.itemTypeName.1} </a> </div> {/if} {* Show any other photo blocks (comments, exif etc) *} {foreach from=$theme.params.photoBlocks item=block} {g->block type=$block.0 params=$block.1} {/foreach} {if !empty($theme.navigator)} <div class="gbBlock gcBackground2 gbNavigator"> {g->block type="core.Navigator" navigator=$theme.navigator reverseOrder=true} </div> {/if} {g->block type="core.GuestPreview" class="gbBlock"} {* Our emergency edit link, if the user all blocks containing edit links *} {g->block type="core.EmergencyEditItemLink" class="gbBlock" checkSidebarBlocks=true checkPhotoBlocks=true} </div> </td> </tr> </table> That's all |
|
cs2_1979
![]()
Joined: 2005-09-12
Posts: 18 |
![]() |
Thanks RwD. |
|
RwD
![]()
Joined: 2005-01-09
Posts: 383 |
![]() |
geen probleem ;) |
|