Changeset 1343488
- Timestamp:
- 02/04/2016 08:09:40 PM (10 years ago)
- Location:
- combo-slideshow
- Files:
-
- 108 added
- 8 edited
-
tags/1.92 (added)
-
tags/1.92/CHANGELOG (added)
-
tags/1.92/COPYING (added)
-
tags/1.92/combo-slideshow-plugin.php (added)
-
tags/1.92/combo-slideshow.php (added)
-
tags/1.92/css (added)
-
tags/1.92/css/bar (added)
-
tags/1.92/css/bar/arrows.png (added)
-
tags/1.92/css/bar/bar.css (added)
-
tags/1.92/css/bar/bullets.png (added)
-
tags/1.92/css/bar/loading.gif (added)
-
tags/1.92/css/dark (added)
-
tags/1.92/css/dark/arrows.png (added)
-
tags/1.92/css/dark/bullets.png (added)
-
tags/1.92/css/dark/dark.css (added)
-
tags/1.92/css/dark/loading.gif (added)
-
tags/1.92/css/default (added)
-
tags/1.92/css/default/arrows.png (added)
-
tags/1.92/css/default/bullets.png (added)
-
tags/1.92/css/default/default.css (added)
-
tags/1.92/css/default/loading.gif (added)
-
tags/1.92/css/gallery-css.php (added)
-
tags/1.92/css/light (added)
-
tags/1.92/css/light/arrows.png (added)
-
tags/1.92/css/light/bullets.png (added)
-
tags/1.92/css/light/light.css (added)
-
tags/1.92/css/light/loading.gif (added)
-
tags/1.92/css/nivo-slider.css (added)
-
tags/1.92/css/orman (added)
-
tags/1.92/css/orman/arrows.png (added)
-
tags/1.92/css/orman/bullets.png (added)
-
tags/1.92/css/orman/loading.gif (added)
-
tags/1.92/css/orman/orman.css (added)
-
tags/1.92/css/orman/readme.txt (added)
-
tags/1.92/css/orman/ribbon.png (added)
-
tags/1.92/css/orman/slider.png (added)
-
tags/1.92/css/pascal (added)
-
tags/1.92/css/pascal/bullets.png (added)
-
tags/1.92/css/pascal/controlnav.png (added)
-
tags/1.92/css/pascal/featured.png (added)
-
tags/1.92/css/pascal/loading.gif (added)
-
tags/1.92/css/pascal/pascal.css (added)
-
tags/1.92/css/pascal/readme.txt (added)
-
tags/1.92/css/pascal/ribbon.png (added)
-
tags/1.92/css/pascal/slider.png (added)
-
tags/1.92/images (added)
-
tags/1.92/images/arrows.png (added)
-
tags/1.92/images/bullets.png (added)
-
tags/1.92/images/left-rd.png (added)
-
tags/1.92/images/left.gif (added)
-
tags/1.92/images/loading.gif (added)
-
tags/1.92/images/right-rd.png (added)
-
tags/1.92/images/right.gif (added)
-
tags/1.92/js (added)
-
tags/1.92/js/jquery.nivo.slider.js (added)
-
tags/1.92/js/moo (added)
-
tags/1.92/js/moo/CSSAnimation.MooTools.js (added)
-
tags/1.92/js/moo/CSSAnimation.MooTools.uncomp.js (added)
-
tags/1.92/js/moo/CSSAnimation.js (added)
-
tags/1.92/js/moo/CSSAnimation.uncomp.js (added)
-
tags/1.92/js/moo/Loop.js (added)
-
tags/1.92/js/moo/Loop.uncomp.js (added)
-
tags/1.92/js/moo/SlideShow.CSS.js (added)
-
tags/1.92/js/moo/SlideShow.CSS.uncomp.js (added)
-
tags/1.92/js/moo/SlideShow.js (added)
-
tags/1.92/js/moo/SlideShow.uncomp.js (added)
-
tags/1.92/js/moo/mootools-core-1.3.2-full-nocompat-yc.js (added)
-
tags/1.92/js/moo/mootools-more-1.3.2.1-yc.js (added)
-
tags/1.92/js/moo/mootools-more-1.3.2.1.js (added)
-
tags/1.92/js/tinymce (added)
-
tags/1.92/js/tinymce/dialog.php (added)
-
tags/1.92/js/tinymce/editor_plugin.js (added)
-
tags/1.92/js/tinymce/gallery.png (added)
-
tags/1.92/js/tinymce/langs (added)
-
tags/1.92/js/tinymce/langs/en.js (added)
-
tags/1.92/js/tinymce/langs/it.js (added)
-
tags/1.92/languages (added)
-
tags/1.92/languages/combo-slideshow-en_US.mo (added)
-
tags/1.92/languages/combo-slideshow-en_US.po (added)
-
tags/1.92/languages/combo-slideshow-it_IT.mo (added)
-
tags/1.92/languages/combo-slideshow-it_IT.po (added)
-
tags/1.92/languages/combo-slideshow.pot (added)
-
tags/1.92/readme.txt (added)
-
tags/1.92/uninstall.php (added)
-
tags/1.92/views (added)
-
tags/1.92/views/admin (added)
-
tags/1.92/views/admin/err-top.php (added)
-
tags/1.92/views/admin/metaboxes (added)
-
tags/1.92/views/admin/metaboxes/settings-general.php (added)
-
tags/1.92/views/admin/metaboxes/settings-linksimages.php (added)
-
tags/1.92/views/admin/metaboxes/settings-slides.php (added)
-
tags/1.92/views/admin/metaboxes/settings-styles.php (added)
-
tags/1.92/views/admin/metaboxes/settings-submit.php (added)
-
tags/1.92/views/admin/msg-top.php (added)
-
tags/1.92/views/admin/paginate.php (added)
-
tags/1.92/views/admin/settings.php (added)
-
tags/1.92/views/admin/template.php (added)
-
tags/1.92/views/default (added)
-
tags/1.92/views/default/gallery.php (added)
-
tags/1.92/views/default/jquery-gallery.php (added)
-
tags/1.92/views/default/jquery-script.php (added)
-
tags/1.92/views/default/mootools-gallery.php (added)
-
tags/1.92/views/default/mootools-script.php (added)
-
trunk/CHANGELOG (modified) (1 diff)
-
trunk/combo-slideshow-plugin.php (modified) (5 diffs)
-
trunk/combo-slideshow-plugin.php.bak (added)
-
trunk/combo-slideshow.php (modified) (3 diffs)
-
trunk/js/jquery.nivo.slider.js (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/views/admin/metaboxes/settings-general.php (modified) (1 diff)
-
trunk/views/admin/metaboxes/settings-styles.php (modified) (1 diff)
-
trunk/views/default/gallery.php (modified) (2 diffs)
-
trunk/views/default/jquery-gallery.php (added)
-
trunk/views/default/jquery-script.php (added)
-
trunk/views/default/mootools-gallery.php (added)
-
trunk/views/default/mootools-script.php (added)
Legend:
- Unmodified
- Added
- Removed
-
combo-slideshow/trunk/CHANGELOG
r1105456 r1343488 1 1 Combo Slideshow Changelog 2 3 = 1.92 (2016.02.04) = 4 * Bugfix: script inclusion paths 5 * Bugfix: Moo script double dollar class selector 6 * File structure & gallery view template optimization 2 7 3 8 = 1.91 (2015.03.05) = -
combo-slideshow/trunk/combo-slideshow-plugin.php
r1105456 r1343488 1 1 <?php 2 2 class CMBSLD_GalleryPlugin { 3 var $version = '1.9 1';3 var $version = '1.92'; 4 4 var $plugin_name; 5 5 var $plugin_base; … … 478 478 wp_enqueue_script('common'); 479 479 wp_enqueue_script('wp-lists'); 480 wp_enqueue_script('postbox'); 481 480 wp_enqueue_script('postbox'); 482 481 wp_enqueue_script('settings-editor', '/' . CMBSLD_PLUGIN_URL . 'js/settings-editor.js', array('jquery'), '1.0'); 483 482 } … … 499 498 if($js_framework == 'mootools') { 500 499 501 wp_register_script('moocore', '/' .CMBSLD_PLUGIN_URL . 'js/moo/mootools-core-1.3.2-full-nocompat-yc.js', false, '1.3');502 wp_register_script('moomore', '/' .CMBSLD_PLUGIN_URL . 'js/moo/mootools-more-1.3.2.1-yc.js', false, '1.3');503 wp_enqueue_script('moocore');504 wp_enqueue_script('moomore');505 wp_enqueue_script('moo_loop', '/' .CMBSLD_PLUGIN_URL . 'js/moo/Loop.js', array('moocore','moomore'), '1.3');506 wp_enqueue_script('moo_slideshow', '/' .CMBSLD_PLUGIN_URL . 'js/moo/SlideShow.js', array('moocore','moomore','moo_loop'), '1.3');507 if($general['csstransform'] == 'Y') {508 wp_enqueue_script('cssanimation', $this -> plugin_name, '/' .CMBSLD_PLUGIN_URL . 'js/moo/CSSAnimation.js', false, '1.3');509 wp_enqueue_script('moo_cssanimation', $this -> plugin_name, '/' .CMBSLD_PLUGIN_URL . 'js/moo/CSSAnimation.MooTools.js', array('moocore','moomore','cssanimation'), '1.3');510 wp_enqueue_script('slideshow_css', $this -> plugin_name, '/' .CMBSLD_PLUGIN_URL . 'js/moo/SlideShow.CSS.js', array('moocore','moomore','moo_slideshow','moo_cssanimation'), '1.3');511 }500 wp_register_script('moocore', CMBSLD_PLUGIN_URL . 'js/moo/mootools-core-1.3.2-full-nocompat-yc.js', false, '1.3'); 501 wp_register_script('moomore', CMBSLD_PLUGIN_URL . 'js/moo/mootools-more-1.3.2.1-yc.js', false, '1.3'); 502 wp_enqueue_script('moocore'); 503 wp_enqueue_script('moomore'); 504 wp_enqueue_script('moo_loop', CMBSLD_PLUGIN_URL . 'js/moo/Loop.js', array('moocore','moomore'), '1.3'); 505 wp_enqueue_script('moo_slideshow', CMBSLD_PLUGIN_URL . 'js/moo/SlideShow.js', array('moocore','moomore','moo_loop'), '1.3'); 506 if($general['csstransform'] == 'Y') { 507 wp_enqueue_script('cssanimation', $this -> plugin_name, CMBSLD_PLUGIN_URL . 'js/moo/CSSAnimation.js', false, '1.3'); 508 wp_enqueue_script('moo_cssanimation', $this -> plugin_name, CMBSLD_PLUGIN_URL . 'js/moo/CSSAnimation.MooTools.js', array('moocore','moomore','cssanimation'), '1.3'); 509 wp_enqueue_script('slideshow_css', $this -> plugin_name, CMBSLD_PLUGIN_URL . 'js/moo/SlideShow.CSS.js', array('moocore','moomore','moo_slideshow','moo_cssanimation'), '1.3'); 510 } 512 511 513 512 } elseif ($js_framework == 'jquery'){ 514 513 515 wp_enqueue_script('jquery'); 516 517 wp_enqueue_script($this -> plugin_name, CMBSLD_PLUGIN_URL . 'js/jquery.nivo.slider.js', array('jquery'), '3.2' ); 518 519 $links = $this -> get_option('links'); 520 if ($links['imagesbox'] == "T") { 521 add_thickbox(); 522 } 514 wp_enqueue_script('jquery'); 515 wp_enqueue_script($this -> plugin_name, CMBSLD_PLUGIN_URL . 'js/jquery.nivo.slider.js', array('jquery'), '3.2' ); 516 $links = $this -> get_option('links'); 517 if ($links['imagesbox'] == "T") { 518 add_thickbox(); 519 } 523 520 524 521 } … … 880 877 } 881 878 if ($jsframe == 'jquery'){ 882 $append .= "<script type='text/javascript'> 883 jQuery(window).load(function() { 884 jQuery('.ngslideshow').nivoSlider({ 885 effect:'". $wpns_effect ."', 886 slices:". $wpns_slices .", 887 animSpeed:". $fadespeed .", // Slide transition speed 888 pauseTime:". $autospeed .", // Interval 889 startSlide:0, //Set starting Slide (0 index)"; 890 if ($navigation=="Y") 891 $append .= "directionNav:true, //Next & Prev 892 "; 893 else 894 $append .= "directionNav:false, 895 "; 896 /* 897 if ($navhover=="Y") 898 $append .= "directionNavHide:true, //Only show on hover 899 "; 900 else 901 $append .= "directionNavHide:false, 902 "; 903 */ 904 if ($navhover=="Y") 905 $append .= "afterLoad: function(){ 906 // return the useful on-hover display of nav arrows 907 jQuery('.nivo-directionNav', jQuery('#ngslideshow-".$combo_id."')).hide(); 908 jQuery('#ngslideshow-".$combo_id."').hover(function(){ jQuery('.nivo-directionNav', jQuery(this)).show(); }, function(){ jQuery('.nivo-directionNav', jQuery(this)).hide(); }); 909 },"; 910 else 911 $append .= " 912 afterLoad: function(){}, //Triggers when slider has loaded 913 "; 914 915 if ($controlnav=="Y" || $thumbnails == "Y") 916 $append .= "controlNav:true, //1,2,3... 917 "; 918 else 919 $append .= "controlNav:false, 920 "; 921 if ($thumbnails == "Y") 922 $append .= "controlNavThumbs:true, 923 controlNavThumbsFromRel:true, //Use image rel for thumbs 924 "; 925 else 926 $append .= "controlNavThumbs:false, //Use thumbnails for Control Nav 927 controlNavThumbsFromRel:false, //Use image rel for thumbs 928 "; 929 930 $append .= "controlNavThumbsSearch: '.jpg', //Replace this with... 931 controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src 932 "; 933 if ($keyboardnav=="Y") 934 $append .= "keyboardNav:true, //Use left & right arrows 935 "; 936 else 937 $append .= "keyboardNav:false, 938 "; 939 940 if ($pausehover=="Y") 941 $append .= "pauseOnHover:true, //Stop animation while hovering 942 "; 943 else 944 $append .= "pauseOnHover:false, 945 "; 946 947 if ($autoslide=="Y") 948 $append .= "manualAdvance:false, //Force manual transitions 949 "; 950 else 951 $append .= "manualAdvance:true, 952 "; 953 954 $append .= "captionOpacity:".round(($captionopacity/100), 1).", // Universal caption opacity 955 beforeChange: function(){}, 956 afterChange: function(){}, 957 slideshowEnd: function(){}, //Triggers after all slides have been shown 958 lastSlide: function(){}, //Triggers when last slide is shown 959 }); 960 }); 961 "; 962 if ($thumbnails=="Y") 963 $append .= "jQuery('#ngslideshow-".$combo_id."').addClass('controlnav-thumbs'); 964 jQuery('#ngslideshow-".$combo_id." .nivo-controlNav').css('overflow-x','hidden'); 965 var thumbcw".$combo_id." = jQuery('#ngslideshow-".$combo_id." .nivo-controlNavScroll').width(); 966 if(thumbcw".$combo_id.">".$width.") { 967 jQuery.fn.loopMove = function(direction, props, dur, eas){ 968 if( this.data('loop') == true ){ 969 if((parseInt(jQuery(this).css('left').replace('px',''))>-thumbcw".$combo_id."+".$width." && direction == true) || (direction == false && parseInt(jQuery(this).css('left').replace('px',''))<=0)) 970 jQuery(this).animate( props, dur, eas, function(){ 971 if( jQuery(this).data('loop') == true ) jQuery(this).loopMove(direction, props, dur, eas); 972 }); 973 } 974 return this; // Don't break the chain 975 } 976 jQuery('#ngslideshow-".$combo_id." .nivo-directionNav a.nivo-nextNav').hover(function() { 977 if(parseInt(jQuery('#ngslideshow-".$combo_id." .nivo-controlNavScroll').css('left').replace('px',''))>-thumbcw".$combo_id."+".$width." ) 978 jQuery('#ngslideshow-".$combo_id." .nivo-controlNavScroll').data('loop', true).stop().loopMove(true, {left: '-=5px'}, 10); 979 }, function() { 980 jQuery('#ngslideshow-".$combo_id." .nivo-controlNavScroll').data('loop', false).stop(); 981 }); 982 jQuery('#ngslideshow-".$combo_id." .nivo-directionNav a.nivo-prevNav').hover(function() { 983 if(parseInt(jQuery('#ngslideshow-".$combo_id." .nivo-controlNavScroll').css('left').replace('px',''))<=0) 984 jQuery('#ngslideshow-".$combo_id." .nivo-controlNavScroll').data('loop', true).stop().loopMove(false, { left: '+=5px'}, 10); 985 }, function() { 986 jQuery('#ngslideshow-".$combo_id." .nivo-controlNavScroll').data('loop', false).stop(); 987 }); 988 989 jQuery('#ngslideshow-".$combo_id." .nivo-directionNav a').click(function() { 990 jQuery('#ngslideshow-".$combo_id." .nivo-controlNavScroll').stop(); 991 var thumbOffset".$combo_id." = thumbcw".$combo_id."-".$width."; 992 var currentPos".$combo_id." = parseInt(jQuery('#ngslideshow-".$combo_id." .nivo-controlNavScroll').css('left').replace('px','')); 993 var next = jQuery('#ngslideshow-".$combo_id." .nivo-controlNavScroll a.active').next(); 994 var prev = jQuery('#ngslideshow-".$combo_id." .nivo-controlNavScroll a.active').prev(); 995 if(jQuery(this).hasClass('nivo-nextNav')){ 996 if(jQuery('#ngslideshow-".$combo_id." .nivo-controlNavScroll a.active').next().length != 0) 997 var active".$combo_id." = jQuery('#ngslideshow-".$combo_id." .nivo-controlNavScroll a.active').next().position().left; 998 else 999 var active".$combo_id." = jQuery('#ngslideshow-".$combo_id." .nivo-controlNavScroll a').first().position().left; 1000 1001 }else if(jQuery(this).hasClass('nivo-prevNav')){ 1002 if(jQuery('#ngslideshow-".$combo_id." .nivo-controlNavScroll a.active').prev().length != 0) 1003 var active".$combo_id." = jQuery('#ngslideshow-".$combo_id." .nivo-controlNavScroll a.active').prev().position().left; 1004 else 1005 var active".$combo_id." = jQuery('#ngslideshow-".$combo_id." .nivo-controlNavScroll a').last().position().left; 1006 1007 } 1008 if(active".$combo_id." < thumbOffset".$combo_id."){ 1009 jQuery('#ngslideshow-".$combo_id." .nivo-controlNavScroll').animate({ 1010 left: - active".$combo_id." 1011 }, 2*(Math.abs(currentPos".$combo_id."-active".$combo_id."))); 1012 }else { 1013 jQuery('#ngslideshow-".$combo_id." .nivo-controlNavScroll').animate({ 1014 left: - thumbOffset".$combo_id." 1015 }, 2*(Math.abs(currentPos".$combo_id."-thumbOffset".$combo_id."))); 1016 } 1017 }); 1018 } 1019 "; 1020 $append .= "</script> 1021 "; 1022 879 require CMBSLD_PLUGIN_DIR . 'views/default/jquery-script.php'; 1023 880 }elseif ($jsframe == 'mootools'){ 1024 $slideshow_id = get_the_ID(); 1025 $append .= "<script type='text/javascript'> 1026 document.addEvent('domready', function(){ 1027 "; 1028 if ($controlnav=="Y" || $thumbnails=="Y" ){ 1029 $append .= "var navItems = $('ngslideshow-".$slideshow_id."').getElements('.nivo-controlNav a.nivo-control'); 1030 var navMenu = $('ngslideshow-".$slideshow_id."').getElement('div.nivo-controlNav'); 1031 navMenu.inject($('ngslideshow-".$slideshow_id."'),'after'); 1032 //navMenu.setStyle('bottom',0); 1033 navItems[0].addClass('active'); 1034 "; 1035 } 1036 $append .= "$('ngslideshow-".$slideshow_id."').addClass('nivoSlider'); 1037 $('ngslideshow-".$slideshow_id."').setStyle('overflow','hidden'); 1038 $('.slider-wrapper .nivoSlider img').setStyle('display','block'); 1039 $('ngslideshow-".$slideshow_id."').getParent().setStyle('position','relative'); 1040 "; 1041 if ($navigation=="Y"){ 1042 $append .= "var directionNav = $('ngslideshow-".$slideshow_id."').getElement('div.nivo-directionNav'); 1043 directionNav.inject($('ngslideshow-".$slideshow_id."'),'after').setStyle('display','none').getElements().setStyles({display:'block', 'z-index':9}); 1044 "; 1045 if ($navhover=="Y"){ 1046 $append .= "directionNav.setStyle('display','none'); 1047 $('ngslideshow-".$slideshow_id."').getParent().addEvents({ 1048 mouseover: function(){ 1049 this.getElements('div.nivo-directionNav').setStyle('display','block');"; 1050 if ($pausehover=="Y") 1051 $append .= "comboSlideShow.pause();"; 1052 $append .= "}, 1053 mouseout: function(){ 1054 this.getParent().getElements('div.nivo-directionNav').setStyle('display','none');"; 1055 if ($pausehover=="Y") 1056 $append .= "comboSlideShow.play();"; 1057 $append .= "}, 1058 }); 1059 "; 1060 }else{ 1061 $append .= "directionNav.setStyle('display','block'); 1062 "; 1063 if ($pausehover=="Y") 1064 $append .= "$('ngslideshow-".$slideshow_id."').getParent().addEvents({ 1065 mouseover: function(){ 1066 comboSlideShow.pause(); 1067 }, 1068 mouseout: function(){ 1069 comboSlideShow.play(); 1070 } 1071 }); 1072 "; 1073 } 1074 } 1075 if ($information == "Y"){ 1076 $append .= "var capWrap = $('ngslideshow-".$slideshow_id."').getElement('div.nivo-caption'); 1077 capWrap.setStyles({ width: $('ngslideshow-".$slideshow_id."').getSize().x, 1078 display: 'block', 1079 // height: '1.6em', 1080 // margin: $('ngslideshow-".$slideshow_id."').getStyle('margin'), 1081 bottom: 0 1082 }); 1083 capWrap.inject($('ngslideshow-".$slideshow_id."'),'after'); 1084 var slideCaptions = $$('div.nivo-html-caption').setStyles({display: 'block', 1085 opacity: 0, 1086 visibility: 'hidden', 1087 position:'absolute', 1088 'z-index': 9, 1089 top:0, 1090 left:0, 1091 width: $('ngslideshow-".$slideshow_id."').getSize().x 1092 // width: '". $styles['width'] ."px' 1093 }); 1094 slideCaptions.inject(capWrap,'inside'); 1095 slideCaptions[0].fade('in'); 1096 "; 1097 } elseif ($information == "N"){ 1098 $append .= "var slideCaptions = $$('div.nivo-html-caption').setStyle('display','none'); 1099 "; 1100 } 1101 $append .= "var slideItems = $('ngslideshow-".$slideshow_id."').getElements('a').setStyle('position','absolute'); 1102 var comboSlideShow = new SlideShow($('ngslideshow-".$slideshow_id."'), { 1103 "; 1104 if ($csstransform!="Y") 1105 $append .= "transition: '".$wprfss_effect."',"; 1106 else 1107 $append .= "transition: '".$wprfss_cssfx."',"; 1108 $append .= "delay: '".$autospeed."', 1109 duration: '".$fadespeed."',"; 1110 if ($autoslide=="Y") 1111 $append .= "autoplay: true,"; 1112 else 1113 $append .= "autoplay: false,"; 1114 $append .= "initialSlideIndex: 0,"; 1115 if ($controlnav=="Y" || $information == "Y"){ 1116 $append .= "onShow: function(data){ 1117 "; 1118 if ($information == "Y"){ 1119 $append .= " slideCaptions[data.previous.index].removeClass('active'); 1120 slideCaptions[data.next.index].addClass('active'); 1121 slideCaptions[data.previous.index].fade('out'); 1122 slideCaptions[data.next.index].fade('in'); 1123 "; 1124 } 1125 if ($controlnav == "Y"){ 1126 $append .= "navItems[data.previous.index].removeClass('active'); 1127 navItems[data.next.index].addClass('active'); 1128 "; 1129 } 1130 $append .= "}, 1131 "; 1132 } 1133 $append .= " selector: 'a' 1134 }); 1135 $('ngslideshow-".$slideshow_id."').setStyle('background-image','none'); 1136 "; 1137 if ($csstransform=="Y") 1138 $append .= "comboSlideShow.useCSS(); 1139 "; 1140 if ($navigation=="Y") 1141 $append .= "directionNav.getElement('.nivo-prevNav').addEvent('click', function(event){ 1142 event.stop(); 1143 comboSlideShow.show('previous'); 1144 }); 1145 directionNav.getElement('.nivo-nextNav').addEvent('click', function(event){ 1146 event.stop(); 1147 comboSlideShow.show('next'); 1148 }); 1149 "; 1150 if ($controlnav == "Y"){ 1151 $append .= "navItems.each(function(item, index){"; 1152 if ($styles['controlnumbers']=="Y"){ 1153 $append .= "item.set('text',index+1); 1154 item.set('rel',index+1);"; 1155 } 1156 // click a nav item ... 1157 $append .= "item.addEvent('click', function(event){ 1158 event.stop(); 1159 // var transition = (comboSlideShow.index < index) ? 'pushLeft' : 'pushRight'; 1160 // comboSlideShow.show(index, {transition: transition}); 1161 comboSlideShow.show(index); 1162 }); 1163 }); 1164 "; 1165 if ($wprfss_tips=="Y"){ 1166 $append .= "new Tips(navItems, { 1167 fixed: true, 1168 text: '', 1169 offset: { 1170 x: -100, 1171 y: 20 1172 } 1173 });"; 1174 } 1175 1176 } 1177 $append .= "}); 1178 </script>"; 881 require CMBSLD_PLUGIN_DIR . 'views/default/mootools-script.php'; 1179 882 } 1180 883 $append .= '<div id="ngslideshow-'.get_the_ID().'" class="ngslideshow">'; … … 1183 886 //$full_slide_href = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full', false); 1184 887 $thumbnail_link = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'thumbnail', false); 1185 if ( CMBSLD_PRO )1186 require CMBSLD_PLUGIN_DIR . 'pro/image_tall_frompost.php';1187 888 if ($thumbnails == "Y") 1188 889 $thumbrel = 'rel="'. $thumbnail_link[0] .'" '; -
combo-slideshow/trunk/combo-slideshow.php
r1105456 r1343488 6 6 Author URI: http://www.3dolab.net 7 7 Description: The features of the best slideshow javascript effects and WP plugins. Blog posts highlights, image gallery, custom slides! 8 Version: 1.9 18 Version: 1.92 9 9 */ 10 10 if ( ! defined( 'DS' ) ) 11 11 define('DS', DIRECTORY_SEPARATOR); 12 12 if ( ! defined( 'CMBSLD_VERSION' ) ) 13 define( 'CMBSLD_VERSION', '1.9 1' );13 define( 'CMBSLD_VERSION', '1.92' ); 14 14 if ( ! defined( 'CMBSLD_PLUGIN_BASENAME' ) ) 15 15 define( 'CMBSLD_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); … … 27 27 //define( 'CMBSLD_UPLOAD_URL', get_bloginfo('wpurl')."/wp-content/uploads/". CMBSLD_PLUGIN_NAME ); 28 28 endif; 29 if ( ! file_exists( CMBSLD_PLUGIN_DIR . 'pro/' ) )30 define( 'CMBSLD_PRO', false );31 else32 define( 'CMBSLD_PRO', true );33 29 34 30 require_once CMBSLD_PLUGIN_DIR . 'combo-slideshow-plugin.php'; … … 409 405 if (empty($h) && !empty($height)) 410 406 $h = $height; 411 /*412 if ( ((! empty($width)) || (! empty($height))) ) {413 if (CMBSLD_PRO)414 require CMBSLD_PLUGIN_DIR . 'pro/custom_sizing.php';415 }416 */417 407 $content = $this -> get_slide_content($post, $custom, $w, $h, $exclude, $include, $size, $limit); 418 408 if ($output) { echo $content; } else { return $content; } -
combo-slideshow/trunk/js/jquery.nivo.slider.js
r1105456 r1343488 96 96 if(vars.currentImage.attr('title') != '' && vars.currentImage.attr('title') != undefined){ 97 97 var title = vars.currentImage.attr('title'); 98 //if(title.substr(0,1) == '#') 99 title = $('#'+title).html(); 98 if(title.substr(0,1) == '#') title = $(title).html(); 100 99 101 100 if(nivoCaption.css('display') == 'block'){ -
combo-slideshow/trunk/readme.txt
r1105456 r1343488 5 5 Requires at least: 2.8 6 6 Tested up to: 4.0.1 7 Stable tag: 1.9 17 Stable tag: 1.92 8 8 Featuring a slideshow javascript with multiple settings and transition effects: 9 9 blog highlights, post types & taxonomies, galleries, custom slides and more! … … 119 119 == Changelog == 120 120 121 = 1.92 (2016.02.04) = 122 * Bugfix: script inclusion paths 123 * Bugfix: Moo script double dollar class selector 124 * File structure & gallery view template optimization 125 121 126 = 1.91 (2015.03.05) = 122 127 * Added Auto slider post type general option -
combo-slideshow/trunk/views/admin/metaboxes/settings-general.php
r1105456 r1343488 115 115 $taxonomies = get_taxonomies($tax_args, 'objects'); 116 116 //echo '<option value="">'.__('select a category', $this -> plugin_name).'</option>'; 117 foreach ($taxonomies as $taxonomy ) {118 $option = '<option value="'.$taxonomy ->rewrite['slug'].'"';119 if (in_array($taxonomy ->rewrite['slug'],$tax)||$tax == $taxonomy->rewrite['slug'])117 foreach ($taxonomies as $taxonomy => $taxobj) { 118 $option = '<option value="'.$taxonomy.'"'; 119 if (in_array($taxonomy,$tax)||$tax == $taxonomy) 120 120 $option .= ' selected="selected">'; 121 121 else { $option .= '>'; } 122 $option .= $taxo nomy->name;122 $option .= $taxobj->name; 123 123 $option .= '</option>'; 124 124 echo $option; -
combo-slideshow/trunk/views/admin/metaboxes/settings-styles.php
r1031090 r1343488 19 19 <span class="howto"><?php _e('Should images be resized proportionally to fit the width of the slideshow area', $this -> plugin_name); ?></span> 20 20 </td> 21 </tr> 22 <?php if ( CMBSLD_PRO ) { $resize2 = "type='radio'"; } else { 23 //$resize2 = "type='radio' disabled"; 24 $resize2 = "type='radio'"; 25 //$styles['resizeimages2'] = "N"; 26 }?> 21 </tr> 27 22 <tr> 28 23 <th><label for="styles.resizeimages2"><?php _e('Resize Images (height)', $this -> plugin_name); ?></label></th> -
combo-slideshow/trunk/views/default/gallery.php
r1031090 r1343488 147 147 <div class="slider-wrapper"> 148 148 <?php endif; ?> 149 <?php $append=''; ?> 149 150 <?php if ($jsframe == 'jquery') : ?> 150 <script type="text/javascript"> 151 jQuery(window).load(function() { 152 // jQuery('.ngslideshow').nivoSlider({ 153 jQuery('#ngslideshow-<?php echo $combo_id; ?>').nivoSlider({ 154 effect:'<?php echo $wpns_effect; ?>', 155 slices:<?php echo $wpns_slices; ?>, 156 animSpeed:<?php echo $fadespeed; ?>, // Slide transition speed 157 pauseTime:<?php echo $autospeed; ?>, // Interval 158 startSlide:0, //Set starting Slide (0 index) 159 <?php if ($navigation=="Y") : ?> 160 directionNav:true, //Next & Prev 161 <?php else : ?> 162 directionNav:false, 163 <?php endif; ?> 164 <?php if ($navhover=="Y") : ?> 165 //ex directionNavHide:true, Only show on hover 166 afterLoad: function(){ 167 // return the useful on-hover display of nav arrows 168 jQuery(".nivo-directionNav", jQuery("#ngslideshow-<?php echo $combo_id; ?>")).hide(); 169 jQuery("#ngslideshow-<?php echo $combo_id; ?>").hover(function(){ jQuery(".nivo-directionNav", jQuery(this)).fadeIn(200); }, function(){ jQuery(".nivo-directionNav", jQuery(this)).fadeOut(200); }); 170 }, 171 <?php else : ?> 172 //ex directionNavHide:false, 173 afterLoad: function(){}, //Triggers when slider has loaded 174 <?php endif; ?> 175 <?php if ($controlnav=="Y" || $thumbnails_temp == "Y") : ?> 176 controlNav:true, //1,2,3... 177 <?php else : ?> 178 controlNav:false, 179 <?php endif; ?> 180 <?php if ($thumbnails_temp == "Y") : ?> 181 controlNavThumbs:true, 182 controlNavThumbsFromRel:true, //Use image rel for thumbs 183 controlNavThumbsScroll:true, 184 <?php else : ?> 185 controlNavThumbs:false, //Use thumbnails for Control Nav 186 controlNavThumbsFromRel:false, //Use image rel for thumbs 187 <?php endif; ?> 188 controlNavThumbsSearch: '.jpg', //Replace this with... 189 controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src 190 <?php if ($keyboardnav=="Y") : ?> 191 keyboardNav:true, //Use left & right arrows 192 <?php else : ?> 193 keyboardNav:false, 194 <?php endif; ?> 195 <?php if ($pausehover=="Y") : ?> 196 pauseOnHover:true, //Stop animation while hovering 197 <?php else : ?> 198 pauseOnHover:false, 199 <?php endif; ?> 200 <?php if ($autoslide_temp=="Y") : ?> 201 manualAdvance:false, //Force manual transitions 202 <?php else : ?> 203 manualAdvance:true, 204 <?php endif; ?> 205 captionOpacity:<?php echo round(($captionopacity/100), 1); ?>, // Universal caption opacity 206 beforeChange: function(){}, 207 afterChange: function(){}, 208 slideshowEnd: function(){}, //Triggers after all slides have been shown 209 lastSlide: function(){}, //Triggers when last slide is shown 210 }); 211 <?php if (isset($params['frompost']) && $params['frompost'] == true && $attachments) : ?> 212 jQuery('#ngslideshow-<?php echo $combo_id; ?>').width(<?php echo $width; ?>); 213 <?php endif; ?> 214 215 <?php if ($thumbnails_temp == "Y") : ?> 216 jQuery('#ngslideshow-<?php echo $combo_id; ?>').addClass('controlnav-thumbs'); 217 jQuery('#ngslideshow-<?php echo $combo_id; ?> .nivo-controlNav').css('overflow-x','hidden'); 218 var thumbcw<?php echo $combo_id; ?> = jQuery('#ngslideshow-<?php echo $combo_id; ?> .nivo-controlNavScroll').width(); 219 //var thumbtw<?php echo $combo_id; ?> = jQuery('#ngslideshow-<?php echo $combo_id; ?> .nivo-controlNavScroll a.nivo-control img').width(); 220 //var margin<?php echo $combo_id; ?> = parseInt(jQuery('#ngslideshow-<?php echo $combo_id; ?> .nivo-controlNavScroll a.nivo-control img').css('margin-right').replace('px','')); 221 if(thumbcw<?php echo $combo_id; ?>><?php echo $width; ?>) { 222 jQuery.fn.loopMove = function(direction, props, dur, eas){ 223 if( this.data('loop') == true ){ 224 //if((parseInt(jQuery(this).css('left').replace('px',''))>-thumbcw<?php echo $combo_id; ?>+thumbtw<?php echo $combo_id; ?>+margin<?php echo $combo_id; ?> && direction == true) || (direction == false && parseInt(jQuery(this).css('left').replace('px',''))<=0)) 225 if((parseInt(jQuery(this).css('left').replace('px',''))>-thumbcw<?php echo $combo_id; ?>+<?php echo $width; ?> && direction == true) || (direction == false && parseInt(jQuery(this).css('left').replace('px',''))<=0)) 226 jQuery(this).animate( props, dur, eas, function(){ 227 if( jQuery(this).data('loop') == true ) jQuery(this).loopMove(direction, props, dur, eas); 228 }); 229 } 230 return this; // Don't break the chain 231 } 232 jQuery('#ngslideshow-<?php echo $combo_id; ?> .nivo-directionNav a.nivo-nextNav').hover(function() { 233 if(parseInt(jQuery('#ngslideshow-<?php echo $combo_id; ?> .nivo-controlNavScroll').css('left').replace('px',''))>-thumbcw<?php echo $combo_id; ?>+<?php echo $width; ?> ) 234 jQuery('#ngslideshow-<?php echo $combo_id; ?> .nivo-controlNavScroll').data('loop', true).stop().loopMove(true, {left: '-=5px'}, 10); 235 }, function() { 236 jQuery('#ngslideshow-<?php echo $combo_id; ?> .nivo-controlNavScroll').data('loop', false).stop(); 237 }); 238 jQuery('#ngslideshow-<?php echo $combo_id; ?> .nivo-directionNav a.nivo-prevNav').hover(function() { 239 if(parseInt(jQuery('#ngslideshow-<?php echo $combo_id; ?> .nivo-controlNavScroll').css('left').replace('px',''))<=0) 240 jQuery('#ngslideshow-<?php echo $combo_id; ?> .nivo-controlNavScroll').data('loop', true).stop().loopMove(false, { left: '+=5px'}, 10); 241 }, function() { 242 jQuery('#ngslideshow-<?php echo $combo_id; ?> .nivo-controlNavScroll').data('loop', false).stop(); 243 }); 244 245 jQuery('#ngslideshow-<?php echo $combo_id; ?> .nivo-directionNav a').click(function() { 246 jQuery('#ngslideshow-<?php echo $combo_id; ?> .nivo-controlNavScroll').stop(); 247 var thumbOffset<?php echo $combo_id; ?> = thumbcw<?php echo $combo_id; ?>-<?php echo $width; ?>; 248 var currentPos<?php echo $combo_id; ?> = parseInt(jQuery('#ngslideshow-<?php echo $combo_id; ?> .nivo-controlNavScroll').css('left').replace('px','')); 249 //var thumbSingle = (jQuery('#ngslideshow-<?php echo $combo_id; ?> .nivo-controlNavScroll a.nivo-control img').width() + parseInt(jQuery('#ngslideshow-<?php echo $combo_id; ?> .nivo-controlNavScroll a.nivo-control img').css('margin-right').replace('px',''))); 250 //if(jQuery(this).hasClass('.nivo-nextNav')) active<?php echo $combo_id; ?> += thumbSingle; 251 //else if(jQuery(this).hasClass('.nivo-prevNav')) active<?php echo $combo_id; ?> -= thumbSingle; 252 var next = jQuery('#ngslideshow-<?php echo $combo_id; ?> .nivo-controlNavScroll a.active').next(); 253 var prev = jQuery('#ngslideshow-<?php echo $combo_id; ?> .nivo-controlNavScroll a.active').prev(); 254 if(jQuery(this).hasClass('nivo-nextNav')){ 255 if(jQuery('#ngslideshow-<?php echo $combo_id; ?> .nivo-controlNavScroll a.active').next().length != 0) 256 var active<?php echo $combo_id; ?> = jQuery('#ngslideshow-<?php echo $combo_id; ?> .nivo-controlNavScroll a.active').next().position().left; 257 else 258 var active<?php echo $combo_id; ?> = jQuery('#ngslideshow-<?php echo $combo_id; ?> .nivo-controlNavScroll a').first().position().left; 259 260 }else if(jQuery(this).hasClass('nivo-prevNav')){ 261 if(jQuery('#ngslideshow-<?php echo $combo_id; ?> .nivo-controlNavScroll a.active').prev().length != 0) 262 var active<?php echo $combo_id; ?> = jQuery('#ngslideshow-<?php echo $combo_id; ?> .nivo-controlNavScroll a.active').prev().position().left; 263 else 264 var active<?php echo $combo_id; ?> = jQuery('#ngslideshow-<?php echo $combo_id; ?> .nivo-controlNavScroll a').last().position().left; 265 266 } 267 if(active<?php echo $combo_id; ?> < thumbOffset<?php echo $combo_id; ?>){ 268 jQuery('#ngslideshow-<?php echo $combo_id; ?> .nivo-controlNavScroll').animate({ 269 left: - active<?php echo $combo_id; ?> 270 }, 2*(Math.abs(currentPos<?php echo $combo_id; ?>-active<?php echo $combo_id; ?>))); 271 }else { 272 jQuery('#ngslideshow-<?php echo $combo_id; ?> .nivo-controlNavScroll').animate({ 273 left: - thumbOffset<?php echo $combo_id; ?> 274 }, 2*(Math.abs(currentPos<?php echo $combo_id; ?>-thumbOffset<?php echo $combo_id; ?>))); 275 } 276 }); 277 } 278 <?php endif; ?> 279 <?php if ($combo_id == "custom") : ?> 280 jQuery('#ngslideshow-<?php echo $combo_id; ?> a.nivo-imageLink').each(function(){ 281 if (this.href.indexOf(location.hostname) == -1){ 282 jQuery(this).addClass('external').attr({ 'rel':'external' }).click(function(e){ 283 e.preventDefault(); 284 window.open(this.href); 285 }); 286 } 287 }); 288 <?php endif; ?> 289 }); 290 </script> 151 <?php require CMBSLD_PLUGIN_DIR . 'views/default/jquery-script.php'; ?> 291 152 <?php elseif ($jsframe == 'mootools') : ?> 292 <script type="text/javascript"> 293 document.addEvent('domready', function(){ 294 <?php if ($controlnav=="Y" || $thumbnails_temp=="Y" ) : ?> 295 var navItems = $('ngslideshow-<?php echo $combo_id; ?>').getElements('.nivo-controlNav a.nivo-control'); 296 //alert(navItems[0].get('title')); 297 var navMenu = $('ngslideshow-<?php echo $combo_id; ?>').getElement('div.nivo-controlNav'); 298 navMenu.inject($('ngslideshow-<?php echo $combo_id; ?>'),'after'); 299 //navMenu.addClass('ngslideshow'); 300 //navMenu.setStyle('margin-top','-'+$('ngslideshow-<?php echo $combo_id; ?>').getSize().y+'px'); 301 //navMenu.setStyle('top','10px'); 302 navMenu.setStyle('bottom',0); 303 navItems[0].addClass('active'); 304 <?php endif; ?> 305 $('ngslideshow-<?php echo $combo_id; ?>').addClass('nivoSlider'); 306 $('ngslideshow-<?php echo $combo_id; ?>').setStyle('overflow','hidden'); 307 $$('.slider-wrapper .nivoSlider img').setStyle('display','block'); 308 $('ngslideshow-<?php echo $combo_id; ?>').getParent().setStyle('position','relative'); 309 <?php if ($navigation=="Y") : ?> 310 var directionNav = $('ngslideshow-<?php echo $combo_id; ?>').getElement('div.nivo-directionNav'); 311 directionNav.inject($('ngslideshow-<?php echo $combo_id; ?>'),'after').setStyle('display','none').getElements().setStyles({display:'block', 'z-index':9}); 312 <?php if ($navhover=="Y") : ?> 313 directionNav.setStyle('display','none'); 314 $('ngslideshow-<?php echo $combo_id; ?>').getParent().addEvents({ 315 mouseover: function(){ 316 this.getElements('div.nivo-directionNav').setStyle('display','block'); 317 <?php if ($pausehover=="Y") : ?> 318 comboSlideShow.pause(); 319 <?php endif; ?> 320 }, 321 mouseout: function(){ 322 this.getParent().getElements('div.nivo-directionNav').setStyle('display','none'); 323 <?php if ($pausehover=="Y") : ?> 324 comboSlideShow.play(); 325 <?php endif; ?> 326 } 327 }); 328 <?php else: ?> 329 directionNav.setStyle('display','block'); 330 <?php if ($pausehover=="Y") : ?> 331 comboSlideShow.play(); 332 $('ngslideshow-<?php echo $combo_id; ?>').getParent().addEvents({ 333 mouseover: function(){ 334 comboSlideShow.pause(); 335 }, 336 mouseout: function(){ 337 comboSlideShow.play(); 338 } 339 }); 340 <?php endif; ?> 341 <?php endif; ?> 342 <?php endif; ?> 343 344 <?php if ($information_temp == "Y") : ?> 345 //var capWrap = new Element('div', {class: 'nivo-caption'}); 346 var capWrap = $('ngslideshow-<?php echo $combo_id; ?>').getElement('div.nivo-caption'); 347 capWrap.setStyles({ width: $('ngslideshow-<?php echo $combo_id; ?>').getSize().x, 348 display: 'block', 349 // height: '1.6em', 350 //margin: $('ngslideshow-<?php echo $combo_id; ?>').getStyle('margin'), 351 bottom: 0 352 }); 353 capWrap.inject($('ngslideshow-<?php echo $combo_id; ?>'),'after'); 354 var slideCaptions = $$('div.nivo-html-caption').setStyles({display: 'block', 355 opacity: 0, 356 visibility: 'hidden', 357 position:'absolute', 358 'z-index': 9, 359 top:0, 360 left:0, 361 width: $('ngslideshow-<?php echo $combo_id; ?>').getSize().x 362 // width: '<?php echo $width;?>px' 363 }); 364 slideCaptions.inject(capWrap,'inside'); 365 slideCaptions[0].fade('in'); 366 //capWrap.wraps(slideCaptions); 367 <?php elseif ($information_temp == "N") : ?> 368 var slideCaptions = $$('div.nivo-html-caption').setStyle('display','none'); 369 <?php endif; ?> 370 /* 371 var capFade = new Fx.Tween(el, { 372 link: 'chain', 373 duration: <?php echo $fadespeed; ?> // Interval 374 }); 375 */ 376 var slideItems = $('ngslideshow-<?php echo $combo_id; ?>').getElements('a').setStyle('position','absolute'); 377 var comboSlideShow = new SlideShow($('ngslideshow-<?php echo $combo_id; ?>'), { 378 <?php if ($csstransform!="Y") : ?> 379 transition: '<?php echo $wprfss_effect; ?>', 380 <?php else : ?> 381 transition: '<?php echo $wprfss_cssfx; ?>', 382 <?php endif; ?> 383 delay: <?php echo $autospeed; ?>, // Slide transition speed 384 duration: <?php echo $fadespeed; ?>, // Interval 385 <?php if ($autoslide_temp=="Y") : ?> 386 autoplay: true, //Force manual transitions 387 <?php else : ?> 388 autoplay: false, 389 <?php endif; ?> 390 initialSlideIndex:0, 391 /* 392 onShow: function(){}, 393 onShowComplete: function(){}, 394 onPlay: function(){}, 395 onPause: function(){}, 396 onReverse: function(){}, 397 */ 398 <?php if ($controlnav=="Y" || $information_temp == "Y") : ?> 399 onShow: function(data){ 400 <?php if ($information_temp == "Y") : ?> 401 //alert(slideCaptions.length); 402 //alert(data.next.index); 403 slideCaptions[data.previous.index].removeClass('active'); 404 slideCaptions[data.next.index].addClass('active'); 405 slideCaptions[data.previous.index].fade('out'); 406 slideCaptions[data.next.index].fade('in'); 407 // hide captions except active 408 <?php endif; ?> 409 //alert(data.next.index); 410 //alert(navItems[data.previous.index].get('title')); 411 // update navigation elements' class depending upon the current slide 412 // cycle problem => if next defined, naviItems.length - data.previous.index 413 // only for auto slideshow? 414 <?php if ($controlnav=="Y") : ?> 415 navItems[data.previous.index].removeClass('active'); 416 //initial slide index 417 418 //if (navItems[data.next.index] === undefined) 419 // navItems[(navItems.length - data.previous.index)].addClass('active'); 420 //else 421 navItems[data.next.index].addClass('active'); 422 <?php endif; ?> 423 }, 424 <?php endif; ?> 425 selector: 'a' 426 }); 427 $('ngslideshow-<?php echo $combo_id; ?>').setStyle('background-image','none'); 428 <?php if ($csstransform=="Y") : ?> 429 //if (Modernizr.csstransitions && Modernizr.csstransforms){ 430 comboSlideShow.useCSS(); 431 //} 432 <?php endif; ?> 433 <?php if ($navigation=="Y") : ?> 434 directionNav.getElement('.nivo-prevNav').addEvent('click', function(event){ 435 event.stop(); 436 comboSlideShow.show('previous'); 437 }); 438 directionNav.getElement('.nivo-nextNav').addEvent('click', function(event){ 439 event.stop(); 440 comboSlideShow.show('next'); 441 }); 442 <?php endif; ?> 443 444 <?php if ($controlnav=="Y") : ?> 445 446 navItems.each(function(item, index){ 447 <?php if ($styles['controlnumbers']=="Y") : ?> 448 item.set('text',index+1); 449 item.set('rel',index+1); 450 <?php endif; ?> 451 // click a nav item ... 452 item.addEvent('click', function(event){ 453 event.stop(); 454 // pushLeft or pushRight, depending upon where 455 // the slideshow already is, and where it's going 456 var transition = (comboSlideShow.index < index) ? 'pushLeft' : 'pushRight'; 457 // call show method, index of the navigation element matches the slide index 458 // on-the-fly transition option 459 comboSlideShow.show(index, {transition: transition}); 460 }); 461 }); 462 <?php if ($wprfss_tips=="Y") : ?> 463 new Tips(navItems, { 464 fixed: true, 465 text: '', 466 offset: { 467 x: -100, 468 y: 20 469 } 470 }); 471 <?php endif; ?> 472 <?php endif; ?> 473 }); 474 </script> 153 <?php require CMBSLD_PLUGIN_DIR . 'views/default/mootools-script.php'; ?> 475 154 <?php endif; // END MOOTOOLS ?> 155 <?php echo $append; ?> 476 156 <div id="ngslideshow-<?php echo $combo_id; ?>" class="ngslideshow"> 477 157 <?php foreach ($slides as $slide) : ?> … … 483 163 $full_slide_href = wp_get_attachment_image_src($slide -> ID, 'full', false); 484 164 $thumbnail_link = wp_get_attachment_image_src($slide -> ID, 'thumbnail', false); 485 if ( CMBSLD_PRO ) {486 require CMBSLD_PLUGIN_DIR . '/pro/image_tall_frompost.php';487 } else {488 // echo "<h4> </h4>";489 }490 165 if ($thumbnails_temp == "Y") { 491 166 $thumbrel = 'rel="'. $thumbnail_link[0] .'" ';
Note: See TracChangeset
for help on using the changeset viewer.