Revision`s Differences
Transkrypt
Revision`s Differences
Dokumentacja zmian plików graficznych: shoper red Wersja zmian: 5.4.4 - 5.4.5 Pliki .tpl boxes/FacebookLike/box.tpl 1 2 3 +4 5 6 7 14 15 16 + 17 18 19 20 {if $boxNs->$box_id->pageid > 0} <div class="box" id="box_facebooklike"> <script type="text/javascript"> <!-window.addEvent('domready', function(e) {literal}{{/literal} w = $('box_facebooklike').getSize().x; h = {if 1 == (int) $boxNs->$box_id->stream}600{else}300{/if}; 'scrolling="no" frameborder="0" style="border:none; overflow: hidden; width: ' + w + 'px; height:' + h + 'px;" allowTransparency="true"></iframe>'); {literal}}{/literal}); --> </script> </div> {/if} scripts/body_head.tpl 5 6 7 -8 +8 +9 + 10 11 12 13 59 60 61 - 62 + 62 <div class="innerheader pagewidth"> <ul class="links"> {if true == $user_logged} <li>{translate key="Hello"} <b>{$user->user->getName()|escape}</b></li> <li class="hello"> {translate key="Hello"} <b>{$user->user->getName()|escape}</b> </li> <li class="myaccount"> <a href="{route key='panel'}" title="{translate key='My account'}" class="myaccount spanhover"> <img src="{baseDir}/public/images/1px.gif" alt="" class="px1" /> <div class="logo"> <div class="innerlogo pagewidth"> <a href="{baseDir nonempty=1}" title="{translate key='Main page'}" rel="nofollow" class="logo"> <img src="{$path}/images/logo.png" alt="Logo" /> <img src="{$path}images/logo.png" alt="Logo" /> Copyright © 2013 Shoper. All rights reserved. Strona 1/8 63 64 65 <!--[if lt IE 7]><span class="logospacer"> </span><![endif]--> </a> {if 1 == $skin_settings->header->searchbox} scripts/header.tpl 2 3 4 -5 +5 6 7 8 9 10 11 - 12 + 12 13 14 15 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/ fbml" xmlns:g="http://base.google.com/ns/1.0"> <head> <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=9" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="Content-Language" content="{lang key='short'}" /> <title>{$seo_title|escape}</title> <meta name="keywords" content="{$seo_keywords|escape}" /> <meta name="description" content="{$seo_description|escape}" /> <link rel="home" href="{baseDir nonempty=1}" /> <link rel="skin" href="{$path}" /> <link rel="shortcut icon" href="{$path}/images/favicon.png" /> <link rel="shortcut icon" href="{$path}images/favicon.png" /> <link rel="stylesheet" type="text/css" href="{sfc type='css' user=$user_css gallery=$jsgallery id=$skin_id lang=$lang_full}" /> <script type="text/javascript" src="{sfc type='js' user=$user_js gallery=$jsgallery id=$skin_id lang=$lang_full}"></script> {if count($seo_links)}{foreach from=$seo_links item=v key=k} <link rel="{$k|escape}" href="{$v|escape}" /> scripts/headerlinks.tpl 4 5 6 -7 +7 8 9 10 <div class="leftside"></div> <ul> {foreach from=$headerlinks item=link} {if $link->getHref() || $link->isActiveCategory()}<li class="{if $link->hasSubCategories()}parent{/if}"> {if $link->getHref() || $link->isActiveCategory()}<li class="{if $link->hasSubCategories()}parent{/if}" {if $link->getC ategoryId()}id="hcategory_{$link->getCategoryId()|escape}"{/if}> <h3> <a href="{$link->getHref()|escape}" title="{$link->getTitle()|escape}" id="headlink{$link->getIdentifier()}" cl ass="spanhover mainlevel{if $link->isPopup()} popup{/if}"> <span>{$link->getTitle()|escape}</span> scripts/headermenu.tpl 1 2 3 -4 +4 5 6 7 <div class="submenu level{$level}"> <ul class="level{$level}"> {foreach from=$headermenu_categories item=cat} <li class="{if count($cat->getActiveLangChildrenList())}parent{/if}"> <li class="{if count($cat->getActiveLangChildrenList())}parent{/if}" id="hcategory_{$cat->getIdentifier()|escape}"> <h3> <a href="{route function='category' key=$cat->getIdentifier() categoryName=$cat->translation->name category Id=$cat->getIdentifier() resetparams=true}" title="{$cat->translation->name|escape}" id="headercategory{$cat->getIdentifier()}" class="spanhover"> Copyright © 2013 Shoper. All rights reserved. Strona 2/8 scripts/paginator.tpl 1 2 +3 +4 +5 +6 +7 8 9 10 11 12 - 13 14 15 16 17 - 18 {php} $pages = $this->_tpl_vars['pages']; $route = $this->_tpl_vars['router_name']; if($route == ""){ $route = null; } $router = Zend_Registry::get(System_Bootstrap::REGISTRY_INDEX_ROUTER); $helper = $this->_tpl_vars['helper']; $a = array_values($pages->pagesInRange); $stick = false; $google = isset( $this->_tpl_vars['google'][0] ) ? '?' . $this->_tpl_vars['google'] : ''; if($pages->pageCount > 0) { echo '<ul class="paginator">'; if(isset($pages->previous) && $pages->previous > 0) echo '<li class="first"><a href="' . $helper->url(array('page' => $pages->previous)) . $google . '" title="">«</a></l i>'; + 12 13 14 15 16 - 17 + 17 18 19 20 32 33 34 - 35 + 35 36 37 38 39 40 - 41 + 41 echo '<li class="first"><a href="' . ($route ? $router->assemble(array('page' => $pages->previous), $route) : $helper->url( array('page' => $pages->previous))) . $google . '" title="">«</a></li>'; else echo '<li class="first"><span>«</span></li>'; if($a[0] > 1) { echo '<li><a href="' . $helper->url(array('page' => 1)) . $google . '" title="">1</a></li>'; echo '<li><a href="' . ($route ? $router->assemble(array('page' => 1), $route) : $helper->url(array('page' => 1))) . $googl e . '" title="">1</a></li>'; $stick = true; if($a[0] > 2) echo '<li class="stick"><span>|</span></li><li><span>...</span></li>'; if($b == $pages->current) echo '<li class="selected"><span>' . $b . '</span></li>'; else echo '<li><a href="' . $helper->url(array('page' => $b)) . $google . '" title="">' . $b . '</a></li>'; echo '<li><a href="' . ($route ? $router->assemble(array('page' => $b), $route) : $helper->url(array('page' => $b))) . $google . '" title="">' . $b . '</a></li>'; } if($b != $pages->pageCount) { if($pages->pageCount - $b > 1) echo '<li class="stick"><span>|</span></li><li><span>...</span></li>'; echo '<li class="stick"><span>|</span></li><li><a href="' . $helper->url(array('page' => $pages->pageCount)) . $google . '" title="">' . $pages->pageCount . '</a></li>'; echo '<li class="stick"><span>|</span></li><li><a href="' . ($route ? $router->assemble(array('page' => $pages->pageCount), Copyright © 2013 Shoper. All rights reserved. Strona 3/8 42 43 44 - 45 + 45 46 47 48 $route) : $helper->url(array('page' => $pages->pageCount))) . $google . '" title="">' . $pages->pageCount . '</a></li>'; } if(isset($pages->next) && $pages->next > 0) echo '<li class="last"><a href="' . $helper->url(array('page' => $pages->next)) . $google . '" title="">»</a></li>'; echo '<li class="last"><a href="' . ($route ? $router->assemble(array('page' => $pages->next), $route) : $helper->url(array ('page' => $pages->next))) . $google . '" title="">»</a></li>'; else echo '<li class="last"><span>»</span></li>'; scripts/product/index.tpl 211 212 213 - 214 + 214 215 216 217 </fieldset> </form> {if 1 == $skin_settings->productdetails->fb_send || 1 == $skin_settings->productdetails->fb _like || 1 == $skin_settings->productdetails->google_p1} {if 1 == $skin_settings->productdetails->fb_send || 1 == $skin_settings->productdetails->fb _like || 1 == $skin_settings->productdetails->google_p1 || 1 == $skin_settings->productdetails->pinit} <div class="fb_buttons"> {if 1 == $skin_settings->productdetails->google_p1} <g:plusone size="medium"></g:plusone> 224 225 {if 1 == $skin_settings->productdetails->fb_like} <fb:like href="{route full=true function='product' key=$product->product->product_id pr oductName=$product->translation->name productId=$product->product->product_id}" send="false" layout="button_count" show_faces="true" wid th="110" font="tahoma"></fb:like> 226 {/if} + 227 + 228 {if 1 == $skin_settings->productdetails->pinit && $product->mainImage->unic_name} + 229 <a href="http://pinterest.com/pin/create/button/?url={route full=true function='product ' key=$product->product->product_id productName=$product->translation->name productId=$product->product->product_id}&media={imageUrl type='productGfx' width=$skin_settings->productdetails->imgwidth height=$skin_settings->productdetails->imgheight image=$product->mainI mage->unic_name fullurl=true}&description={$product->translation->name|escape}" count-layout="horizontal"><img src="//assets.pintere st.com/images/PinExt.png" title="Pin It" /></a> + 230 {/if} 231 </div> 232 {/if} 233 </td> 597 <script type="text/javascript" src="https://apis.google.com/js/plusone.js">{literal}{{/literal}lang: '{lang key='short'}'{literal}} {/literal}</script> 598 {/if} 599 + 600 {if 1 == $skin_settings->productdetails->pinit} + 601 <script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script> + 602 {/if} + 603 Copyright © 2013 Shoper. All rights reserved. Strona 4/8 604 605 606 </body> </html> Pliki .css styles/main.css 673 674 675 - 676 677 678 679 .main .box .boxhead h1 { font-size: 120%; font-weight: bold; word-break: break-all; word-wrap: break-word; } .main .box .innerbox em, 896 897 898 - 899 900 901 902 margin-bottom: 5px; font-size: 1.1em; font-weight: bold; word-break: break-all; word-wrap: break-word; } .main .innerbox ol.productlist { 906 907 908 - 909 910 911 912 .main .innerbox ol.productlist li { padding: 2px 0; color: #aaa; word-break: break-all; word-wrap: break-word; } .main .innerbox ol.productlist li em { 1375 line-height: 1.2em; 1376 padding: 1px 0 0 10px; 1377 clear: both; - 1378 word-break: break-all; 1379 word-wrap: break-word; 1380 } 1381 #box_menu .innerbox ul.standard li ul, #box_menu .innerbox ul.folded li ul { 2235 border-bottom: 4px solid #fff; 2236 } 2237 #box_register .innerbox tbody #address_type2 { - 2238 margin-left: 20px; + 2238 margin-left: 10px; Copyright © 2013 Shoper. All rights reserved. Strona 5/8 2239 } 2240 #box_register .singlebutton { 2241 background-image: none; 2650 2651 2652 - 2653 + 2653 2654 2655 2656 3935 3936 3937 + 3938 + 3939 + 3940 + 3941 + 3942 + 3943 + 3944 + 3945 + 3946 + 3947 + 3948 + 3949 + 3950 + 3951 + 3952 + 3953 + 3954 + 3955 + 3956 + 3957 + 3958 + 3959 display: none; } #box_basketaddress .innerbox tbody #address_type2 { margin-left: 20px; margin-left: 10px; } #box_basketaddress .innerbox hr { width: 90%; height: 28px; width: 16px; } .credit-card-container div { padding-top: 2px; padding-bottom: 2px; } .credit-card-container .card-number-input-container img { width: 14px; height: 14px; background: transparent url('../images/tick.png') 0 0 no-repeat; visibility: hidden; } .credit-card-container .card-number-input-container.valid img { visibility: visible; } .credit-card-container .card-icons-container { padding-top: 6px; } .credit-card-container .card-icons-container img { margin: 2px; } .credit-card-container .card-icons-container img.inactive { opacity: 0.2; } Pliki .js js/main.js 570 571 572 inputFileEvent : { selector : '.input .input-file', domready : function(el) { Copyright © 2013 Shoper. All rights reserved. Strona 6/8 - 573 - 574 - 575 - 576 + 573 + 574 + 575 + 576 + 577 + 578 + 579 + 580 + 581 + 582 + 583 + 584 + 585 + 586 + 587 + 588 + 589 + 590 + 591 + 592 + 593 + 594 + 595 + 596 + 597 + 598 + 599 + 600 + 601 + 602 + 603 + 604 + 605 + 606 + 607 + 608 + 609 610 - 611 - 612 + 575 + 576 + 577 + 578 + 579 + 580 var form = el.form, uploadInfo = new Element('span', { 'class' : 'loading-info none' }).inject(el.getParent('td')); var uploadInfo = new Element('span', { 'class' : 'loading-info none' }).inject(el.getParent('td')); $(el.form).addEvent('submit', (function(e) { this.removeClass('none'); }).bind(uploadInfo) ); } }, horizontalCategoriesFromList : { selector : 'body[id^=shop_category]', domready : function(el) { var id = el.get('id').replace('shop_category', '').toInt(); if(id > 0) { var hc = $('hcategory_' + id); if(!!hc) { hc.addClass('current'); hc.getElements('! li.parent').addClass('current_parent'); } } } }, horizontalCategoriesFromProduct : { selector : 'body[id^=shop_product]', domready : function(el) { var id = el.get('class').replace(/^.*shop_product_from_cat_(\d+).*$/, '$1').toInt(); if(id > 0) { var hc = $('hcategory_' + id); if(!!hc) { hc.addClass('current'); hc.getElements('! li.parent').addClass('current_parent'); } } } }, form.addEvent('submit', function(event) { uploadInfo.removeClass('none'); horizontalCurrentPage : { selector : '.menu .innermenu > ul > li > h3 > a', domready : function(el) { var href = el.get('href') + '/'; if(window.location.pathname && ( href == window.location.pathname || el.get('href') == window.location.pathname || Copyright © 2013 Shoper. All rights reserved. Strona 7/8 + 581 + 582 + 583 + 584 + 585 + 586 + 587 + 588 + 589 + 590 + 591 + 592 + 593 + 594 + 595 + 596 + 597 + 598 + 599 + 600 + 601 + 602 + 603 + 604 605 + 606 607 608 609 914 915 916 + 917 + 918 + 919 + 920 921 922 923 (href != this.urls.base && 0 == window.location.pathname.indexOf(href)) )) { el.getElement('! li').addClass('current'); } } }, boxCategoryParents : { selector : '#box_menu li.current ! li[id^=category]', domready : function(el) { el.addClass('current_parent'); } }, uploadFileLimit : { selector : 'input[type=file]', domready : function(el) { el.addEvent('change', function(e) { if(!!this.files && !!this.files[0]) { if(this.files[0].size > 25 * 1048576) { alert(this.Shop.get('lang.common.file_too_big').substitute({ size : 25 })); try { this.value = ''; } catch(e) { } } } }); el.Shop = this; } } }, return !!( $$('#box_productfull .loyalty_points .points').length ); } Shop.creditCard.condition = function() { return !!($$('form .credit-card-container').length); } Shop.useroptions.slider = { fadearrows : false, automove : 4000 Copyright © 2013 Shoper. All rights reserved. Strona 8/8