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
| define( 'DB_NAME', 'database_name_here' ); | |
| define( 'DB_USER', 'username_here' ); | |
| define( 'DB_PASSWORD', 'password_here' ); | |
| define( 'DB_HOST', 'localhost' ); | |
| define( 'DB_CHARSET', 'utf8' ); | |
| define( 'DB_COLLATE', '' ); |
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 echo the_post_thumbnail('post-thumbnail', array('class' => 'retina additional-class')); ?> |
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 modify_post_thumbnail_html($html, $post_id, $post_thumbnail_id, $size, $attr) { | |
| $id = get_post_thumbnail_id(); | |
| $src = wp_get_attachment_image_src($id, $size); | |
| $alt = get_the_title($id); | |
| $class = $attr['class']; | |
| if (strpos($class, 'retina') !== false) { | |
| $html = '<img src="' . $src[0] . '" alt="' . $alt . '" class="' . $class . '" />'; | |
| } else { | |
| $html = '<img src="' . $src[0] . '" alt="' . $alt . '" class="' . $class . '" />'; | |
| } |
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 jQuery(document).ready(function(){ | |
| // insert coding here | |
| }); ?> |
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 $(document).ready(function(){ | |
| // insert coding here | |
| }); ?> |
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( !post_password_required( $post->ID ) ) : ?> | |
| <?php else: ?> | |
| <?php echo get_the_password_form(); ?> | |
| <?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
| Options +FollowSymLinks | |
| RewriteEngine on | |
| RewriteCond %{HTTP_HOST} ^sample\.com | |
| RewriteRule ^(.*)$ http://sample.com/$1 [R=301,L] |
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
| Options +FollowSymLinks | |
| RewriteEngine on | |
| RewriteCond %{HTTP_HOST} ^www.sample\.com | |
| RewriteRule ^(.*)$ http://sample.com/$1 [R=301,L] |
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( is_page('PAGE ID') || is_page('PAGE ID') || is_page('PAGE ID') ): ?> | |
| <?php endif; ?> |