Giter Club home page Giter Club logo

collapse-o-matic's People

Contributors

alexeydemidov avatar baden03 avatar jerclarke avatar joehobson avatar samford avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

collapse-o-matic's Issues

Bug: Content Filter Option Breaks Filter Flow

Hi,

This plugin breaks WordPress' the_content filter process when the "Content Filter" option is enabled.

WordPress does not currently support nested filter calls of currently-running filter (e.g. applying the_content filters within a function hooked into the_content. Since shortcodes (such as this plugin's [expand] shortcode) are processed in the the_content hook, applying the the_content hook within the shortcode handler steamrolls the already-running filter process and stops all other functions hooked into that filter from running.

To avoid this, the existing filter state needs to be temporarily saved before calling a nested the_content, and then restored once the nested filter call has finished. Take a look at apply_filters() code for more details on its inner workings, and see here for details on an example of backing up the filter state in another shortcode that was inadvertently stopping plugins hooked into the the_content filter from running.

Collapse-O-Matic isn't accepting my Visual Composer Shortcode

Within the hidden content I would like to have a small gallery using visual composer. I pasted in the html for the gallery but collapse-o-matic won't accept it. Am i missing an element? Help!

Here's what I have:

<img. id="some_id" class="collapseomatic noarrow" title ="Hover over Trigger Text" src="http://www.thechrisandclaudeco.com/wp-content/uploads/2017/5/scandinavian-bedroom.jpg" />
<div id="target-some_id" class=""> [/vc_column_text][/vc_column_inner][/vc_row_inner][vc_row_inner][vc_column_inner width="1/2"][vc_single_image image="1267" img_size="large" alignment="center" style="vc_box_rounded" onclick="img_link_large" img_link_target="_blank" css_animation="bottom-to-top"][vc_single_image image="1416" img_size="large" alignment="center" style="vc_box_rounded" onclick="img_link_large" img_link_target="_blank" css_animation="bottom-to-top"] `</div>`

Thanks!

Reader view

Love the plugin. Thanks.

In Safari (and probably other browsers too) there is a 'reader view' available on many pages, which does not display stuff like sidebars - just the hub o the page. In reader view expand/collapse does nothing. Is this unavoidable?

See the 'reading list' on this page.

Request: find me target to jump to bottom of expanded element

Hi there. Hopefully this is an ok place to make requests.

I am trying to use the findme feature to have expanded blocks open up and automatically scroll to the bottom of the block.

I've tried a few things (using the roll your own example) but the current behaviour (from looking at the code) seems to use the top of the element as the scroll position.

Would it be possible to add an option to set the scroll so that the end of the block ends up where the initial expand text was?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.