Slidebars icon indicating copy to clipboard operation
Slidebars copied to clipboard

Make sure $ is available and keep the slidebars variable global

Open JoryHogeveen opened this issue 9 years ago • 13 comments

Fixes https://github.com/adchsm/Slidebars/issues/238

JoryHogeveen avatar Aug 07 '16 18:08 JoryHogeveen

This works. Can confirm this makes Drupal play nicely.

devkinetic avatar Sep 07 '16 19:09 devkinetic

Works for WordPress as well!

gaswirth avatar Sep 14 '16 16:09 gaswirth

@gaswirth If you're interested, I've turned slidebars into a WP plugin. It already has this patch included. https://wordpress.org/plugins/off-canvas-sidebars/

If you find any issues with themes, please let me know. (Though please read the installation instructions first :) ). https://wordpress.org/plugins/off-canvas-sidebars/installation/

JoryHogeveen avatar Sep 14 '16 16:09 JoryHogeveen

Awesome, thanks! I've already integrated the patch into the theme I'm working on, but my next project I'll give your plugin a shot! Cheers!

gaswirth avatar Sep 14 '16 16:09 gaswirth

Hey @JoryHogeveen, thanks again for the plugin heads up. Works great! For my purposes, I'd still love to see this PR merged, as it works perfectly and it's easier for me to integrate Slidebars with my themes manually, and I miss being able to install with bower to keep everything up-to-date!

gaswirth avatar Sep 16 '16 19:09 gaswirth

Hi @gaswirth , no problem! As for integration, it's possible to disable the plugin frontend and generate everything within you theme while using the config/setting features from the plugin.

I'm currently busy with a fearture update with a lot more hooks for both PHP and JS. It will also feature a first version of a simple API to echo your sidebars in your theme yourself. Will start on a doc/wiki asap :)

See https://github.com/JoryHogeveen/off-canvas-sidebars/pull/10

JoryHogeveen avatar Sep 16 '16 20:09 JoryHogeveen

Love it. You rock!

gaswirth avatar Sep 16 '16 21:09 gaswirth

Thanks :) If you would like to help testing or have more ideas let me know!

JoryHogeveen avatar Sep 16 '16 21:09 JoryHogeveen

Why this fix is still not applied to latest version of master branch?... It is almost 6 months passed.

wonsuc avatar Feb 06 '17 08:02 wonsuc

Works for me. Would like to see this merged.

Brugman avatar Mar 17 '17 13:03 Brugman

Works for me also, should be merged. Thanks.

5n00p4eg avatar Apr 30 '17 14:04 5n00p4eg

Just a quick thanks, I was so close to figuring this out myself, but didn't think to declare the var outside of the function, because I'm a JS noob. I also took the time to re-express slidebars as Slidebars, because jshint told me so when running gulp.

srjwebster avatar May 11 '17 14:05 srjwebster

Would be great if this could be merged to the stable version!

berlindave avatar Jul 12 '18 08:07 berlindave