Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

devmount-monstra/toggle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toggle

A content toggle by click plugin for Monstra.

Version

v1.3 - 2016-05-02

Here is a list of all releases of Toggle

Installation

  1. Download latest version of Toggle
  2. Log into Monstra backend and go to Extends > Plugins > Install new
  3. Select downloaded file and first click Upload, then click Install
  4. Go to Extends > Toggle and configure options of your choice
  5. Now everything is ready to use!

Usage

Shortcode for content pages:

{toggle click="some link text" toggle="some toggle content"}

Codesnippet for templates:

<?php Toggle::show('The answer to life, the universe and everything?', '42'); ?>

Options

option type description
Slide duration int How many milliseconds the sliding animation should take
Slide easing string Easing type for the sliding animation: swing or linear

License

This Plugin is distributed under MIT-License.

Sources

This plugin is based on the .slideToggle() method of jQuery


If you like this plugin and want to give some love back, feel free to...

Buy me a coffee