This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
onny:notizen:programmierung [2022/03/16 20:29] – old revision restored (2022/03/09 16:27) 87.76.238.87 | onny:notizen:programmierung [2022/03/19 14:37] – old revision restored (2022/03/07 12:58) 2001:41d0:1004:60b:: | ||
---|---|---|---|
Line 266: | Line 266: | ||
console.log(' | console.log(' | ||
}; | }; | ||
- | </ | ||
- | |||
- | add / remove class | ||
- | <code javascript> | ||
- | burgerMenu.classList.remove(' | ||
- | burgerMenu.classList.add(' | ||
</ | </ | ||
==== vuejs ==== | ==== vuejs ==== | ||
Line 584: | Line 578: | ||
[...] | [...] | ||
- | | ||
- | endif; | ||
- | |||
- | add_action( ' | ||
</ | </ | ||
Line 621: | Line 611: | ||
margin-left: | margin-left: | ||
} | } | ||
- | </ | ||
- | |||
- | custom menu walker, only printing <a> tags without list items | ||
- | <code php> | ||
- | class Nav_Footer_Walker extends Walker_Nav_Menu { | ||
- | |||
- | function start_lvl( & | ||
- | $indent = str_repeat(" | ||
- | $output .= " | ||
- | } | ||
- | |||
- | function end_lvl( & | ||
- | $indent = str_repeat(" | ||
- | $output .= " | ||
- | } | ||
- | |||
- | function start_el( & | ||
- | $indent = ( $depth ) ? str_repeat( " | ||
- | |||
- | $class_names = $value = ''; | ||
- | |||
- | $classes = empty( $item-> | ||
- | $classes[] = ' | ||
- | |||
- | $class_names = join( ' ', apply_filters( ' | ||
- | $class_names = $class_names ? ' class="' | ||
- | |||
- | $id = apply_filters( ' | ||
- | $id = $id ? ' id="' | ||
- | |||
- | $output .= $indent . ''; | ||
- | |||
- | $attributes | ||
- | $attributes .= ! empty( $item-> | ||
- | $attributes .= ! empty( $item-> | ||
- | $attributes .= ! empty( $item-> | ||
- | |||
- | $item_output = $args-> | ||
- | $item_output .= '<a class=" | ||
- | $item_output .= $args-> | ||
- | $item_output .= '</ | ||
- | $item_output .= $args-> | ||
- | |||
- | $output .= apply_filters( ' | ||
- | } | ||
- | |||
- | |||
- | function end_el( & | ||
- | $output .= " | ||
- | } | ||
- | |||
- | } | ||
- | |||
- | wp_nav_menu( array( | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ) ); | ||
- | </ | ||
- | |||
- | customizer add option custom text | ||
- | <code php> | ||
- | function theme_customize_register( $wp_customize ) { | ||
- | |||
- | $wp_customize-> | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ),); | ||
- | |||
- | $wp_customize-> | ||
- | $wp_customize, | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ) | ||
- | ) ); | ||
- | |||
- | } | ||
- | |||
- | add_action( ' | ||
- | </ | ||
- | |||
- | print setting text inside template | ||
- | <code php> | ||
- | <?php echo get_option(' | ||
</ | </ | ||
===== sql ===== | ===== sql ===== |