# BEGIN Force HTTPS - 2017-03-10 <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] </IfModule> # END Force HTTPS
Add modify date – 4
<?php add_action ('genesis_entry_footer', 'summit_single_entry_footer_extra' ); function summit_single_entry_footer_extra() { $moddatetime = get_the_modified_time('c'); $moddate = get_the_modified_date(); $modauthor = get_the_modified_author(); $outputmodified = '<time class="entry-modified-time" itemprop="dateModified" datetime="' . $moddatetime . '">' . $moddate . '</time>'; $outputeditor = '<span class="entry-editor" itemprop="editor" itemscope itemtype="http://schema.org/Person"><span class="entry-editor-name" itemprop="name">' . esc_html( $modauthor ) . '</span></span>'; echo '<div class="entry-footer-extra">'; echo '<p>Dernière modification le ' . $outputmodified . ' par ' . $outputeditor . '.</p>'; echo '</div>'; };
Set the Jetpack Tiled Gallery Width
add_filter( 'tiled_gallery_content_width', 'personal_full_tiled_gallery_width' ); function personal_full_tiled_gallery_width( $width ) { $width = 1140; return $width; }
Add modify date – 2
<?php // retirer cette ligne /* ajoute la date de la dernière modification après le pied de page du post */ add_action ('genesis_entry_footer', 'sdotta_add_entry_footer_content' ); function sdotta_add_entry_footer_content() { if ( !is_page() ) { $moddate = get_the_modified_date(); $modauthor = get_the_modified_author(); echo '<div class="entry-footer-extra">'; echo '<p>Dernière modification le ' . $moddate . ' par ' . $modauthor . '.</p>'; echo '</div>'; } };
Add modify date – 3
<?php // retirer cette ligne /* ajoute la date de la dernière modification à la fin du contenu du post */ add_filter('the_content', 'sdotta_add_extra_content'); function sdotta_add_extra_content( $content ) { if( is_singular() && is_main_query() ) { $moddate = get_the_modified_date(); $modauthor = get_the_modified_author(); $extra_content = '<div class="entry-content-extra">'; $extra_content .= '<p>Dernière modification le ' . $moddate . ' par ' . $modauthor . '.</p>'; $extra_content .= '</div>'; $content .= $extra_content; } return $content; }
Add modify date – 1
<?php // retirer cette ligne /* ajoute la date de la dernière modification après le post */ add_action('genesis_after_entry_content', 'sdotta_add_after_entry_content'); function sdotta_add_after_entry_content() { if ( !is_page() ) { $moddate = get_the_modified_date(); $modauthor = get_the_modified_author(); echo '<div class="entry-content-extra">'; echo '<p>Dernière modification le ' . $moddate . ' par ' . $modauthor . '.</p>'; echo '</div>'; } };