This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document).ready(function () { | |
| // Insert Feather-Icons | |
| feather.replace() | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Title: Pattern Name | |
| * Slug: theme/pattern | |
| * Categories: pattern-category | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| register_block_pattern_category( | |
| 'slug', | |
| array('label' => __('Name of Category', 'themename')) | |
| ); | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Theme Name: INSERT THEME HERE | |
| Author: INSERT AUTHOR HERE | |
| Author URI: INSERT URL HERE | |
| Description: INSERT DESCRIPTION HERE | |
| Version: 1.0 | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $numberOne = 10; | |
| $numberTwo = 5; | |
| $numberThree = 0.5; | |
| // Rechne den Notendurchschnitt aus. Folgende Schritte müssen dabei unternommen werden. | |
| // 1. Multipliziere $numberOne mit $numberThree und speichere den Wert in einer neuen Variable ($numberFour); | |
| // 2. Multipliziere die neue Variable erneut mit $numberOne und speichere auch diesen Wert in einer Variable ($numberFive); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(window).on("load resize",function(e) { | |
| if ($(window).width() > 960) { | |
| $('body').addClass('blue'); | |
| var imageUrl = $('.wp-block-cover__image-background').attr('src'); | |
| $('body.blue').css('background-image', 'url(' + imageUrl + ')'); | |
| } | |
| else { | |
| $('body').removeClass('blue'); | |
| $('body').css('background-image', ''); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // WP Query definieren (wie viele Posts/Beiträge soll es holen) | |
| $the_query = new WP_Query( 'posts_per_page=5' ); ?> | |
| <!-- While Schleife von den Anzahl definierten Posts durchgehen --> | |
| <?php while ($the_query -> have_posts()) { $the_query -> the_post(); ?> | |
| <!-- Aufbau vom Beiträg / Projekt mittels HTML --> | |
| <li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo '<pre>';print_r();exit; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo '<pre>';print_r($variable);echo '</pre>'; |
NewerOlder