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
RewriteCond %{HTTP_HOST} !^www\.ice-dev\.com$ [NC] | |
RewriteRule ^(.*)$ https://www.ice-dev.com/$1 [R=301,L] | |
RewriteCond %{SERVER_PORT} 80 | |
RewriteRule ^(.*)$ https://www.ice-dev.com/$1 [R=301,L] | |
# le reste de votre fichier htaccess ci-dessous |
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
body{ | |
counter-reset: resultat; | |
} | |
div.g::before{ | |
font-size: 30px; | |
counter-increment: resultat; | |
content: counter(resultat) "."; | |
} |
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
javascript:(function(){%20var%20style%20=%20document.createElement(%27style%27),%20styleContent%20=%20document.createTextNode(%27body{%20counter-reset:%20resultat%20!important;%20}%20div.g::before{%20counter-increment:%20resultat%20!important;%20content:%20counter(resultat)%20\%22.\%22%20!important;%20}%20%27);%20style.appendChild(styleContent%20);%20var%20caput%20=%20document.getElementsByTagName(%27head%27);%20caput[0].appendChild(style);%20})(); |
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
class Polygon { | |
constructor(height, width) { // Class constructor | |
this.name = 'Polygon'; | |
this.height = height; | |
this.width = width; | |
} | |
sayName() { // Class method | |
console.log('Hi, I am a', this.name + '.'); | |
} |
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
SetEnvIf REQUEST_URI "/url_autorisee$" noauth=1 | |
AuthType Basic | |
AuthName "Authorization Required" | |
AuthUserFile /xxx/xxx/xxxx/xxxxxx/xxxx/.htpasswd | |
Order deny,allow | |
Satisfy any | |
Deny from all | |
Allow from env=noauth | |
Allow from env=REDIRECT_noauth | |
Require valid-user |
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 | |
// à mettre dans /wp-content/themes/mon_theme-child/image.php | |
global $post; | |
if ( $post && $post->post_parent ) { | |
wp_redirect( get_permalink( $post->post_parent ), 301 ); | |
exit; | |
} else { | |
wp_redirect( home_url( '/' ), 301 ); | |
exit; |
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
Modèle de CGU | |
Le présent document a pour objet de définir les modalités et conditions dans lesquelles d’une part, ____ , ci-après dénommé l’EDITEUR, met à la disposition de ses utilisateurs le site, et les services disponibles sur le site et d’autre part, la manière par laquelle l’utilisateur accède au site et utilise ses services. | |
Toute connexion au site est subordonnée au respect des présentes conditions. | |
Pour l’utilisateur, le simple accès au site de l’EDITEUR à l’adresse URL suivante ____ implique l’acceptation de l’ensemble des conditions décrites ci-après. | |
Propriété intellectuelle |
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
Modèle de CGV | |
1. Acceptation des Conditions Générales de Vente | |
Les présentes Conditions Générales de Vente régissent contractuellement les relations commerciales entre {nom_société} et le client du site {nom_de_domaine_du_site}. | |
Le client déclare avoir pris connaissance des dispositions suivantes avant de passer commande de produits. En choisissant d'acheter des produits sur {nom_de_domaine_du_site}, le client accepte expressément les termes énoncés ci-après. | |
En cas de contradiction entre les présentes conditions générales de vente et tout autre document figurant sur le site, y compris charte de qualité ou document équivalent, les présentes conditions générales prévalent. | |
2. Prix |
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
Mentions Légales | |
Ce site est édité par la société {nom_société}. | |
Siège social : {nom_société} {nom_adresse} | |
Capital social : XXXXX euros | |
Téléphone : +33 (0)4.74.00.00.00 | |
Responsable de la rédaction : |
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 | |
public function newsDetailAction($slug) | |
{ | |
$request = $this->getRequest(); | |
$currentRoute = $request->attributes->get('_route'); | |
$currentUrl = $this->get('router')->generate($currentRoute, array('slug' => $slug), true); | |
} |
NewerOlder