Git Product home page Git Product logo

accordion-shortcode's Introduction

=== Accordion Shortcode ===
Contributors: enej, ctlt-dev, ubcdev
Tags: shortcode, accordion
Requires at least: 3.3
Tested up to: 3.3
Stable tag: 2.1.1

Lets you easily add accordions into your posts and pages using the accordion shortcode

== Description ==

To make the accordions appear the way you want you need to add your own styling to them
Lets you add accordion to your post and pages.

By using the following shortcodes

`[accordions]
[accordion title="title1"] tab content [/accordion]
[accordion title="title2"] another content tab [/accordion]
[/accordions]`

will generate the following html. 

`<div id="random-accordion-id-872" class="accordions-shortcode">
			<h3 id="title1-0" ><a href="#title1-0">title1</a></h3>

			<div class="accordian-shortcode-content" >

				
 Some Text<br />
			</div>
		
			<h3 id="title2-1" ><a href="#title2-1">title2</a></h3>

			<div class="accordian-shortcode-content " >

				
 Some Text<br />
			</div>
		
</div>`


Additional attributes that you could pass into the shortcode
`[accordions autoHeight='true'  disabled='false' active=0  clearStyle=false collapsible=false fillSpace=false ]
[accordion title='title1' class='new-class']
 Some Text
[/accordion]
[accordion title='title2' class='new-class']
 Some Text
[/accordion]
[/accordions]`

== FAQ ==

**I found a bug where can I submit a bug report/make a change to the code?**
Feel free to submit your bug report in the forum. We check it every so often. 

If you want to contribute to the code we do accept pull requests on github.
https://github.com/ubc/tabs-shortcode 

== Sample CSS ==

Here is some sample css to get you started. 
Another place to look for it would be the http://jqueryui.com/themeroller/, The shortcode used the jQuery UI to generate the accordion. 


`

`

== Installation ==

1. Extract the zip file into wp-content/plugins/ in your WordPress installation
1. Go to plugins page to activate
1. Add styles to make the accordion look the way you want. 


== Changelog ==
= 2.1.1 = 
* More bug fixes

= 2.1 = 
* Bug fixes

= 2.0 = 
* added support for the twitter bootstrap


= 1.2.1 =
* removed php warnings

= 1.2 =
Trying to commit the changes from git

= 1.1 = 
* improved js loading. js only gets loaded when it is needed
* fixed bugs


= 1.0 =
* Initial release

accordion-shortcode's People

Contributors

enejb avatar

Watchers

John Brennan avatar James Cloos avatar

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.