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
| function csv_update_action() { | |
| $option_name = 'ots_points_updated' ; | |
| $update_date = time(); | |
| if ( get_option( $option_name ) !== false ) { | |
| // The option already exists, so we just update it. | |
| update_option( $option_name, $update_date ); | |
| } else { | |
| // The option hasn't been added yet. We'll add it with $autoload set to 'no'. | |
| $deprecated = null; | |
| $autoload = 'no'; |
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
| #region Overwrite Social Follow Shortcode | |
| add_filter( 'do_shortcode_tag','nxt_filter_shortcode_output',10,3); | |
| function nxt_filter_shortcode_output($output, $tag, $attr){ | |
| if('nxt_share' != $tag){ //make sure it is the right shortcode | |
| return $output; | |
| } | |
| if(!isset($attr['title'])){ //you can even check for specific attributes | |
| return $output; | |
| } | |
| return "<p>Dies ist ein nichtssagender Hinweis</p>"; |
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
| var throttledListener = throttle(scrollListener, 1000); | |
| window.addEventListener('scroll', throttledListener); | |
| function throttle(func, delay) { // run our function [func] every [delay] milliseconds | |
| var func = func.bind(func), | |
| last = Date.now(); | |
| return function() { | |
| if (Date.now() - last > delay) { | |
| func(); | |
| last = Date.now(); |
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
| // Begin custom image size for Blog Module | |
| add_filter( 'et_pb_blog_image_height', 'blog_size_h' ); | |
| add_filter( 'et_pb_blog_image_width', 'blog_size_w' ); | |
| function blog_size_h($height) { | |
| return '628'; | |
| } | |
| function blog_size_w($width) { | |
| return '1200'; | |
| } | |
| add_image_size( 'custom-blog-size', 1200, 628 ); |
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
| User-agent: * | |
| Disallow: /cgi-bin | |
| Disallow: /wp-admin | |
| Disallow: /wp-includes | |
| Disallow: /wp-content/plugins | |
| Disallow: /wp-content/cache | |
| Disallow: /wp-content/themes | |
| Disallow: /tag | |
| Disallow: /author | |
| Disallow: /trackback |
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
| /* Fix the "jumping" effect on mobile devices for Divi's Fullscreen Header Module */ | |
| /* #region max-width 479px */ | |
| @media only screen and (max-width: 479px) { | |
| /* #region Fixing jumping header on mobile devices */ | |
| .et_pb_fullwidth_header.et_pb_fullscreen { | |
| min-height: 100vh !important; | |
| padding-top: 0 !important; | |
| .et_pb_fullwidth_header_container { | |
| min-height: calc(100vh - 70px) !important; | |
| // width: 100%; |
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
| /* #region KenBurns Effect */ | |
| .et_pb_section.ken-burns .et_parallax_bg { | |
| animation: kenburns-with-pause 60s alternate infinite; | |
| } | |
| @keyframes kenburns { | |
| 0% { | |
| -ms-transform: scale3d(1.45, 1.45, 1.45) translate3d(-25px, -55px, 0px); | |
| -webkit-transform: scale3d(1.45, 1.45, 1.45) translate3d(-25px, -55px, 0px); | |
| transform: scale3d(1.45, 1.45, 1.45) translate3d(-25px, -55px, 0px); |
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
| function only_show_when_not_on_homepage($atts, $content = null) { | |
| $a = shortcode_atts([ | |
| 'class' => '' | |
| ], $atts); | |
| if(!is_front_page()) { | |
| return '<div class="' . $a["class"] . '">' . $content . '</div>'; | |
| } | |
| return; | |
| } | |
| add_shortcode('nohome', 'only_show_when_not_on_homepage'); |
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
| // Begin custom image size for Gallery Module | |
| add_filter( 'et_pb_gallery_image_height', 'gallery_size_h' ); | |
| add_filter( 'et_pb_gallery_image_width', 'gallery_size_w' ); | |
| function gallery_size_h($height) { | |
| return '750'; | |
| } | |
| function gallery_size_w($width) { | |
| return '1500'; | |
| } | |
| add_image_size( 'custom-gallery-size', 1500, 750 ); |