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 if ( get_post_meta($post->ID, '$key', true) ) : ?> | |
| <div id="key" class="class"> | |
| <div class="key-label">Label:</div> | |
| <div class="key-value"> | |
| <?php echo get_post_meta($post->ID, 'CustomFieldLabel', true); ?> | |
| </div> | |
| </div> | |
| <?php endif; ?> |
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
| <div class="outerwrap"> | |
| <div class="boxcontent"> | |
| <div class="overlay clearfix"> | |
| overlay text | |
| </div> | |
| </div> | |
| </div> | |
| <div class="outerwrap"> | |
| <div class="boxcontent"> | |
| <div class="overlay clearfix"> |
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
| // Enable WP_DEBUG mode | |
| define('WP_DEBUG', true); | |
| // Enable Debug logging to the /wp-content/debug.log file | |
| define('WP_DEBUG_LOG', true); | |
| // Disable display of errors and warnings | |
| define('WP_DEBUG_DISPLAY', false); | |
| @ini_set('display_errors',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
| function filetracker(){ | |
| $included_files = get_included_files(); | |
| $stylesheet_dir = str_replace( '\\', '/', get_stylesheet_directory() ); | |
| $template_dir = str_replace( '\\', '/', get_template_directory() ); | |
| foreach ( $included_files as $key => $path ) { | |
| $path = '<br>'.str_replace( '\\', '/', $path ); | |
| if ( false === strpos( $path, $stylesheet_dir ) && false === strpos( $path, $template_dir ) ) |
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
| add_action( 'preprocess_comment' , 'preprocess_comment_handler' ); | |
| $rf_success = remove_filter('commentdata','comment_duplicate_trigger'); | |
| if (!$rf_success) { | |
| write_log ('remove duplicate comment filter failed'); | |
| } |
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 | |
| /* Template Name: games dynamic */ | |
| global $avia_config; | |
| /* | |
| * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory. | |
| */ | |
| get_header(); | |
| if( get_post_meta(get_the_ID(), 'header', true) != 'no') echo avia_title(); | |
| ?> | |
| <div class='container_wrap container_wrap_first main_color shop_columns_3 <?php avia_layout_class( 'main' ); ?>'> |
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 | |
| /* Template Name: games dynamic */ | |
| global $avia_config; | |
| /* | |
| * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory. | |
| */ | |
| get_header(); | |
| if( get_post_meta(get_the_ID(), 'header', true) != 'no') echo avia_title(); | |
| $loading_gif_url = home_url().'/wp-content/uploads/2016/08/loading.gif'; |