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 | |
| $cmb->add_field( array( | |
| 'name' => __( 'Postive numbers', 'theme-domain' ), | |
| 'desc' => __( 'Numbers only', 'msft-newscenter' ), | |
| 'id' => $prefix . 'number', | |
| 'type' => 'text', | |
| 'attributes' => array( | |
| 'type' => 'number', | |
| 'pattern' => '\d*', |
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 | |
| // Remove 'site-inner' from structural wraps | |
| add_theme_support( 'genesis-structural-wraps', array( 'header', 'footer' ) ); | |
| /** | |
| * Landing Content | |
| * | |
| */ | |
| function be_landing_content() { |
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 | |
| $rows = get_post_meta( get_the_ID(), 'be_content', true ); | |
| foreach( $rows as $count => $row ) { | |
| switch ( $row ) { | |
| case 'type_1': | |
| $content = get_post_meta( get_the_ID(), 'be_content_' . $count . '_field_name', true ); | |
| echo '<div class="type-one">' . wpautop( $content ) . '</div>; |
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 | |
| $testimonials = get_post_meta( get_the_ID(), 'be_testimonial', true ); | |
| if( $testimonials ) { | |
| echo '<div class="testimonials">'; | |
| for( $i = 0; $i < $testimonials; $i++ ) { | |
| $content = get_post_meta( get_the_ID(), 'be_testimonial_' . $i . '_content', true ); | |
| if( $content ) | |
| echo '<div class="testimonial">' . wpautop( $content ) . '</div>'; | |
| } |
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
| { | |
| "exclude": ["node_modules/**", "vendor/**"], | |
| "verbose": true, | |
| "always-semicolon": true, | |
| "block-indent": "\t", | |
| "colon-space": [0, 1], | |
| "color-case": "lower", | |
| "color-shorthand": true, | |
| "combinator-space": [1, 1], |
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
| #!/bin/sh | |
| # cloudflareddns.sh - dynamic dns updater module for Synology | |
| # | |
| # Author: | |
| # Michael Wildman (http://mwild.me) | |
| # | |
| # Version: | |
| # 0.2 | |
| # |
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 | |
| /** | |
| * Large Image for First Post | |
| * | |
| */ | |
| function be_blog_large_first_image( $image_size ) { | |
| global $wp_query; | |
| if( 0 == $wp_query->current_post && ! get_query_var( 'paged') ) | |
| $image_size = 'large'; |
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 custom post types on the 'init' hook. | |
| add_action( 'init', 'my_register_post_types' ); | |
| /** | |
| * Registers post types needed by the plugin. | |
| * | |
| * @since 1.0.0 | |
| * @access public |
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
| #!/usr/bin/env bash | |
| set -o errexit | |
| set -o nounset | |
| set -o pipefail | |
| # Automatically update your CloudFlare DNS record to the IP, Dynamic DNS | |
| # Can retrieve cloudflare Domain id and list zone's, because, lazy | |
| # Place at: | |
| # /usr/local/bin/cf-ddns.sh |
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
| location / { | |
| try_files $uri $uri/ /index.php?$args; | |
| # block WP Botnet workstations | |
| deny 31.184.238.38; | |
| deny 178.151.216.53; | |
| deny 91.224.160.143; | |
| deny 195.128.126.6; | |
| deny 85.114.133.118; | |
| deny 177.125.184.8; | |
| deny 89.233.216.203; |