Changeset 3804


Ignore:
Timestamp:
Aug 30, 2009, 8:22:44 AM (15 years ago)
Author:
vdigital
Message:

Intermediate commit for thumbnails location (Left/Right)
Above/Below aren't ready yet

Location:
extensions/akBookStyle/trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • extensions/akBookStyle/trunk/include/akContent.class.php

    r3803 r3804  
    5454    $template->assign('AK_THUMBNAIL_SIZE', $this->plugin_config->ak_thumbnail_size);
    5555    $template->assign('AK_RELOADED_IMAGE_TPL', AK_PLUGIN_TEMPLATE. '/ak_reloaded_image.tpl');
    56                 if ($this->plugin_config->ak_show_over) $template->assign('AK_SHOW_OVER', $this->plugin_config->ak_show_over);
    57   }
     56                $template->assign('AK_VERTICAL_TPL', AK_PLUGIN_TEMPLATE. '/ak_vertical.tpl');
     57    if ($this->plugin_config->ak_show_over) $template->assign('AK_SHOW_OVER', $this->plugin_config->ak_show_over);
     58    $template->assign('AK_THUMBNAILS_LOC', $this->plugin_config->ak_thumbnails_loc);
     59    }
    5860
    5961
  • extensions/akBookStyle/trunk/language/en_UK/plugin.lang.php

    r3802 r3804  
    1919$lang['Bottom'] = "Bottom";
    2020$lang['Right'] = "Right";
     21$lang['ak_by_column'] = '(or number of lines for Top/Bottom)';
    2122
    2223?>
  • extensions/akBookStyle/trunk/language/fr_FR/plugin.lang.php

    r3802 r3804  
    1616$lang['ak_thumbnails_loc'] = "Position des miniatures";
    1717$lang['ak_thumbnails_loc_changed'] = "Position des miniatures modifiée.";
    18 $lang['Top'] = "Top";
    19 $lang['Left'] = "Left";
    20 $lang['Bottom'] = "Bottom";
    21 $lang['Right'] = "Right";
     18$lang['Top'] = "au dessus";
     19$lang['Left'] = "à gauche";
     20$lang['Bottom'] = "en bas";
     21$lang['Right'] = "à droite";
     22$lang['ak_by_column'] = '(ou nombre de lignes si dessus ou en bas)';
     23
    2224?>
  • extensions/akBookStyle/trunk/template/admin.tpl

    r3802 r3804  
    11<div class="titrePage">
    2   <h2>{'ak_title'|@translate}</h2>
     2  <h2>{'ak_title'|translate}</h2>
    33</div>
    44
    55<p>
    6 {'ak_intro'|@translate}
     6{'ak_intro'|translate}
    77</p>
    88
     
    1313<form method="post" action="" class="general">
    1414<fieldset>
    15   <legend>{'ak_general_config'|@translate}</legend>
     15  <legend>{'ak_general_config'|translate}</legend>
    1616  <p class="field">
    17     <label>{'ak_by_line'|@translate}
    18       <input type="text" name="ak_by_line" value="{$AK_BY_LINE}">
     17    <label>{'ak_by_line'|translate}
     18      <input type="text" name="ak_by_line" value="{$AK_BY_LINE}"> {'ak_by_column'|translate}
    1919    </label>
    2020  </p>
    2121  <p class="field">
    22     <label>{'ak_thumbnail_size'|@translate}
     22    <label>{'ak_thumbnail_size'|translate}
    2323      <input type="text" name="ak_thumbnail_size" value="{$AK_THUMBNAIL_SIZE}">
    2424    </label>
    2525  </p>
    2626  <p class="field">
    27     <label>{'ak_show_over'|@translate}
     27    <label>{'ak_show_over'|translate}
    2828   {html_radios name='ak_show_over' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$AK_SHOW_OVER}
    2929    </label>
    3030  </p>
    3131  <p class="field">
    32     <label>{'ak_thumbnails_loc'|@translate}
    33    {html_radios name='ak_thumbnails_loc' values='top,left,bottom,right'|@explode output='Top,Left,Bottom,Right'|@explode|translate selected=$AK_THUMBNAILS_LOC}
     32    <label>{'ak_thumbnails_loc'|translate}
     33   {html_radios name='ak_thumbnails_loc' values='top,right,bottom,left'|@explode output='Top,Right,Bottom,Left'|@explode|translate selected=$AK_THUMBNAILS_LOC}
    3434    </label>
    3535  </p>
    3636</fieldset>
    3737
    38 <p><input class="submit" type="submit" name="submit" value="{'Submit'|@translate}"></p>
     38<p><input class="submit" type="submit" name="submit" value="{'Submit'|translate}"></p>
    3939</form>
    4040
  • extensions/akBookStyle/trunk/template/ak_thumbnails.tpl

    r3803 r3804  
    2121 $AK_NEXT['load'] = if reloadable 'load ' else ''
    2222 $AK_NEXT['TITLE'] : title of next pic
     23 
     24 $AK_THUMBNAILS_LOC : Thumbnails location
     25 $AK_SHOW_OVER : hover or click
    2326*}
    2427
     
    2831<table class="ak_display">
    2932  <tr>
    30     <td>
    31       <table class="thumbnails">
    32         {foreach from=$thumbnails item=thumbnail name=tn}
    33         {if $smarty.foreach.tn.index % $AK_BY_LINE == 0}
    34         <tr class="nline">
    35           {/if}
    36           <td class="ncol">
    37             <div class="clipwrapper" style="width:{$AK_THUMBNAIL_SIZE}px;height:{$AK_THUMBNAIL_SIZE}px">
    38               <div class="clip" style="clip:rect({$thumbnail.CLIP_TOP}px {$thumbnail.CLIP_RIGHT}px {$thumbnail.CLIP_BOTTOM}px {$thumbnail.CLIP_LEFT}px);top:-{$thumbnail.CLIP_TOP}px;left:-{$thumbnail.CLIP_LEFT}px">
    39                 <a href="{$thumbnail.AK_URL}" class="load">
    40                   <img class="thumbnail" src="{$thumbnail.TN_SRC}"
    41                        alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}">
    42                 </a>
    43               </div>
    44             </div>
    45           </td>
    46         {if ($smarty.foreach.tn.iteration % $AK_BY_LINE == 0) or $smarty.foreach.tn.last }
    47         </tr>
    48         {/if}
    49         {/foreach}
    50        
    51         {if !empty($NAV_BAR) } {* thumbnails navigation bar *}
    52         <tr class="nline">
    53           <td class="left">
    54             {if isset($AK_NAV_PREV)}
    55             <a class="navButton" href="{$AK_NAV_PREV}"
    56                title="{'previous_page'|@translate}">
    57               <img src="{$ROOT_URL}{$themeconf.icon_dir}/left.png"
    58              class="button" alt="{'previous_page'|@translate}">
    59             </a>
    60             {/if}
    61           </td>
    62           <td class="right">
    63             {if isset($AK_NAV_NEXT)}
    64             <a class="navButton" href="{$AK_NAV_NEXT}"
    65                title="{'next_page'|@translate}">
    66               <img src="{$ROOT_URL}{$themeconf.icon_dir}/right.png"
    67              class="button" alt="{'next_page'|@translate}">
    68             </a>
    69             {/if}
    70           </td>
    71         </tr>
    72         {/if}
    73       </table> {* end of Thumbnails *}
    74 
    75     </td>
    76    
     33        {if $AK_THUMBNAILS_LOC == 'left'}
     34    {include file=$AK_VERTICAL_TPL|@get_extent:'vertical_thmubs'}
     35  {/if}
    7736    <td> {* Picture *}
    7837      {include file=$AK_RELOADED_IMAGE_TPL|@get_extent:'picture_reload'}
    7938    </td>
     39        {if $AK_THUMBNAILS_LOC == 'right'}
     40    {include file=$AK_VERTICAL_TPL|@get_extent:'vertical_thmubs'}
     41  {/if}
    8042  </tr>
    8143</table>
Note: See TracChangeset for help on using the changeset viewer.