質問編集履歴
2
```を削除してみました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -266,13 +266,67 @@
|
|
266
266
|
|
267
267
|
}
|
268
268
|
|
269
|
-
}
|
269
|
+
}
|
270
270
|
|
271
271
|
```
|
272
272
|
|
273
273
|
|
274
274
|
|
275
|
-
|
275
|
+
###この辺りに記載だと考えてますがいかがでしょうか?
|
276
|
+
|
277
|
+
```
|
278
|
+
|
279
|
+
$classes[] = ($args->has_children) ? 'dropdown' : '';
|
280
|
+
|
281
|
+
$classes[] = ($item->current || $item->current_item_ancestor) ? 'active' : '';
|
282
|
+
|
283
|
+
$classes[] = 'menu-item-' . $item->ID;
|
284
|
+
|
285
|
+
if($depth && $args->has_children){
|
286
|
+
|
287
|
+
$classes[] = 'dropdown-submenu';
|
288
|
+
|
289
|
+
}
|
290
|
+
|
291
|
+
$class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item, $args ) );
|
292
|
+
|
293
|
+
$class_names = ' class="' . esc_attr( $class_names ) . '"';
|
294
|
+
|
295
|
+
$id = apply_filters( 'nav_menu_item_id', 'menu-item-'. $item->ID, $item, $args );
|
296
|
+
|
297
|
+
$id = strlen( $id ) ? ' id="' . esc_attr( $id ) . '"' : '';
|
298
|
+
|
299
|
+
$output .= $indent . '<li' . $id . $value . $class_names . $li_attributes . '>';
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
$attributes = ! empty( $item->attr_title ) ? ' title="' . esc_attr( $item->attr_title ) .'"' : '';
|
304
|
+
|
305
|
+
$attributes .= ! empty( $item->target ) ? ' target="' . esc_attr( $item->target ) .'"' : '';
|
306
|
+
|
307
|
+
$attributes .= ! empty( $item->xfn ) ? ' rel="' . esc_attr( $item->xfn ) .'"' : '';
|
308
|
+
|
309
|
+
$attributes .= ! empty( $item->url ) ? ' href="' . esc_attr( $item->url ) .'"' : '';
|
310
|
+
|
311
|
+
$attributes .= ($args->has_children) ? ' class="dropdown-toggle" data-toggle="dropdown"' : '';
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
$item_output = $args->before;
|
316
|
+
|
317
|
+
$item_output .= '<a'. $attributes .'>';
|
318
|
+
|
319
|
+
$item_output .= $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after;
|
320
|
+
|
321
|
+
$item_output .= ($depth == 0 && $args->has_children) ? '</a>' : '</a>'; // <b class="caret"></b>
|
322
|
+
|
323
|
+
$item_output .= $args->after;
|
324
|
+
|
325
|
+
$output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args );
|
326
|
+
|
327
|
+
}
|
328
|
+
|
329
|
+
```
|
276
330
|
|
277
331
|
### 試したこと
|
278
332
|
|
1
マークダウンの記法に変更しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,7 +22,11 @@
|
|
22
22
|
|
23
23
|
------
|
24
24
|
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
25
|
-
jQuery( document ).ready( function( $ ) {
|
29
|
+
```jQuery( document ).ready( function( $ ) {
|
26
30
|
|
27
31
|
|
28
32
|
|
@@ -74,6 +78,10 @@
|
|
74
78
|
|
75
79
|
} );
|
76
80
|
|
81
|
+
```
|
82
|
+
|
83
|
+
|
84
|
+
|
77
85
|
|
78
86
|
|
79
87
|
|
@@ -82,7 +90,7 @@
|
|
82
90
|
|
83
91
|
------
|
84
92
|
|
85
|
-
<?php
|
93
|
+
```<?php
|
86
94
|
|
87
95
|
/**
|
88
96
|
|
@@ -258,7 +266,13 @@
|
|
258
266
|
|
259
267
|
}
|
260
268
|
|
261
|
-
}
|
269
|
+
} ```
|
270
|
+
|
271
|
+
```
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
262
276
|
|
263
277
|
### 試したこと
|
264
278
|
|