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
<VirtualHost *:80> | |
ServerName www.domain1.com | |
ServerAlias domain1.com | |
Redirect / http://www.domain2.com | |
</VirtualHost> | |
<VirtualHost *:80> | |
ServerName www.domain3.com | |
ServerAlias domain3.com | |
Redirect 301 / http://www.domain2.com |
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 class="row"> | |
<div class="col-xs-6 vcenter"> | |
<div>Div1</div> | |
</div> | |
<div class="col-xs-6 vcenter"> | |
<div>Div2</div> | |
</div> | |
</div> |
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
.col-xs-5ths, | |
.col-sm-5ths, | |
.col-md-5ths, | |
.col-lg-5ths { | |
position: relative; | |
min-height: 1px; | |
padding-right: 10px; | |
padding-left: 10px; | |
} |
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 if (has_post_thumbnail( $post->ID ) ): ?> | |
<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?> | |
<header class="entry-header entry-header-background" style="background-image: url('<?php echo $image[0]; ?>')"> | |
<?php else: ?> | |
<header class="entry-header"> | |
<?php endif; ?> | |
<div class="container"> | |
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?> | |
</div> | |
</header><!-- .entry-header --> |
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: Subscribe Page | |
*/ | |
get_header(); | |
if( isset($_POST['subscriber_email']) ){ | |
$api_url = 'http://API_URL'; | |
$subscriber_name = $_POST['subscriber_name']; |
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
/* Extra small devices (phones, less than 768px) */ | |
/* No media query since this is the default in Bootstrap */ | |
/* Small devices (tablets, 768px and up) */ | |
@media (min-width: 768px) { | |
} | |
/* Medium devices (desktops, 992px and up) */ | |
@media (min-width: 992px) { |
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
@ECHO OFF | |
For /f "tokens=2-4 delims=. " %%a in ('date /t') do (set mydate=%%c-%%a-%%b) | |
For /f "tokens=1-3 delims=.:," %%a in ("%TIME%") do (set mytime=%%a-%%b-%%c) | |
set TIMESTAMP=%mydate%_%mytime% | |
REM Export all databases into file E:\wamp64\backup\database_backup.[year][month][day].sql | |
"E:\wamp64\bin\mysql\mysql5.7.14\bin\mysqldump.exe" --all-databases --result-file="E:\wamp64\backup\database_backup_%TIMESTAMP%.sql" --user=root | |
REM Change working directory to the location of the DB dump 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
$transition_link: all 0.3s ease; | |
@mixin link ($link, $visited, $hover, $active) { | |
& { | |
color: $link; | |
transition: $transition_link; | |
&:visited { | |
color: $visited; | |
} | |
&:hover { |
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 home_navbar_toggle() { | |
if ($(window).scrollTop() > 100) { | |
$('nav.navbar-home').addClass('nav-scrolled'); | |
} | |
else { | |
$('nav.navbar-home').removeClass('nav-scrolled'); | |
} | |
}; |
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 if ( has_post_thumbnail() ) : ?> | |
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"> | |
<?php the_post_thumbnail(); ?> | |
</a> | |
<?php endif; ?> |