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
module.exports = function( grunt ) { | |
'use strict'; | |
require( 'matchdep' ).filterDev( 'grunt-*' ).forEach( grunt.loadNpmTasks ); | |
grunt.initConfig({ | |
makepot: { | |
plugin1: { | |
options: { |
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 | |
class Yoast_GlotPress_SEO { | |
function __construct() { | |
add_filter( 'gp_title', array( $this, 'modify_title' ) ); | |
add_action( 'gp_head', array( $this, 'meta_desc' ), 9 ); | |
add_filter( 'gp_redirect_status', array( $this, 'modify_redirect_status' ), 10, 2 ); | |
} | |
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 | |
add_filter('wpseo_sitemap_index', 'add_subdomains_to_sitemap' ); // add link to custom sitemap | |
/** | |
* Add the link to the main sitemap index | |
* @param string $content Existing sitemap content. | |
* @return string Sitemap with extra content. | |
*/ | |
function add_subdomains_to_sitemap( $content = '' ) { |
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
/* | |
* Mixins: | |
*/ | |
//make flex rows a bit easier: | |
@mixin flex-row( $equalize:stretch ){ | |
@include display(flex); | |
@include flex-direction(row); | |
@include align-items($equalize); | |
} |
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 | |
function custom_body_class($classes) { | |
if (!is_user_logged_in()) | |
$classes[] = 'not-loggedin'; | |
return $classes; | |
} | |
add_filter('body_class','custom_body_class'); |
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 Post Type with matching Custom Taxonomy. Only thing missing is how to | |
* get the following permalink: /tips/taxonomy-name/postname | |
* | |
*/ | |
register_post_type( 'Tips', array( | |
'label' => 'Tips', |
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 | |
add_filter( 'the_content_rss', 'iculture_add_custom_fields_to_apptopvijf_content' ); | |
add_filter( 'the_content', 'iculture_add_custom_fields_to_apptopvijf_content' ); | |
/** | |
* Alter the content output for the apptovijf custom post type. | |
* | |
* @global $post Post object | |
* @param string $content Existing content. | |
* @return string Filtered content. |
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 | |
add_action( 'genesis_after_post','ecowijs_add_widget_area_between_grid' ); | |
/** | |
* The ecowijs_add_widget_area_between_grid function is all about | |
* dAdding Widget Area between Genesis Featured and Genesis Gri | |
* | |
* @access public | |
* @return void | |
*/ |
OlderNewer