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
// Foundation for Sites Settings | |
// ----------------------------- | |
// | |
// Table of Contents: | |
// | |
// 1. Global | |
// 2. Breakpoints | |
// 3. The Grid | |
// 4. Base Typography | |
// 5. Typography Helpers |
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 | |
/* ------------------------------------------------------------- | |
* Custom Logo add this in "after_setup_theme" hook | |
* ============================================================*/ | |
add_theme_support( 'custom-logo' ); | |
/* ------------------------------------------------------------- | |
* Enable svg support | |
* ============================================================*/ |
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
<style type="text/css"> | |
.dropdown-menu { | |
border-bottom:1px solid red; | |
} | |
.current-nav-parent > .dropdown-menu{ | |
border: 4px solid red; | |
} | |
.current-nav-parent > .dropdown-menu{border-bottom:0} | |
</style> |
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
# Redirect http to https .htaccess | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{ENV:HTTPS} !=on | |
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L] | |
# Redirect http to https apache | |
<VirtualHost *:80> | |
ServerName www.example.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
<?php | |
// author : Clervens Volcy - http://goo.gl/G1hRPS | |
// add conditional statements for mobile devices | |
function is_ipad() { | |
$is_ipad = (bool) strpos($_SERVER['HTTP_USER_AGENT'],'iPad'); | |
if ($is_ipad) | |
return true; | |
else return false; |
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
.btn-new-color { | |
background-image: linear-gradient(#DCA, #DDB); | |
border-color: #B5A0A0; | |
color: #4C3D3D !important; | |
&:hover { | |
background-color: #DDD8B6; | |
} | |
} |
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
add_action( 'wp_print_styles', 'my_deregister_styles', 100 ); | |
function my_deregister_styles() { | |
wp_deregister_style( 'wp-pagenavi' ); | |
} |
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
WEEK=$(date +%V) | |
BKDIR="/var/www/cron/backup/$WEEK" | |
BKSITE="/var/www/site" | |
BKDEL="/var/www/cron/backup/*" | |
if [ ! -d "$BKDIR" ]; then | |
mkdir -p $BKDIR | |
tar -czf $BKDIR/bk-full.tar.gz -g $BKDIR/bk_infos.txt $BKSITE | |
fi |
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
var rueMTL = ["rue A.-A.-Desroches", "rue d'Abancourt", "rue Abbott", "rue Abélard", "rue de l'Abord-à-Plouffe", "rue Abrams", "rue Acadia", "rue de l'Acadie", "rue de l'Acajou", "rue de l'Achillée", "rue Achille-Fortier", "rue Achim", "rue Acorn", "rue Acorn", "rue Acres", "rue Adam", "rue Addington", "rue Addison", "rue Adrien-Hébert", "rue Adrienne", "rue Aegidius-Fauteux", "rue Aéterna", "rue Agnès", "rue de l'Aiguillage", "rue Aimé-Geoffrion", "rue Aimé-Lecavalier", "rue Aimé-Renaud", "rue Airlie", "rue Alain", "rue Alain-Grandbois", "rue Albanel", "rue Albéric-Gélinas", "rue Albert", "rue Albert-Chamberland", "rue Albert-Couture", "rue Albert-Einstein", "rue Albert-Ferland", "rue Albertine-Morin", "rue Albert-Laberge", "rue Albert-Lacombe", "rue Albert-Lozeau", "rue Albert-Malouin", "rue Aldéric-Beaulac", "rue Aldis-Bernard", "rue Alexander", "rue Alexander-C.-Hutchison", "rue Alexander-Fleming", "rue Alexandra", "rue Alexandre-Carli", "rue Alexandre-DeSève", "rue Alexandre-Lacoste", "rue Alfred", "rue |
NewerOlder