PHPackages                             runopencode/dm-accordion-behavior-plugin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. runopencode/dm-accordion-behavior-plugin

AbandonedSymfony1-plugin[Utility &amp; Helpers](/categories/utility)

runopencode/dm-accordion-behavior-plugin
========================================

dmAccordionBehaviorPlugin - Accordion Front Behavior for Diem Extended

15JavaScript

Since Nov 29Pushed 13y ago2 watchersCompare

[ Source](https://github.com/RunOpenCode/dmAccordionBehaviorPlugin)[ Packagist](https://packagist.org/packages/runopencode/dm-accordion-behavior-plugin)[ RSS](/packages/runopencode-dm-accordion-behavior-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

dmAccordionBehaviorPlugin for Diem Extended
===========================================

[](#dmaccordionbehaviorplugin-for-diem-extended)

Author: [TheCelavi](http://www.runopencode.com/about/thecelavi)
Version: 1.0.0
Stability: Stable
Date: November 10th, 2012
Courtesy of [Run Open Code](http://www.runopencode.com)
License: [Free for all](http://www.runopencode.com/terms-and-conditions/free-for-all)

dmAccordionBehaviorPlugin for Diem Extended is simple accordion UI control.

Usage
-----

[](#usage)

The simplest and most easiest way to use accordion is to add widgets into zone, and attach dmAccordionBehaviorPlugin to the zone. The behavior will make every odd widget into accordion header end every even widget into accordion content.

However, it can work with any HTML element with following structure:

```

	.....

```

In order to achieve that, you have to specify the `Inner target` selector for `` tag so accordion can identify it and headers and contents as well.

Note that in this example tags such as `container`, `acc-header` and `acc-content`are just examples, of course, any HTML structure will work, like using `DIV` or perhaps `UL` and `LI`

HTML output
-----------

[](#html-output)

The behavior will not change structure, it will only add some CSS classes to the tags.

```

	.....

```

Note `theme` class at `` tag - it will be the name of the theme that you have selected in behavior configuration form. In that matter you can style the accordion.

Configuration and theming
-------------------------

[](#configuration-and-theming)

In `dmAccordionBehaviorPlugin/config/dm/config.yml` are configuration parameters for this behavior.

```
default:
  dmAccordionBehavior:
    defaults:
      inner_target: ''
      theme: default
      event: click_open_close
      colapsable: true
      initialy_open: 1
      animation: slide
      easing: jswing
      duration: 500
    themes:
      default: 'dmAccordionBehaviorPlugin.default'

```

If you have download the behavior via Github, you can modify this file. If you have installed it via Composer, then you have to use Symfony config cascade to override this settings.

Section `defaults` contains default settings for behavior, which behavior form initially displays. If you want some other settings to be shown as default, this is the place for change.

Section `themes` is for theme, and it gets configured as `theme_key: path_to_css_file`. If user in behavior form selects a `default` theme, the accordiong view HTML structure will be:

```

	.... titles and contents

```

Note that a `default` class is added, that is, the theme key. Of course, the theme CSS file will be loaded as well. So, for you is just to theme it.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/410738?v=4)[Nikola Svitlica](/maintainers/TheCelavi)[@TheCelavi](https://github.com/TheCelavi)

---

Top Contributors

[![TheCelavi](https://avatars.githubusercontent.com/u/410738?v=4)](https://github.com/TheCelavi "TheCelavi (4 commits)")

### Embed Badge

![Health badge](/badges/runopencode-dm-accordion-behavior-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/runopencode-dm-accordion-behavior-plugin/health.svg)](https://phpackages.com/packages/runopencode-dm-accordion-behavior-plugin)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
