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
| <IfModule mod_expires.c> | |
| ExpiresActive on | |
| ExpiresDefault "access plus 1 month" | |
| # CSS | |
| ExpiresByType text/css "access plus 2 days" | |
| # Data interchange | |
| ExpiresByType application/atom+xml "access plus 1 hour" | |
| ExpiresByType application/rdf+xml "access plus 1 hour" |
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 | |
| $servername = "servername"; | |
| $database = "dxxxxxxx"; | |
| $username = "dxxxxxxx"; | |
| $password = "password"; | |
| // Create connection | |
| $conn = new mysqli($servername, $username, $password); | |
| // Check connection | |
| if ($conn->connect_error) { |
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
| .sticky-row { | |
| position:sticky; | |
| position:-webkit-sticky; | |
| top:0; | |
| z-index: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
| <!DOCTYPE html> | |
| <html class="no-js"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| <title>CSS & SVG Clipping Demo #3</title> | |
| <meta name="description" content=""> | |
| <meta name="viewport" content="width=device-width"> |
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
| # Block User ID Phishing Requests | |
| <IfModule mod_rewrite.c> | |
| RewriteCond %{QUERY_STRING} ^author=([0-9]*) | |
| RewriteRule .* http://example.com/? [L,R=302] | |
| </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
| if ( ! is_admin() ) { | |
| add_filter( | |
| 'query_vars', | |
| function ( $public_query_vars ) { | |
| foreach ( array( 'author', 'author_name' ) as $var ) { | |
| $key = array_search( $var, $public_query_vars ); | |
| if ( false !== $key ) { | |
| unset( $public_query_vars[$key] ); | |
| } |
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
| li.menu-item > a > span { | |
| position: relative; | |
| } | |
| li.menu-item > a > span:after { | |
| position: absolute; | |
| bottom: -30%; | |
| left: 0; | |
| width: 100%; | |
| height: 3px; |
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
| .fl-rich-text a { | |
| -webkit-box-shadow: #f5835754 0 -0.5em 0 inset; | |
| box-shadow: #f5835754 0 -0.5em 0 inset; | |
| -webkit-transition: -webkit-box-shadow .25s ease; | |
| transition: -webkit-box-shadow .25s ease; | |
| transition: box-shadow .25s ease; | |
| transition: box-shadow .25s ease,-webkit-box-shadow .25s ease; | |
| } | |
| .fl-rich-text a:hover { |
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_image_size( 'admin-list-thumb', 80, 80, false ); | |
| // add featured thumbnail to admin post columns | |
| function wpcs_add_thumbnail_columns( $columns ) { | |
| $columns = array( | |
| 'cb' => '<input type="checkbox" />', | |
| 'featured_thumb' => 'Thumbnail', | |
| 'title' => 'Title', | |
| 'author' => 'Author', | |
| 'categories' => 'Categories', |