Created
June 12, 2023 14:28
-
-
Save zartgesotten/030b98ed088aea6662999d7f1922ef23 to your computer and use it in GitHub Desktop.
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 | |
| // Add Shortcode | |
| function spnews() { | |
| // get option field content | |
| $sphinweis = get_field('aktueller_hinweis', 'option'); | |
| $sphinweis_row = '<!-- wp:generateblocks/container {"uniqueId":"0bb2fe18","anchor":"ic","backgroundColor":"var(\u002d\u002dbackground-lite)","isDynamic":true,"blockVersion":3,"useGlobalMaxWidth":true,"marginRight":"auto","marginBottom":"60","marginLeft":"auto","marginBottomMobile":"40","paddingTop":"60","paddingBottom":"60","borderRadiusTopRight":"15","borderRadiusBottomRight":"15","borderRadiusBottomLeft":"15","borderRadiusTopLeft":"15","useGlobalStyle":true,"globalStyleId":"insidecontainer"} --> | |
| <!-- wp:generateblocks/container {"uniqueId":"1504dc64","isDynamic":true,"blockVersion":3,"useGlobalMaxWidth":true,"marginRight":"auto","marginLeft":"auto","paddingBottom":"0","globalStyleId":"insidecontainer"} --> | |
| <!-- wp:generateblocks/headline {"uniqueId":"a499d2a5","blockVersion":2,"backgroundColor":"","textColor":"","linkColor":"","linkColorHover":"","borderColor":"","highlightTextColor":"","iconColor":""} --> | |
| <h2 class="gb-headline gb-headline-a499d2a5 gb-headline-text">Aktuelle Infos</h2> | |
| <!-- /wp:generateblocks/headline --> | |
| <!-- wp:generateblocks/headline {"uniqueId":"50034101","element":"p","blockVersion":2,"sizing":{"width":"","minWidth":""},"backgroundColor":"","textColor":"","linkColor":"","linkColorHover":"","borderColor":"","highlightTextColor":"","iconColor":"","useDynamicData":true} --> | |
| <p class="gb-headline gb-headline-50034101 gb-headline-text">' . $sphinweis . '</p> | |
| <!-- /wp:generateblocks/headline --> | |
| <!-- /wp:generateblocks/container --> | |
| <!-- wp:generateblocks/container {"uniqueId":"a6c0f49f","isDynamic":true,"blockVersion":3} /--> | |
| <!-- /wp:generateblocks/container -->'; | |
| return $sphinweis_row; | |
| } | |
| add_shortcode( 'spnews', 'spnews' ); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment