This file contains 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: Country Listing | |
* | |
* This is copy of the search template. | |
* modified by Codeable @tradesouthwest | |
* @uses custom_cat type for a country slug | |
*/ | |
get_header(); | |
do_action( 'before_content' ); |
This file contains 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 | |
/** | |
* Define WTO settings file | |
*/ | |
function valuadd_settings_file() { | |
if ( file_exists( VALA_THEME_SETTINGS ) ) { | |
$theme_settings = VALA_THEME_SETTINGS; | |
} else { | |
$theme_settings = VALA_THEME_SETTINGS_VALU; |
This file contains 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 | |
/** | |
* @Uses wp_mail() to send out email address | |
* from a single field form. | |
* Here is the form: | |
************************************************************************************ | |
<form id="newsletterForm" action="<?php the_permalink(); ?>" method="POST"> | |
<div class="input-group"> | |
<input class="form-control" | |
placeholder="Email Address" |
This file contains 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
<!DOCTYPE html> | |
<html lang="en-US" class="no-js no-svg"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>WordCamp Europe 2017 – June 15-17, Paris, France | #WCEU</title> | |
This file has been truncated, but you can view the full file.
This file contains 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
<IfModule mod_deflate.c> | |
# Force compression for mangled `Accept-Encoding` request headers | |
# https://developer.yahoo.com/blogs/ydn/pushing-beyond-gzipping-25601.html | |
<IfModule mod_setenvif.c> | |
<IfModule mod_headers.c> | |
SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding | |
RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding |
This file contains 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 my_disable_wp_emojicons() { | |
// all actions related to emojis | |
remove_action( 'admin_print_styles', 'print_emoji_styles' ); | |
remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); | |
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); | |
remove_action( 'wp_print_styles', 'print_emoji_styles' ); | |
remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' ); | |
remove_filter( 'the_content_feed', 'wp_staticize_emoji' ); | |
remove_filter( 'comment_text_rss', 'wp_staticize_emoji' ); |
This file contains 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 id="container"> | |
<?php | |
// simple but effective for string outputting to html page | |
function esc($s){ | |
return htmlentities(trim($s), ENT_QUOTES, 'UTF-8'); | |
} | |
function countFolder($dir) { | |
$get = (count(scandir($dir)) - 2); | |
if ($get == -2) { |
This file contains 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 | |
session_start(); | |
if (!isset($_SESSION['user_session'])) | |
{ | |
header('Location: ../login.php'); | |
} | |
?> | |
<?php | |
/** | |
* TSW Listing Nano Directory |
This file contains 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
<form action="<?php echo site_url() ?>/wp-admin/admin-ajax.php" method="POST" id="filter"> | |
<?php | |
if( $terms = get_terms( 'category', 'orderby=name' ) ) : | |
echo '<select name="categoryfilter"><option>Select category...</option>'; | |
foreach ( $terms as $term ) : | |
echo '<option value="' . $term->term_id . '">' . $term->name . '</option>'; | |
endforeach; | |
echo '</select>'; | |
endif; |
This file contains 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 | |
/** | |
* Replace default Gravatar with branding logo. | |
*/ | |
function wordness_new_default_gravatar($avatar_defaults) | |
{ | |
//be safe default | |
$def = esc_url( plugin_dir_url( dirname(__FILE__) ) | |
. 'css/poplogin-default-logo.png' ); | |
OlderNewer