Changeset 11219 for extensions/Back2Front/template
- Timestamp:
- Jun 3, 2011, 6:09:08 PM (13 years ago)
- Location:
- extensions/Back2Front/template
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Back2Front/template/admin.tpl
r10852 r11219 1 {combine_css path=$B2F_PATH|@cat:"template/style.css"} 2 {if $themeconf.id == roma}<style type="text/css">.lang_help {ldelim} background-color:#464646; }</style>{/if} 3 4 {footer_script require='jquery'}{literal} 5 jQuery().ready( function () { 6 jQuery('select[name="lang_desc_select"]').change(function () { 7 jQuery('[id^="link_name"]').hide(); 8 jQuery("#link_name_"+this.options[this.selectedIndex].value).show(); 9 }); 10 jQuery('[id^="link_name_"]').keyup(function () { 11 arr = jQuery(this).attr("id").split("link_name_"); 12 id = arr[1]; 13 opt = jQuery('select[name="lang_desc_select"] option[id="opt_'+id+'"]'); 14 if (this.value != '') 15 opt.html(opt.html().replace("\u2718", "\u2714")); 16 else 17 opt.html(opt.html().replace("\u2714", "\u2718")); 18 }); 19 }); 20 21 jQuery('.lang_help').tipTip(); 22 {/literal}{/footer_script} 23 1 24 <div class="titrePage"> 2 25 <h2>Back2Front</h2> … … 7 30 <legend>{'Display'|@translate}</legend> 8 31 <ul> 32 <li> 33 <span class="property">{'Link position'|@translate}</span> 34 <label><input type="radio" name="position" value="top" {if $POSITION == 'top'}checked="checked"{/if}/> {'Top'|@translate}</label> 35 <label><input type="radio" name="position" value="bottom" {if $POSITION == 'bottom'}checked="checked"{/if}/> {'Bottom'|@translate}</label> 36 <label><input type="radio" name="position" value="toolbar" {if $POSITION == 'toolbar'}checked="checked"{/if}/> {'Toolbar'|@translate}</label> 37 </li> 9 38 <li> 10 39 <span class="property">{'Switch mode'|@translate}</span> … … 16 45 <label><input type="radio" name="transition" value="none" {if $TRANSITION == 'none'}checked="checked"{/if}/> {'None'|@translate}</label> 17 46 <label><input type="radio" name="transition" value="fade" {if $TRANSITION == 'fade'}checked="checked"{/if}/> {'Fade'|@translate}</label> 18 </li> 47 </li> 48 49 <li> 50 <span class="property">{'Link name'|@translate}</span> 51 <select name="lang_desc_select"> 52 {foreach from=$link_name item=lang} 53 <option value="{$lang.LANGUAGE_CODE}" id="opt_{$lang.LANGUAGE_CODE}">{if empty($lang.VALUE)}✘{else}✔{/if} {$lang.LANGUAGE_NAME}</option> 54 {/foreach} 55 </select> 56 {foreach from=$link_name item=lang} 57 <input type="text" size="30" name="link_name[{$lang.LANGUAGE_CODE}]" id="link_name_{$lang.LANGUAGE_CODE}" value="{$lang.VALUE}" style="{if $lang.LANGUAGE_CODE != 'default'}display:none; {/if}margin-left:10px;"> 58 {/foreach} 59 60 <a class="lang_help" title="{'Seperate the two labels with the | symbol. Leave blank to use default translation.'|@translate}">i</a> 61 </li> 19 62 </ul> 20 63 </fieldset> -
extensions/Back2Front/template/picture_content.tpl
r10852 r11219 1 1 {combine_css path=$B2F_PATH|@cat:"template/style.css"} 2 {combine_script id="jquery" load="header" path = "themes/default/js/jquery.min.js"} 2 3 3 4 {footer_script require="jquery"} … … 16 17 opacity:0 17 18 }, 400, function() {ldelim} 19 jQuery(this).attr({ldelim} 20 src: '{$VERSO_URL}', 21 style: 'max-width:{$WIDTH_IMG}px;max-height:{$HEIGHT_IMG}px;', 22 }); 18 23 jQuery(this).animate({ldelim} 19 width:'{$VERSO_WIDTH}px', 20 height:'{$VERSO_HEIGHT}px' 21 }, 200, function() {ldelim} 22 jQuery(this).attr('src', '{$VERSO_URL}'); 23 jQuery(this).animate({ldelim} 24 opacity:1 25 }, 400); 26 }); 24 opacity:1 25 }, 400); 27 26 }); 28 27 {else} 29 28 jQuery('img[alt="{$ALT_IMG}"]').attr({ldelim} 30 29 src: '{$VERSO_URL}', 31 style: ' width:{$VERSO_WIDTH}px;height:{$VERSO_HEIGHT}px;',30 style: 'max-width:{$WIDTH_IMG}px;max-height:{$HEIGHT_IMG}px;', 32 31 }); 33 32 {/if} … … 42 41 43 42 /* B2F link content */ 44 jQuery(this).html('<img src="{$B2F_PATH}template/rotate_2.png"/> { 'See front'|@translate}');43 jQuery(this).html('<img src="{$B2F_PATH}template/rotate_2.png"/> {$b2f_see_front}'); 45 44 jQuery(this).attr('rel', 'back'); 46 45 {/if} … … 52 51 {/if} 53 52 53 /* picture switch */ 54 54 {if $b2f_transition == 'fade'} 55 55 jQuery('img[alt="{$ALT_IMG}"]').animate({ldelim} 56 56 opacity:0 57 57 }, 400, function() {ldelim} 58 jQuery(this).attr({ldelim} 59 src: '{$SRC_IMG}', 60 style: 'width:{$WIDTH_IMG}px;height:{$HEIGHT_IMG}px;', 61 }); 58 62 jQuery(this).animate({ldelim} 59 width:'{$WIDTH_IMG}px', 60 height:'{$HEIGHT_IMG}px' 61 }, 200, function() {ldelim} 62 jQuery(this).attr('src', '{$SRC_IMG}'); 63 jQuery(this).animate({ldelim} 64 opacity:1 65 }, 400); 66 }); 63 opacity:1 64 }, 400); 67 65 }); 68 66 {else} … … 74 72 75 73 {if $b2f_switch_mode == 'click'} 74 /* hd link */ 76 75 {if isset($high.U_HIGH)} 77 76 jQuery('img[alt="{$ALT_IMG}"]').parent().attr({ldelim} … … 80 79 {/if} 81 80 82 jQuery(this).html('<img src="{$B2F_PATH}template/rotate_1.png"/> {'See back'|@translate}'); 81 /* B2F link content */ 82 jQuery(this).html('<img src="{$B2F_PATH}template/rotate_1.png"/> {$b2f_see_back}'); 83 83 jQuery(this).attr('rel', 'front'); 84 84 {/if} … … 94 94 {/footer_script} 95 95 96 <img src="{$VERSO_URL}" style="display:none;" > {* <!-- force preload the verso --> *}96 <img src="{$VERSO_URL}" style="display:none;"/> {* <!-- force preload the verso --> *} 97 97 98 <a class="reverse" rel="front" name="verso-link" {if $b2f_switch_mode == 'hover'}href="javascript:phpWGOpenWindow('{$VERSO_HD}','{$high.UUID}','scrollbars=yes,toolbar=no,status=no,resizable=yes')"{/if}> 99 <img src="{$B2F_PATH}template/rotate_1.png"/> {'See back'|@translate} 98 {if $b2f_position != 'toolbar'}<div>{/if} 99 <a class="reverse" rel="front" {if $b2f_position == 'toolbar'}style="border:none !important;"{/if} {if $b2f_switch_mode == 'hover'}href="javascript:phpWGOpenWindow('{$VERSO_HD}','{$high.UUID}','scrollbars=yes,toolbar=no,status=no,resizable=yes')"{/if}> 100 <img src="{$B2F_PATH}template/rotate_1.png"/> {$b2f_see_back} 100 101 </a> 101 <br/> 102 {if $b2f_position != 'toolbar'}</div>{/if} -
extensions/Back2Front/template/style.css
r10852 r11219 5 5 margin-bottom:10px; 6 6 font-size:15px; 7 font-style:italic; 8 height:1em; 7 font-style:italic; 9 8 } 10 9 a.reverse img { 11 margin:0 !important;12 10 vertical-align:top; 13 border:none !important;14 11 } 12 .lang_help { 13 display:inline-block; 14 width:16px; 15 text-align:center; 16 vertical-align:middle; 17 font-style:italic; 18 font-family:"Georgia",serif; 19 background-color:#999; 20 margin-left:15px; 21 color:#fff; 22 font-size:0.9em; 23 line-height:1.4em; 24 border-radius:7px; 25 -moz-border-radius:7px; 26 } 27 .lang_help:hover { 28 background-color:#333; 29 border:none; 30 color:#fff; 31 }
Note: See TracChangeset
for help on using the changeset viewer.