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
# ma config | |
seen-local-config.php | |
# stockage de mon backup xml | |
tmp/ | |
# mes fichiers exportes | |
seen/ | |
# mac os x |
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_filter( 'origin_byline', 'my_byline' ); | |
function my_byline( $byline ) { | |
$byline = '<div class="byline">' . __( 'Article by [entry-author] - [entry-comments-link]', 'origin' ) . '</div>'; | |
return $byline; | |
} |
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: blog | |
* | |
* A custom page template for displaying blog archives. | |
* | |
* @package Hatch Pro | |
* @subpackage Template | |
*/ |
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 | |
/** | |
* Usage: | |
* Paste a gist link into a blog post or page and it will be embedded eg: | |
* https://gist.github.com/2926827 | |
* | |
* If a gist has multiple files you can select one using a url in the following format: | |
* https://gist.github.com/2926827?file=embed-gist.php | |
*/ |
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 | |
/* | |
* Genbu Table Of Content Shortcode | |
* use [gtoc] to generate shortcode | |
* | |
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without | |
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
* | |
* Based on (credit) : | |
* WP TOC by Brendon Boshell http://infinity-infinity.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 | |
/* | |
Plugin Name: Sticky Custom Post Types | |
Plugin URI: http://superann.com/sticky-custom-post-types/ | |
Description: Enables support for sticky custom post types. Set options in Settings → Reading. | |
Version: 1.2.2 | |
Author: Ann Oyama | |
Author URI: http://superann.com | |
License: GPL2 |
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 | |
/* | |
* Plugin Name: WordPress.com Watermark Image Uploads | |
* Description: Applies a watermark image of your choosing to all uploaded images. | |
* Author: Alex Mills | |
* Author URI: http://automattic.com/ | |
*/ | |
class WPcom_Watermark_Uploads { |
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
.container-fluid { | |
max-width: 980px; | |
margin: 0 auto; | |
} |
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 | |
/* | |
This is to show a custom field from an article. | |
It will need to be created in the metadata section before it can be used in the post edit area. | |
In this case the custom field will need to be called 'image' and be set as an image custom field in the dropdown for type. | |
*/ | |
$image = article_custom_field('image'); // Applying a variable to the custom field, so it can be reused with ease | |
if ( !empty($image) ) : // Check if the field is empty, if it is the process stops here | |
?> | |
<figure> |
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="bg-header" | |
<?php | |
/* | |
This is to show a custom field from an article. | |
It will need to be created in the metadata section before it can be used in the post edit area. | |
In this case the custom field will need to be called 'image' and be set as an image custom field in the dropdown for type. | |
*/ | |
$image = article_custom_field('image'); // Applying a variable to the custom field, so it can be reused with ease | |
if ( !empty($image) ) : // Check if the field is empty, if it is the process stops here |
OlderNewer