Toggle Show/Hide

Description

Toggle shortcode can be used to show/hide content.

[toggle]content[/toggle] to use toggle in basic format; parameters are read from settings.

The following parameters can be used:

  • title – e.g.
  • expand – set to 1 to display toggle open; 0 to display toggle closed. e.g. [toggle expand=1]content[/toggle]
  • width – override width from settings. e.g. [toggle width=75%]content[/toggle]
  • border – override border from settings. e.g. [toggle border=’none’]content[/toggle] or [toggle border=’1px dashed #FF0000′]content[/toggle]
  • title_color – override title color from settings. e.g. [toggle title_color=’#000′]content[/toggle]
  • title_font – override title font family from settings. e.g. [toggle title_font=’Arial, Calibri’]content[/toggle]
  • title_font_size – override title font size from settings. e.g. [toggle title_font_size=’14px’]content[/toggle]
  • title_font_weight – override title font weight from settings. e.g. [toggle title_font_weight=600]content[/toggle]
  • bgtitle – override text background colour from settings. e.g. [toggle bgtitle=’#007FFF’]content[/toggle]
  • text_color – override text colour from settings. e.g. [toggle bgtext=’#000′]content[/toggle]
  • text_font – override text font family from settings. e.g. [toggle text_font=’Arial, Calibri’]content[/toggle]
  • text_font_size – override text font size from settings. e.g. [toggle text_font_size=’14px’]content[/toggle]
  • text_font_weight – override text font weight from settings. e.g. [toggle text_font_weight=600]content[/toggle]
  • bgtext – override text background colour from settings. e.g. [toggle bgtext=’#000′]content[/toggle]
  • disable_image – set to 1 to disable toggle image. e.g. [toggle disable_image=1]content[/toggle]

Shortcodes can now be used inside the content or title of the toggle (tested with Contact Form 7 and BBCode).

Select toggle image in options or network options; allows different sites in a network to use different images. Extra images can be added by dropping them into the plugins /images folder

This plugin is multisite compatible; each site can be set to use network settings or locally defined ones.

Installation Instructions

  • Download the plugin from GitHub.
  • Upload the entire zip file using the Plugins upload function in your ClassicPress admin panel.
  • Activate the plugin.
  • Configure relevant settings via the configuration page in the admin control panel (azurecurve menu).

Frequently Asked Questions

Can I translate this plugin?

Yes, the .pot fie is in the plugins languages folder and can also be downloaded from the plugin page on https://development.azurecurve.co.uk; if you do translate this plugin, please sent the .po and .mo files to translations@azurecurve.co.uk for inclusion in the next version (full credit will be given).

Is this plugin compatible with both WordPress and ClassicPress?

This plugin is developed for ClassicPress, but will likely work on WordPress.

Changelog

Version 1.1.2

  • Update Update Manager class to v2.0.0.
  • Update action link.
  • Update azurecurve menu icon with compressed image.

Version 1.1.1

  • Fix bug with incorrect language load text domain.

Version 1.1.0

  • Add integration with Update Manager for automatic updates.
  • Fix issue with display of azurecurve menu.
  • Change settings page heading.
  • Add load_plugin_textdomain to handle translations.

Version 1.0.1

  • Update azurecurve menu for easier maintenance.
  • Move require of azurecurve menu below security check.
  • Localization fixes and translation into Russian (contributed by @Norskes).

Version 1.0.0

  • Initial release for ClassicPress forked from azurecurve Toggle Show/Hide WordPress Plugin.

About azurecurve

azurecurve was one of the first plugin developers to start developing for ClassicPress; all plugins are available from azurecurve Development and are integrated with the Update Manager plugin by CodePotent for fully integrated, no hassle, updates.

Some of the top plugins available from azurecurve are: