Site Tools


New release available: 2022-07-31 "Igor". upgrade now! [52.2] (what's this?)
New release candidate 2 available: rc2022-06-26 "Igor". upgrade now! [52.1] (what's this?)
New release candidate available: 2022-06-26 "Igor". upgrade now! [52] (what's this?)
onny:notizen:programmierung

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
onny:notizen:programmierung [2022/03/10 17:30]
– [wordpress] 185.52.247.41
onny:notizen:programmierung [2022/03/19 14:38] (current)
– old revision restored (2022/03/17 13:00) 2001:41d0:1004:60b::
Line 266: Line 266:
   console.log('ready');   console.log('ready');
 }; };
-</code> 
- 
-add / remove class 
-<code javascript> 
-burgerMenu.classList.remove('is-active'); 
-burgerMenu.classList.add('is-active'); 
 </code> </code>
 ==== vuejs ==== ==== vuejs ====
Line 707: Line 701:
  
 add_action( 'customize_register', 'theme_customize_register' ); add_action( 'customize_register', 'theme_customize_register' );
-</code> 
- 
-print setting text inside template 
-<code php> 
-<?php echo get_option('fachwerksauna_footer-text'); ?> 
-</code> 
- 
-customizer color chooser 
-<code php> 
-function theme_customize_register( $wp_customize ) { 
- 
-    $wp_customize->add_setting( 'theme_color', array( 
-        'default'   => '#ed9b40', 
-        'transport' => 'refresh', 
-      ) ); 
- 
-    $wp_customize->add_control( new WP_Customize_Color_Control( 
-    $wp_customize, 'theme_color', array( 
-    'section' => 'colors', 
-    'label'   => esc_html__( 'Theme color', 'theme' ), 
-    ) ) ); 
- 
-}; 
- 
-function fachwerksauna_customize_css() 
-{ 
-    $theme_color = get_theme_mod('theme_color', '#ed9b40'); 
-    ?> 
-         <style type="text/css"> 
-             :root { 
-                --themeColor: <?php echo $theme_color; ?>; 
-            } 
-         </style> 
-    <?php 
-} 
- 
-add_action( 'wp_head', 'fachwerksauna_customize_css'); 
 </code> </code>
 ===== sql ===== ===== sql =====
onny/notizen/programmierung.1646933403.txt.gz · Last modified: 2022/03/10 17:30 by 185.52.247.41