Changeset 29480 for trunk


Ignore:
Timestamp:
Sep 11, 2014, 11:05:00 AM (10 years ago)
Author:
mistic100
Message:

feature 3138: Add photo zoom when editing a photo

Location:
trunk/admin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/picture_modify.php

    r28981 r29480  
    230230$admin_url_start.= isset($_GET['cat_id']) ? '&cat_id='.$_GET['cat_id'] : '';
    231231
     232$src_image = new SrcImage($row);
     233
    232234$template->assign(
    233235  array(
     
    238240    'PATH'=>$row['path'],
    239241
    240     'TN_SRC' => DerivativeImage::thumb_url($row),
     242    'TN_SRC' => DerivativeImage::url(IMG_THUMB, $src_image),
     243    'FILE_SRC' => DerivativeImage::url(IMG_LARGE, $src_image),
    241244
    242245    'NAME' =>
  • trunk/admin/themes/default/template/batch_manager_unit.tpl

    r29389 r29480  
    5656
    5757  <span class="thumb">
    58     <a href="{$element.FILE_SRC}" class="preview-box" title="{$element.LEGEND|@htmlspecialchars}"><img src="{$element.TN_SRC}" alt=""></a>
    59     <br/>
    60     <a href="{$element.U_EDIT}">{'Edit'|@translate}</a>
     58    <a href="{$element.FILE_SRC}" class="preview-box icon-search" title="{$element.LEGEND|@htmlspecialchars}"><img src="{$element.TN_SRC}" alt=""></a>
     59    <a href="{$element.U_EDIT}" class="icon-pencil">{'Edit'|@translate}</a>
    6160  </span>
    6261
  • trunk/admin/themes/default/template/picture_modify.tpl

    r29389 r29480  
    11{include file='include/autosize.inc.tpl'}
    22{include file='include/datepicker.inc.tpl'}
     3{include file='include/colorbox.inc.tpl'}
    34
    45{combine_script id='LocalStorageCache' load='footer' path='admin/themes/default/js/LocalStorageCache.js'}
     
    3637  });
    3738});
     39
     40{* <!-- THUMBNAILS --> *}
     41jQuery("a.preview-box").colorbox();
    3842}());
    3943{/footer_script}
     
    5054      <tr>
    5155        <td id="albumThumbnail">
    52           <img src="{$TN_SRC}" alt="{'Thumbnail'|@translate}" class="Thumbnail">
     56          <a href="{$FILE_SRC}" class="preview-box icon-search" title="{$TITLE|htmlspecialchars}"><img src="{$TN_SRC}" alt="{'Thumbnail'|translate}"></a>
    5357        </td>
    5458        <td id="albumLinks" style="width:400px;vertical-align:top;">
  • trunk/admin/themes/default/theme.css

    r29406 r29480  
    226226        float: right;
    227227        text-align: center;
    228         opacity: 0.6;
    229         -webkit-transition:opacity 400ms ease;
    230         transition:opacity 400ms ease;
    231 }
    232 FIELDSET.elementEdit .thumb:hover {
    233         opacity:1;
    234228}
    235229
     
    12211215.userActions {float:right;text-align:right;}
    12221216
     1217.preview-box.icon-search {
     1218  display:block;
     1219  position:relative;
     1220}
     1221.preview-box.icon-search:before {
     1222  opacity:0;
     1223  position:absolute;
     1224  margin:-22px 0 0 -22px;
     1225  top:50%;
     1226  left:50%;
     1227  font-size:50px;
     1228  line-height:50px;
     1229  color:white;
     1230  z-index:100;
     1231  text-shadow:0 0 20px rgba(0,0,0,0.4);
     1232  -webkit-transition:opacity 200ms ease;
     1233  transition:opacity 200ms ease;
     1234}
     1235.preview-box.icon-search:hover:before {
     1236  opacity:0.9;
     1237}
     1238.preview-box.icon-search img {
     1239  opacity:1;
     1240  -webkit-transition:opacity 200ms ease;
     1241  transition:opacity 200ms ease;
     1242}
     1243.preview-box.icon-search:hover img {
     1244  opacity:0.5;
     1245}
Note: See TracChangeset for help on using the changeset viewer.