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 THIS TO .HTACCESS FILE TO FIX FONT AWESOME CROSS DOMAIN DISPLAY ISSUE | |
<IfModule mod_headers.c> | |
<FilesMatch "\.(eot|font.css|otf|ttc|ttf|woff)$"> | |
Header set Access-Control-Allow-Origin "*" | |
</FilesMatch> | |
</IfModule> |
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 | |
$sitesuper_notification_args = array( | |
'post_type' => 'cs_submissions', | |
'post_status' => 'publish', | |
'posts_per_page' => -1, | |
'orderby' => 'date', | |
'order' => 'DESC', | |
//The meta_query will list any customer satisfaction survey responses that answered a question negatively or below an accepted threshold. | |
//It also only lists those items that have NOT yet been flagged as 'resolved'. | |
'meta_query' => array( |
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 global $user_ID; if( $user_ID ) : ?> | |
<?php if( current_user_can('level_10') ) : ?> | |
<!--do something--> | |
<?php else : ?> | |
<!--//do something else--> | |
<?php endif; ?> | |
<?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
UPDATE `xxx_postmeta` SET `meta_value` = CONCAT(meta_value,'string-to-add') WHERE `xxx_postmeta`.`meta_key` = 'meta-key-value' AND `meta_value` LIKE '%xxx%'; |
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
# compress text, HTML, JavaScript, CSS, and XML | |
AddOutputFilterByType DEFLATE text/plain | |
AddOutputFilterByType DEFLATE text/html | |
AddOutputFilterByType DEFLATE text/xml | |
AddOutputFilterByType DEFLATE text/css | |
AddOutputFilterByType DEFLATE application/xml | |
AddOutputFilterByType DEFLATE application/xhtml+xml | |
AddOutputFilterByType DEFLATE application/rss+xml | |
AddOutputFilterByType DEFLATE application/javascript | |
AddOutputFilterByType DEFLATE application/x-javascript |
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 GZIP COMPRESSION, BROWSER CACHING & CORRECTING .woff FONT 404 ERRORS ON IIS SERVERS --> | |
<!-- FOR COMPRESSION --> | |
<system.webServer> | |
<urlCompression doStaticCompression="true" doDynamicCompression="true" /> | |
<httpCompression> | |
<dynamicTypes> | |
<clear /> | |
<add enabled="true" mimeType="text/*"/> | |
<add enabled="true" mimeType="message/*"/> |
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 $time=time () ; $year=date("Y",$time); echo "© ". $year; ?> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"> XX_CLIENTNAME_XX.</a> All Rights Reserved. <span class="sep"> | </span> Site design by: <a href="XX_devurl_XX" rel="designer">XX_DEVNAME_XX</a> |