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\. | |
| RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$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
| // Par défaut | |
| define('WP_DEBUG', false); | |
| /*------------------------------------*/ | |
| // Active le debogage | |
| define('WP_DEBUG', true); | |
| // Indique à WordPress de tout logger dans /wp-content/debug.log file | |
| define('WP_DEBUG_LOG', true); |
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
| UPDATE | |
| nom_de_la_table | |
| SET | |
| nom_de_la_colonne = REPLACE( | |
| nom_de_la_colonne, | |
| 'STR_source', | |
| 'STR_destination' | |
| ) | |
| ; |
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 | |
| // suppression des révisions | |
| define('WP_POST_REVISIONS', false); | |
| // nombre de sauvegarde : 5 | |
| define('WP_POST_REVISIONS', 5); |
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 | |
| function tp_excerpt_pages() | |
| { | |
| add_meta_box('postexcerpt', __('Excerpt'), 'post_excerpt_meta_box', 'page', 'normal', 'core'); | |
| } | |
| add_action( 'admin_menu', 'tp_excerpt_pages' ); |
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 | |
| function tp_googlemaps_action_links( $links, $file ) | |
| { | |
| if (strstr($file, 'tp-googlemaps/tp-googlemaps.php')) | |
| { | |
| $settings_link = '<a href="admin.php?page=tp_googlemaps-menu">'. __('Settings').'</a>'; | |
| array_unshift( $links, $settings_link ); | |
| } | |
| return $links; | |
| } |
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 | |
| /** | |
| * Ajouter en tête de fichier de template, choisir un nom pour le type de page | |
| * | |
| * Template Name: Page Produit | |
| **/ |
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 | |
| /** Errors Management **/ | |
| @ini_set('display_errors', false); | |
| define('WP_DEBUG', false); | |
| /** Revisions Management **/ | |
| define('WP_POST_REVISIONS', false); | |
| /** Disable auto update **/ | |
| define( 'WP_AUTO_UPDATE_CORE', false ); |
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 | |
| $admin_email = '[email protected]'; | |
| $admin_tel = '06 01 95 63 81'; | |
| /* Tell search engines that the site is temporarily unavailable */ | |
| $protocol = $_SERVER["SERVER_PROTOCOL"]; | |
| if ( 'HTTP/1.1' != $protocol && 'HTTP/1.0' != $protocol ) $protocol = 'HTTP/1.0'; | |
| header( "$protocol 503 Service Unavailable", true, 503 ); | |
| header( 'Content-Type: text/html; charset=utf-8' ); | |
| header( 'Retry-After: 600' ); |
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 | |
| // [widget type="WP_Widget_Archives"] | |
| add_shortcode( 'widget', 'tp_widget_shortcode' ); | |
| function tp_widget_shortcode( $atts ) | |
| { | |
| // Configure defaults and extract the attributes into variables | |
| extract( shortcode_atts( | |
| array( | |
| 'type' => '', |