Changeset 11917


Ignore:
Timestamp:
Aug 6, 2011, 3:25:34 PM (9 years ago)
Author:
flop25
Message:

feature:2391
adding colorbox for theme : for new and installed themes

Location:
trunk/admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/themes_installed.tpl

    r6363 r11917  
     1{include file='include/colorbox.inc.tpl'}
     2{footer_script}{literal}
     3jQuery(document).ready(function() {
     4  $("a.preview-box").colorbox();
     5});
     6{/literal}{/footer_script}
     7
    18<div class="titrePage">
    29  <h2>{'Installed Themes'|@translate}</h2>
     
    1219  <div class="themeBox{if $theme.is_default} themeDefault{/if}">
    1320    <div class="themeName">{$theme.name}{if $theme.is_default} <em>({'default'|@translate})</em>{/if}</div>
    14     <div class="themeShot"><img src="{$theme.screenshot}" alt=""></div>
     21    <div class="themeShot"><a href="{$theme.screenshot}" class="preview-box" title="{$theme.name}"><img src="{$theme.screenshot}" alt=""></a></div>
    1522    <div class="themeActions">
    1623      <div>
     
    4249  <div class="themeBox">
    4350    <div class="themeName">{$theme.name}</div>
    44     <div class="themeShot"><img src="{$theme.screenshot}" alt=""></div>
     51    <div class="themeShot"><a href="{$theme.screenshot}" class="preview-box" title="{$theme.name}"><img src="{$theme.screenshot}" alt=""></a></div>
    4552    <div class="themeActions">
    4653      <div>
  • trunk/admin/themes/default/template/themes_new.tpl

    r6363 r11917  
     1{include file='include/colorbox.inc.tpl'}
     2{footer_script}{literal}
     3jQuery(document).ready(function() {
     4  $("a.preview-box").colorbox();
     5});
     6{/literal}{/footer_script}
    17<div class="titrePage">
    28  <h2>{'Add New Theme'|@translate}</h2>
     
    814  <div class="themeBox">
    915    <div class="themeName">{$theme.name}</div>
    10     <div class="themeShot"><img src="{$theme.screenshot}" onerror="this.src='{$default_screenshot}'"></div>
     16    <div class="themeShot"><a href="{$theme.screenshot}" class="preview-box" title="{$theme.name}"><img src="{$theme.thumbnail}" onerror="this.src='{$default_screenshot}'"></a></div>
    1117    <div class="themeActions"><a href="{$theme.install_url}">{'Install'|@translate}</a></div>
    1218  </div>
  • trunk/admin/themes_new.php

    r10638 r11917  
    128128      array(
    129129        'name' => $theme['extension_name'],
    130         'screenshot' => PEM_URL.'/upload/extension-'.$theme['extension_id'].'/thumbnail.jpg',
     130        'thumbnail' => PEM_URL.'/upload/extension-'.$theme['extension_id'].'/thumbnail.jpg',
     131        'screenshot' => PEM_URL.'/upload/extension-'.$theme['extension_id'].'/screenshot.jpg',
    131132        'install_url' => $url_auto_install,
    132133        )
Note: See TracChangeset for help on using the changeset viewer.