This is a simple CSS3 3D experiment showing the conversion of an image into a realistic 3D cuboid when hovering over it. The CSS includes a shadow effect to make this action more realistic.
A Pen by Iván Melgrati on CodePen.
This is a simple CSS3 3D experiment showing the conversion of an image into a realistic 3D cuboid when hovering over it. The CSS includes a shadow effect to make this action more realistic.
A Pen by Iván Melgrati on CodePen.
Disable PUT and DELETE Apache requests and disable Server signature display |
<?php | |
// Only declare the function if it doesn't exist (prevents PHP fatal error) | |
if (!function_exists('product_post_type')) | |
{ | |
function product_post_type() // Function to register new custom post type | |
{ | |
// Labels used inside the WordPress CMS | |
$labels = array( | |
'name' => _x('Products', 'Post Type General Name', 'text_domain'), | |
'singular_name' => _x('Product', 'Post Type Singular Name', 'text_domain'), |
function post_word_count($post_id) { | |
$content = get_post_field( 'post_content', $post_id ); | |
$word_count = str_word_count( strip_tags( strip_shortcodes($content) ) ); | |
return $word_count; | |
} |
add_filter('manage_posts_columns', 'add_column_middle'); // Register filter | |
function add_column_middle($defaults) | |
{ | |
$new_columns = array(); // Create empty array to store new column order | |
foreach ($defaults as $key => $value) | |
{ | |
$new_columns[$key] = $value; // Add columns to new array | |
if ($key == 'title') |
# Deny access to wp-config.php file | |
<files wp-config.php> | |
order allow,deny | |
deny from all | |
</files> |
# Deny access to all .htaccess files | |
<files ~ "^.*\.([Hh][Tt][Aa])"> | |
order allow,deny | |
deny from all | |
satisfy all | |
</files> |
AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi | |
Options -ExecCGI |
# Disable directory browsing | |
Options All -Indexes |
# Disable access to all file types except the following | |
Order deny,allow | |
Deny from all | |
<Files ~ ".(xml|css|js|jpe?g|png|gif|pdf|docx|rtf|odf|zip|rar)$"> | |
Allow from all | |
</Files> |