Toggle content by click
PHP JavaScript CSS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
css
install
js
languages
views
.gitattributes
.gitignore
README.md
toggle.admin.php
toggle.plugin.php

README.md

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


created by devmount devmount logo