Yeah, sorry I saw the typo as soon as I hit post, but your assumption is correct, I meant jQuery 1.7.1.
Here is a JSFiddle that demonstrates the issue: https://jsfiddle.net/1yf5dg0n/
]]>I recently took over a project that makes use of this great plugin, however, in our implementation, it doesn’t quite work as expected. The issue we are having is that the items seem to be out of alignment with the cursor. So for example, we have 15 items in the dock, and they all overlap each other about 50%. When I hover over the first item, it enlarges appropriately. However as I move my cursor to the right, the image that gets enlarged falls further and further behind the cursor, so for example, by the time my mouse is hovering over image 15, image 8 is the one that is enlarged, and there is ultimately no way to get image 15 to be enlarged because you run out of page/monitor space to move the cursor any further right.
We use basic settings:
opts = {
size: 325,
align: ‘middle’,
sizeMax: 500,
distance: 150
};
var num_rows = jQuery(‘#menudock’).size();
console.log(“no of rows”, num_rows);
jQuery(‘#menudock’).jqDock(opts);
We’re using jQuery 7.1 and the latest version of jqDock (2.0.2).
Any insight you can provide would be greatly appreciated.
Thanks,
Josh
I tried to ask my question on comment 9 but i see it isn’t displayed well. I have asked my question also on stackexchange. Maybe you can take a look at it
]]>I mean’t this:
With the help of your tutorial and some other tutorial i was able to create new gallery settings by this code:
Default gallery
Slideshow
Masonry gallery
jQuery(document).ready(function(){
// add your shortcode attribute and its default value to the
// gallery settings list; $.extend should work as well…
_.extend(wp.media.gallery.defaults, {
slideshow_attr: ‘zzlslideshow’
});
// merge default gallery settings template with yours
wp.media.view.Settings.Gallery = wp.media.view.Settings.Gallery.extend({
template: function(view){
return wp.media.template(‘gallery-settings’)(view)
+ wp.media.template(‘slideshow-gallery-settings’)(view);
}
});
});
This code provides the shortcode on the backend of wordpress. But i do’nt now how to get the values of the chosen options to the frondend. for example if people choose option slideshow i want to turn the gallery in a flexslider. Hope you understand my problem now
]]>