Ja, Änderungen wurden vorgenommen...
<?php/* -----------------------------------------------------------------------------------------
$Id: general.js.php 1262 2005-09-30 10:00:32Z mz $
XT-Commerce - community made shopping
http://www.(( Wir dulden keine kommerziellen Werbelinks - Bitte Forenregeln beachten! ))
Copyright (c) 2003 XT-Commerce
-----------------------------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/ // this javascriptfile get includes at the BOTTOM of every template page in shop // you can add your template specific js scripts here?><script src="
<?php echo 'templates/'.CURRENT_TEMPLATE
; ?>/javascript/jquery.js" type="text/javascript"></script>
<script src="
<?php echo 'templates/'.CURRENT_TEMPLATE
; ?>/javascript/thickbox.js" type="text/javascript"></script>
<!-- BOF - <Ben - 16.09.10> jquery sources für tabs einbinden auf Content Seiten-->
<?php if (strstr($PHP_SELF, FILENAME_CONTENT
)) { // lädt die Dateien nur aufContentSeiten
?><link rel="stylesheet" href="
<?php echo 'templates/'.CURRENT_TEMPLATE
;?>/javascript/jquery-ui.css" type="text/css" />
<script src="
<?php echo 'templates/'.CURRENT_TEMPLATE
; ?>/javascript/jquery.min.js"
type="text/javascript"></script>
<script src="
<?php echo 'templates/'.CURRENT_TEMPLATE
; ?>/javascript/jqueryui.
min.js" type="text/javascript"></script>
<?php}?><!-- EOF - <Ben - 16.09.10> jquery sources für tabs einbinden -->
<!--// BOF - web28 - 2010-07-09 - TABS/ACCORDION in product_info -->
<?phpif (strstr($PHP_SELF, FILENAME_PRODUCT_INFO
) || strstr($PHP_SELF, FILENAME_CONTENT
)) {?><script src="
<?php echo 'templates/'.CURRENT_TEMPLATE
; ?>/javascript/jquery-ui.js" type="text/javascript"></script>
<script type="text/javascript">
/* <![CDATA[ */
//Laden einer CSS Datei mit jquery
$.get("
<?php echo 'templates/'.CURRENT_TEMPLATE
; ?>"+"/css/javascript.css", function(css) {
$("head").append("<style type='text/css'>"+css+"<\/style>");
});
$(function() {
$("#tabbed_product_info").tabs();
$("#accordion_product_info").accordion({ autoHeight: false });
});
/*]]>*/
</script>
<script src="templates/
<?php echo CURRENT_TEMPLATE
; ?>/javascript/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="templates/
<?php echo CURRENT_TEMPLATE
; ?>/javascript/accordion.js" type="text/javascript"></script>
<script type="text/javascript">
<!--
ddaccordion.init({
headerclass: "cat_titel", //Shared CSS class name of headers group that are expandable
contentclass: "cat_items", //Shared CSS class name of contents group
revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click" or "mouseover
mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
collapseprev: true, //Collapse previous content (so only one open at any time)? true/false
defaultexpanded: [], //index of content(s) open by default [index1, index2, etc]. [] denotes no content
onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
animatedefault: false, //Should contents open by default be animated into view?
persiststate: true, //persist state of opened contents within browser session?
toggleclass: ["", "cat_active"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
togglehtml: ["", "", ""], //Additional HTML added to the header when it's collapsed and expanded, respectively ["position", "html1", "html2"] (see docs)
animatespeed: "slow", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
},
onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
//do nothing
}
});
//-->
</script>
<!-- BOF - <Ben - 16.09.10> jquery tabs aktivate -->
<script type="text/javascript">
$(document).ready(function() {
$("#tabs").tabs();
});
</script>
<!-- EOF - <Ben - 16.09.10> jquery tabs aktivate -->
<?php}?><?php// EOF - web28 - 2010-07-09 - TABS/ACCORDION in product_info ?><!-- Accordion
--><script src
="<?php echo 'templates/'.CURRENT_TEMPLATE; ?>/javascript/jquery.cookie.js" type
="text/javascript"></script><script src
="<?php echo 'templates/'.CURRENT_TEMPLATE; ?>/jquery.hoverIntent.minified.js" type
="text/javascript"></script><script src
="<?php echo 'templates/'.CURRENT_TEMPLATE; ?>/javascript/jquery.dcjqaccordion.2.7.min.js" type
="text/javascript"></script><script type
="text/javascript">$
(document
).ready
(function($
){ $
('#accordion-1').dcAccordion
({ eventType
: 'click', autoClose
: true, saveState
: true, disableLink
: true, speed
: 'slow', showCount
: true, autoExpand
: true, cookie
: 'dcjq-accordion-1', classExpand
: 'dcjq-current-parent' }); $
('#accordion-2').dcAccordion
({ eventType
: 'click', autoClose
: false, saveState
: true, disableLink
: true, speed
: 'fast', classActive
: 'test', showCount
: true }); $
('#accordion-3').dcAccordion
({ eventType
: 'click', autoClose
: false, saveState
: false, disableLink
: false, showCount
: false, speed
: 'slow' }); $
('#accordion-4').dcAccordion
({ eventType
: 'hover', autoClose
: true, saveState
: true, disableLink
: true, menuClose
: false, speed
: 'slow', showCount
: true }); $
('#accordion-5').dcAccordion
({ eventType
: 'hover', autoClose
: false, saveState
: true, disableLink
: true, menuClose
: true, speed
: 'fast', showCount
: true }); $
('#accordion-6').dcAccordion
({ eventType
: 'hover', autoClose
: false, saveState
: false, disableLink
: false, showCount
: false, menuClose
: true, speed
: 'slow' });});</script><!-- Accordion
-->