We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37ca551 commit b208a14Copy full SHA for b208a14
mu-plugins/jqueryui.com/jquery-filters.php
@@ -11,13 +11,15 @@
11
12
$plugin = $post->post_name;
13
$demoList = json_decode( file_get_contents( GW_RESOURCE_DIR . '/demos/demo-list.json' ) );
14
- $defaultDemo = $demoList->$plugin->default;
+ $demos = $demoList->$plugin;
15
+ $defaultDemo = $demos[ 0 ];
16
17
$demoContent .=
18
'<div class="demo-list">' .
19
'<h2>Examples</h2>' .
20
'<ul>';
- foreach ( $demoList->$plugin as $filename => $demo ) {
21
+ foreach ( $demoList->$plugin as $demo ) {
22
+ $filename = $demo->filename;
23
24
($filename === 'default' ? '<li class="active">' : '<li>') .
25
'<a href="/resources/demos/' . $plugin . '/' . $filename . '.html">' .
0 commit comments