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 | |
//----- Environment -----// | |
define('WP_ENV', 'local'); | |
//----- Database -----// | |
define('DB_NAME', '<dbname>'); | |
define('DB_USER', '<dbuser>'); | |
define('DB_PASSWORD', '<dbpassword>'); | |
define('DB_HOST', '<dbhost>'); |
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="addthis_toolbox addthis_32x32_style addthis_default_style"> | |
<a class="addthis_button_email"></a> | |
<a class="addthis_button_facebook"></a> | |
<a class="addthis_button_twitter"></a> | |
<a class="addthis_button_google_plusone_share"></a> | |
<a class="addthis_button_linkedin"></a> | |
<a class="addthis_button_facebook_like"></a> | |
<a class="addthis_button_tweet"></a> |
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_tinymce_styles( $settings ) { | |
$style_formats_original = json_decode( $settings['style_formats'] ); | |
$style_formats = array( | |
// Inline style | |
array( | |
'title' => 'Color Red', | |
'inline' => 'span', |
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 | |
// Load locale database configuration | |
require_once realpath(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'wp-config-locale.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
# ignore Wordpress files | |
/.htaccess | |
wp-content/uploads | |
sitemap.xml | |
sitemap.xml.gz | |
wp-config-locale.php | |
*.sql | |
php-errors.log | |
# ignore specific themes |
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( 'jetpack_sharing_display_text', 'custom_jetpack_sharing_display_text', 10, 2 ); | |
function custom_jetpack_sharing_display_text( $title ){ | |
return ''; | |
} |
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 | |
// Inspired by Isotrope code: https://gist.github.com/isotrope/1930f90518bdbfa074c3 and MCSF https://gist.github.com/mcsf/6c5cda9ee61acc8849c6 | |
// Creates a query var called "tri" | |
function query_vars_tri( $vars ){ | |
$vars[] = "tri"; | |
return $vars; | |
} | |
add_filter( 'query_vars', 'query_vars_tri' ); |
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 | |
// Owlcarousel: default settings for all owlcarousels | |
function custom_owlcarousel_shortcode_atts($defaults){ | |
$args = array( | |
'post_parent' => '' // ID of Page containing images, default is current page ID | |
'order' => 'ASC', // Order | |
'orderby' => 'ID', // Orderby | |
'image_size' => 'large', // Image size: thumbnail, medium, large, full | |
'exclude' => '' // Exclude images by listing their IDs, separate by comma |
OlderNewer