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/02/22 13:35] – [postgresql] 46.223.163.98 | onny:notizen:programmierung [2022/03/19 14:38] – old revision restored (2022/03/17 13:00) 2001:41d0:1004:60b:: | ||
---|---|---|---|
Line 259: | Line 259: | ||
<code javascript> | <code javascript> | ||
var string = string.substring(0, | var string = string.substring(0, | ||
+ | </ | ||
+ | |||
+ | vanilla js onclick class element | ||
+ | <code javascript> | ||
+ | document.getElementsByClassName(' | ||
+ | console.log(' | ||
+ | }; | ||
</ | </ | ||
==== vuejs ==== | ==== vuejs ==== | ||
Line 571: | Line 578: | ||
[...] | [...] | ||
+ | | ||
+ | endif; | ||
+ | |||
+ | add_action( ' | ||
</ | </ | ||
Line 604: | Line 615: | ||
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( ' | ||
</ | </ | ||
===== sql ===== | ===== sql ===== | ||
Line 690: | Line 787: | ||
< | < | ||
pg_dump -U gitlab gitlabhq_production > / | pg_dump -U gitlab gitlabhq_production > / | ||
+ | </ | ||
+ | |||
+ | dump all | ||
+ | < | ||
+ | pg_dumpall > / | ||
</ | </ | ||